Modbus master non blocking code

For general Flowcode discussion that does not belong in the other sections.
Post Reply
S_VE
Posts: 26
http://meble-kuchenne.info.pl
Joined: Tue Jan 26, 2021 6:10 am
Has thanked: 33 times
Been thanked: 1 time

Flowcode v9 Modbus master non blocking code

Post by S_VE »

Hello everyone,

i am looking for Modbus RTU Master non blocking code. can you please guide me.

thanks
S_Ve
S_V

marcin
Posts: 7
Joined: Mon May 16, 2022 8:11 am
Has thanked: 5 times
Been thanked: 1 time

Flowcode v10 Re: Modbus master non blocking code

Post 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.
PIC16F1939_HMI_LASKA LCD_8BIT_LED_NUMBERS.fcfx
(62.7 KiB) Downloaded 22 times
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.

Post Reply