📖 Scenario: You are programming a simple motor control system using a PLC (Programmable Logic Controller). The motor can run forward or reverse, but never both at the same time. To prevent damage, an interlock ensures that if the motor is running forward, it cannot run in reverse, and vice versa.This is a common safety feature in industrial machines.
🎯 Goal: Build a PLC ladder logic program that controls a motor with two inputs: Forward_Start and Reverse_Start. The motor should run forward if Forward_Start is pressed and the motor is not running in reverse. It should run in reverse if Reverse_Start is pressed and the motor is not running forward. The program must include an interlock to prevent both directions from running simultaneously.
📋 What You'll Learn
Create two input variables: Forward_Start and Reverse_Start
Create two output variables: Motor_Forward and Motor_Reverse
Implement interlock logic so Motor_Forward and Motor_Reverse cannot be ON at the same time
Use ladder logic style programming with contacts and coils
Print the final motor states for verification
💡 Why This Matters
🌍 Real World
Forward-reverse motor control with interlock is used in conveyor belts, pumps, and industrial machines to ensure safe operation and prevent mechanical damage.
💼 Career
Understanding motor control logic and interlocks is essential for automation technicians, PLC programmers, and maintenance engineers working in manufacturing and process industries.
Progress0 / 4 steps
1
Define input and output variables
Create two boolean variables called Forward_Start and Reverse_Start to represent the start buttons. Also create two boolean variables called Motor_Forward and Motor_Reverse to represent the motor outputs. Initialize all variables to False.
PLC Programming
Hint
Think of these variables as switches and motor states. Start buttons are inputs, motor directions are outputs.
2
Add interlock condition variables
Create two helper boolean variables called Can_Run_Forward and Can_Run_Reverse. Set Can_Run_Forward to True only if Motor_Reverse is False. Set Can_Run_Reverse to True only if Motor_Forward is False.
PLC Programming
Hint
Use the not operator to check if the opposite motor direction is off.
3
Implement forward and reverse motor control with interlock
Set Motor_Forward to True if Forward_Start is True and Can_Run_Forward is True. Set Motor_Reverse to True if Reverse_Start is True and Can_Run_Reverse is True. Otherwise, set both motor outputs to False.
PLC Programming
Hint
Use if-elif-else to decide motor direction safely.
4
Print motor states for verification
Print the values of Motor_Forward and Motor_Reverse to show which motor direction is active.
PLC Programming
Hint
Use print statements with f-strings to show motor states.
Practice
(1/5)
1. What is the main purpose of using an interlock in forward-reverse motor control?
easy
A. To increase the motor speed beyond its rated capacity
B. To prevent the motor from running forward and reverse at the same time
C. To allow the motor to run in both directions simultaneously
D. To reduce the power consumption of the motor
Solution
Step 1: Understand interlock function
An interlock is a safety feature that prevents conflicting commands from activating simultaneously.
Step 2: Apply to motor control
In forward-reverse motor control, the interlock stops both forward and reverse commands from running at the same time to protect the motor.
Final Answer:
To prevent the motor from running forward and reverse at the same time -> Option B
Quick Check:
Interlock prevents simultaneous directions = A [OK]
Hint: Interlock means 'no two directions at once' [OK]
Common Mistakes:
Thinking interlock increases speed
Believing motor can run both ways simultaneously
Confusing interlock with power saving
2. Which of the following is the correct ladder logic condition to implement an interlock for forward and reverse motor control?
easy
A. Forward = StartF AND NOT Reverse
B. Forward = StartF OR Reverse
C. Forward = StartF AND Reverse
D. Forward = NOT StartF AND Reverse
Solution
Step 1: Understand interlock logic
The forward command should only activate if the forward start is pressed and the reverse is NOT active.
Step 2: Match logic to options
Forward = StartF AND NOT Reverse uses AND with NOT Reverse, which correctly prevents forward and reverse running together.
Final Answer:
Forward = StartF AND NOT Reverse -> Option A
Quick Check:
Forward requires StartF and no Reverse = D [OK]
Hint: Use AND with NOT for interlock conditions [OK]
Common Mistakes:
Using OR instead of AND
Missing NOT to block reverse
Allowing both directions simultaneously
3. Given the following PLC code snippet for motor control:
Forward = StartF AND NOT Reverse
Reverse = StartR AND NOT Forward
What will be the state of Forward and Reverse if both StartF and StartR are pressed at the same time?
medium
A. Forward = True, Reverse = False
B. Forward = False, Reverse = True
C. Forward = False, Reverse = False
D. Forward = True, Reverse = True
Solution
Step 1: Analyze Forward condition
Forward = StartF AND NOT Reverse. Since StartR is pressed, Reverse may be True, so NOT Reverse is False, Forward is False.
Step 2: Analyze Reverse condition
Reverse = StartR AND NOT Forward. Forward is False (from step 1), so NOT Forward is True, but Reverse depends on StartR AND True = True. However, this creates a conflict because Forward depends on Reverse and vice versa.
Step 3: Resolve conflict
Because both depend on each other's negation, neither can be True simultaneously. Both will remain False to avoid conflict.
Final Answer:
Forward = False, Reverse = False -> Option C
Quick Check:
Both pressed blocks both directions = C [OK]
Hint: Both starts pressed disables both directions [OK]
Common Mistakes:
Assuming both directions run simultaneously
Ignoring mutual exclusion logic
Forgetting NOT conditions
4. Identify the error in this forward-reverse motor control logic:
Forward = StartF OR NOT Reverse
Reverse = StartR OR NOT Forward
medium
A. Using OR instead of AND causes both directions to run simultaneously
B. Missing NOT operator before StartF and StartR
C. Correct logic with no errors
D. Reverse should depend only on StartF
Solution
Step 1: Analyze use of OR operator
Using OR means Forward can be True if StartF is True or Reverse is False, which can allow both Forward and Reverse to be True simultaneously.
Step 2: Understand interlock requirement
Interlock requires AND with NOT to prevent simultaneous activation, so OR breaks this rule.
Final Answer:
Using OR instead of AND causes both directions to run simultaneously -> Option A
Quick Check:
OR allows both directions = A [OK]
Hint: Interlock needs AND NOT, not OR [OK]
Common Mistakes:
Confusing OR with AND
Ignoring interlock logic
Assuming logic is correct without testing
5. You want to design a forward-reverse motor control with interlock using a PLC. Which of the following ladder logic snippets correctly implements the interlock to prevent simultaneous forward and reverse commands?
hard
A. Forward = StartF OR Reverse
Reverse = StartR OR Forward
B. Forward = StartF AND StartR
Reverse = StartR AND StartF
C. Forward = StartF AND Reverse
Reverse = StartR AND Forward
D. Forward = StartF AND NOT Reverse
Reverse = StartR AND NOT Forward
Solution
Step 1: Understand interlock logic requirements
Interlock requires that Forward only runs if Reverse is NOT running, and vice versa, to avoid damage.
Step 2: Evaluate each option
Forward = StartF AND NOT Reverse
Reverse = StartR AND NOT Forward uses AND with NOT conditions correctly to prevent simultaneous activation. The other options allow both directions or require both starts simultaneously, which is incorrect.
Final Answer:
Forward = StartF AND NOT Reverse
Reverse = StartR AND NOT Forward -> Option D
Quick Check:
AND with NOT ensures interlock = B [OK]
Hint: Use AND NOT for safe forward-reverse control [OK]
Common Mistakes:
Using OR instead of AND
Allowing both directions at once
Requiring both start buttons pressed
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.