Overview
The defined modbus functions are implemented in the PLC library TcModbusSrv.lib.
Modbus TCP function |
Function code |
PLC block |
---|---|---|
Read Coils |
1 | |
Read Inputs |
2 | |
Read Registers |
3 | |
Read Input Registers |
4 | |
Write Single Coil |
5 | |
Write Single Register |
6 | |
Write Multiple Coils |
15 | |
Write Multiple Registers |
16 | |
Read/Write Multiple Registers |
23 | |
Diagnostic |
8 |
Requirements
Development environment |
Target system type |
PLC libraries to be linked |
---|---|---|
TwinCAT v3.0.0 |
PC or CX (x86) |
Tc2_ModbusSrv |