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
Inverter
The output CVn OS is the logical inverse of the input parameter.
Table 4-30 describes the Inverter prompts. See Table 4-2 for additional prompts.
Prompt
INPUT
120
Table 4-28 (A OR B) AND C
A
0
0
0
0
1
1
1
1
Table 4-29 Results of Logic Equation Using Iteration
Input B (current)]
AND
1
0
0
0
Table 4-30 Inverter Prompts
Range/Selections
OFF, discrete parameter, 0, 1
Video Recorder – User Manual
B
C
Result
0
0
0
0
1
0
1
0
0
1
1
1
0
0
0
0
1
1
1
0
0
1
1
1
[Input A (previous)
OR
1
1
1
0
Input source to be inverted.
Input B (previous)]
1
0
0
0
Definition
= Result
1
1
0
0