Iord - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

3. Instructions

IORD

Instruction
INTELLIGENT I/O READ
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
C
Control data
S
Transfer source and number of words
D
Transfer destination
Note If IORD(222) is executed for a CPU Bus Unit running under a CPU Unit that does not support using IORD(222) for
CPU Bus Units, an error will occur and the ER Flag will turn ON.
C:
Depends on Special I/O Unit or CPU Bus Unit.
S:
Special I/O Unit: 0000 to 005F hex
CPU Bus Unit: 8000 to 800F hex
S+1: Number of words to transfer
(0001 to 0080 Hex, depends on Special I/O Unit or CPU Bus Unit)
S+1
Operand Specifications
Word addresses
Area
CIO
WR
HR
C
S
OK
OK
OK
D
Flags
Name
Error Flag
Equals Flag
820
Mnemonic
Variations
IORD
@IORD
IORD(222)
Block program areas
Step program areas
OK
OK
Description
(to specify unit numbers 0 to 95)
(to specify unit numbers 0 to F hex)
S
S+1: Leftmost 4 digits
S: Rightmost 4 digits
Indirect DM/EM
@DM
AR
T
C
DM
EM
@EM
OK
OK
OK
OK
OK
OK
Label
P_ER
• ON if the number of words to transfer (S) is outside the range of 0001 to 0080 hex.
• ON if the unit number (S) is outside the range of 0000 to 005F hex or 8000 to 800F hex.
• ON if the designated Special I/O Unit is on SYSMAC BUS.
• ON if a Special I/O Unit or CPU Bus Unit not affected by IORD(222) is designated.
• With the CS1D CPU Units: ON if the active and standby CPU Units could not be synchronized.
• OFF in all other cases.
P_EQ
• ON if reading operation is completed normally.
• OFF if reading operation is not completed normally.
Function
code
Reads the contents of memory area of a Special
222
I/O Unit or CPU Bus Unit.
IORD
C: Control data
C
S: Transfer source and number of words
S
D: Transfer destination
D
Subroutines
OK
Data type
UINT
UDINT
UINT
Registers
addresses
Con-
stants
*DM
DR
*EM
OK
OK
OK
---
---
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
1
2
Variable
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
---
TR
bits
---

Advertisement

Table of Contents
loading

Table of Contents