Vai al contenuto

Structures

A STRUCT declaration specifies that data elements of that type shall contain sub-elements of specified types which can be accessed by the specified names.Structures can be declared using the following syntax:TYPE : STRUCTEND_STRUCT;END_TYPEFor example, consider the following declaration:TYPEstructure1 : STRUCTelem1 : USINT;elem2 : USINT;elem3 : INT;elem3 : REAL; END_STRUCT;END_TYPE