Variable size (P-EXTV-00008)

P-EXTV-00008

Size of the external variable

Description

Deviating from the data size implicitly defined by "type” (P-EXTV-00003 ) or the defined data size of a structure, see Data sets for definition of the elements of a variable type (struct[i].element[j].*)), the offset and therefore the start position of the next global variable in the memory can be “moved”.

Specifying the variable size in only necessary if additional alignment bytes must be considered. With arrays the parameter indicates the size of a single element.

This parameter defines the size of string variables (including zero termination byte) of the VSTRING variable type. The size can be different for each variable. The default size of the variable is 128 bytes.

Parameter

var[i].size

Data type

UNS32

Data range

0 ... MAX(UNS32)

Dimension

----

Default value

0

Remarks

If this parameter is set with the value 0, its value is derived from the data type set in P-EXTV-00003.

Attention:

If the value is smaller than the actually required memory, the variable is overwritten by the next variable.