In this video we have explained ANY pointer in simple way with an example.
SFC 20 used with any pointer with dynamic Parameterization.
STEP 7 stores the parameter type ANY in 10 bytes. When constructing a parameter of the type ANY, you must ensure that all 10 bytes are occupied because the called block evaluates the whole contents of the parameter. If, for example, you specify a DB number in byte 4, you must also explicitly specify the memory area in byte 6.
STEP 7 manages the data of elementary and complex data types differently from the data for parameter types.
ANY Format for Data Types
For elementary and complex data types STEP 7 stores the following data:
Data types
Repetition factor
DB number
Memory area in which the information is stored
Start address of the data
We copy the data of DB51 to DB52 with an help of any pointer and sfc20
4 авг 2024