49
WebdynSunPM – User guide — Version 1.0
- Definition files (DEF)
Currently, only Modbus devices are managed by the WebdynSunPM concentrator. The files
defining these devices are contained in the "MODBUS/" subdirectory of the definition
directory (by default, "DEF/").
These files describe the variables of the Modbus slaves connected to the concentrator, and
the method (requests) for retrieving them.
Each file contains two declaration tables:
- "Modbus_RequestsTables" declarations are shown in the table below. Each element
in this table is defined by 10 fields separated by a semicolon.
Request index from 1 to N
Function code and sub-code (read only)
Standard codes managed:
1 => “read coils”
2 => “read discrete inputs”
3 => “read holding registers”
4 => “read input registers”
Function code and sub-code (read/write)
Standard codes managed:
5 => “write single coils”
6 => “write single register”
15 => “write multiple coils”
16 => “write multiple registers”
Address of the first Modbus register
0 to 65535
Response size without header or CRC (in octets)
1 to 250
Modbus_RequestsTables={
reqId;reqName;readFunctionCode;writeFunctionCode;startRegister;size;enableReading;enableWritin
g;option1;option2
…
}
Modbus_VariablesTables={
varId;indexRequest;varName;type;signed;position;option1;option2;coefA;coefB;unit;action
…
}