ISPSoft User Manual The structure format is stated as below: wordings in blue are the system keywords; wordings in black are the user-defined names and member names. TYPE User-defined Name> : STRUCT : ; : ; ... : ; END_STRUCT END_TYPE User-defined Name: Set as the default name, which cannot be modified. Otherwise, an error will be reported. Member Name: Define the member name. Data Type : Define the data type for members, such as BOOL, WORD, DWORD, LWORD, INT, DINT, LINT, REAL, LREAL, ARRAY, or another STRUCTURE or,ENUMERATION.
(For DVPxxMC/ AS5xx series, more data types include BYTE, SINT, USINT, UINT, UDINT, ULINT, TIME, DATE, TOD, DT, STRING.) As the image shown below, when the member data type is ARRAY, the format will be ARRAY [ 0 .. n ] OF ; the maximum for n value is 65535. (For DVPxxMC/ AS5xx series, the maximum for n value is2147483647.) If the member data type is Structure, write another structure name. But if the data type is ARRAY, users cannot import ARRAY again. The system supports multi-dimensional array, up to three-dimension. The format of a two-dimensional array is ARRAY [ 0 .. n ] [ 0 .. n ] OF and the three-dimensional array is ARRAY [ 0 .. n ] [ 0 .. n ] [ 0 .. n ] OF .
As the image shown below: The naming rules of user-defined names and member names are stated as below. A user-defined name cannot be the same as names of other user-defined data types. The repetition of a member name based on the same user-defined is not allowed. 8-4