contact@webdyn.com | webdyn.com
V1.0 subject to changes | Webdyn © by Flexitron Group
With the denition le prexID_MODBUS_TYPE1.ini:
Modbus_RequestsTables={
1;counter;3;0;0;4;1;2
2;output;1;5;4;4;1;1
3;input;2;0;8;4;1;2
}
# Denition of variables
# Id;ReqId;Name;Type;Signed;Position;Option1;Option2;CoeA;CoeB,Unit,Action;
Modbus_VariablesTables={
1;1;counter1;3;2;1;;;1;0;pulse;4
2;1;counter2;3;2;2;;;1;0;pulse;4
3;1;counter3;3;2;3;;;1;0;pulse;4
4;1;counter4;3;2;4;;;1;0;pulse;4
5;2;output1;1;2;1;;;1;0;;4
6;2;output2;1;2;2;;;1;0;;4
7;2;output3;1;2;3;;;1;0;;4
8;2;output4;1;2;4;;;1;0;;4
9;3;input1;1;2;1;;;1;0;;8
10;3;input2;1;2;2;;;1;0;;8
11;3;input3;1;2;3;;;1;0;;8
12;3;input4;1;2;4;;;1;0;;8
}
In the conguration le prexID_daq.ini:
MODBUS_Addr[0]=1
MODBUS_Name[0]=Slave1
MODBUS_FileDefName[0]=prexID_MODBUS_TYPE1.ini
After analysis of the alarm le and the denition les, we obtain the following result:
On 27/03/13 at 10:01:16 the variable input4 indexed at 12 on the device named Slave1 switched to 1.
On 27/03/13 at 10:01:18 the variable input2 indexed at 10 on the device named Slave1 switched to 0.