Page 2 of 2

Re: dsPIC33EP128MC506, dsPIC33EP32MC502 and dsPIC33EP256MU806 CANBUS problem

Posted: Fri Apr 06, 2018 4:24 pm
by celebriums
Hi
GetRxIdent 16 bit function is correct working. (Use Mask and Filter)
Problem 1 solved.
Thank you.

Problem 2: If I add a new variable, CANBUS can not read the line. (Example; byte8 = ABC)

Problem 3: If you add a new variable and send only data, it sends wrong value.
(0x12FE1240; buffer:0, DLC: 8,1,1,1,1,1,1,1,1 instead of 0x12FCBF41; Buffer8, DLC:4,1,1,1,1,1,1,1,1) as if it had shifted value.

Re: dsPIC33EP128MC506, dsPIC33EP32MC502 and dsPIC33EP256MU806 CANBUS problem

Posted: Fri Apr 06, 2018 4:41 pm
by Benj
Hello Sadik,
Problem 2: If I add a new variable, CANBUS can not read the line. (Example; byte8 = ABC)
We're not too sure what you mean by this. Can you provide a simple example so we can better see what you mean.

Re: dsPIC33EP128MC506, dsPIC33EP32MC502 and dsPIC33EP256MU806 CANBUS problem

Posted: Fri Apr 06, 2018 5:00 pm
by celebriums
Hi Benj
I'il explain it now. After the GetRXIdent function works, I added a new variable from the left menu.
Variable>add new> Create a New Variable
Name of New variable: ABC
initial value: 0
Byte(number in the range: 0,255)

In this case, the GetRXIdent function does not work.

Re: dsPIC33EP128MC506, dsPIC33EP32MC502 and dsPIC33EP256MU806 CANBUS problem

Posted: Mon Apr 09, 2018 8:21 am
by LeighM
Hi,
Could you post a flowcode project with the variable added?
Thanks

Re: dsPIC33EP128MC506, dsPIC33EP32MC502 and dsPIC33EP256MU806 CANBUS problem

Posted: Mon Apr 09, 2018 9:08 am
by LeighM
Hi,
Reading back through your posts again, I think I see the issue, could you try the attached file please?

Re: dsPIC33EP128MC506, MC502 and dsPIC33EP256MU806 CANBUS problem (SOLVED)

Posted: Mon Apr 09, 2018 11:22 am
by celebriums
Dear LeighM

Problem 2 and Problem 3 te seems to have solved the problem.

The update is working correctly.

Thank you very much for your help and support.

:D