Obsidean_VM/01-Documentation/Siemens/TIA Portal/Import external source file...

2.2 KiB


Application

How do you import blocks in a TIA Portal project that were created in other projects or with earlier versions of STEP 7?

Instructions
Data blocks and blocks that were created in the programming languages STL and SCL can also be imported and exported as sources.

In this video we will show you how to import a source created from STEP 7 V5.7 into TIA Portal and create a block from it.

Example 1: Import an external source into TIA Portal and generate a block from it.

  1. In the project tree, open the "Program blocks" folder and the =="External source files"== folder.
  2. Click on the "Add new external file" function.
  3. Navigate to folder where you have stored your source and select that source.
  4. Click on "Open" to import the selected source into TIA Portal. The source is then saved in the "External source files" folder.
  5. You then right-click the external source and from the context menu you select "Generate blocks from source".
  6. You receive a message informing you that any existing blocks will be overwritten. Confirm with "OK". Now the block is compiled and stored in the "Program Blocks" folder.

The imported block is now available for further program processing.

Example 2: Generate a source from a block and export it from TIA Portal.

  1. In the "Program Blocks" folder, right-click on the block and select "Generate source from blocks" from the context menu.
  2. There are two menu commands available here:
    • "Selected blocks only": With this command the marked blocks are generated into a source.
    • "Including all dependent blocks": With this command all the dependent blocks are also generated into a source.
  3. Select the folder to save your generated source and click "Save".

The generated source is now available for further projects with different TIA Portal versions.

Further Information
you will find in the TIA Portal manual, under Basics of using external source files.

FAQ changes since last release
The FAQ has been revised and the video has been added.