1
Brains Development / Drive stepper motor via Brain for ATC
« on: March 27, 2009, 11:24:52 PM »
I'm trying to write a brain to run my rotary tool turret on my lathe. A little background on the tool change operation first:
When a tool change is called:
1) turret raise solenoid fires to raise the turret off its stop dogs
2) proximity switch sees turret has been raised and allows mach to rotate turret
3) stepper motor rotates turret proper number of degrees
4) stop solenoid fires a stop pawl to give positive stop to turret rotation
5) turret raise solenoid shuts off to drop turret back on stop dogs
6) proximity switch sees turret has dropped and allows mach to continue program
My immediate question is: how do I terminate a lobe to command rotation of a stepper motor a certain number of steps while running g-code which has called for the new tool (i.e. not move via jog)?
Thanks,
-Ryan
When a tool change is called:
1) turret raise solenoid fires to raise the turret off its stop dogs
2) proximity switch sees turret has been raised and allows mach to rotate turret
3) stepper motor rotates turret proper number of degrees
4) stop solenoid fires a stop pawl to give positive stop to turret rotation
5) turret raise solenoid shuts off to drop turret back on stop dogs
6) proximity switch sees turret has dropped and allows mach to continue program
My immediate question is: how do I terminate a lobe to command rotation of a stepper motor a certain number of steps while running g-code which has called for the new tool (i.e. not move via jog)?
Thanks,
-Ryan