Technology in detail
How do two signals
work together?
The same inputs can produce different results. AND and OR show why the rule matters as much as the signal states.
01 / The example
Same inputs.
Different rules.
Each input has two possible states: 0 means inactive, and 1 means active. AND requires both inputs to be active. OR needs at least one active input; it also includes the case where both are active.
Switch an input on, then change the rule. The input states stay the same, so you can compare the results directly.
Output Y · AND0
AND: A = 0, B = 0, Y = 0. Indicator off: At least one input is inactive.
- A · Input
- The first signal, which can be either 0 or 1.
- B · Input
- The second signal, which can change independently of A.
- Y · Output
- The result of the selected rule: the indicator is on or off.
A freely chosen teaching model. It does not represent a real installation or safety function; electrical quantities and the timing of a real controller are not modelled. For size requirements, see dimensions and tolerances.
02 / The logic
Four combinations.
Two rules to compare.
AND produces 1 only when both inputs are 1. OR produces 1 when at least one input is 1. The rules therefore differ when exactly one input is active.
ANDY = A ∧ B
ORY = A ∨ B
| A | B | Y · AND | Y · OR |
|---|---|---|---|
| 0 | 0 | 0 · Off | 0 · Off |
| 0 | 1 | 0 · Off | 1 · On |
| 1 | 0 | 0 · Off | 1 · On |
| 1 | 1 | 1 · On | 1 · On |
OR here means “at least one”, not “exactly one”. For A = 1 and B = 1, OR therefore also gives 1. A rule that is active only when exactly one input is active is called exclusive OR (XOR).
Input, processing,
output.
Inputs provide information about states. The selected rule determines how these states produce an output. An AND example could be an indicator that lights only when a part is detected and an order is active. Changing that rule to OR would change the intended behaviour.
The indicator makes the result visible. Other outputs can drive actuators that produce a physical effect, such as movement. The intended action depends on the system.
Check your understanding
Which rule gives an output of 1?
Input A is 1 and input B is 0. Which of the two rules makes output Y equal to 1?
Solution and explanation
- AND only.
- AND gives 0 here: both inputs would need to be 1 for the output to be 1. Input B is 0.
- OR only.
- Correct. OR needs at least one input to be 1. Input A meets that condition. AND gives 0 for the same pair of inputs.
- Both AND and OR.
- Only OR gives 1 here. Both rules give 1 when A and B are both 1, but B is 0 in this example.
03 / Check your understanding
Understand AND and OR
Is one active input enough?
For OR, yes. For AND, no: both inputs must be active. If both inputs are inactive, both rules produce 0.
Does the order of activation change the final result in this model?
No. This model evaluates only the current states and does not store their order. The result depends on the two input states and the selected rule. The timing of a real control system is not represented here.
What happens when one of two active inputs switches off?
With AND, Y becomes 0. With OR, Y stays at 1 while the other input remains active. If both inputs become 0, both rules switch the indicator off.
Two signals.
One decision.
The two inputs can change independently. AND requires both to be active; OR requires at least one. For the same input pair, the rule determines the result.
The example connects information, logical processing and a visible action.
Follow
the principles.
This freely chosen example compares two basic logical operations. Further explanations and learning materials are available from: