Appendices
A-62
CJ2 CPU Unit Software User’s Manual
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
COMMUNI-
CATIONS
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 ver-
sion 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
RECEIVE
VIA SERIAL
COMMUNI-
CATIONS
UNIT
RXDU
@RXDU
255 Reads the specified number of bytes of data starting with the
specified first word from the serial port of a Serial Communications
Unit with unit version 1.2 or later. The data is read in no-protocol
mode with the start code and end code (if any) specified in the
allocated DM Setup Area.
Output Required
DIRECT
RECEIVE
VIA SERIAL
COMMUNI-
CATIONS
UNIT/SERIA
L PORT
(CJ1W-
SCU22,
CJ1W-
SCU32, or
CJ1W-
SCU42 only)
DRXDU
@DRXDU
261 Reads the specified number of bytes of data from the serial port of
a CJ1W-SCU22/SCU32/SCU42 Serial Communications Unit to
CPU Unit memory starting at the specified first word. The data is
read in no-protocol mode with the start code and end code (if any)
specified in the allocated DM Setup Area.
This instruction reads the data from the Serial Communications
Unit as soon as the instruction is executed to achieve high-speed
data reception.
Output Required
DIRECT
TRANSMIT
VIA SERIAL
COMMUNI-
CATIONS
UNIT/SERIA
L PORT
(CJ1W-
SCU22,
CJ1W-
SCU32, or
CJ1W-
SCU42 only)
DTXDU
@DTXDI
262 Outputs the specified number of bytes of data from the serial port
of a CJ1WSCU22/SCU32/SCU42 Serial Communications Unit.
The data is output in no-protocol mode from the specified first
word with the start code and end code (if any) specified in the allo-
cated DM Setup Area.
This instruction sends the data to the Serial Communications Unit
as soon as the instruction is executed to achieve high-speed data
transmission.
Output Required
CHANGE
SERIAL
PORT
SETUP
STUP
@STUP
237 Changes the communications parameters of a serial port on the
CPU Unit, Serial Communications Unit (CPU Bus Unit), or Serial
Communications Board. STUP(237) thus enables the protocol
mode to be changed during PLC operation.
Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
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)
RXDU(255)
D
C
N
D: 1st destination
word
C: 1st control word
N: Number of bytes
to store
(0000 to 0100 hex)
DRXDU(261)
D
C
N
D: 1st destination
word
C: 1st control word
N: Number of bytes
0000 to 0100 hex
(0 to 256)
DTXDU(262)
S
C
N
S: 1st source word
C: 1st control word
N: Number of bytes
0000 to 0100 hex
(0 to 256)
STUP(237)
C
S
C: Control word
(port)
S: 1st source
word