Hello everyone,
i am looking for Modbus RTU Master non blocking code. can you please guide me.
thanks
S_Ve
Modbus master non blocking code
-
- Posts: 26
- http://meble-kuchenne.info.pl
- Joined: Tue Jan 26, 2021 6:10 am
- Has thanked: 33 times
- Been thanked: 1 time
Re: Modbus master non blocking code
Hi.
I am also looking for non-blocking modbus master code. In my hmi panel project, after calling read coil and write another coil, the main loop stops for 2-3 seconds, and that's only two coils. I planned to use more coils and operations on PLC registers, but I'm afraid the program will stop. Please advise what can be done so that the modbus component code does not block the rest of the program. I am attaching the code I am currently testing.
Based on the LED - A0 flashes, I can see how the modbus commands sent to the PLC stop the program.
I am also looking for non-blocking modbus master code. In my hmi panel project, after calling read coil and write another coil, the main loop stops for 2-3 seconds, and that's only two coils. I planned to use more coils and operations on PLC registers, but I'm afraid the program will stop. Please advise what can be done so that the modbus component code does not block the rest of the program. I am attaching the code I am currently testing.
Based on the LED - A0 flashes, I can see how the modbus commands sent to the PLC stop the program.