Variable size (P-EXTV-00008)

P-EXTV-00008

Size of the external variable

Description

Specifying the variable size in bytes is optional. If it is not specified, the variable size is derived from its variable type (see Data sets for definition of the elements of a variable type (struct[i].element[j].*)). Specifying the variable size in only necessary if additional alignment bytes must be considered. With arrays the parameter indicates the size of the single elements.

This parameter defines the size of string variables with data type VSTRING (inclusive Null-termination byte). 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.