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.
dsPIC33EP128MC506, dsPIC33EP32MC502 and dsPIC33EP256MU806 CANBUS [solved]
Moderator: Benj
- celebriums
- Posts: 125
- Joined: Sun Sep 25, 2016 3:50 pm
- Has thanked: 71 times
- Been thanked: 33 times
- Contact:
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: dsPIC33EP128MC506, dsPIC33EP32MC502 and dsPIC33EP256MU806 CANBUS problem
Hello Sadik,
We're not too sure what you mean by this. Can you provide a simple example so we can better see what you mean.Problem 2: If I add a new variable, CANBUS can not read the line. (Example; byte8 = ABC)
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- celebriums
- Posts: 125
- Joined: Sun Sep 25, 2016 3:50 pm
- Has thanked: 71 times
- Been thanked: 33 times
- Contact:
Re: dsPIC33EP128MC506, dsPIC33EP32MC502 and dsPIC33EP256MU806 CANBUS problem
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.
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.
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: dsPIC33EP128MC506, dsPIC33EP32MC502 and dsPIC33EP256MU806 CANBUS problem
Hi,
Could you post a flowcode project with the variable added?
Thanks
Could you post a flowcode project with the variable added?
Thanks
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: dsPIC33EP128MC506, dsPIC33EP32MC502 and dsPIC33EP256MU806 CANBUS problem
Hi,
Reading back through your posts again, I think I see the issue, could you try the attached file please?
Reading back through your posts again, I think I see the issue, could you try the attached file please?
- Attachments
-
- PIC16BIT_CAL_CAN.c
- (68.8 KiB) Downloaded 288 times
- celebriums
- Posts: 125
- Joined: Sun Sep 25, 2016 3:50 pm
- Has thanked: 71 times
- Been thanked: 33 times
- Contact:
Re: dsPIC33EP128MC506, MC502 and dsPIC33EP256MU806 CANBUS problem (SOLVED)
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.
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.
Last edited by celebriums on Mon Apr 09, 2018 11:25 am, edited 1 time in total.