6. LW2 Programmers' Reference
MMX4x2 series – User's Manual
78
Applied firmware package: v1.6.0b19 | LDC software: v2.5.13b5
6.5.6. Enabling/disabling the Ethernet Port
Command and Response
{ETH_ENABLE=
<switch>
}
(ETH_ENABLE=
<switch>
)CrLf
Parameters
If the
<switch>
parameter is
0
, the port is
disabled
. If its value is
1
, the port is
enabled
.
Example
{ETH_ENABLE=1}
(ETH_ENABLE=1)
6.6. Serial Port Configuration
6.6.1.
Setting the Control Protocol
See more information about the RS-232 modes in the
section.
Command and Response
{RS232=
<mode>
}
(RS232=
<mode>
)CrLf
Parameters
Parameter
Parameter description
Value
Value description
<mode>
The serial port working mode
PASS
Pass-through mode
CONTROL
Control mode
CI
Command Injection mode
The current setting can be queried by the
{RS232=?}
command.
Example
{RS232=CONTROL}
(RS232=CONTROL)
6.6.2.
Serial Port Format Setting (Local port)
This command sets the format of the local RS-232 port (Phoenix).
Command and Response
{RS232_LOCAL_FORMAT=
<baud_rate>;<data_bit>;<parity>;<stop_bit>
}
(RS232_LOCAL_FORMAT=
<baud_rate>;<data_bit>;<parity>;<stop_bit>
)CrLf
Parameters
Parameter
Parameter description
Value
Value description
<baud_rate>
Baud rate setting (optional)
4800; 7200; 9600; 14400;
19200; 38400; 57600; 115200
<data_bit>
Databit setting (optional)
8; 9
<parity>
Parity setting (optional)
N; E; O
<stop_bit>
Stop bit setting (optional)
1; 1.5; 2
The current setting can be queried by the
{RS232_LOCAL_FORMAT=?}
command. Any parameter can be
skipped by using '
X
' as a value, see the example.
Example
{RS232_LOCAL_FORMAT=57600;X;X;1}
(RS232_LOCAL_FORMAT=57600;8;N;1)
The databit and parity settings have not been changed.
6.6.3.
Serial Port Format Setting (Link port)
DIFFERENCE:
This command is available for the MMX4x2-HT200 model only.
This command sets the format of the link RS-232 port (TPS port).
Command and Response
{RS232_LINK_FORMAT=
<baud_rate>;<data_bit>;<parity>;<stop_bit>
}
(RS232_LINK_FORMAT=
<baud_rate>;<data_bit>;<parity>;<stop_bit>
)CrLf
Parameters
See the previous section.
Example
{RS232_LINK_FORMAT=38400;X;X;1}
(RS232_LINK_FORMAT=38400;8;N;1)
The databit and parity settings have not been changed.