Export a symbol file from your TwinCAT project TPY

Erstellt von support alvasys, Geändert am Mi, 6 Mai um 9:29 VORMITTAGS von support alvasys

 

     

     


 

Merkblatt

Export TwinCAT TPY File

 

Inhalt

 

Beschreibung1

Export a symbol file from your TwinCAT project 1

Dokumenthistorie5

 

Beschreibung

Um eine einwandfreie Funktion der Modbus-Kommunikation zu gewährleisten, sind folgende Punkte bei der Installation und Inbetriebnahme eines Modbus-Netzwerkes zu beachten.

 

Export a symbol file from your TwinCAT project

 

 

Configure the TwinCAT project development software to export a symbol file that provides information about your TwinCAT project database. The symbol file can then be used to bring your TwinCAT project database into your InduSoft Web Studio project database, via either tag integration or the database import wizard. 

The TwinCAT software automatically exports your project database to a symbol file every time you rebuild your project. TwinCAT exports the entire database by default, however, including many system and library variables that InduSoft Web Studio cannot import. You must reconfigure your project options to export only the POUs and Global Variables, and then rebuild your project to generate a fresh symbol file. 

Note: As of version 2.8, the TwinCAT software exports the symbol file in both *.SYM and *.TPY formats: 

  • *.SYM is a legacy format that is included for backward compatibility. Beckhoff recommends that it be used only with TwinCAT OPC Server. 
  • *.TPY is a new, XML-based format that should be used in all other situations, including importing into IWS. 

To export the symbol file: 

  1. Open your TwinCAT project using the TwinCAT software. 
  2. On the Project menu, click Options. The Options dialog box is displayed. 
  3. In the Category list, click Symbol configuration. 

 

 

 

 

 

 

 

 

Figure 1. “Symbol configuration” in the Options dialog box

 

  1. Select Dump symbol entries and Dump XML symbol table. 
  2. Click Configure symbol file. The Set object attributes dialog box is displayed. 
  3. For the sake of expediency, you should first disable the export of all objects and then reenable only the objects that you want to export — typically, the POUs and Global Variables. Select all of the objects in the tree, and then clear all options for them at the bottom of the dialog box. 

 

 

 

 

 

 

 

 

 

Figure 2. Clearing the options for all objects

Tip: You may need to select Export variables of object in order to activate the other check boxes before clearing them.

  1. Reselect only the POUs and Global Variables that you want to export. Do not select libraries. With the objects selected, select all of the options at the bottom of the dialog box. 

 

 

 

 

 

 

 

 

Figure 3. Selecting the options for only POUs and Global Variables

  1. Click OK to close the Set object attributes dialog box, and then click OK again to close the Options dialog. 
  2. On the Project menu, click Clean All. 
  3. On the Project menu, click Rebuild All. The TwinCAT software will rebuild the project, and in the process of rebuilding, it will export a symbol file that contains only the selected POUs and Global Variables. 

Once the TwinCAT project is configured to export the selected variables, the next time you send the project to the PLC, it will include the new symbol file and your IWS project to be able to communicate with it. 

You can also copy the TwinCAT symbol file to your IWS project folder, which will allow you to browse the tags when the PLC is not running. 

 


 

 

Dokumenthistorie

 

Name

Datum

Änderung

 

Marcello Meriano

06.05.2026

Dokument erstellt

 

 

 

 

 

 

 

 

 

 

Allgemein:

 

Links:

 

Kontakt:

Für Fragen, Wünsche oder Feedbacks. 

support@alvasys.ch

 

War dieser Artikel hilfreich?

Das ist großartig!

Vielen Dank für das Feedback

Leider konnten wir nicht helfen

Vielen Dank für das Feedback

Wie können wir diesen Artikel verbessern?

Wählen Sie wenigstens einen der Gründe aus
CAPTCHA-Verifikation ist erforderlich.

Feedback gesendet

Wir wissen Ihre Bemühungen zu schätzen und werden versuchen, den Artikel zu korrigieren