Using No-protocol Communications

Section 6-4

6-4-2 TXD(––) Communications Procedure

Confirm that the Transmission Enabled Flag is ON before executing TXD(––).

The Port 1 Transmission Enabled Flag is IR 20105 and the Port 2 Transmission

Enabled Flag is IR 20113. The Transmission Enabled Flag will turn OFF while

TXD(––) is being executed and will turn ON when the send has been completed.

TXD(––)

S

C

N

C: Control Word

1500

0 0

First source word

Control word

Number of bytes

(4 digits BCD, 0000 to 0256)

Byte order

0: Most significant bytes first

1:Least significant bytes first Not used. (Set to 0.)

Port 0: RS-232C port on CPU Unit

1:Port 1 on Serial Communications Board

2:Port 2 on Serial Communications Board

Not used. (Set to 0.)

Note Do not let TXD(––) be executed unless the Transmission Enabled Flag is ON.

6-4-3 RXD(––) Communications Procedure

The Reception Completed Flag will turn ON when data reception has been com- pleted. The Port 1 Reception Completed Flag is IR 20106 and the Port 2 Recep- tion Completed Flag is IR 20114.

When RXD(––) is executed, the receive data is stored in the specified data with- out any start or end code and the Reception Completed Flag is turned OFF.

Reception is started when the start code is received. If the start code is disabled, then data is received continually.

Reception is completed when the end code is received. If the end code is dis- abled, then reception is completed when the specified number of bytes or 259 bytes have been received.

RXD(––)

D

C

N

C: Control Word

1500

0 0

First destination word

Control word

Number of bytes

(4 digits BCD, 0000 to 0256)

Byte order

0: Most significant bytes first

1:Least significant bytes first Not used. (Set to 0.)

Port 0: RS-232C port on CPU Unit

1:Port 1 on Serial Communications Board

2:Port 2 on Serial Communications Board

Not used. (Set to 0.)

The following flags and status information are available in the IR area. All bits are cleared when RXD(––) is executed.

104

Page 114
Image 114
Omron CQM1H-SCB41 operation manual TXD-- Communications Procedure, RXD-- Communications Procedure