Programming Function Blocks and Features
Order of evaluation
1.
Parentheses ()
2.
NOT
3.
AND
4.
OR, XOR
Example equation using operators and inputs
(A+B)*C computes the result of (A OR B) AND C.
Example equation using iteration
The equation A+B*O computes the result of:
(Input A OR Input B from current machine cycle) AND (Input A OR Input B from previous machine cycle).
Table 4-29 shows some possible results of this equation.
[Input A (current)
OR
1
1
0
1
120
Table 4-28 (A OR B) AND C
A
B
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
Table 4-29 Results of Logic Equation Using Iteration
Input B (current)]
AND
1
0
0
0
VPR & VRX – User Manual
C
Result
0
0
1
0
0
0
1
1
0
0
1
1
0
0
1
1
[Input A (previous)
OR
1
1
1
0
Input B (previous)]
1
0
0
0
= Result
1
1
0
0
12/00