Still playing with the tool changer and setting it up. We're getting there !
The turret has 8 positions and I have about 16 tools mounted in their holders to use depending on the job.
When running the program I call tool number and offset eg T0215 All ok.
But for setting up and manual changes, I find typing in T0306 etc in to the MDI a bit slow and can easily lead to typing related errors !
So, I have an array of 8 buttons on screen that select tool change position and these work fine. Click and the turret moves to home position and turns to the appropriate slot 1 to 8
(Screen grab attached)
For the tool offsets, I've also got a parallel set of user DRO's 1101 to 1108 (shown above the tool position buttons) which I can type in the offset number of the tool in the particular slot.
But I can't get the macro to update the Current Tool number DRO with that shown in my 'Tool Offset' user DRO.
The code in the No1 turret position button is -
Code "G91 G28 X0 Z0"
Code "T0100"
SetCurrentTool(GetUserDRO(1101))
Code "G90"
Which I was hoping the above would move the turret to slot 1 and then uptate the current tool to the number in the UserDro 1101
and set the correct tool offset for that tool.
I'd appreciate any help / suggestions where I'm going wrong or better ways to approach this .
Thanks , Dave.