The picture below shows the basic workflow:
Key points to note:
- The TIA Portal project contains one or more "coupling DBs" for the TIAX Direct Loading workflow. The TIA Portal project is always the source. The declaration of these data blocks is only possible in the TIA Portal project.
- The "coupling DBs" are compiled and loaded into the PLC using TIA Portal.
- The
import-dbcommand transforms the data blocks from the TIA project into a SIMATIC AX library. The generated library contains all required data types and functions to access the "coupling DBs" in the SIMATIC AX application. - The access functions of the generated SIMATIC AX library are used to obtain a reference to the "coupling DB". With this reference, the variables in the data block can be read and written.
- After changing the declaration of a "coupling DB" it needs to be downloaded again via offline TIA Portal and the PLC in STOP mode.
The
import-dbcommand needs to be executed again to synchronize the data definition in TIA Portal and data access via SIMATIC AX. The updated AX applications must be downloaded again. Please find the chapter Modifying a "coupling DB" for more details.