Concept Flow - Series logic (AND condition)
Start
Check Input A
Is A ON?
No→Output OFF
Yes
Check Input B
Is B ON?
No→Output OFF
Yes
Set Output ON
End
The series logic checks each input in order; output turns ON only if all inputs are ON.
IF InputA AND InputB THEN Output := TRUE; ELSE Output := FALSE; END_IF;
| Step | InputA | InputB | Condition (InputA AND InputB) | Output Action |
|---|---|---|---|---|
| 1 | OFF | OFF | FALSE | Output = FALSE |
| 2 | ON | OFF | FALSE | Output = FALSE |
| 3 | OFF | ON | FALSE | Output = FALSE |
| 4 | ON | ON | TRUE | Output = TRUE |
| Variable | Start | Step 1 | Step 2 | Step 3 | Step 4 |
|---|---|---|---|---|---|
| InputA | OFF | OFF | ON | OFF | ON |
| InputB | OFF | OFF | OFF | ON | ON |
| Output | FALSE | FALSE | FALSE | FALSE | TRUE |
Series logic (AND condition): - Output is ON only if all inputs are ON. - Syntax: IF InputA AND InputB THEN Output := TRUE ELSE Output := FALSE END_IF; - If any input is OFF, output is OFF. - Used to ensure multiple conditions are met before action.
--[ ]--[ ]--( )-- where both contacts are in series shows two contacts in series before output coil, which is correct.--[ I1 ]--[ I2 ]--( Q1 )----[ I1 ]--+--[ I2 ]--( Q1 )--
|
( )--[ S1 ]--[ S2 ]--[ S3 ]--( M1 )-- shows S1, S2, S3 in series before M1 coil, correct for AND logic.Pass the test and this pattern moves unknown