User-defined datatypes (simple datatypes)

Previous chapterNext chapter Show allShow all    Hide allHide all

These data types can be created by the user. On creating an existing data type is used. All properties of this basic data type are copied to the new data type and can be changed later on. There is no reference to the basic data type, i.e. all data types can be configured independently.

For the user-defined data types all properties including name and IEC data type can be changed.

It has to be cared, that all variables based on a data type, for which the IEC data type was changed, have to be re-configured by hand under circumstances.

Example Example

An IEC data type INT is changed to an IEC data type BOOL. All set value limits of all variables and at all positions, wher the variable is used (pictures), are no longer correct. It becomes even more critical, if the properties in the variables were overwritten and no longer have a reference to the data type!

On creating a new user-defined data type a basic data type should be used, that has the same IEC data type, that is needed.

attention Attention

The later change of the IEC data type is explicitly not recommended!
A number of settings depend on the IEC data type and have to be re-configured by hand, if the IEC data type is changed. (Example: Signal resolution, measuring range, hysteresis, set value limits, non-linear value adjustment, etc.).
On changing the IEC data type, all data type-specific properties have to be checked! As the case my be the properties have to be adapted before the change, as e.g. for BOOL variables the signal resolution and the measuring range cannot be changed.