Hi,
I am hoping someone has written a script for a lathe ATC. I am retrofitting a Planet Mk3 /4 to a Denford Novaturn and the tool turret is quite simple in that a DC motor holds the turret against a ratchet stop until a tool change is required. When a new tool is requested the motor reverses and the turret rotates, there are three position switches arranged to give a Grey code for each tool position, when the correct code for the tool is found, the motor is reversed to lock the turret against its ratchet.
I have the motor forward / reverse controlled by output board relay 2 and the three grey code switches connected to inputs 1, 2 & 3 with 3 as the most significant bit.

I presume the call will be Tnn M06 and the script will be on the lines of-
Go to a safe place for the tool change using G00 Z value X value
Extract the Grey code for Tnn the Tool number required
M62 2 1 …………turn on the turret rotate
Match the extracted Grey code to the inputs………….I have not got a first idea!
M62 2 0 when they are matched to lock against the ratchet.
G43 to load the tool offset values

Similar Threads: