contact@webdyn.com | webdyn.com
V1.0 subject to changes | Webdyn © by Flexitron Group
prexID_MODBUS_TYPE2.ini
# Denition of packets
# Id;Name;ReadFctCode;WriteFctCode;StartReg;NbReg;EnableReading;
EnableWriting;Option1;Option2
Modbus_RequestsTables={
1;voltage;3;0;0;4;1;2
}
# Denition of variables
# Id;ReqId;Name;Type;Signed;Position;Option1;Option2;CoeA;CoeB,
Unit,Action;
Modbus_VariablesTables={
1;1;U1;3;2;1;;;10;0;V;2
2;1;U2;3;2;2;;;10;0;V;2
}
On the server side, a link must be set up between the data received and the corresponding denition
les.
After the data are formatted, we obtain the following results:
Device at address 1:
Counter values:
COUNTER1 COUNTER2 COUNTER3 COUNTER4
27/03/13-09:45:00 32 pulses 52 pulses 5 pulses 102 pulses
27/03/13-10:00:00 35 pulses 57 pulses 5 pulses 108 pulses
Status of outputs:
OUTPUT1 OUTPUT2 OUTPUT3 OUTPUT4
27/03/13-09:45:00 1 0 1 0
27/03/13-10:00:00 1 1 0 0