One rotation

I have machinery I am trying to convert from mechanical clutch drive to stepper drive. I have a Stepperonline CL86y driver with a 6 amp motor to build the 1st prototype. I also have an Arduino Uno to run it. I need a program to make it run and stop on my command. I will control the start and stop point with a smart relay, which will use sensors and a homing button to make it stop at the same point every time. I just need a control pin on the Uno card to tell the motor to stop and start based on the high or low on that pin as well as the motor output. This seemed like it would've been an easy task, but I can't find a common program anywhere to do this, or at least I'm not seeing one. Would anyone have something like that, or give me some direction?

Your description of what shall happen is not really clear to me:

I write one interpretation:
You want to have a "homing-switch" if switch is triggered motor shall stop.
you press a "run"-button motors runs
you press a "stop"-button motors stops
you press a "homing"-button motor runs and stops at homeposition.

You wrote something about a "smart"-relay. No idea what a "smart"-relay is and how it is working
all the commands of start stop homing detect home-position reached can be easily done by the arduino

If the description above is what you want. Good. If not
describe it in a similar way.
desciption-pattern: describe just one button/switch what shall happen if button is pressed

best regards Stefan

I can't find a common program anywhere to do this, or at least I'm not seeing one.

Have you thought about writing it yourself ?

There are even examples using the Stepper library in the IDE

I'm sorry I wasn't clear. A smart relay is an entry level Programable logic controller. I added that because there are other things on the machine it will control as well, so I apologize for confusing you with that. Also, I am new to the Arduino controller and programming, so I'd be starting from scratch to try to write my own right now. All of that aside,
I'm just simply looking for a program that runs the motor when a button is pressed and the motor stops when the button is released.

The AccelStepper library has a stop() method. You could trigger a long move
with

stepper.move (1000000000L) ;

and use stepper.stop(); when you want that to stop.

Start by getting one of the examples running. You need to have stepper.run()
in loop and not use delays.

Checkout the StateChangeDetection Arduino example sketch for how to trigger events on button
presses or releases.

mpqualdie:
I just need a control pin on the Uno card to tell the motor to stop and start based on the high or low on that pin as well as the motor output.

Have you worked out the interface between the Arduino and the smart PLC?

Hello,
If you have digital inputs/outputs to be connected between the smart relay and the arduino, there is no need to have them both.
Just to remind that there are smart relays (Siemens logo série for example) that have PWM outputs to control a stepper motor.
Can you provide a wiring diagram of what you intent to do?