7. LW3 Programmers’ Reference
MODEX-F15-OPTS, MODEX-F15-OPTM series – User's Manual
67
7.9. RS-232 Port Configuration
7.9.1.
BAUD Rate Setting
Command format
:
SET
●
/MEDIA/UART/<P
n
>.Baudrate=<Baud_rate>
Response format
:
pw
●
/MEDIA/UART/<P
n
>.Baudrate=<Baud_rate>
Parameters
:
<Baud_rate>
BAUD rate value
4800
9600
14400
19200
28800
38400
56000
57600
<Baud_rate>
BAUD rate value 115200
128000
153600
230400
256000
460800
Example
:
˃
SET /MEDIA/UART/P1.Baudrate=14400
˂
pw /MEDIA/UART/P1.Baudrate=14400
7.9.2.
Databit Setting
Command format
:
SET
●
/MEDIA/UART/<P
n
>.DataBits=4|5|6|7|8|9
Response format
:
pw
●
/MEDIA/UART/<P
n
>.DataBits=4|5|6|7|8|9
Example
:
˃
SET /MEDIA/UART/P1.DataBits=8
˂
pw /MEDIA/UART/P1.DataBits=8
7.9.3.
Stopbits Setting
Command format
:
SET
●
/MEDIA/UART/<P
n
>.StopBits=0|1|2
Response format
:
pw
●
/MEDIA/UART/<P
n
>.StopBits=0|1|2
Parameters
:
.StopBits
0
1
2
Stopbit value
1
1,5
2
Example
:
˃
SET /MEDIA/UART/P1.StopBits=0
˂
pw /MEDIA/UART/P1.StopBits=0
7.9.4.
Parity Setting
Command format
:
SET
●
/MEDIA/UART/<P
n
>.Parity=0|1|2|3|4
Response format
:
pw
●
/MEDIA/UART/<P
n
>.Parity=0|1|2|3|4
Parameters
:
.Parity
0
1
2
3
4
Parity setting
no parity
odd
even
zero
one
Example
:
˃
SET /MEDIA/UART/P1.Parity=0
˂
pw /MEDIA/UART/P1.Parity=0
7.9.5.
Command Injection Mode
Command format
:
SET
●
/MEDIA/UART/<P
n
>.CommandInjectionEnable=true|false
Response format
:
pw
●
/MEDIA/UART/<P
n
>.CommandInjectionEnable=true|false
Example
:
˃
SET /MEDIA/UART/P1.CommandInjectionEnable=true
˂
pw /MEDIA/UART/P1.CommandInjectionEnable=true
ATTENTION!
The Command injection status is stored in another read-only property:
/MEDIA/UART/<P
n
>.CommandInjectionStatus.