3. Instruction Set
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 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.
UDP MODE:
Master/Slave mode; communication is working fine.
(Note: if M1196 is switched from ON to OFF during communication, the connection will be
switched off. M1197 is reset to OFF and the completion flag will be set to ON.
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, and the data length is less than 200 characters.
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 UDP 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.