Serial Communications Instructions
Examples
000000
A39206
Reception
Completed Flag
This example assumes that both a start and end
code have been specified in the PC Setup.
ST: Start code (e.g., 02 hex)
ED: End code (e.g., 03 hex)
Power Supply
(24 VDC)
Camera
F150-SLC 20
1002
■
Example 1: Basic Operation
When CIO 000000 is ON in the following example, data is received from the
RS-232C port and 10 bytes of data are stored starting in D00100.
RXD
D
D00100
C
D00020
&10
N
&10
C: D00200
■
Example 2: Sending Data to a Code Reader
This example shows how to received data from the V530-R150V3 2D Code
Reader as an example of communicating with an external device.
Hardware Configuration
Sync Sensor
V530-R150V3
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.
0
0
CS and DR signal monitoring
Always 0
0: No CS and DR signal monitoring
Serial port specifier
0: CPU Unit's RS-232C port
Most signifi-
cant bytes
Stored
D:
Console Cable
RS-232C Cable
XW2Z-200T (2 m)
XW2Z-500T (5 m)
Section 3-24
Byte order
1: Least significant bytes first
Least signif-
icant bytes
Monitor
F150-M05L
Console
F 150-KP
Programmable Controller
SYSMAC
CJ 1G-C PU@@H
CJ 1H-CPU@@H
CJ 1M-C PU@@
Need help?
Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 08-2008 and is the answer not in the manual?
Questions and answers