How to Wire and Control a Stepper Motor with a PLC — Full Tutorial

How to Wire and Control a Stepper Motor with a PLC — Full Tutorial

L
LeMaster Tech
5 Video Views·Jul 11, 2026

In this full tutorial, we'll wire and control a stepper motor with a PLC from start to finish. We start with an overview of the hardware on the bench, then go step by step through wiring the stepper to the driver and the driver to the PLC. From there we set up a motion axis in the controller and write the ladder logic to jog the motor forwards and backwards using two pushbuttons and a Move Relative instruction.
Whether you're a controls engineer adding motion to your skill set, a panel builder wiring your first stepper, or a student learning PLC-based motion control, this video walks through the complete process — hardware, wiring, axis configuration, and code.
We'll cover:

Hardware overview: the stepper motor, driver, and PLC used in this build
Wiring the stepper motor to the driver
Wiring the driver to the PLC outputs
Setting up the motion axis in the controller
Writing ladder logic with two pushbuttons and a Move Relative block
Jogging the stepper forwards and backwards

HARDWARE:
All in one linear rail and stepper: https://amzn.to/3RdOWmq
Just a simple NEMA 23 Stepper: https://amzn.to/3SUn0ES
Stepper Motor Driver: https://amzn.to/4h8tcTz
Siemens PLC with Transistor Outputs: https://amzn.to/4grSNXs
Full Panel Construction Build List: https://www.amazon.com/shop/lemastertech/list/397OGPC2SP8Q8?ref_=aipsflist

TIMESTAMPS:
00:00 - Intro and Background
00:47 - Hardware Equipment Overview
03:06 - Step by Step PLC to Stepper Wiring Overview
06:42 - Set up a motion axis to control a stepper in the PLC
11:00 - Write Basic code to control stepper motor movement in the PLC
18:31 - Final Demonstration and Outro

Don't Forget to Leave a Like on the Video & Subscribe to the channel! Considering becoming a super supporter of the channel at my patreon! https://www.patreon.com/LeMasterTech

Timestamps