1 Using the Data Type DB_ANY use the data type DB_ANY Entry ID: 109750880, V 1.0, 02/2018 5 the function block. The data type of the array correspon G 8 d 1.2 Assignment with Identical Data Types The assignment of the array elements to parameters of a function block or a technology object may only be done with identical data types.
1/21/2020 · I am trying to use WORD_TO_BLOCK_DB. I look it up in Help but it seems that this instruction can’t be used in S7-1500. In fact, BLOCK_DB type doesn’t exist. We have DB_ANY instead but there isn’t any instructions such as WORD_TO_DB_ANY. So, how can we get a DB_ANY from a INT (or WORD) type? I am using: TIA Portal V15.1 Update 3, CPU 1508S..
3/31/2015 · I have several DBs with identical structure. I want to make a function that copy any one of the DB to another. The inputs of the function are the DB’s number as DB_ANY. I use BLKMOV to copy the DBs. Therefore I need to convert the DB_ANYs to VARIANT. When I use DB_ANY_TO_VARIANT I get a strange error number. Any Ideas?, 10/24/2018 · I read Siemens instruction Advantages of Using Data Type DB_ANY with Motion Control Applications, it contain example, where they create Datablock with DB_ANY type variable. Then they write: During the startup of the CPU (in OB 100, for example) you assign the corresponding technology objects of the project to the separate array elements. .
DB_Any as an Input parameter of an FC/FB contains the number of the transferred DB to that FC/FB. Variant as a parameter of an FC/FB holds a pointer to a data area (or a tag). ALPHR Technology Europe. Suggestion To thank Quote Answer, 6/24/2015 · I had code to do this is S7-300/S7-400 using ANY pointers and disassembled ANY pointer structure overlaid over the ANY pointer (as seen in many places on here ). However, somebody in their infinite wisdom () has removed the ANY type in S7-1500. The obvious replacements that spring to mind are VARIANT and DB_ANY types.
5/10/2007 · If you want to use ANY variable in FC as input (InPtr) to call SFC20 inside FC you can do following: 1. Create temp variable TmpAny. It’s needed to make valid SFC20 call. 2. Fill TmpAny withInPtrvalue.Tomakethisyoushould. L P##InPtr. LAR1. LAR2 P##TmpAny.
10/30/2018 · #MyDBAny ist eine Variable mit Datentyp DB_ANY. Da wird die Nummer des gewünschten DB reingeschrieben. Danach kannst Du auf absolute Adressen (DBW, DBX, …) in dem variablen DB zugreifen. Oder #MyDBAny an Deinen FB übergeben und in dem FB auf absolute Adressen in dem übergebenen DB zugreifen.
Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens .
3/28/2017 · 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 parame…