Tower Crane; the next phase

The code is for a stepper connected to a CNC shield V3. The shield plugs onto an Uno. The stepper connects to the stepper connector next to the X axis stepper driver.

Here is the Uno to CNC shield V3 pin mapping.cnc shield Uno pins