142
Serial Communications Instructions
Section 3-22
3-22 Serial Communications Instructions
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution condition
PROTOCOL
MACRO
PMCR
@PMCR
260
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
RECEIVE
RXD
@RXD
235
Reads the specified number of bytes of data starting with the specified
first word 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
TRANSMIT VIA
SERIAL COMMU-
NICATIONS UNIT
TXDU
@TXDU
256
Outputs the specified number of bytes of data without conversion from
the serial port of a Serial Communications Unit with unit version 1.2 or
later. The data is output in no-protocol mode with the start code and
end code (if any) specified in the allocated DM Area.
Output
Required
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.
TXD(236)
S
C
N
S: 1st source word
C: Control word
N: Number of
bytes
0000 to 0100 hex
(0 to 256 decimal)
RXD(235)
D
C
N
D: 1st destination
word
C: Control word
N: Number of
bytes to store
0000 to 0100 hex
(0 to 256 decimal)
TXDU(256)
S
C
N
S: 1st source word
C: 1st control word
N: Number of bytes
(0000 to 0256 BCD)