7. LW3 Programmers’ Reference
UCX series – User's Manual
128
Applied firmware package: v1.2.0b9 | LDC software: v2.5.10b1
8.15. Serial Port Configuration
DIFFERENCE:
Serial port-related commands are available only from FW package 1.2.0.
#new
8.15.1.
BAUD Rate Setting
Command and Response
#rs-232 #rs232
ç
SET·/V1/MEDIA/SERIAL/
<serial_port>
.Baudrate=
<baudrate>
æ
pw·/V1/MEDIA/SERIAL/
<serial_port>
.Baudrate=
<baudrate>
Parameters
Identifier
Parameter
description
Parameter values
<serial_port>
Serial port
number
P1-P2*
<baudrate>
Baud rate value
9600
19200
38400
57600
115200
*The UCX-2x1-HC30 model has one serial port (P1).
Example
ç
SET /V1/MEDIA/SERIAL/P1.Baudrate=19200
æ
pw
/V1
/MEDIA/SERIAL/P1.Baudrate=19200
8.15.2.
Stop Bits Setting
Command and Response
#rs-232 #rs232
ç
SET·/V1/MEDIA/SERIAL/
<serial_port>
.StopBits=
<stopbits>
æ
pw·/V1/MEDIA/SERIAL/
<serial_port>
.StopBits=
<stopbits>
Parameters
Identifier
Parameter
description
Parameter values
<serial_port>
Serial port
number
P1-P2*
<stopbits>
Stop bit value
1
2
*The UCX-2x1-HC30 model has one serial port (P1).
Example
ç
SET /V1/MEDIA/SERIAL/P1.StopBits=1
æ
pw /V1/MEDIA/SERIAL/P1.StopBits=1
8.15.3. Query Data Bits
Command and Response
#rs-232 #rs232
ç
GET·/V1/MEDIA/SERIAL/
<serial_port>
.DataBits
æ
pr·/V1/MEDIA/SERIAL/
<serial_port>
.DataBits=
<databits>
Parameters
Identifier
Parameter
description
Parameter values
<serial_port>
Serial port
number
P1-P2*
<databits>
DataBits value
8
9
*The UCX-2x1-HC30 model has one serial port (P1).
Example
ç
GET /V1/MEDIA/SERIAL/P1.DataBits
æ
pr /V1/MEDIA/SERIAL/P1.DataBits=8
8.15.4.
Parity Setting
Command and Response
#rs-232 #rs232
ç
SET·/V1/MEDIA/SERIAL/
<serial_port>
.Parity=
<parity>
æ
pw·/V1/MEDIA/SERIAL/
<serial_port>
.Parity=
<parity>
Parameters
Identifier
Parameter
description
Parameter values
<serial_port>
Serial port
number
P1-P2*
<parity>
Parity value
None
Odd
Even
*The UCX-2x1-HC30 model has one serial port (P1).
Example
ç
SET /V1/MEDIA/SERIAL/P1.Parity=None
æ
pw /V1/MEDIA/SERIAL/P1.Parity=None