DB definition import

It is possible to import the definition of a DB if you have access to the TIA Portal project loaded on the Siemens PLC.

  1. Click on Import variables from DB definition

    Click button

  2. Open the PLC project with TIA Portal

  3. Identify the DB of interest

    Identify DB

  4. Insert the DB number in the form

  5. Right click on the DB (1) and select 'Copy as text' (2):

    Copy DB

  6. Paste the copied text into the form:

    Paste DB

  7. If the DB contains only standard data types, then it is possible to do a read test, delete the variables that are not of interest and click on Add

    Select variables

  8. If the DB contains some custom data types, you will be asked to provide the definition for each custom data type.

    Custom data type

    If you are not interested in importing the variables of the custom data type you can proceed further. It is still required to insert the size in bytes of the custom type

    Skip