Siemens A31003-51730-U103-7619 ユーザーズマニュアル
BHB_DCO_05.fm
07/2010
OScAR-Pro Customized Operator, User Manual
OScAR-Pro Customized Operator, User Manual
5-91
For internal use only
The Elements of a DCO-Script
Functions
5.10.2
Setup and syntax of conditions
General
A condition consists of at least one operation that, in return, comprises operators and one or
two operands.
two operands.
The logical connection of the operands based on theoperators yields a Boolean result either as
TRUE or 1, or as UNTRUE or 0.
TRUE or 1, or as UNTRUE or 0.
Operands can be:
●
Constants,
●
Parameters,
●
Variables,
●
Controls, or
●
fixed numeric values and texts (texts are output in between inverted commas)
.
An operand can also be an operation in parenthesis.
Syntax
Variables must be set in between $ signs, Constants and Parameters in between %% signs.
If you want to use Controls, please be careful to add a corresponding reference (see Section
5.9.2, "References to Controls").
5.9.2, "References to Controls").
Operators
The following operators can be used in conditions:
Operators
No. of
operands
Example
Description
!
1
!
$VAR_A$
Negation
GT
2
$VAR_A$ GT $VAR_B$
Greater Than
LT
2
$VAR_A$ LT $VAR_B$
Less Than
GET
2
$VAR_A$ GET $VAR_B$
Greater than or Equal To
LET
2
$VAR_A$ LET $VAR_B$
Less than or Equal To
EQL
2
$VAR_A$ EQL $VAR_B$
Same as (EQuaL)
UEQ
2
$VAR_A$ UEQ $VAR_B$
UnEQual
AND
2
$VAR_A$ AND $VAR_B$
Logical 'and' connection
(AND)
(AND)
OR
2
$VAR_A$ OR $VAR_B$
logical 'or' connection
(OR)
(OR)