288
RS-232C Units Section 6-2
6-2-12 RS-232C Unit Application Examples
This section explains the procedure for using explicit messages with an RS-
232C Unit. The following system configuration example is used in this exam-
ple. When explicit messages are used with an RS-232C Unit, the communica-
tions conditions for ports 1 and 2 on the RS-232C Unit can be set individually,
and data can be read or written to the RS-232C Unit.
Setting Port Parameters When IR 00000 (port 1 settings) or IR 00001 (port 2 settings) turns ON in the
CPU Unit of the Master Unit, the RS-232C Unit’s port parameters will be set.
For details on Bar Code Reader settings, refer to the Bar Code Reader’s
Operation Manual.
Set the port parameters as follows:
• Port 1 Parameters
Data length: 8 bits
Parity: None
Stop bits: 1
Header code: Disabled
Delimiter code: Enabled
Flow control: Enabled
Baud rate: 9,600 bps
Delimiter code
CR code: 0D Hex
Number of bytes received after delimiter:0
• Port 2 Parameters
Data length: 7 bits
Parity: Even
Stop bits: 2
Header code: Enabled
Delimiter code: Enabled
Flow control: Disabled
Baud rate: 2,400 bps
Header code
STX code: 02 Hex
C200HW-DRM21-V1 Master Unit
(node address 00, unit number 0)
T-branch Tap
Terminating Resistor
T-branch Tap
Terminating Resistor
T-branch Tap
C200HX PLC
Port 1
Port 2
DRT1-232C2 RS-232C Unit
(node address 08)
Bar Code
Reader 2
Bar Code
Reader 1
24-V DC power supply