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

Table of Contents

Advertisement

SETR

Instruction
SET RECORD LOCATION
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
N
Table number
R
Record number
D
Destination Index Register
N: Table number
Indicates the table number. N must be between 0 and 15.
R: Record number
Indicates the record number of the desired record. R must be 0000 to FFFE hexadecimal (0 to 65,534).
Record numbers begin with 0, so the valid record numbers are 0 to NR–1 for a table with NR records.
D: Destination Index Register
Indicates the desired Index Register. D must be IR0 to IR15.
Operand Specifications
Word addresses
Area
CIO
WR
HR
N
---
---
---
R
OK
OK
OK
D
---
---
---
Flags
Name
Error Flag
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
SETR
@SETR
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
---
---
---
---
---
OK
OK
OK
OK
OK
---
---
---
---
---
Label
ER
• ON if the specified table number (N) has not been defined with DIM(631).
• ON if the specified record number (R) exceeds the highest record number in the table (NR-1).
• OFF in all other cases.
Function
code
Writes the location of the specified record (the
635
PLC memory address of the beginning of the
record) in the specified Index Register.
SETR
SETR(635)
N: Table number
N
R: Record number
R
D
D: Destination Index Register
Subroutines
OK
Data type
---
UINT
WORD
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
---
---
OK
OK
OK
OK
---
---
---
---
Operation
3. Instructions
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
1
1
2
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
---
OK
---
---
OK
---
3
TR
bits
---
---
577

Advertisement

Table of Contents
loading

Table of Contents