UserVar worksheet

Top  Previous  Next

The UserVar worksheet is used to define all variables. Variables can be imported from the PLC programming environment via Communication - Symbolfile - Import into the UserVar list. This operation will delete existing variables and create a new list. A check is also made whether all variables used in the Project worksheet have also been defined in the UserVar worksheet and whether the data type is correct.

 

Example

Variable name

Type

Reserved

Address

Flag options

Comment/Description

Used flag

Reserved

Reserved

Reserved

Default value

/PLCH/PLC/ActPageId

UINT

 

 

 

 

1

 

 

 

 

/PLCH/PLC/ActPageName

STRING:80

 

 

 

 

0

 

 

 

 

/PLCH/PLC/ActPwl

WORD

 

 

 

 

0

 

 

 

 

/PLCH/PLC/Alarm1

BOOL

 

 

 

 

0

 

 

 

 

/PLCH/PLC/Alarm10

BOOL

 

 

 

 

0

 

 

 

 

/PLCH/PLC/Alarm11

BOOL

 

 

 

 

0

 

 

 

 

/PLCH/PLC/Alarm12

BOOL

 

 

 

 

0

 

 

 

 

/PLCH/PLC/Alarm13

BOOL

 

 

 

 

0

 

 

 

 

 

 

 

Column

Comment

Variable name

Symbolic variable name

Type

Variable data type

Reserved


Address

Address for controls that don't support symbolic variable names, e.g. S7

Options flag

Communication driver specific flags:

 

RS7

raw : no byte swapping ( Motorola/Intel-Byte order)

 

 

Used flag

Anzahl der Referenzierungen im Projekt. Wenn der Wert > 0 ist, wird die Variable in die _drvvlst.txt geschrieben, bzw. in den Variablepool des RTS geladen.

 

Icon-Hinweis

 

Variablennamen die erst zur Laufzeit aufgelöst werden, werden von der IDE typischerweise nicht als referenziert erkannt, weshalb der Used-Count auf 0 stehen bleibt, die Variable nicht in den Varpool geladen wird und es somit Laufzeitfehlern kommen kann. Um das zu verhindern, kann ein 'u' in die Zelle geschrieben werden. Damit wird die so markierte Variable immer ins RTS geladen.

Reserved


Reserved


Reserved


Default value

Die Variablen werden im RTS mit 0 initialisiert. Wenn ein anderer Wert gewünscht wird, kann er hier gesetzt werden. Der Default wert wird aber nicht auf die Steuerung übertragen.

 

 

Variable name

...Variable name

Type

...Variable data type

Size

...Size in bytes

Address

...Optional address depending on communication driver (e.g. S7)

Options flag

...raw: Depending on the communication driver, the value is not converted (e.g. Motorola/Intel byte order)

Used flag

...1=Variable is used in the EPAM project

Limit1/2 value

...Reserved for future expansion

Defined flag

...Auxiliary flag for variable import

Default value

...Default value. When communication is active the variable values are read from the PLC at the start. Default values are not written to the PLC.