Originally Posted by
BCow
Hi all,
I am after some advice on setting up my spindle to orientate to a set position for tool changer, Back ground is I have a Zenford milling machine running Mach 3, Controller is a Ethernet smoothstepper, 1024ppr Spindle encoder wired to ESS, Fanuc spindle motor controlled by a VSD (No Positioning), & I can lock the spindle by energizing the High & low speed clutch solenoids.
My plan was to have the M19 macro run the spindle as slow as possible (20 rpm in low gear), Use the encoder for position feedback & when in position disable the spindle motor & engage the solenoids to lock in position for the tool change.
The problem I have is getting the encoder feedback to rollover or reset every revolution so I have a 0 to 360 degree spindle position, Currently the feedback continuously increments. I should be able to reference it from the Index pulse somehow, but I am unsure of the best way to proceed. Should I be using a Macro? or a Brain? Or is there a better way I could do it? Any help or advice would be greatly appreciated.
Brad