VarState column

Top  Previous  Next

The VarState column contains a variable name for the object status. The variable must be of type WORD, INT, UINT or BOOL (only 0 and 1). The object status enables any object in EPAM to take on one of the following states:

 

Status

Behavior of the Epam object

0

Object is visible and active, i.e. the area X, Y, DX, DY is displayed according to the object

1

Object is not visible and inactive (off), i.e. the area X, Y, DX, DY is displayed with the current background of the current screen page.

No actions are executed.

Limit values are NOT monitored.

2

Object is visible but inactive (disabled), i.e. the area X, Y, DX, DY is hatched.

No actions are executed.

Limit values are monitored.

4

The object flashes at a frequency of 0.5 Hz (1s on/off)

8

The object flashes at a frequency of 1 Hz (0.5s on/off)

12

The object flashes at a frequency of 2 Hz (0.25s on/off)

 

The change of the object status is implemented via the object status variable (VarState) by setting the appropriate value.

 

Icon-Hinweis        Object status on screen change

After a screen change, all the objects provided with an object status variable are initialized with the object status invisible and inactive (off). The object is not displayed accordingly until the current object status is read.

This procedure prevents actions from being started accidentally whilst the screen on the target system is being generated! (during simulation on the development environment with no communication, all objects are always shown!)

 

Icon-Hinweis        Option VarStateOnOffInverted

If the option VarStateOnOffInverted is set, the object is Off (invisible) with VarState 0 and On ( visible) with 1.