L DIW [AR1,P#0.0]; //Retrieve DB numberT #dbchr;L DID [AR1,P#2.0]; //Offset part of pointerLAR1 ;AUF DB [#dbchr]; //Open DB of variablesL B [AR1,P#40.0]; //Retrieve byte value usingpointer with//address offset 40//ANYL P##Addr1;LAR1 ; //Retrieve ANY from instance DBL DIB [AR1,P#1.0]; //Retrieve typeT #typ;L DIW [AR1,P#2.0]; //Retrieve amountT #Amount;L DIW [AR1,P#4.0]; //Retrieve DB numberT #dbchr;L DID [AR1,P#6.0]; //Offset part of pointerLAR1 ;AUF DB [#dbchr]; //Open DB of variablesL B [AR1,P#0.0]; //Retrieve byte value using ANY13.19.2.3 POINTER or ANY variable for transfer to FC or FBPOINTER or ANY variableWith version 1 or later of STEP 7 it is possible to define a pointer or ANY in VAR_TEMP.The following two examples show how an ANY can be supplied.Example 1: Transfer ANY parameter via a selection list to another FB (FC)Several ANY parameters are defined in an FB (FC). A specific ANY parameter must now bechosen from a selection list for transfer to another FB (FC). This can only be done by meansof an ANY in VAR_TEMP. 1 to 4 can be set in parameter "WhichAny" in order to select Addr1to Addr4.NoteAddress register AR2 is used in the block. However, this address register AR2 is also usedfor multiinstance DBs. For this reason, this FB should not be declared as multi-instance DB.FUNCTIONBLOCK FB100CODE_VERSION1 //starting from STEP 7 Version 2 fordeactivating the//multi-instance DBP3: Basic PLC program for SINUMERIK 840D sl13.19 Programming tips with STEP 7Basic Functions1070 Function Manual, 01/2015, 6FC5397-0BP40-5BA2