To change the type and dimension of the variable, enable the modification mode in the grid and move the cursor to the appropriate cell and press ENTER.

Each variable must have a valid data type. It can be either a basic data type or a type of function block or UDFB. Changing the data type of an I/O variable is restricted by the physical implementation of the I/O device.

If the selected data type is STRING, you must specify a maximum length, that cannot exceed 255 characters.

Additionally, you can specify dimension(s) for an internal variable, in order to declare an array. Arrays have at most 3 dimensions. All indexes are 0 based. For instance, in case of single dimension array, the first element is always identified by ArrayName[0]. The total number of items in an array (merging all dimensions) cannot exceed 10000000. The possible range of Arrays reaches from ArrayName[0] until ArrayName[9999999].

Using the variable editor, you must enter integer dimensions separated by comas. For instance: 3,10,5.

Variable data type and dimension

IEC 61131-3 Automation platform > IEC 61131-3 Programming Environment > Variable Editor > Variable data type and dimension

Previous chapterNext chapter


Created with the Personal Edition of HelpNDoc: Make Documentation a Breeze with a Help Authoring Tool