EasyManua.ls Logo

Omron CJ - INSTRUCTIONS

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
Loading...
1131
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Special Function Block Instructions
3
GETID
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) Corresponding address ranges
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 variables address must be set. In this case,
GETID(286) can be used to retrieve the variable’s data area address.
Example Programming
Data area
Data
size
Data area code
(Output to D1.)
Address (Output to D2.)
CIO Area CIO
Word
00B0 hex 0000 to 17FF hex (0000 to 6143)
Work Area W 00B1 hex 0000 to 01FF hex (000 to 511)
Holding Area H 00B2 hex 0000 to 01FF hex (000 to 511)
DM Area D 0082 hex 0000 to 7FFF hex (00000 to 32767)
EM Area (Specific bank) En_ (n = 0 to C hex (CJ2: 0 to 18 hex)) 00A0 to 00AC hex 0000 to 7FFF hex (00000 to 32767)
#0082
&100
D100
#0082
&200
m
m+1
GETID
A
m
m+1
Normal Operation
Using Function Blocks
DM Area allocated to
Motion Control Unit
Extended parameter
settings area
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.
DM Area allocated to
Motion Control Unit
Extended parameter
settings area
Variable A D200
Data
Variable A's data area
address is retrieved by
GETID(286).
Data

Table of Contents

Related product manuals