Hi,
Are there any sample how to write multiple registers with modbus function16.
In gate builder I used 3:16:4999 as an address, and "com_req" as Gate ID.
In Code builder :
Function void R1on()
int data;
data = 6003523421 // 6003 as com, 52342 as security code, 1 as parameter
SetNumGateValue("com_req",1,data);
My target is to write 6003 to address 4999
52342 to address 5000
1 to address 5001
but it's don't works
Best regards
Modbus func 16
Re: Modbus func 16
Hi,
in winlog use function 35 or 37 for read 32bit integer or 33 and 36 for floating point 32.
See Modbus help on protocol guide.
Best regards
in winlog use function 35 or 37 for read 32bit integer or 33 and 36 for floating point 32.
See Modbus help on protocol guide.
Best regards