Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 916

Table of Contents

Advertisement

3. Instructions
Receive Area Specification
R: First receive word
• Executing a Protocol Macro
R
m
CPU Unit
S
n
Communications
sequence number
n
R
m
I: First communications information word
15
I
System work area
15
I+1
Communications response code: 0000 to FFFF hex
Operand Specifications
Word addresses
Area
CIO
WR
HR
C1
C2
S
OK
OK
OK
R
I
Flags
Name
Error Flag
880
The number of words of data that was
received is automatically stored here.
0 to 250 decimal (0000 to 00FA hex)
The m words of data that is
received is stored here.
Serial Communications Unit
Port
2 1
0
Error Flag
0: No error.
1: Error.
0
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Label
P_ER
• ON if C1 or C2 is not within the specified ranges.
• ON if the number of words of S or R exceeds 249 (when word addresses are specified).
• ON if there is no communications port (i.e., internal logical port) available (i.e., if A211 = 0).
• OFF in all other cases.
• Setting before Executing PMCR2
Set the data specified by m (beginning with R) as
the initial data for the receive buffer (backup data
for receive failure).
Data m can be set to 2 to 250 decimal (0002 to
00FA hex). If 0000 or 0001 hex is specified for m,
the initial value of the receive buffer will be
cleared to 0.
• If there is no operand specified in the execution
sequence, such as a direct or linked word,
specify the constant 0000 hex for R. If a word
address or register is specified, the data in the
word or register must always be 0000 hex.
External
device
Execution Completed Flag
0: Not completed.
1: Completed.
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
OK
---
---
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Registers
Pulse
TK
CF
bits
Indirect
IR
using IR
---
OK
---
---
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents