Program Example
Command
Description/
Parameter
Values
Non-
Volatile
Setting
ETHCTL(6,<value>)
Network Lost user pro-
gram label number
This setting is nonvolatile.
Program label to jump to if the Network Lost
action, ETHCTL(9,<value>), is either set to 4
or 5.
ETHCTL(9,<value>)
Network Lost action
This setting is nonvolatile.
0 – Ignore, no action (default setting)
1 – Send OFF command to motor (servo off)
2 – Send X command to motor (smooth stop)
3 – Send S command to motor (hard stop)
4 – Send GOSUB(x) command, where x is the
value of the user program label as defined by
ETHCTL(6,<value>).
5 – Send GOTO(x) command, where x is the
value of the user program label as defined by
ETHCTL(6,<value>).
NOTE: Loss of network is an edge-triggered
event if I/O Control goes from RUN to any other
state.
ETHCTL(45,x)
Set IP address as
integer
E.g., to set for an IP address of 192.168.1.3
(C0 A8 01 03 hex), x=3232235779
Yes
ETHCTL(46,x)
Set IP subnet mask as
integer
E.g., to set for an IP netmask of 255.255.0.0
(FF FF 00 00 hex), x=4294901760
Yes
ETHCTL(47,x)
Set IP gateway as
integer
E.g., to set for an IP gateway of 192.168.1.1
(C0 A8 01 01 hex), x=3232235777
Yes
ETHCTL(50,x)
Reset
Resets Internal Error code RETH(50) and
Internal Error source RETH(51) to 0
ETHCTL(51,x)
Reset
Resets Internal Error code RETH(50) and
Internal error source RETH(51) to 0
Program Example
The following code example sets the device IP address.
IPCTL
(0,"192.168.0.10")
'Set the IP address to 192.168.0.10
'Add rest of program below
Moog Animatics Class 6 EtherNet/IP Guide, Rev. B
Page 40 of 160