![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
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...