Modbus TCP gateway
Wieland Electric GmbH | BA000970 | 07/2019 [9855]
55
Essential settings in the gateway configurati-
on (via SP-COP2-ENI)
Settings required for the PLC program and/or
in the Modbus TCP configuration tool
Define where the selected data in the PLC me-
mory are to be written to: Enter the register
address(es).
Example: "40001" and/or you can determine
from which location in the PLC memory the
selected data are to be read: Enter the register
addresses.
Ensure that the addresses allocated in the sa-
mosPRO are available and that they contain the
data intended for the samosPRO- system.
Choose how often these data are to be transmit-
ted.
–
Define from and to where the data in the
Modbus-TCP network are to be read and written:
Enter the IP address and the slot number of the
PLC controller.
–
Gateway as slave
Table 26: Configuration directive – gateway as slave
Essential settings in the gateway configurati-
on (via SP-COP2-ENI)
Settings required for the PLC program and/or
in the Modbus TCP configuration tool
Select
PLC requests
and
PLC writes
in the ga-
teway configuration dialog.
–
–
Select which data are to be written to the gate-
way or read from it.
Ensure that the PLC program writes the data
into the addresses allocated to the gateway (see
Table "
Data addressing for the SP-COP2-ENI as
").
NOTICE
The address settings for the Modbus TCP gateway are 1-based. Please subtract 1 from the register
address set in samosPLAN
6 for a 0-based address setting.
Example: Register 1100 corresponds to the Modbus address 1099.
Master mode: SP-COP2-ENI reads from/writes to the PLC
Carry out the following steps to configure the gateway as a master:
Change to the
Gateway
view and click on the
Gateway configuration
tab.
Select the samosPRO is Master/Client option at the very bottom of the
Modbus mode
section.
⇨
The settings required for master mode are activated automatically in the
Output data (to PLC)
and
Input data (from PLC)
sections.