Connecting via Ethernet

<< Click to Display Table of Contents >>

Manual > Device Connection Guide > Common Items >

Connecting via Ethernet

Communication setting method

There are two connection points:

 

Physical Connection
To connect to Ethernet, use either 10BASE-T, 10BASE-5, or 10BASE-2. Connection examples are clearly stated in the manuals issued by the manufacturers for each model, so please refer to them.

 

In the case of 10BASE-T, a cross cable is used when connecting directly between a PC and a PLC without using a hub or other device.
(Bands above 100BASE are also referred to as 10BASE-T here)

For 10BASE-2, be sure to attach terminators (termination resistors) to both ends of the network.

 

Network settings (IP address, port number, etc.)
Make sure that TCP/IP is installed in the OS, and assign IP addresses to the PC and PLC. The method for setting up the PLC Ethernet varies depending on the manufacturer and model, with some setting it with dip switches and others with a ladder program.

 

 

In addition, there are two cases when connecting to multiple PLCs:

c_plc_0014

 

Each PLC communicates independently.

c_plc_0016

 


c_plc_0015

For models that can communicate with other PLCs via a connected PLC, you can communicate with remote PLCs by configuring the folder network. If you want to connect to multiple remote devices, you may be able to communicate faster by setting multiple ports for one PLC and communicating in parallel, rather than creating multiple folders and communicating through them.

c_plc_0017

c_plc_0018

 

 

 

Ethernet Common Dialog

 

PC settings

c_plc_0022

 

 

Computer IP address
This is the IP address of your computer. If you select "Automatic", the default IP address will be set.
If there are multiple IP addresses recognized by the OS, such as when there are multiple LAN cards, please set a fixed IP address.

 

Computer port number
This is the port number on the computer. 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_0023

 

 

Unit IP Address
This is the IP address of PLC.

 

Ping test
Do a ping test, if successful it means the network is physically connected.

 

Unit Port Number
The PLC port number.

 

Communication details

c_plc_0024

 

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.

 

Share the PC port number with other PLCs
Only UDP is valid. Set this when you want to share the PC port number with another PLC.
In fact, this setting is used when communicating with multiple PLCs using an OMRON PLC and you want to fix the port number of all PLCs to 9600.

 

Other detailed settings
If there are any other PLC-specific settings, configure them here.

 

 

Parallel Connections

If faster communication with a PLC is required, a parallel connection is recommended.

 

Most PLCs allow multiple computers and applications to connect to one Ethernet module at the same time, so communication can be performed in the following configuration. For example, the Mitsubishi Q series allows up to 16 connections to be connected at the same time. For details, please refer to the manual of each manufacturer.

 

 c_plc_0019

 

Using this function, multiple connections are established and each connection communicates in parallel, allowing for even faster communication.

c_plc_0020

 

 

hint

Five connection examples

c_plc_0205

c_plc_0206

 

Normally, communication is performed with one PLC via one connection, but if high-speed communication with a large number of tags is required, the connections are separated.

By distributing and defining tags for each connection, communication can be performed faster.

 

 

attention

Parallel connections are a configuration method intended to maximize performance.

If you believe that one connection will provide sufficient performance, we recommend using one connection.

For information on performance, please refer to the "Communication Performance" section.

 

 

 

Wait time settings

 

c_plc_0021

 

When communicating via Ethernet, the "Wait Time" setting in the image above is very important. Depending on the network environment, you may need to set a longer timeout time. If you experience the following symptoms, set a longer timeout time.

 

A communication error occurs occasionally for "irregular length".

The value changes even though the value has not changed

 

 

About UDP/IP and TCP/IP

Depending on the model, you can choose between "UDP/IP" and "TCP/IP". When using "TCP/IP", please note the following:

 

1)PLC side settings
Please set it so that port numbers from unspecified PCs can be accepted.

 

2)PC settings
Set the protocol to be used to TCP/IP and the port number on the PC side to "Automatic" (a new port number will be issued each time you reconnect).

 

 

hint

UDP is connectionless, so even if communication is lost for some reason, it will immediately resume.

In the case of TCP/IP, recovery will occur immediately, but depending on the situation, the recovery process may be delayed slightly (from a few seconds to a few tens of seconds).

 

 

hint

With TCP/IP, the same port number cannot be used immediately when reconnecting, so the port number on the PC side must be set to "Automatic" and a new port number must be issued for each reconnection.

 

 

 

About IP addresses

If the PC's IP address is obtained automatically by DHCP, set the PC's IP address to "Automatic." In that case, however, the PLC must be set to accept connections from any IP address.