Configuration syntax up to V2.10.1025

Example of an ASCII list:

# ***************************************
# External variables V254
# ****************************************
#
number_used_variables            2
#
var[0].name                      GLOBAL_SWR    (Global VE)
var[0].index                     0
var[0].type                      SGN16
var[0].scope                     GLOBAL
var[0].synchronisation           FALSE
var[0].access_rights             READ_ONLY
var[0].array_size                0
var[0].size                      2    # 2 bytes per element
var[0].create_hmi_interface      FALSE
#
var[1].name                      CHANNEL_WR    (channel VE)
var[1].index                     0
var[1].type                      SGN32
var[1].scope                     CHANNEL
var[1].synchronisation           FALSE
var[1].access_rights             READ_ONLY
var[1].array_size                10
var[1].size                      4    # 4 bytes per element
var[1].create_hmi_interface      FALSE
#
End

Identifier

Value range

Default

Meaning

number_used_variables

(Old syntax up to V2.11.2034.0:
anzahl_belegt)

[0; MAX_UNS16]

0

Assuming gapless assignment in var[i].* enter the index of the last variable defined +1 here (ilast+1).

Assuming assignment with gaps in var[i].* enter the highest index of the defined variable + 1 here (imax+1).

var[i].*

i:= [0; 214]

Data records to define variables.

name

ASCII string

 

See P-EXTV-00001

index

[0; MAX_SGN32]

-1

The index defines the location in the memory where the variable is saved. The entire memory is structured as an array of units of 24 bytes each.

An index of –1 indicates that the entry is not used.

type

[BOOLEAN,
SGN08, UNS08, SGN16, UNS16, SGN32; UNS32, REAL64, STRING]

UNS32

See P-EXTV-00003

scope

[GLOBAL;
CHANNEL]

CHANNEL

See P-EXTV-00004

synchronisation

[TRUE, FALSE]

TRUE

See P-EXTV-00005

access_rights

[READ_WRITE, READ_ONLY, WRITE_ONLY]

READ_WRITE

See P-EXTV-00006

array_size

[0; MAX_UNS16]

0

If an external variable is required not only once but as an array of this variable, the number of elements must be defined. If the variable is not an array, then specify 0.

size

[0; MAX_UNS32]

4

See P-EXTV-00008

create_hmi_interface

[TRUE, FALSE]

FALSE

See P-EXTV-00009