A UNION is a data structure that usually contains different data types.
In a union, all components have the same offset and therefore the same amount of memory.
In the following declaration example of a union, an assignment to name.a
will also affect name.b
.
Example
TYPE name: UNION a : LREAL; b : LINT; END_UNION END_TYPE