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
Modbus RTU
-
- Posts: 594
- Joined: Thu Sep 17, 2009 7:52 am
- Location: Belgium
- Has thanked: 63 times
- Been thanked: 102 times
- Contact:
Re: Modbus RTU
C code blocks aren't executed in the simulation.
On real hardware it should work fine .
On real hardware it should work fine .