Yokogawa Touch Screen GP20 User Manual

Page 70

Advertising
background image

1-56

IM 04L51B01-01EN

Logical Computation

Checks whether the two data values, e1 and e2 (e1 only for NOT), are zeros or non-zeros,

and computes according to the conditions.
AND
Logical product

(Syntax) e1ANDe2

(Condition) If the two data values e1 and e2 are both non-zeros, the computed result is 1.

Otherwise, it is 0.

(Explanation) e1 = 0, e2 = 0 → e1ANDe2 = 0

e1 ≠ 0, e2 = 0 → e1ANDe2 = 0

e1 = 0, e2 ≠ 0 → e1ANDe2 = 0

e1 ≠ 0, e2 ≠ 0 → e1ANDe2 = 1
OR
Logical sum

(Syntax) e1ORe2

(Condition) If the two data values e1 and e2 are both zeros, the computed result is 0.

Otherwise, it is 1.

(Explanation) e1 = 0, e2 = 0 → e1ORe2 = 0

e1 ≠ 0, e2 = 0 → e1ORe2 = 1

e1 = 0, e2 ≠ 0 → e1ORe2 = 1

e1 ≠ 0, e2 ≠ 0 → e1ORe2 = 1
XOR
Exclusive OR

(Syntax) e1XORe2

(Condition) If the two data values e1 and e2 are zero and non-zero or non-zero and zero,

the computed result is 1. Otherwise, it is 0.

(Explanation) e1 = 0, e2 = 0 → e1XORe2 = 0

e1 ≠ 0, e2 = 0 → e1XORe2 = 1

e1 = 0, e2 ≠ 0 → e1XORe2 = 1

e1 ≠ 0, e2 ≠ 0 → e1XORe2 = 0
NOT
Logical negation

(Syntax) NOTe1

(Condition) The result is the inverse of the status of data e1 (zero or non-zero).

(Explanation) e1 = 0 → NOTe1 = 1

e1 ≠ 0 → NOTe1 = 0

Expression Example
0001–0002OR0003.GT.0004

Determines the OR of the computed results of “0001–0002” and “0003.GT.0004”.

1.5 Configuring Math Channels

Advertising
This manual is related to the following products: