1939-modbusTCP

krym52.ru

Example: modbus master of 2 contexts ctx and ctx2
 to get data from 3 channels of 2 devices

1 connect: iRes=0 errno=115
2 connect: iRes=0 errno=115
1******
1 read_registers: iRes=2 errno=115 Operation now in progress
4CFE 41AF 
2 read_registers: iRes=8 errno=115 Operation now in progress
FB66 41A9 371B 0000 F700 3722 E6F0 41AA 
21.9126 21.2478 21.3628
2******
1 read_registers: iRes=2 errno=115 Operation now in progress
19AD 41AF 
2 read_registers: iRes=8 errno=115 Operation now in progress
FB66 41A9 37CA 0000 F700 37D1 E6F0 41AA 
21.8875 21.2478 21.3628
3******
1 read_registers: iRes=2 errno=115 Operation now in progress
19AD 41AF 
2 read_registers: iRes=8 errno=115 Operation now in progress
FB66 41A9 3879 0000 F700 3880 807A 41AA 
21.8875 21.2478 21.3127
^C

