beckhoff TE1000 — 4.4 Use of user-defined data types

Creation of an EAP configuration Description of the conditional output variables VarId The output variable VarId below the Subscriber Variable only exists if the option Online Changeable is activated for the Variable ID . In this case the ID for the Subscriber Variable can be changed dynamically (e. g. with the help of a PLC program). 4.4 Use of user-defined data types Creation of an EAP variable There are two common methods in TwinCAT to create user-defined data types. On the one hand a data type of your own can be created via the System node of the project tree on the Data Types tab (see next but one illustration). Such a data type is then available to all modules of the TwinCAT project.

It is thus a global data type. On the other hand, users often create a data type of their own inside a PLC project by defining a DUT (Data Unit Type). Such a data type is initially only locally available to the PLC project. This data type is hidden to other modules such as the I/O configuration (and thus also the EAP device). In the following illustration you can see that the data type MyType is defined in the PLC. This data type has additionally been used for an output variable of the PLC program. Nevertheless, the user-defined data type does not appear in the list of available data types if a variable of this data type is to be created in the Publisher Box of the EAP device.

A corresponding note that a data type is used only locally can be found on the basis of the data type list on the Data Types tab via the System node. In the following illustration the data type with the name MyType appears in the list. However, there is a remark under the Type property that the data type concerned is a temporary one (Tmp) . This means that the data type concerned is one that is not global. TE1000 36 Version: 1.7.1