7. LW3 Programmers’ Reference
MMX6x2-HT series – User's Manual
65
7.6.2.
BAUD Rate Setting
Command and Response
SET•/MEDIA/UART/
<port>
.Baudrate=
<number>
pw•/MEDIA/UART/
<port>
.Baudrate=
<number>
Parameters
Identifier
Parameter
description
Value
Explanation
<number>
Baud rate value
0
4800
1
7200
2
9600
3
14400
4
19200
5
38400
6
57600
7
115200
Example
SET /MEDIA/UART/P1.Baudrate=2
pw /MEDIA/UART/P1.Baudrate=2
7.6.3.
Databits Setting
Command and Response
SET•/MEDIA/UART/
<port>
.DataBits=
<databits>
pw•/MEDIA/UART/
<port>
.DataBits=
<databits>
Parameters
Identifier
Parameter
description
Value
Explanation
<databits>
Data bits value
8
8 data bits
9
9 data bits
Example
SET /MEDIA/UART/P1.DataBits=8
pw /MEDIA/UART/P1.DataBits=8
7.6.6.
RS-232 Operation Mode
Command format
SET•/MEDIA/UART/
<port>
.Rs232Mode=
<number>
pw•/MEDIA/UART/
<port>
.Rs232Mode=
<number>
Parameters
Identifier
Parameter
description
Value
Explanation
<number>
RS-232
operation mode
0
Disconnect
1
Control
2
Command injection
Example
SET /MEDIA/UART/P2.Rs232Mode=1
pw /MEDIA/UART/P2.Rs232Mode=1
7.6.7.
Command Injection Mode
Command format
SET•/MEDIA/UART/
<port>
.CommandInjectionEnable=
<logical_value>
pw•/MEDIA/UART/
<port>
.CommandInjectionEnable=
<logical_value>
Parameters
Identifier
Parameter
description
Value
Explanation
<logical_value>
Command
injection status
true
Command injection is
enabled on the port.
false
Command injection is
disabled on the port.
Example
SET /MEDIA/UART/P2.CommandInjectionEnable=true
pw /MEDIA/UART/P2.CommandInjectionEnable=true
ATTENTION!
The Command injection status is stored in another
read-only property which is True if both above mentioned properties
are set to the proper state; if so, Command injection mode is active:
/MEDIA/UART/<Pn>.CommandInjectionStatus.
ATTENTION!
Do not forget to set the TCP/IP port setting which is
individual for each RS-232 port and stored in /MEDIA/UART/<Pn>.
CommandInjectionPort parameter.
7.6.4.
Stopbits Setting
Command and Response
SET•/MEDIA/UART/
<port>
.StopBits=
<number>
pw•/MEDIA/UART/
<port>
.StopBits=
<number>
Parameters
Identifier
Parameter
description
Value
Explanation
<number>
Stop bits value
0
1
1
1,5
2
2
Example
SET /MEDIA/UART/P1.StopBits=0
pw /MEDIA/UART/P1.StopBits=0
7.6.5.
Parity Setting
Command and Response
SET•/MEDIA/UART/
<port>
.Parity=
<number>
pw•/MEDIA/UART/
<port>
.Parity=
<number>
Parameters
Identifier
Parameter
description
Value
Explanation
<number>
Parity value
0
None
1
Odd
2
Even
Example
SET /MEDIA/UART/P1.Parity=0
pw /MEDIA/UART/P1.Parity=0