Professional Documents
Culture Documents
ANY Pointer Restructure
ANY Pointer Restructure
ANY Pointer Restructure
An ANY pointer is a STEP 7 variable that contains the addresses of a continuous range of
variables (area pointer). It is very used in automation programs to indicate transfer areas from of
many different sources and target, like in the communication tasks, for example.
The follow figure shows how a ANY pointer is structured in function of the data type.
31 26 24 18 3 0
1 0 0 0 0 Z Z Z 0 0 0 0 0 Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y X X X
X = Bit address
Y = Byte address
Z = Area codes:
000 Peripherals 001 Inputs (PAE)
010 Outputs (PAA) 011 Flag bits
100 Data in the DB register 101 Data in the DB reg.2 (DI)
110 Own local data 111 LD in the called block
Note the information “DB Number” of ANY variable just makes senses if the area code of the
initial pointer is setting to an DB (ZZZ = 100 or ZZZ = 101). In any other cases, “DB Number”
should be set to zero.
Important:
The sample program is freeware. Any user can use copy and forward this program FREE OF
CHARGE. The authors and owners of this program take no responsibility whatsoever for the
functionality and compatibility of this software. Use of the software is entirely at the user's own
risk. Since this software is free of charge, there is no warranty, nor claim for error correction and
hotline support.