![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_7420301029.webp)
989
Serial Communications Instructions
Section 3-24
Examples
■
Example 1: Sending Data
When CIO 000001 and the RS-232C port’s Send Ready Flag (A39205) are
ON in the following example, the RS signal is set according to the status of
D00300 bit 15 and the ER signal is set according to the status of D00300 bit
14.
■
Example 2: Performing Signal Control
When CIO 000001 and the RS-232C port’s Send Ready Flag (A39205) are
ON in the following example, the RS signal is set according to the status of
D00300 bit 15 and the ER signal is set according to the status of D00300 bit
14.
S:
ST 12
34 AB CD EF ED
0
3
0
C: D00400
8
12
3
4
15
0
7
11
Byte order
0: Most significant byte to least significant byte
RS and ER signal control
3: RS and ER signal control
Always 0
Serial port specifier
0: CPU Unit's RS-232C port
0
0
S: D00300 1 0 0 0
15 14 13 12
ER signal set to 0
RS signal set to 1
TXD
D00300
D00400
&0
000001
S
C
N
A39205
RS-232C port's
Send Ready Flag
Sent
ST: Start code (e.g., 02 hex)
ED: End code (e.g., 03 hex)
Start and end codes added according to set-
ting in PC Setup (this example assumes that
both a start and end code have been set).
5 bytes
Sent in speci-
fied order.
Most signifi-
cant bytes
Least signif-
icant bytes
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 ...