EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #617 background imageLoading...
Page #617 background image
579
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Table Data Processing Instructions
3
SETR
SETR
Applicable Program Areas
Operands
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.
z Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
SET RECORD LOCATION SETR @SETR 635
Writes the location of the specified record (the
PLC memory address of the beginning of the
record) in the specified Index Register.
Symbol
SETR
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
N Table number --- 1
R Record number UINT 1
D Destination Index Register WORD 2
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
N --- --- --- --- --- --- --- --- --- ---
OK
---
---
---
--- --- --- ---R OKOKOKOKOKOKOKOK OK OK OK OK
D --- --- --- --- --- --- --- --- --- --- --- --- OK ---
Name Label Operation
Error Flag 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.
N: Table number
R: Record number
D: Destination Index Register
SETR(635)
N
R
D

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals