3. Instruction Set
14. The already used communication ports are as below.
UDP/TCP
Communication
Port
Description
TCP 502
TCP 44818
EtherNet/IP explicit message
UDP 67
UDP 68
UDP 2222
EtherNet/IP implicit message
UDP 44818
EtherNet/IP explicit message
UDP 20006
For internal parameter download
UDP 20008
15. Descriptions for relevant flags during communication:
TCP MODE:
M1196=ON: Communication port is connected
Master/Slave mode; communication is working fine.
M1197 = ON, this indicates the communication is active. Make sure the TCP
connection is ready or is waiting to be connected and checking its relative
communication settings are set, the data length is less than 200 characters and if the
slave is responding.
After data is sent or received, M1197 stays ON and a completion flag will be set to ON.
(You can reset this flag to OFF.)
If the ETHRS instruction is executed again, the completion flag will be reset to OFF.
Master/Slave mode; an error occurs during communication.
M1197 = ON, this indicates the communication is active. Make sure the TCP
connection is ready or is waiting to be connected.
When an error occurs, M1198 is ON and the error codes will be shown in D1176.
Execute ETHRS instruction again, after the problem is fixed, and M1198 is reset to
OFF.
If receiving time out is enabled in Master mode, it starts counting after the sending is
done.
If receiving time out is enabled in Slave mode, it starts counting after the connection is
established.
M1196=OFF: Use ETHRS instruction to control the connection; when it is executed, the
connection is established.
Master/Slave mode; communication is working fine.
M1197 = ON, this indicates the communication is active. Make sure the TCP
connection is ready or is waiting to be connected and checking its relative
communication settings are set, the data length is less than 200 characters and if the
slave is responding.
After data is sent or received, M1197 stays ON and a completion flag will be set to ON.
(You can reset this flag to OFF.)
When the connection time is exceeding the setting value in Keep Alive Timeout (default:
30ms), the connection will be switched off. M1197 is set to OFF.
If the ETHRS instruction is executed again, the completion flag will be reset to OFF.
Master/Slave mode; an error occurs during communication.
M1197 = ON, this indicates the communication is active. Make sure the TCP