Configuration of network and communication protocols supported via the Ethernet port, including UDP, Modbus TCP, and EtherNet/IP.
Network configuration
|
GET/SET NETWORK |
|||||
|---|---|---|---|---|---|
|
SETTING GROUP |
DESCRIPTION |
DEFAULT |
DATA TYPE |
VALID RANGE |
NOTE |
|
ipaddrmode |
IP address mode determines how a device obtains its IP address |
static |
ENUM |
static, dhcplinklocal, linklocal, dhcp |
static: Fixed IP address. dhcplinklocal: Try DHCP first, fallback to link-local if DHCP fails. linklocal: Assigns a local IP without DHCP. dhcp: Automatically gets IP settings from a DHCP server. |
|
ip |
ip address of MRU |
10.0.0.50 |
- |
[0.0.0.0 - 255.255.255.255] |
|
|
subnetmask |
subnet mask |
255.255.0.0 |
- |
[0.0.0.0 - 255.255.255.255] |
|
|
gateway |
gateway |
0.0.0.0 |
- |
[0.0.0.0 - 255.255.255.255] |
|
|
dns |
DNS server |
0.0.0.0 |
- |
[0.0.0.0 - 255.255.255.255] |
|
|
linkspeed |
link speed |
100full |
ENUM |
autonegotiate, 10half, 10full, 100half, 100full |
autonegotiate: Automatically selects link speed and duplex mode. 10half: 10 Mbps half duplex. 10full: 10 Mbps full duplex. 100half: 100 Mbps half duplex. 100full: 100 Mbps full duplex. |
Example:
Examples of 'get' and corresponding 'set' commands within the network domain are provided below.
|
GET |
SET |
|
get,network,ipaddrmode<CR><LF> |
set,network,ipaddrmode,static<CR><LF> |
|
get,network,ip |
set,network,ip,10.0.0.50<CR><LF> |
|
get,network,subnetmask<CR><LF> |
set,network,subnetmask,255.255.0.0<CR><LF> |
|
get,network,gateway<CR><LF> |
set,network,gateway,0.0.0.0<CR><LF> |
|
get,network,dns<CR><LF> |
set,network,dns,0.0.0.0<CR><LF> |
|
get,network,linkspeed<CR><LF> |
set,network,linkspeed,100full<CR><LF> |
|
|
set,network,save<CR><LF> |
Note: use command set,network,save to apply and save changes done by the set,network commands.
TCP configuration
|
GET/SET TCP |
|||||
|---|---|---|---|---|---|
|
SETTING |
DESCRIPTION |
DEFAULT |
DATA TYPE |
VALID RANGE |
NOTE |
|
port |
TCP port |
8090 |
U16 |
[0, 65535] |
Verify the availability of a port before set-up. |
Example:
An example of a 'get' and corresponding 'set' command within the tcp domain is provided below.
|
GET |
SET |
|
get,tcp,port<CR><LF> |
set,tcp,port,8090<CR><LF> |
UDP configuration
|
GET/SET UDP |
|||||
|---|---|---|---|---|---|
|
SETTING |
DESCRIPTION |
DEFAULT |
DATA TYPE |
VALID RANGE |
NOTE |
|
hostip |
First ip address of host computer |
10.0.0.100 |
- |
[0.0.0.0-255.255.255.255] |
|
|
hostip2 |
Second ip address of host computer |
10.0.0.100 |
- |
[0.0.0.0-255.255.255.255] |
|
|
hostip3 |
Third ip address of host computer |
10.0.0.200 |
- |
[0.0.0.0-255.255.255.255] |
|
|
port |
First remote UDP port |
2001 |
U16 |
[0, 65535] |
Verify the availability of a port before set-up. |
|
port2 |
Second remote UDP port |
2002 |
U16 |
[0, 65535] |
Verify the availability of a port before set-up. |
|
port3 |
Third remote UDP port |
2013 |
U16 |
[0, 65535] |
Verify the availability of a port before set-up. |
Example:
Examples of 'get' and corresponding 'set' commands within the udp domain are provided below.
|
GET |
SET |
|
get,udp,hostip<CR><LF> |
set,udp,hostip,10.0.0.100<CR><LF> |
|
get,udp,hostip2<CR><LF> |
set,udp,hostip2,10.0.0.100<CR><LF> |
|
get,udp,hostip3<CR><LF> |
set,udp,hostip3,10.0.0.200<CR><LF> |
|
get,udp,port<CR><LF> |
set,udp,port,2001<CR><LF> |
|
get,udp,port2<CR><LF> |
set,udp,port2,2002<CR><LF> |
|
get,udp,port3<CR><LF> |
set,udp,port3,2013<CR><LF> |
Modbus TCP configuration
|
GET/SET MODBUSTCP |
|||||
|---|---|---|---|---|---|
|
SETTING |
DESCRIPTION |
DATA TYPE |
DEFAULT |
VALID RANGE |
NOTE |
|
registertype |
register type for Modbus TCP |
ENUM |
input |
input, holding |
See Modbus register addressing in MODBUS TCP for details. |
Example:
An example of a 'get' and corresponding 'set' command within the Modbus TCP domain is provided below.
|
GET |
SET |
|
get,modbustcp,registertype<CR><LF> |
set,modbustcp,registertype,input<CR><LF> |
EtherNet/IP configuration
|
GET/SET ETHERNETIP |
||||
|---|---|---|---|---|
|
SETTING |
DESCRIPTION |
DEFAULT |
DATA TYPE |
VALID RANGE |
|
instanceid |
device identifier |
110 |
U8 |
[102, 199] |
Example:
An example of a 'get' and corresponding 'set' command within the ethernetip domain is provided below.
|
GET |
SET |
|
get,ethernetip,instanceid<CR><LF |
set,ethernetip,instanceid,110<CR><LF> |