Siemens A31003-51730-U103-7619 Formulas, Effect on, tion, numeric elements, text elements

Models: A31003-51730-U103-7619

1 336
Download 336 pages 29.09 Kb
Page 78
Image 78

The Elements of a DCO-Script

Formulas

Logical opera-

 

Effect on

Effect on

tion

 

numeric elements

text elements

 

 

 

 

/

 

Divides the first integer by the

(no function)

or

 

second

 

DIV

 

 

 

 

 

 

 

&

 

Equals 1 if both integers are 1.

(no function)

or

 

Equals 0 if at least one of the

 

AND

 

two integers is 0.

 

 

 

 

 

 

Equals 1 if at least one of the

(no function)

or

 

two integers is 1.

 

OR

 

Equals 0 if both integers are 0.

 

 

 

 

 

=

 

Equals 1 if the two integers are

Equals 1 if the two texts are identical or 0 if

or

 

identical or 0 if the integers are

the texts are different.

EQL

 

different.

 

 

 

 

 

!=

 

Equals 1 if the two integers dif-

Equals 1 if the two texts are different or 0 if

or

 

ferent or 0 if the integers are

the texts are identical.

UEQ

 

identical.

 

 

 

 

 

>

 

Equals 1 if the first integer is

(no function)

or

 

greater than the second, or 0 if

 

GT

 

not.

 

 

 

 

 

>=

 

Equals 1 if the first integer is

(no function)

or

 

greater than or equal to the sec-

 

GET

 

ond, or 0 if not.

 

 

 

 

 

<

 

Equals 1 if the first integer is

(no function)

or

 

smaller than the second, or 0 if

 

LT

 

not.

 

 

 

 

 

<=

 

Equals 1 if the first integer is

(no function)

or

 

smaller than or equal to the sec-

 

LET

 

ond, or 0 if not.

 

 

 

 

 

Table 5-3

List of logical operations in Formulas

 

07/2010

5-10

OScAR-Pro Customized Operator, User Manual

Page 78
Image 78
Siemens A31003-51730-U103-7619 user manual Formulas, Effect on, tion, numeric elements, text elements