Importing from TwinCAT PLC Databases

This wizard allows you to import database variables from a TwinCAT PLC program that has been developed with Beckhoff's TwinCAT software. Also, when you run the import, IWS automatically creates and configures a TWCAT driver worksheet, eliminating the need to manually configure the communication between IWS and TwinCAT.

Note: Please refer to Step 2 of the Import Wizard instructions for settings that are common to all sources.
Figure 1. Import TwinCAT PLC Database Wizard

The Import TwinCAT PLC Database Wizard dialog allows you to configure the following settings:

You are now ready to import the variables into IWS. Return to Step 3 of the Import Wizard.

Exporting the Symbol File from TwinCAT

The TwinCAT development software automatically exports the program database to a "symbol file" every time you rebuild your TwinCAT project. However, TwinCAT exports the entire database by default, including many system and library variables that IWS cannot import. Before you run the import wizard, you must reconfigure your TwinCAT project options to export only the POUs and Global Variables and then rebuild your TwinCAT project to generate a fresh symbol file.

Note: As of version 2.8, the TwinCAT development 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 reconfigure your project options and generate a fresh symbol file:
  1. Open your TwinCAT project using the TwinCAT development software.
  2. Choose Project > Options from the menu bar. The Options window is displayed.
  3. Select Symbol configuration from the Category list:
    Figure 2. Selecting "Symbol configuration"

  4. Click (check) the Dump symbol entries option.
  5. Click the Configure symbol file… button. The Set object attributes dialog is displayed.
  6. 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 to IWS — typically, the POUs and Global Variables. Select all of the objects in the tree and uncheck all options for them at the bottom of the dialog. For example:
    Figure 3. Configuring the symbol file

    Note: You may need to check Export variables of object in order to activate the other checkboxes and then uncheck them.
  7. Reselect only the POUs and Global Variables that you want to export to IWS. Do not select libraries. With the objects selected, check all of the options at the bottom of the dialog. For example:
    Figure 4.  

  8. Click OK to close the Set object attributes dialog, and then click OK again to close the Options window.
  9. Choose Project > Rebuild All from the menu bar. The system will rebuild the project, generating a symbol file that contains the desired POUs and Global Variables .
возврат товаровСпортмастер отзывы о гарантии вся информация на dymontiger.livejournal.com.