beautypg.com

Sample program, 2 instructions, Receiving data – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 414: Hardware configuration, Communications settings

background image

2 Instructions

2-378

CP1E CPU Unit Instructions Reference Manual(W483)

Sample program

Receiving data

This example shows how to receive data from the V530-R150V3 2D Code Reader as an example of
communicating 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

This manual is related to the following products: