Overview
Title: Lesson #9 - How to Make a Motor Control Block in Ladder Logic | Simatic Manager (Step 7 Classic)
By the end of this lesson, viewers will learn how to create a reusable motor control block using ladder logic in Simatic Manager (S7-300/400) with Start/Stop control and interlocks.
๐ง Step-by-Step Tutorial Script
๐ข 1. Introduction (0:00โ0:30)
-
Briefly introduce what a motor control block is.
-
Explain the benefits: reusability, structured programming, and safety interlocks.
๐ง 2. Open Simatic Manager Project (0:30โ1:00)
-
Open your existing Step 7 project.
-
Navigate to โBlocksโ under your PLC program.
๐งฑ 3. Create a New Function Block (FB) (1:00โ1:30)
-
Right-click > Insert New Object > Function Block (FB).
-
Name it
FB_MotorControl
. -
Select "LAD" (Ladder) as the language.
๐ ๏ธ 4. Define Inputs and Outputs (1:30โ2:00)
In the Interface of the FB:
Inputs:
-
Start: BOOL
-
Stop: BOOL
-
Fault: BOOL
(optional interlock) -
Reset: BOOL
(optional)
Outputs:
-
MotorON: BOOL
Static (Memory):
-
MemoryBit: BOOL
(used to latch ON signal)
๐ 5. Ladder Logic Implementation (2:00โ3:30)
Draw the following logic in the ladder editor:
Network 1: Motor Start/Stop Latching
-
A basic SR (Set-Reset) latch logic:
-
Start ---| |-----+
-
| |
-
M bit ---| |--+ |
-
Fault ---|/|--| |
-
Stop ----|/|--|--( ) MotorON
|
+--( ) M bit
-
Explanation:
-
When
Start
is pressed and noFault
, motor latches ON. -
When
Stop
is pressed orFault
occurs, motor stops. -
M bit
helps to hold the ON state.
โป๏ธ 6. Reuse Motor Control Block in OB1 (3:30โ4:30)
-
Go to OB1 (main program).
-
Call the FB instance:
-
Create instance DB (e.g., DB1 for Motor1).
-
Assign inputs:
-
Start := I0.0
-
Stop := I0.1
-
Fault := I0.2
-
-
Assign output:
-
MotorON โ Q0.0
-
-
ladderCALL FB1, DB1 Start := I0.0 Stop := I0.1 Fault := I0.2 MotorON := Q0.0
โก 7. Test in PLC Simulator or Actual PLC (4:30โ5:30)
-
Download the program to the simulator or real PLC.
-
Monitor the logic by toggling inputs.
-
Show MotorON output reacting correctly.
๐ฆ 8. Tips for Improvement (5:30โ6:00)
-
Add thermal overload, feedback from contactor.
-
Add multiple motor blocks for different machines using the same FB.
๐ฏ Conclusion (6:00โ6:30)
-
Recap: We created a modular, reusable motor control block in LAD.
-
Encourage users to modify it for different motor logic or safety conditions.
๐ Summary Notes for Your Viewers
-
Use FB + instance DB for each motor.
-
Reuse logic with different input/output parameters.
-
Helps in large automation systems with 10+ motors.
- Intermediate
- 5
- 30 minutes
- November 28, 2024
Lessons : 0
Level : intermediate