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

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

Advertisement

Serial Communications Instructions
Example: Flag Operation
Serial
Communications
Unit
CPU Unit
Example: Receiving Data
The following diagram shows the operation of RXDU(255) and related flags.
Reception processing
ON
Reception Completed Flag
(Bit 6 of n+9 or n+19,
n = CIO 1500 + 25 x unit number)
OFF
RXDU(255)
Communications Port
ON
Enabled Flag
(A20200 to A20207 correspond to
communications ports 0 to 7.)
OFF
Writing data to the CPU Unit's
data area
When CIO 000000 is ON, A20203 (the Communications Port Enabled Flag) is
ON, and CIO 155906 (the Reception Completed Flag for port 1) is OFF in the
following example, RXDU(255) reads the data received through serial port 1
of the Serial Communications Unit with unit number 2. (Logical communica-
tions port number 3 is used to receive the data from a general-purpose device
such as a bar-code reader.) The 10 bytes of received data are written to the
DM Area beginning at the rightmost byte of D00100.
End code or specified
number of bytes received.
Reception
processing
Instruction
execution
Write
processing
Section 3-24
1021

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents