
PROGRAMMING GUIDE
SINUS PENTA
193/486
MDO1 (2, 3, 4): Function Applied to the Result of Tests A and B: P277, (P286, P295, P304)
A logic function is applied to the two Boolean signals obtained in order to obtain the output TRUE/FALSE Boolean
signal.
Six different tests may be performed for variable (A) using the comparing value and variable (B).
(A) OR (B):
The selected digital output is enabled when at least one of the two conditions below is true (this function
also allows enabling the selected digital input based on one test only).
(A) OR (B)
Test A
Test B
Output
0
0
0
1
0
1
0
1
1
1
1
1
(A) SET (B) RESET Rising Edge
(A) RESET (B) SET Rising Edge
(A) SET (B) RESET Falling Edge
(A) RESET (B) SET Falling Edge
The selected digital output is activated as the output of a Flip Flop Set Reset whose inputs are signal A and signal B.
This function can be used in case of hysteresis.
The status of the input (Qn) depends on the previous value (Qn-1) and on the result of the two tests.
Signals A and B are considered only when passing from 0
→
1 (Rising Edge) or 1
→
0 (Falling Edge). Signal A and signal
B may be used both as Set and Reset command.
Example: Suppose that the output enables only when the motor speed exceeds 50rpm and disables when the motor
speed drops below 5 rpm. To do so, assign the first condition to Test A, representing the Set command for Flip Flop
(
P271
= Motor Speed,
P273
>,
P275
= 50rpm), and assign the second condition to Test B, representing the Reset
command (
P272
= Motor Speed,
P274
<=,
P276
= 5rpm). A more detailed example is given at the end of this section.
(A) SET (B) RESET Rising Edge
Test A (Set)
Test B
(Reset)
Q
n
0
→
1
X
1
X
0
→
1
0
In any other case
Q
n-1
(A) RESET (B) SET Rising Edge
Test A
(Reset)
Test B (Set)
Q
n
0
→
1
X
0
X
0
→
1
1
In any other case
Q
n-1
(A) SET (B) RESET Falling Edge
Test A (Set)
Test B
(Reset)
Q
n
1
→
0
X
1
X
1
→
0
0
In any other case
Q
n-1
(A) RESET (B) SET Falling Edge
Test A
(Reset)
Test B (Set)
Q
n
1
→
0
X
0
X
1
→
0
1
In any other case
Q
n-1