Serial Communications Instructions - Omron CJ - PROGRAMMING MANUAL 12-2009 Programming Manual

Programmable controllers
Table of Contents

Advertisement

Serial Communications Instructions

3-22 Serial Communications Instructions

Instruction
Symbol/Operand
Mnemonic
Code
PROTOCOL
MACRO
PMCR(260)
PMCR
@PMCR
260
C1: Control word 1
C2: Control word 2
S: 1st send word
R: 1st receive word
TRANSMIT
TXD(236)
TXD
@TXD
236
S: 1st source word
C: Control word
N: Number of
bytes
0000 to 0100 hex
(0 to 256 decimal)
RECEIVE
RXD(235)
RXD
@RXD
235
D: 1st destination
word
C: Control word
N: Number of
bytes to store
0000 to 0100 hex
(0 to 256 decimal)
TRANSMIT VIA
TXDU(256)
SERIAL COMMU-
NICATIONS UNIT
TXDU
@TXDU
256
S: 1st source word
C: 1st control word
N: Number of bytes
(0000 to 0256 BCD)
142
Calls and executes a communications sequence registered in a Serial
Communications Board (CS Series only) or Serial Communications
Unit.
C1
CPU Unit
C2
S
S
R
to
R
to
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
S
1.2 or later (no-protocol mode) according to the start code and end
code specified for no-protocol mode in the PLC Setup.
C
N
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
D
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.
C
N
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
S
end code (if any) specified in the allocated DM Area.
C
N
Function
Serial Communications Unit
Port
External
device
Section 3-22
Location
Execution condition
Output
Required
Output
Required
Output
Required
Output
Required

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents