A-61
Appendices
CJ2 CPU Unit Software User’s Manual
A-1 Instruction Functions
App
A-1-23 Serial Communications Instructions
INTELLI-
GENT I/O
WRITE
IOWR
@IOWR
223 Output Required
A-1-23 Serial Communications Instructions
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
PROTOCOL
MACRO
PMCR
@PMCR
260 Output Required
PROTOCOL-
MACRO 2
PMCR2
@PMCR2
264 Up to 64 PMCR2 instructions can be used simultaneously. They
are otherwise the same as PMCR.
Output Required
TRANSMIT TXD
@TXD
236 Outputs the specified number of bytes of data without conversion
from the RS-232C port built into the CPU Unit (no-protocol mode)
or the serial port of a Serial Communications Board or Unit with
unit version 1.2 or later (no-protocol mode) according to the start
code and end code specified for no-protocol mode in the PLC
Setup.
Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
IOWR(223)
C
S
D
C: Control data
S: Transfer source
and number of
words
D: Transfer
destination and
number of words
D
D+1
Outputs the contents of the CPU Unit's I/O memory area
to the Special I/O Unit or the CPU Bus Unit (see note).
Unit number of Special I/O Unit
Desig-
nated
number
of words
written.
Written
PMCR(260)
C1
C2
S
R
C1: Control word 1
C2: Control word 2
S: 1st send word
R: 1st receive word
R
S
to
to
CPU Unit
Port
Serial Communications Unit
External
device
Calls and executes a communications sequence registered
in a Serial Communications Board (CS Series only) or
Serial Communications Unit.
Communications
sequence
number
PMCR2(264)
C2
S
R
C1
I
C1: Control word 1
C2: Control word 2
S: 1st send word
R: 1st receive word
I: 1st
communications
information word
TXD(236)
S
C
N
S: 1st source word
C: Control word
N: Number of
bytes
0000 to 0100 hex
(0 to 256 decimal)