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.
-
Click on
Import variables from DB definition
-
Open the PLC project with TIA Portal
-
Identify the DB of interest

-
Insert the DB number in the form
-
Right click on the DB (1) and select 'Copy as text' (2):

-
Paste the copied text into the form:

-
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
-
If the DB contains some custom data types, you will be asked to provide the definition for each 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
