3. Instruction Set
12. Relative special flags and registers for the instruction ETHRS:
Item Function Defaults
Stop
Run
Attributes
M1196
ON: the connection of the self-defined
Ethernet communication port is enabled.
When the instruction ETHRS stops, the
connection will still be kept.
ON=> OFF: the connection will be disabled.
Off: use the instruction ETHRS to control the
connection, when the instruction is
executed, the connection is enabled.
Off Off R/W
M1197
ON: the instruction ETHRS is being
executed.
Off Off R
M1198
ON: when there is a communication error or
a communication timeout, the control on the
connection of the self-defined Ethernet
communication port is through M1196.
When the communication timeout occurs,
the communication instruction has to be
stopped and then start the instruction again
to start the communication.
Off Off R/W
D1176 Error code 0 0 R
D1227
D1228
During execution of the ETHRS instruction,
if it is in the receiving mode, D1227 and
D1228 show the sender’s IP address.
(available for ES2-E V1.2, 12SE V1.92,
26SE V2.00) (available for ES2-E with
firmware V1.2, or later, 12SE with firmware
V1.92 or later, and 26SE with firmware
V1.00 or later)
0 - R
13. If M1198 is ON, it means communication errors occur and an error code will be stored in
D1176. For other error codes, please refer to the following table.
When S
1
+4=0 (UDP mode)
Error code Description
H2003 The value exceeds the range.
H600C The local socket has been used.
H600D Ethernet network is not connected.
H6209 UDP Socket illegal IP address
H620A UDP Socket illegal communication mode
H620C UDP Socket illegal address for sending data