Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 1028

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Serial Communications Instructions
Examples
000001
A39205
TXD
RS-232C port's
S
Send Ready Flag
C
N
C: D00400
S: D00300 1 0 0 0
S:
Inner Board Flags for Serial Communications Board (Ports 1 and 2)
Name
Inner Board Service Dis-
abled Flag
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.
D00300
D00400
&0
15
12
11
8
7
4
0
0
3
RS and ER signal control
3: RS and ER signal control
Always 0
0
Serial port specifier
0: CPU Unit's RS-232C port
15 14 13 12
Most signifi-
Least signif-
cant bytes
icant bytes
Address
A42404
ON when TXD(236) is executed for a
Serial Communications Board that
does not support no-protocol mode (a
Board without a version number).
3
0
0
Byte order
0: Most significant byte to least significant byte
ER signal set to 0
RS signal set to 1
Sent in speci-
fied order.
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).
ST 12 34 AB CD EF ED
ST: Start code (e.g., 02 hex)
ED: End code (e.g., 03 hex)
Section 3-24
Contents
5 bytes
Sent
989

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents