Port Name - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

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

Advertisement

Serial Communications Instructions
Example: Flag Operation
CPU Unit
Serial
Communications
Unit
Example: Sending Data
1012
Related Flags in the CPU Bus Unit Area
(n = CIO 1500 + 25
unit number)
Word
Bit
Port 1
Port 2
n+9
n+19
05
The following diagram shows the operation of the Communications Port
Enabled Flag and TXDU Instruction Executing Flag.
TXDU(256)
Communications Port Enabled Flag
(A20200 to A20207 correspond to
communications ports 0 to 7.)
TXDU Executing Flag
(Bit 5 of n+9 or n+19,
n = CIO 1500 + 25 x unit number)
Send processing
When CIO 000000 is ON, A20203 (the Communications Port Enabled Flag) is
ON, and CIO 155905 (the TXDU Instruction Executing Flag for port 1) is OFF
in the following example, TXDU(256) outputs data through serial port 1 of the
Serial Communications Unit with unit number 2. The 5 bytes of output data
are read from the DM Area beginning at the rightmost byte of D00100 and
output through logical port 3 to a general-purpose device such as a printer.
Name
TXDU Instruction
0: TXDU(256) is not being executed.
Executing Flag
1: TXDU(256) is being executed.
Instruction
execution
ON
OFF
ON
OFF
Send
processing
Send starts. Send completed.
Section 3-24
Status

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents