User's Manual
5-7 Setting Command
5-7
5-56
5-7-7 Communications Port Setting(CP)
This command sets the baud rate for the communications port (Com Port), data length, parity
bit, and stop bit for use in communications with the host.
<Command Format>
STX
Node No.
Command
code
"CP"
Port
No.
Baud
rate
Data
length
Parit
y bit
Stop
bit
BCC
Enabled
/Disable
d
ACK
NAC
K
time
out
ETX BCC
1 2 2 1 1 1 1 1 1 1 1 1 1
Specify the port number that you want to change in decimal.
Specification range: 1 or 2
Specification number 1 2
Port No.
Port COM1 COM2
Specify the number corresponding to the baud rate that you want to change.
Specification range: 0 to 3, *
When * is specified, the Reader/Writer reads the current setting.
Specified
number
0 1 2 3 *
Baud rate
Baud rate 9600 bps 19200 bps 38400 bps 115200 bps -
Specify the number corresponding to the data length that you want to change.
Specification range: 0, 1, *
When * is specified, the Reader/Writer reads the current setting.
Specification number 0 1 *
Data length
Data length 7Bit 8Bit -
Specify the number corresponding to the parity bit that you want to change.
Specification range: 0, 1, 2, *
When * is specified, the Reader/Writer reads the current setting.
Specification
number 0 1 2 *
Parity bit
Parity No Odd Even -
Specify the number corresponding to the stop bit that you want to change.
Specification range: 0, 1, *
When * is specified, the Reader/Writer reads the current setting.
Specification number 0 1 *
Stop bit
Stop bit 1 bit 2 bits -
Specify the number corresponding to the BCC setting that you want to change.
Specification range: 0, 1, *
When * is specified, the Reader/Writer reads the current setting.
Specification number 0 1 *
BCC
Enabled/Disabled
BCC Disabled Enabled -
Specify the number corresponding to the communications mode that you want to change.
Specification range: 0, 1, *
When * is specified, the Reader/Writer reads the current setting.
Specification number 0 1 *
ACK/NACK
ACK/NACK Control Disabled Enabled -
Specify the number corresponding to the timeout period that you want to change.
Specification range: 0, 1, *
When * is specified, the Reader/Writer reads the current setting.
Specification number 0 1 *
Timeout
ACK/NACK timeout
period setting
Timeout period 0.5 sec 5 sec -