Omron CJ2 - 02-2010 User Manual page 536

Cj2 cpu unit software
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents