6. LW2 Programmers' Reference
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
Command and Response
{RS232=<mode>}
(RS232=<mode>)CrLf
Parameters
Parameter
Parameter description
<mode>
The serial port working mode
The current setting can be queried by the {RS232=?} command.
Example
{RS232=CONTROL}
(RS232=CONTROL)
RS-232 Serial Interface
section.
Value
Value description
Pass-through mode
PASS
Control mode
CONTROL
Command Injection mode
CI
Applied firmware package: v1.6.0b19 | LDC software: v2.5.13b5
MMX4x2 series – User's Manual
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
<baud_rate>
Baud rate setting (optional)
<data_bit>
Databit setting (optional)
<parity>
Parity setting (optional)
<stop_bit>
Stop bit setting (optional)
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.
Value
Value description
4800; 7200; 9600; 14400;
19200; 38400; 57600; 115200
8; 9
N; E; O
1; 1.5; 2
78
Need help?
Do you have a question about the MMX4x2 Series and is the answer not in the manual?