7.4.3. Set the subnet mask
Description: Subnet mask can be set as follows.
Command
Response (IP_NETMASK=<subnet_
Legend:
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.
Command
Response (IP_GATEWAY=<gateway_
Legend:
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.
Command {LW2_PORT=<port_nr>}
Response (LW2_PORT=<port_nr>)CrLf ← (LW2_PORT=10001)CrLf
Explanation1: The port number for LW2 protocol is set to 10001 (default value).
Command {LW3_PORT=<port_nr>}
Response (LW3_PORT=<port_nr>)CrLf ← (LW3_PORT=6107)CrLf
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.
Command {ETH_ENABLE=?}
Response (ETH_ENABLE=<cpu>;
Section 7. LW2 programmers' reference
Format
{IP_NETMASK=<subnet_
mask>}
mask>)CrLf
<subnet_mask>:
Four decimal octets separated by dots.
Format
{IP_GATEWAY=<gateway_
addr>}
addr>)CrLf
<gateway_addr>:
Format
Format
Format
<ctrl_tps_link>;<ctrl_lan>;
<tps_eth>;<tpsin1_eth>;
<tpsin2_eth>;<tpsout1_eth>;
<tpsout2_eth>)CrLf
Example
→ {ip_netmask=255.255.255.0}
← (IP_NETMASK=255.255.255.0)CrLf
Example
→ {ip_gateway=192.168.0.50}
← (IP_GATEWAY=192.168.0.50)CrLf
Four decimal octets separated by dots.
Example1
→ {lw2_port=10001}
Example2
→ {lw3_port=6107}
Example
→ {eth_enable=?}
← (ETH_ENABLE=1;1;1;1;1;1;1;1)CrLf
MMX6x2-HT
User's Manual
Page 73 / 119
Need help?
Do you have a question about the MMX6x2-HT200 and is the answer not in the manual?