Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 615

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Table Data Processing Instructions
Examples
3-16-7 GET RECORD NUMBER: GETR(636)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
Operand Specifications
582
Valid record numbers range from 0 to NR–1, where NR is the number of
records specified when the table was defined with DIM(631).
When CIO 0.00 is ON in the following example, SETR(635) finds the PLC
memory address of the first word of record 3 of table number 10 and stores
this address in Index Register IR11.
0.00
R
Returns the record number of the record at the PLC memory address con-
tained in the specified Index Register.
GETR(636)
N
IR
D
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
OK
OK
N: Table number
Indicates the table number. N must be between 0 and 15.
IR: Index Register
Indicates the desired Index Register. D must be IR0 to IR15.
D: Destination word
Indicates the word where the record number will be written.
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
PLC memory
address
Table number 10
Record number: 0
to
Record number 3
N: Table number
IR: Index Register
D: Destination word
Step program areas
Subroutines
OK
N
IR
---
---
---
---
Section 3-16
GETR(636)
@GETR(636)
Not supported.
Interrupt tasks
OK
D
CIO 0 to CIO 6143
W0 to W511
H0 to H511
A448 to A959

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents