Hello,
I have a good deal of experience with Parker-Hannifin PLCs and servo motors but am brand new to ladder logic and stepper motors. I am using a BRX PLC and a SureStep stepper motor.
I have some basic questions.
#1 What is the "best practices" way to execute a set of setup commands? These are the sort of things that need to run first and only once. Included in these commands would be configuring my stepper motor which I believe is done via AXCONFIG. Should I be checking axis bits like .Configured after my setup routine to make sure the setup succeeded?
#2 How to home the motor to a starting position? I assume this requires a limit switch? And how to run this command such that it runs only once at the start?
#3 What is the best way to implement a simple motion loop? In a separate program? For example: rotate from home position by 90 degrees, pause for 1 second, return to home position, pause another second and repeat endlessly while some input is on. I think I use the AXPOSTRAP command. If the motor is configured as rotary then would a move to position 90 rotate by 90 degrees? How to properly configure the timers to implement the 1 second delays after confirming the moves are completed?
Thank you.
Ray