
113
2018/03
7.7.7
Reading Process Data in CODESYS
Defining a Channel (Input Data – COM0, Modbus-Server 1)
Double-click the Modbus TCP Slave.
In the register tab "Modbus Slave Channel” select "Add Channel”.
Enter the following values:
–
Name
–
Access Type Read Holding Registers
–
Offset: 0x0003
–
Length: 2 registers (4 bytes, max.: 12 registers)
Confirm with OK.
NOTE
The table under
Register mapping TBEN-S2-2COM-4DXP, page 100
shows the Modbus
register mapping for the device.
The chapter
contains more detailed information concerning the parameters
Transmit and Receive Data, page 141
.
Fig. 66: Defining the channel for input data COM0