Connection procedure (Ethernet)

<< Click to Display Table of Contents >>

Manual > Device Connection Guide > Modifier >

Connection procedure (Ethernet)

overview

This article explains how to connect each Modicon device via Ethernet.

 

 

Compatible models

List of compatible devices

Connection method

Series/Model etc.

Connection Unit

Supported drivers

Ethernet

Modbus/TCP compatible devices manufactured by Modicon

TSX series etc.

・ETY PORT

ModCon-Ethernet

Modbus (Modbus5/6 digits)

 

[Connection protocol]

Modbus/TCP


Keyence Modbus/TCP compatible devices

NQ Series

・NQ-MP equivalent to 8L

ModCon-Ethernet

Modbus (Modbus6 digits)

 

[Connection protocol]

Modbus/TCP


Yokogawa Electric Modbus/TCP compatible devices

Data Acquisition System GM

 

・GM10

ModCon-Ethernet

Modbus (Modbus6 digits)

 

[Connection protocol]

Modbus/TCP

 

 

Settings Dialog Details

Ethernet Common

 

Computer settings

c_plc_0600

 

 

Computer IP address
The IP address of your computer. If you select Automatic, a default IP address will be set.

 

Computer port number
Port number on the computer side. If you set it to "Automatic", an available port will be selected.
If you want to communicate using TCP instead of UDP, set it to Automatic.

 

Unit side settings

c_plc_0601

 

 

Unit IP Address
The IP address of PLC.

 

Ping test
Perform a ping test. If successful, it means that the network is physically connected.

 

Unit Port Number
The port number of the PLC. You can also use an environment variable.

 

Communication details

c_plc_0602

 

 

Waiting time
Response timeout from PLC.

 

Retry count
When a communication error occurs, the system will retry the specified number of times.

 

protocol
Select UDP or TCP.
For a Modbus/TCP connection, be sure to select TCP/IP.

Other detailed settings

c_plc_0603

 

 

Minimum Communication Interval
Specifies the waiting time on the PC side after receiving a device value from PLC and before the next transmission.

 

Maximum communication size
The maximum communication size is the maximum packet size per packet for each communication. If the maximum packet size of the connected Modbus-compatible device is small, errors may occur when reading or writing to a large area. In such cases, check the connected Modbus-compatible device and adjust the setting value.
In addition, our communication driver optimizes packets so that communication requests are as few as possible. For example, even if multiple tags have non-consecutive addresses set at random, communication requests are processed together within the size set by the maximum communication size. If for some reason you do not want to optimize packets, specify "-1" as the maximum communication size for the target address.

 

attention

When connecting to a device with a scattered address map, even if you register only existing addresses in the tag and communicate, packet optimization will cause a communication request to be made for all addresses, including those that do not exist on the device. Depending on the specifications of the connected device, an error may be returned if a communication request is made to a non-existent Modbus address. In such cases, you can prevent packet optimization by setting the maximum communication size to "-1", and avoid errors. However, communication speed will be slower if packet optimization is not performed. For example, if 100 tags are defined, a total of 100 communications will be made for each folder update cycle.

 

Communication Protocol
Regarding writing to HR (holding register), for Modbus-compatible devices that do not support function code 16, uncheck "Supports function code 16." If not checked, writing to HR will be done using function code 6.