Page 1 of 1
Modbus master non blocking code
Posted: Sun Dec 15, 2024 12:58 pm
by S_VE
Hello everyone,
i am looking for Modbus RTU Master non blocking code. can you please guide me.
thanks
S_Ve
Re: Modbus master non blocking code
Posted: Tue May 06, 2025 6:05 pm
by marcin
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.