EasyManua.ls Logo

Flexitron Webdyn WebdynModbus - Page 43

Flexitron Webdyn WebdynModbus
73 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
contact@webdyn.com | webdyn.com
V1.0 subject to changes | Webdyn © by Flexitron Group
43
Example:
Denition of a Modbus slave handling 4 pulse counters, 4 outputs and 4 inputs.
Declaration of Modbus requests:
REQUEST 1 REQUEST 2 REQUEST 3
index 1 2 3
name counter output input
readFunctionCode 3 (read holding
registers)
1 (read coils) 3 (read holding registers)
writeFunctionCode 0 5 (write single coil) 0
startRegister 0 4 8
size 4 4 4
enableReading 1 (enabled) 1 (enabled) 1 (enabled)
enableWriting 2 (disabled) 1 (enabled) 2 (disabled)
option1 Not supplied Not supplied Not supplied
option2 Not supplied Not supplied Not supplied
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
}
Declaration of variables:
VARIABLE 1 VARIABLE 2 ... VARIABLE 12
index 1 2 12