6. LW2 Programmers’ Reference
MMX6x2-HT series – User's Manual
52
6.4.8. Query the TCP/IP Port
Description:
TCP/IP port setting can be queried as follows.
Format
Example1
Command
{LW2_PORT=?}
→
{lw2_port=?}
Response
(LW2_PORT=<port_nr>)CrLf
←
(LW2_PORT=10001)
Explanation:
The port number for LW2 protocol is set to 10001 (default value).
Format
Example2
Command
{LW3_PORT=?}
→
{lw3_port=?}
Response
(LW3_PORT=<port_nr>)CrLf
←
(LW3_PORT=6107)
Explanation:
The port number for LW3 protocol is set to
6107 (default value).
6.4.9.
Set the TCP/IP Port
Description:
TCP/IP port setting can be set as follows.
Format
Example1
Command
{LW2_PORT=<port_nr>}
→
{lw2_port=10001}
Response
(LW2_PORT=<port_nr>)CrLf
←
(LW2_PORT=10001)
Explanation:
The port number for LW2 protocol is set to 10001 (default value).
Format
Example2
Command
{LW3_PORT=<port_nr>}
→
{lw3_port=6107}
Response
(LW3_PORT=<port_nr>)CrLf
←
(LW3_PORT=6107)
Explanation:
The port number for LW3 protocol is set to 6107 (default value).
6.4.10. Query the Status of Ethernet Ports
Description:
The Ethernet can be enabled (1) or disabled (0) on each port individually.
Format
Example1
Command {ETH_ENABLE=?}
→
{eth_enable=?}
Response
(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)
6.4.11.
Set the Status of Ethernet Ports
Description:
The Ethernet can be enabled (1) or disabled (0) on each port as follows:
Format
Example1
Command
{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;0;0)
Response
(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;0;0)
ATTENTION!
All ports’ status must be defined in the command.