System Constants

System Constants

System constants

In mathematical expressions, there may be used constants implemented in the D2000 system. When writing a system constant, it is important to place the symbol "@" before its name. The list of system constants is listed in the following table.

Name

Value type

Meaning

Normal

Integer

State (value) of Alarm type object.

Alarm

Integer

State (value) of Alarm type object.

Kvit

Integer

State (value) of Alarm type object.

Block

Integer

State (value) of Alarm type object.

UnBlock

Integer

State (value) of Alarm type object.

NoKvit

Integer

State (value) of Alarm type object.

Run

Integer

Value of Process type object.

Crash

Integer

Value of Process type object.

Stop

Integer

Value of Process type object.

WDErr

Integer

Value of Process type object.

StON

Integer

Value of Station type object.

StOFF

Integer

Value of Station type object.

StCOMERR

Integer

Value of Station type object.

StHARDERR

Integer

Value of Station type object.

StSIMUL

Integer

Value of Station type object.

TRUE

Boolean

Logical true.

FALSE

Boolean

Logical false.

HodInt

Integer

Hour interval length.

MinInt

Integer

Minute interval length.

SecInt

Integer

Second interval length.

ZV

Boolean (TRUE)

Closing output.

OV

Boolean (FALSE)

Opening output.

OK

Integer

Value in limits.

HL

Integer

High Limit - value above the high limit.

LL

Integer

Low Limit - value below the high limit.

VLL

Integer

Very Low Limit - value below the lowest limit.

VHL

Integer

Very High Limit - value above the highest limit.

L_ERR

Integer

Limits Problem - overrunning the dynamic limits (violation of the condition VLL<LL<HL<VHL).

A, B, C, ... P, X

Integer

Value flag.

MyValue

 

The internal variable of an object of Eval tag type. The value of the variable is the current value of the given eval tag. It is important in the case of the eval tag, which "internal" value could be different than the value in the target structured variable.

Warning: the value of the variable @MyValue is invalid before the first calculation. For correct functionality, either the parameter Replace invalid values with 0 of the eval tag must be checked or the value of @MyValue/VLD must be tested before use.

Note: The constant always has an invalid value in ESL.

EvalTime

Absolute time

Time for which the value of the archive object (historical value) is to be calculated.

Note: the constant can only be used in the statement determines the value of the object of Historical value or Eval tag type. 

The values of constants related to Eval tag:

  1. Saving of the object - SysTime.

  2. First calculation - SysTime.

  3. Periodical calculation - a time for which the calculation is performed.

  4. Response to a change - the change time of the object for which the value is currently being calculated.

QTRANS

Integer

Value of object I/O tag (quaternary).

QOFF

Integer

Value of object I/O tag (quaternary).

QON

Integer

Value of object I/O tag (quaternary).

QERR

Integer

Value of object I/O tag (quaternary).

QOSC

Integer

Value of object I/O tag (quaternary).

OTYPE_SYSTEM

Integer

System

OTYPE_PROCES

Integer

Process

OTYPE_LINE

Integer

Line

OTYPE_STATION

Integer

Station

OTYPE_POINT

Integer

I/O Tag

OTYPE_PICTURE

Integer

Picture

OTYPE_GRAPH

Integer

Graph

OTYPE_CLC_VAL

Integer

Eval Tag

OTYPE_EVENT

Integer

Event

OTYPE_LIST

Integer

List

OTYPE_UNUSED

Integer

Do not use it!

OTYPE_ST_TEXT

Integer

Status Text

OTYPE_USER

Integer

User

OTYPE_BITMAP

Integer

Bitmap

OTYPE_PALETTE

Integer

Display Palette

OTYPE_L_BITMAP

Integer

Background Bitmap

OTYPE_COMPOSIT

Integer

Composition

OTYPE_ALARM

Integer

Alarm

OTYPE_FNTSTYLE

Integer

Text Font

OTYPE_CTRL_DLG

Integer

Dialog

OTYPE_ARCHIV

Integer

Archive

OTYPE_TM_CHAN

Integer

Time Channel

OTYPE_SYS_VAR

Integer

System Tag

OTYPE_USER_VAR

Integer

User Variable

OTYPE_REPORT

Integer

Text report

OTYPE_LOG_LIST

Integer

Unused

OTYPE_KALENDAR

Integer

Calendar

OTYPE_DAY_TYP

Integer

Day Type

OTYPE_ARR_VAL

Integer

Value Array

OTYPE_CMD_FILE

Integer

Command File

OTYPE_REM_OBJ

Integer

Remote Tag

OTYPE_ARCH_VAL

Integer

Historical Value

OTYPE_GRREPORT

Integer

Report

OTYPE_RES_GROUP

Integer

Object Group

OTYPE_EVENT_TRIGGER

Integer

EVENT_TRIGGER

OTYPE_ALARM_ALARM_COND

Integer

ALARM_ALARM_COND

OTYPE_ALARM_NORM_COND

Integer

ALARM_NORM_COND

OTYPE_ARCHIV_START_COND

Integer

ARCHIV_START_COND

OTYPE_ARCHIV_STOP_COND

Integer

ARCHIV_STOP_COND

OTYPE_SWITCH

Integer

Switch

OTYPE_BMPPAL

Integer

Bitmap Palette

OTYPE_EXTPAL

Integer

Extended Palette

OTYPE_TOPOLOGY

Integer

Topology

OTYPE_TOPOL_NODE

Integer

Topological Node

OTYPE_TOPOL_LINK

Integer

Topological Line

OTYPE_STRUCTDEF

Integer

Structure Definition

OTYPE_D2RECORD

Integer

Structured Variable

OTYPE_DB_TABLE

Integer

Database Table

OTYPE_LOG_GROUP

Integer

Logical Group

OTYPE_EXT_FNCT

Integer

External Function

OTYPE_DB_CONNECT

Integer

Database

OTYPE_HI_MENU

Integer

HI Menu

OTYPE_SHOW_MASK

Integer

Display Mask

OTYPE_ALL_TYPES

Integer

All types