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

Table of Contents

Advertisement

DIM

Instruction
DIMENSION RECORD TABLE
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
N
Table number
LR
Length of each record
NR
Number of records
TB
First table word
N: Table number
Indicates the table number. N must be between 0 and15.
LR: Length of each record
Indicates the number of words in each record. LR must be 0001 to FFFF hexadecimal (1 to 65,535
words).
NR: Number of records
Indicates the number of records in the table. NR must be 0001 to FFFF hexadecimal (1 to 65,535
words).
Operand Specifications
Word addresses
Area
CIO
WR
HR
N
---
---
---
LR, NR
OK
OK
OK
D
Flags
Name
Error Flag
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
DIM
@DIM
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
---
---
---
---
---
OK
OK
OK
OK
OK
Label
ER
• ON if LR or NR is 0.
• OFF in all other cases.
Function
code
Defines the specified I/O memory area as a record
table by declaring the length of each record and
631
the number of records. Up to 16 record tables can
be defined.
DIM
DIM(631)
N: Table number
N
LR
LR: Length of each record
NR
NR: Number of records
TB
TB: First table word
Subroutines
OK
Data type
---
UINT
UINT
UINT
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
1
Variable
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
---
---
---
OK
3
TR
bits
---
---
575

Advertisement

Table of Contents
loading

Table of Contents