Modbus RTU

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Ron
Posts: 225
Joined: Wed Apr 11, 2007 6:15 pm
Has thanked: 2 times
Contact:

Modbus RTU

Post by Ron »

Hi,

I am trying to implement Modbus RTU and I need to work on the CRC routine. I did a simple test to see the difference between a CALC block and a "C" block.

The project compiles but when I run a simulation the VARS I created and are incrementing in the "C" block are not counting up.

What am I doing wrong? Here is the code in the "C" block.


FCV_VAR_BYTE_2 = FCV_VAR_BYTE_2 + 1;

FCV_VAR_INT_2 = FCV_VAR_INT_2 + 1;

Thanks,

Ron

Spanish_dude
Posts: 594
Joined: Thu Sep 17, 2009 7:52 am
Location: Belgium
Has thanked: 63 times
Been thanked: 102 times
Contact:

Re: Modbus RTU

Post by Spanish_dude »

C code blocks aren't executed in the simulation.
On real hardware it should work fine ;).

Post Reply