Lesson#9 How to make Motor Control Block ? in Ladder Logic

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 no Fault, motor latches ON.

  • When Stop is pressed or Fault 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

ladder
CALL 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.