Sample program, 2 instructions, Sending data to a code reader – Omron SYSMAC CP CP1E-N@@D@-@ User Manual
Page 408: Hardware configuration, Communications settings
2 Instructions
2-372
CP1E CPU Unit Instructions Reference Manual(W483)
Sample program
Sending Data to a Code Reader
This example shows how to send data to the V530-R150V3 2D Code Reader as an example of commu-
nicating with an external device.
Hardware Configuration
In this example, the external device is connected to the RS-232C port built into the CPU Unit.
First, set the reading conditions for the Code Reader.
Communications Settings
The communications settings of the Code Reader are given in the following table. These are the default
settings.
Set the PLC communications settings to the same values in the PLC Setup. Only the end code needs to
be set.
Item
Setting
Communications mode
No-protocol
Baud rate
38,400 bps
Data bit length
8 bits
Parity
None
Stop bits
1
Start code
None
End code
#000D (CR)
Monitor
F150-M05L
Console
F150-KP
Console Cable
Programmable Controller
SYSMAC
CJ1G-CPU
@@H
CJ1H-CPU
@@H
CJ1M-CPU
@@
XW2Z-200T (2 m)
XW2Z-500T (5 m)
V530-R150V3
Camera
F150-SLC20
RS-232C Cable
Power Supply
(24 VDC)
Sync Sensor