MMX6x2-HT
User’s Manual
Section 7. LW2 programmers’ reference Page 73 / 119
7.4.3. Set the subnet mask
Description: Subnet mask can be set as follows.
{IP_NETMASK=<subnet_
mask>}
{ip_netmask=255.255.255.0}
(IP_NETMASK=<subnet_
mask>)CrLf
(IP_NETMASK=255.255.255.0)CrLf
Legend: <subnet_mask>: Four decimal octets separated by dots.
INFO
The subnet mask can be queried by typing the “ip_netmask=?” command. The response
contains the fix IP subnet mask value that is stored in the device even if DHCP is enabled;
in this case, this IP subnet mask is not valid.
7.4.4. Set the gateway address
Description: Gateway address can be set as follows.
{IP_GATEWAY=<gateway_
addr>}
{ip_gateway=192.168.0.50}
(IP_GATEWAY=<gateway_
addr>)CrLf
(IP_GATEWAY=192.168.0.50)CrLf
Legend: <gateway_addr>: Four decimal octets separated by dots.
INFO
The gateway address can be queried by typing the “ip_gateway=?” command. The
response contains the static IP gateway address that is stored in the device even if DHCP
is enabled. In that case, the latest valid gateway address (for static IP) is stored.
7.4.5. Set the TCP/IP port
Description: TCP/IP port setting can be set as follows.
Explanation1: The port number for LW2 protocol is set to 10001 (default value).
Explanation2: The port number for LW3 protocol is set to 6107 (default value).
INFO
The TCP/IP port can be queried by typing the “lw2_port=?” and “lw3_port=?” commands.
7.4.6. Query the status of Ethernet ports
Description: The Ethernet can be enabled (1) or disabled (0) on each port individually.
(ETH_ENABLE=<cpu>;
<ctrl_tps_link>;<ctrl_lan>;
<tps_eth>;<tpsin1_eth>;
<tpsin2_eth>;<tpsout1_eth>;
<tpsout2_eth>)CrLf
(ETH_ENABLE=1;1;1;1;1;1;1;1)CrLf