Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to define a standard AND gate in ladder logic.
PLC Programming
AND_gate = [1](input1, input2)Attempts:
3 left
💡 Hint
Common Mistakes
Using OR gate instead of AND gate.
Confusing NOT gate with AND gate.
✗ Incorrect
The AND gate is a basic standard circuit used as a building block in PLC programming.
2fill in blank
mediumComplete the code to create a standard OR gate function call.
PLC Programming
OR_gate = [1](input1, input2)Attempts:
3 left
💡 Hint
Common Mistakes
Using AND gate instead of OR gate.
Confusing NOR with OR gate.
✗ Incorrect
The OR gate outputs true if at least one input is true, a common building block.
3fill in blank
hardFix the error in the code to correctly represent a NOT gate.
PLC Programming
NOT_gate = [1](input)Attempts:
3 left
💡 Hint
Common Mistakes
Using AND or OR gate instead of NOT gate.
Confusing XOR with NOT gate.
✗ Incorrect
The NOT gate inverts the input signal, a key standard circuit.
4fill in blank
hardFill both blanks to create a NAND gate using AND and NOT gates.
PLC Programming
NAND_gate = [1]([2](input1, input2))
Attempts:
3 left
💡 Hint
Common Mistakes
Reversing the order of NOT and AND.
Using OR gate instead of AND gate inside.
✗ Incorrect
A NAND gate is made by applying NOT to the output of an AND gate.
5fill in blank
hardFill all three blanks to create a complex building block combining gates.
PLC Programming
complex_block = [1]([2](input1, input2), [3](input3))
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the order of gates.
Using OR instead of XOR for the outer gate.
✗ Incorrect
This block uses XOR of AND and NOT gates to combine inputs in a standard way.
