![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_7422681042.webp)
1003
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
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...