Omron CJ - INSTRUCTIONS Reference Manual page 1169

Table of Contents

Advertisement

Function
GETID(286) retrieves the data area address of the specified source variable or address, outputs the
data area code to D1 in 4-digit hexadecimal, and outputs the word address number to D2 in 4-digit
hexadecimal.
• Variable type (data area)
CIO Area
Work Area
Holding Area
DM Area
EM Area (Specific bank)
Hint
Variables in function blocks are automatically allocated addresses by CX-Programmer Ver. 5.0 and later
systems, unless the AT specification is used. For example, if it is necessary to indirectly specify the
extended parameter settings of a Special Unit such as a Motion Control Unit and a variable is used at
the beginning of the extended parameter settings area, that variable's address must be set. In this case,
GETID(286) can be used to retrieve the variable's data area address.
Example Programming
Normal Operation
DM Area allocated to
Motion Control Unit
#0082
&100
Indirect
specifica-
tion
The starting address of the extended parameter settings
area is specified by the FINS command variable type
(data area) code and word address. In this example,
#0082 specifies the DM Area and &100 specifies a
100-word offset from the beginning of the area.
Using Function Blocks
DM Area allocated to
Motion Control Unit
#0082
m
&200
m+1
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Data area
CIO
W
H
D
En_ (n = 0 to C hex (CJ2: 0 to 18 hex))
Extended parameter
settings area
D100
Data
Extended parameter
settings area
Data
Variable A D200
Variable A's data area
address is retrieved by
GETID(286).
GETID
A
m
m+1
• Corresponding address ranges
Data
Data area code
size
(Output to D1.)
00B0 hex
00B1 hex
Word
00B2 hex
0082 hex
00A0 to 00AC hex
3. Instructions
Address (Output to D2.)
0000 to 17FF hex (0000 to 6143)
0000 to 01FF hex (000 to 511)
0000 to 01FF hex (000 to 511)
0000 to 7FFF hex (00000 to 32767)
0000 to 7FFF hex (00000 to 32767)
1131
3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents