Iβm completely new to CODESYS and have been teaching myself. And i Want to control an Axis using SM3RaspiStepper.
Following the example on the RaspiStepper home page, I set up an axis through a POU and tied the SMC_StartupDrive (Visu) template to my axis instance (sud). Unfortunately, the motor never moves and I donβt see any pulses on the PULSE pin (GPIO 23).
Hardware
-Raspberry Pi 4 B
-Nema 17 stepper motor
-A4988 stepper driver (EN pin permanently tied to GND)
Software / Runtime
-CODESYS 3.5 SP21 Patch 1 β Raspberry Pi runtime (demo)
-SoftMotion in demo mode
-Package: SM3_RaspiStepper 0.0.0.6
Whether I start the axis from the visualization template or through Online Config Mode, the motor never spins.
In Online Config Mode I press Power β the state changes from Standstill to Discrete_Motion, but the motor shaft is still locked and no step pulses appear on GPIO 23 (checked with a scope).
I can provide screenshots of the Visualization, PLC logs, or wiring pictures if that helps.
Any ideas on what I might be missing?
Happy to provide screenshots, project files, or scope captures if that helps.
Thanks in advance!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi everyone,
Iβm completely new to CODESYS and have been teaching myself. And i Want to control an Axis using SM3RaspiStepper.
Following the example on the RaspiStepper home page, I set up an axis through a POU and tied the SMC_StartupDrive (Visu) template to my axis instance (sud). Unfortunately, the motor never moves and I donβt see any pulses on the PULSE pin (GPIO 23).
Hardware
-Raspberry Pi 4 B
-Nema 17 stepper motor
-A4988 stepper driver (EN pin permanently tied to GND)
Software / Runtime
-CODESYS 3.5 SP21 Patch 1 β Raspberry Pi runtime (demo)
-SoftMotion in demo mode
-Package: SM3_RaspiStepper 0.0.0.6
Axis parameters:
Pulse pin GPIO 23
Direction pin GPIO 24
Enable pin 0 (unused)
Disable pin 0 (unused)
Whether I start the axis from the visualization template or through Online Config Mode, the motor never spins.
In Online Config Mode I press Power β the state changes from Standstill to Discrete_Motion, but the motor shaft is still locked and no step pulses appear on GPIO 23 (checked with a scope).
I can provide screenshots of the Visualization, PLC logs, or wiring pictures if that helps.
Any ideas on what I might be missing?
Happy to provide screenshots, project files, or scope captures if that helps.
Thanks in advance!