Defining the data structure or user-defined data type

Defining a data structure or a user-defined data type simplifies the process of integrating several instances because all variables then no longer have to be defined individually for each instance.

  1. Open the context menu of the "MBM_Visu" folder in the device tree.
  2. To add a new data type object, click [Add object] > [DUT...].
    • The "Add DUT" context menu appears.
  3. Name the data type object "ST_MBM_IEC_VISU_Interface".
  4. In the "Data type" section, select the "Structure" radio button.
    • The newly created data type object is displayed in the device tree.
    • The tab for editing the data type object is opened.
  5. Create the following structure (INFORMATION: The size of the array can be adapted to individual requirements relating to recording period, storage space required and communication load):
  6. To save the IEC project, click [Save].
  7. Close the tab for editing the data type object.