by tracar » Wed Dec 04, 2019 4:39 am
its close but missing something,
it should be closer to this:
********************************
cutting project with tool #1 from slot 1.
M6T2 is called in the code.
remember current tool and position.
raise Z to 15 and stop spindle at same time. // safe z is 15 (machine coordinates)
then move directly to tool 1 slot 1 preload area = (X55,Y0,z15) // tool 1 slot 1 preload area.
lower to z5 = (X55,Y0,Z5) //step before sliding iso30 to the right into the clip slot 1.
check spindle speed wait for zero speed = 0
move x to the right (X60,Y0,Z5) //places iso30 tool 1 into slot 1.
chuck open // chuck is open.
move z up (X60,Y0,Z10) //lifts away from iso30 in slot 1.
move to slot 2 = (X60,Y5,Z10) // moves to slot 2, tool 2.
lowers on the iso30 tool 2 slot 2 = (X60,Y5,Z5)
chuck closes //chuck is closed.
moves to the left 5 = (X55,Y5,Z5) // removes iso30 tool 2 from slot 2.
raises Z to 15 = (X55,Y5,Z15)
returns to cutting.
all tool change cooordinates are in ( machine coordinates )
all tools are at x60.
all tool preload areas are X55,Z5
all tools are 5 apart on y > y5 y10 y15...
all tool preload area is 5 left of all tools on y axis. ( X55,Y10,Z5 IS tool 2 preload )
all tools pickup and release are at Z5.
all chuck open and cloaed are at Z5
all tool to tool travel is at Z10.
z safe travel just set to 15
i can change the park2 button to a "tool dump" button
If a power failure happens,or just restarted uccnc, i can press it and it homes all, then unloads the tool to a special "dump" clip before a .nc is loaded leaving the spindle empty.
i can then manually remove the tool from the dump clip and place it in the proper slot..
i need to check if there is a sensor in the spindle to check if a tool is loaded.....