Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 903

Table of Contents

Advertisement

• DTXDU(262) will not be executed while the DTXDU(262) Send Ready Flag (n+9/n+19 bit 04) is OFF
(n = CIO 1500 + 25
for DTXDU(262).
Example Programming
In the following sample, if CIO 0.00 is turned ON while the DTXDU(262) Send Ready Flag (CIO
1559.04) is ON, 5 bytes of data starting from the lower byte of D100 will be sent to the external device
connected to port 1 of the Serial Communications Unit with unit number 2 without converting the data in
any way.
1559.04
0.00
DTXDU(262) Send
Ready Flag
(Unit 2, port 1)
C+0: D200
C+1: D201
15
S: D100
D101
D102
CS/CJ/NSJ Series Instructions Reference Manual (W474)
unit number). Use the DTXDU(262) Send Ready Flag in an NO input condition
DTXDU
S
C
N
15
12
11
8
7
4 3
0
0
0
0
1
RS and ER signal control
0: No RS and ER signal control
Always 00
15
12
11
8
7
4 3
0
0
1
1
2
Serial Communications Unit's unit address (Unit
address as CPU Bus Unit)
12 hex = Unit number + 10 hex
Serial port number
1: Port 1
Always 0
Most signifi-
Least signif-
cant bytes
icant bytes
8
7
0
3
4
1
2
C
D
A
B
E
F
Example allocated DM Setup Area settings:
Start code and end code values
15
12
11
8
7
4 3
0
D30204
0
2
0
3
End code
(03 hex)
Start code
(02 hex)
Start code and end code specifiers
15
12
11
8
7
4 3
0
D30205:
1
1
End code specifier
(1: Use end code.)
Start code specifier
(1: Use start code.)
D100
D200
&5
Byte order
1: Least significant bytes first
Transfer order
1 2 3 4 A B C D E F
5 bytes
In this example, a start and end code have been
specified in the allocated DM Setup Area.
ST
12
34
AB CD EF ED
ST: Start code (e.g., 02 hex)
ED: End code (e.g., 03 hex)
Data sent.
3. Instructions
3
867

Advertisement

Table of Contents
loading

Table of Contents