Section 4: global PLC parameters
As in the case of the channel-specific V.E. variables with the var[?].scope = GLOBAL attribute, a separate structure is generated for VE_GLOBAL_DATA_FROM_CH_?. Here also, the question mark in the type identifier is a placeholder parameter for the channel number.
Programming example
Declared in the V.E. list
var[2].name AX
var[2].type REAL64
var[2].scope GLOBAL
var[3].name AY
var[3].type REAL64
var[3].array_elements 3
var[3].scope GLOBAL
The following is then created in the export file
TYPE VE_GLOBAL_DATA_FROM_CH_1:
STRUCT
AX: LREAL;
AY: ARRAY[0..2] OF LREAL;
END_STRUCT
END_TYPE