LOGICAL

Definition of logical variables.

Related Topics
In Other Guides
Logical Variables (LOGICAL)

ID_NAME

= <id_name_of_logical_variable>

Name of the logical variable.

DEF_TYPE

= BASE

Definition of a logical variable by comparison of existing numerical variables.

= BOOLEAN

Definition by linking logical variables with Boolean operations.

OPER

DEF_TYPE = BASE:

= GE

Variable A is greater than and equal to variable B.

= LE

Variable A is less than and equal to variable B.

= GT

Variable A is larger than variable B.

= LT

Variable A is smaller than variable B.

= EQ

Variable A equals variable B.

DEF_TYPE = BOOLEAN:

= AND

And-linkage of logical variable LOG_A to LOG_D.

= OR

Or-linkage of logical variable LOG_A to LOG_D.

Items for DEF_TYPE = BASE

VAR_A

<name_of_1st_variable>

Name of a defined numerical variable.

VAR_B

<name_of_2nd_variable>

Name of a defined numerical variable.

FIX_VAL

<value>

Real value instead of VAR_B.

Items for DEF_TYPE = BOOLEAN

LOG_A

<name_of_1st_logical _variable>

Name of a defined logical variable.

LOG_B

<name_of_2nd_logical _variable>

Name of a defined logical variable.

LOG_C

<name_of_3rd_logical _variable>

Name of a defined logical variable.

LOG_D

<name_of_4th_logical _variable>

Name of a defined logical variable.

Remarks

  1. The direct definition of logical variables (DEF_TYPE = BASE) can be done by a comparison of two numerical variables or one numerical variable and a fixed value. The numerical variables must already be defined.
  2. Definitions relating to Boolean operations (DEF_TYPE = BOOLEAN) must include at least two already defined logical variables that are referenced. A maximum of up to four logical variables may be combined.

Examples

LOGICAL
 ID_NAME = my_logical_01
 DEF_TYPE = BASE
 OPER = LT
 VAR_A = volume_part_a
 FIX_VAL = 100.0
END_