When the required tool is selected and the turret rotates I need it to run back against it's stop for every tool selected, when it's there then the DRO needs to be reset maybe
I don't know what is 'right' but if that is what you want to do then in each place where I commented out the line like this one for tool 4:
REM SetOemDRO(803,4)
you would remove the REM and change it to:
SetOemDRO(803,135)
I assume you are using stepper motors and backing up against the stop until the stepper loses steps. then I guess this would work. Personally I would make your moves
G0 A138
while isMoving()
wend
G0 A135
No need to then reset the DRO.
Like I said I don't have a turret so I don't know what the proper way to use it.
Good luck
RT
I think you're right RT, I will drive past the tool position and drive a few degrees against the stop.
I'll report back tomorrow.
Great, I've done as you suggested and with a bit of twiddling it works just fine.
One final thing and I think I'm there,
When I ref the turret the DRO may have some information other than Zero and the tool number may not be No1
Can the Turret DRO and tool number be set when referenced ?
Thanks
George