PLC Export data file
After the compilation of the configuration for the IEC 61850 Server the Create PLC Export File in the toolbar can be activated to generate the export data file. The later import into the TwinCAT PLC Control makes the data model of IEC 61850 / IEC 61400-25 useable in the PLC.
In the Save as... dialog the memory location can be selected. You can read the export data file in the TwinCAT PLC Control with the Import function. Therefore, you must select Project and then Import in the menu bar... as it is shown in the next picture.
Because of the import two folders will be created in the Data Types tab. On the one hand [internal] and on the other hand a folder which has the name of the Logical Device that we created in the configurator. As you can see in the next picture the folder has the name WindTurbine. This folder contains the actual configuration with every Logical Nodes and the subordinated hierarchical levels. In the folder [internal] you will find some structured data types which will be used in the configuration. Normally this folder is of little importance for the user.
In the folder WindTurbine you can see the structure ST_LD_WindTurbine. This structure must be instantiated in the PLC project and needs to be committed to the function block FB_IEC6850Server. You will find detailed information about this point in the examples of this documentation.
If you open each folder of the Logical Nodes you can see the containing Data Objects in another structure. The variables info and end are for the internal communication. These are only relevant for the user if he wants to do a manual copy of the created structures. They need to exist in every structure. The folder Common Data Classes contains the attributes of the different objects.
Exemplary you can see here the attributes for the Data Object Spd (Wind Turbine Generator Speed). Because of the comments the controller gets information as for example about Functional Constrain or Trigger Option. But also the Default Values which has been set in the configurator will be visible. So, it is possible to detect that Meters per second is set for the attributeunits.
Global variables will be generated when you import the Export data file . The object "TcTelecontrol_GLOBAL_VAR" will be generated and contains an instance of the FB_IEC61850Server - on instance per Logical Device and one instance of the generated DataSets.