EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 615

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
582
Table Data Processing Instructions Section 3-16
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).
Examples 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.
3-16-7 GET RECORD NUMBER: GETR(636)
Purpose Returns the record number of the record at the PLC memory address con-
tained in the specified Index Register.
Ladder Symbol
Variations
Applicable Program Areas
Operands 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.
Operand Specifications
R
0.00
to
Table number 10
Record number: 0
Record number 3
PLC memory
address
GETR(636)
N
IR
D
N: Table number
IR: Index Register
D: Destination word
Variations Executed Each Cycle for ON Condition GETR(636)
Executed Once for Upward Differentiation @GETR(636)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
Area N IR D
CIO Area --- CIO 0 to CIO 6143
Work Area --- W0 to W511
Holding Bit Area --- H0 to H511
Auxiliary Bit Area --- A448 to A959

Table of Contents

Related product manuals