Syntax (from Version V254 onwards)

In addition, from Version V254 onwards, the configuration has been extended in such a manner that elements have default values and settings can be made using textual constants.

Comments can be whole-lined or can be added at the end of a line.

In the case of whole-lined comments, at the beginning of the line the comment character “#” must be added followed by a space character.

If at the end of a line a comment is to be added, then in front of the comment, at least one space character must be there. If, however, in the line a string is defined, then the comment character “(“ must precede the comment.

Blank lines are also possible.

Examples for comments:

#
************************************************************************# Data#
************************************************************************## Listingdummy[1] 1     Commentdummy[2] 1      # Commentdummy[3] 1      ( Commentdummy[4] 1      /* Comment...example[0].name STRING_2     (Comment, here
comment brackets necessary !)

Example for an ASCII list:

#
***************************************#       External variables
V254#
****************************************#anzahl_belegt           2#var[0].name             GLOBAL_SWR   (Global
VE)var[0].index            0var[0].type             SGN16var[0].scope            GLOBALvar[0].synchronisation      FALSEvar[0].access_rights        READ_ONLYvar[0].array_size           0var[0].size             2        # 2 bytes per
elementvar[0].create_hmi_interface     FALSE#var[1].name             CHANNEL_WR   (Channel
VE)var[1].index            0var[1].type             SGN32var[0].scope            CHANNELvar[1].synchronisation      FALSEvar[1].access_rights        READ_ONLYvar[0].array_size           10var[1].size             4        # 4 bytes per
elementvar[0].create_hmi_interface     FALSE
#
Ende

Designator

Value range

Default

Significance

anzahl_belegt

[0; MAX_UNS16]

0

If var[i].* is assigned without gap, here the index of the variable defined last +1 is entered (ilast+1).

If var[i].* is assigned with gaps, here the highest index of the defined variables +1 is entered (imax+1).

var[i].*

i:= [0; 214]

Data records for the definition of variables.

name

ASCII string

 

The variable is identified on the basis of the name. The name is used to compose an overall name for the NC-channel and the GUI (e.g. V.E.<name>). The name consists of maximum 20 characters.

Upper case letters and lower case letters are differentiated.

index

[0; MAX_SGN32]

-1

The index defines the position in the memory at which the variable is saved. The overall memory is structured as an array of units with a size of 24 bytes.

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

type

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

UNS32

The type indicates the data type of the variable. Besides elementary data types (SGN08, ..., REAL64), there is data type STRING which currently comprises 24 bytes including end mark.

scope

[GLOBAL; CHANNEL ]

CHANNEL

In the case of the scope of validity, a distinction is made between a channel-specific scope and a cross-channel, global scope.

synchronization

[TRUE, FALSE]

TRUE

Write/read access is normally performed synchronously with processing. In individual cases, this implicit synchronization may be suppressed (see Chapter 3.1.1).

access_rights

[READ_WRITE, READ_ONLY, WRITE_ONLY]

READ_WRITE

Write/read access to the variables is possible by default, and this access can be restricted by access protection.

array_size

[0; MAX_UNS16]

0

If the variable is not structured as an array, the array size must be specified as 0. Otherwise, the total size of the array is defined at this point.

size

[0; MAX_UNS32]

4

Indicates the size of the variable including any alignment bytes, i.e. the difference between to consecutive elements of an array. Depending on computer architecture and alignment strategy, this size may comprise the real wanted data and additional alignment bytes.Size of the data types:

1 BYTE-BOOLEAN,UNS08, SGN08

2-BYTE-SGN16, UNS16

4 BYTE-SGN32, UNS32, STRING

8 BYTE-REAL64

24 BYTE-STRING(maximum20characters)

create_hmi_interface

[TRUE, FALSE]

FALSE

Create interface objects for HMI access for this variable, if flag is set.