Hi everyone,
So I just bought myself Arduino Opta for my little project which requires it to be configured as Modbus RTU Master with an additional 7 Modbus RTU Slaves on the network.
If I try to read/write one Slave at a time I have no issues. See the photo below for the code.
However, as soon as I add 2nd read/write algorithm, everything stops working. I can just about get it working with triggers, that initiate separate algorithms a few seconds apart, but doing this way is incredibly slow. I expect the processor to finish communication of one sysMbMRtu_FC03 algorithm before jumping to the next rung but is seems they somehow clashing. I tried to play around with polling times/delays/timeouts as well as tried to set up slave handles/etc but did not see any success.
Has anyone managed to get it working and can share their experience? The Arduino tutorial does not cover RTU on the ladder so I am a bit stuck.
Much appreciated.