![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_7420301042.webp)
1002
Serial Communications Instructions
Section 3-24
Examples
■
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.
■
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
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.
D:
C: D00200
&10
0
0
Always 0
Stored
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)
Most signifi-
cant bytes
Least signif-
icant bytes
CS and DR signal monitoring
0: No CS and DR signal monitoring
Byte order
1: Least significant bytes first
Serial port specifier
0: CPU Unit's RS-232C port
D
C
N
RXD
D00100
D00020
&10
000000
A39206
Reception
Completed Flag
Monitor
F150-M05L
Console
F 150-KP
Console Cable
Programmable Controller
SYSMAC
CJ 1G-C PU
@@
H
CJ 1H-CPU
@@
H
CJ 1M-C PU
@@
XW2Z-200T (2 m)
XW2Z-500T (5 m)
V530-R150V3
Camera
F150-SLC 20
RS-232C Cable
Power Supply
(24 VDC)
Sync Sensor
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...