How to make a tool changer move to home
I have the tool changer working fine it's on a small Boxford lathe. Rotary changer without sensors.
So it moves with M6T1 etc. but I need the M6 routine to move to a safe area in X and Z before the turret rotates to the next tool and then moves back to the working position.
How do I achieve this ?
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
- Posts: 18563
- Thank you received: 6219
Please Log in or Create an account to join the conversation.
Here's the EMCIO section notes that you will want to refer to:
linuxcnc.org/docs/2.6/html/config/ini_co...ml#sub:EMCIO-Section
Specifically this part:
"TOOL_CHANGE_POSITION = 0 0 2 - Specifies the XYZ location to move to when performing a tool change if three digits are used. Specifies the XYZABC location when 6 digits are used. Specifies the XYZABCUVW location when 9 digits are used. Tool Changes can be combined. For example if you combine the quill up with change position you can move the Z first then the X and Y."
So in your machine.ini file, you will want to add to it:
"TOOL_CHANGE_POSITION = 0 0 0"
Assuming of course that 0, 0, 0 is your home position.
Save the file and reload LinuxCNC, you should be good to go.
John
Please Log in or Create an account to join the conversation.
When you issue a tool change command, there is an implied move command that goes along with it. You just have to set it up.
Here's the EMCIO section notes that you will want to refer to:
linuxcnc.org/docs/2.6/html/config/ini_co...ml#sub:EMCIO-Section
So in your machine.ini file, you will want to add to it:
"TOOL_CHANGE_POSITION = 0 0 0"
Assuming of course that 0, 0, 0 is your home position.
John
John. Thanks for the help I am i fitting home switches to the lathe.
I have tried TOOL_CHANGE_POSITION = 0 0 0 in the ini file and yes it goes to the home position but it does X and Z together
Then I put TOOL_CHANGE_QUILL_UP = 1 in the ini that does Z first and then X
I need to do X first then Z How is this done.?
Please Log in or Create an account to join the conversation.
I have tried TOOL_CHANGE_POSITION = 0 0 0 in the ini file and yes it goes to the home position but it does X and Z together
Then I put TOOL_CHANGE_QUILL_UP = 1 in the ini that does Z first and then X
I need to do X first then Z How is this done.?
Is it possible to change the code in TOOL_CHANGE_QUILL_UP = 1) to make it move the X before the Z
If so where does the magic happen?
Please Log in or Create an account to join the conversation.
I have tried TOOL_CHANGE_POSITION = 0 0 0 in the ini file and yes it goes to the home position but it does X and Z together
Then I put TOOL_CHANGE_QUILL_UP = 1 in the ini that does Z first and then X
I need to do X first then Z How is this done.?
Is it possible to change the code in TOOL_CHANGE_QUILL_UP = 1) to make it move the X before the Z
If so where does the magic happen?
Do it in your remap.
Please Log in or Create an account to join the conversation.
I have the tool changer working but need to retract it to a safe place using the X retract first then Z
Please Log in or Create an account to join the conversation.
I am a complete novice with remap so I don't know where to even look.
I have the tool changer working but need to retract it to a safe place using the X retract first then Z
Tool_Change_quill_up and Toolchange_position wiull move the Z up then move to XYZ location you stipulate.
If this is not what you want then you will probably need to work on your remapping.
What do you have working now? upload your hal, ini and ngc files. Otherwise no one will be able to help.
Please Log in or Create an account to join the conversation.
So remap of M6 is going to be the next adventure.
Please Log in or Create an account to join the conversation.
linuxcnc.org/docs/html/remap/remap.html#...s_including_tt_m6_tt
Seems to me you would need to add this to your INI
REMAP=M6 modalgroup=6 ngc=mychange
Then create a file in your remap folder called mychange.ngc and put this inside:
o<mychange> sub
G53 G0 X0
M66E0L0
G0 Z0
M6 (use built in M6 behavior)
o<mychange> endsub
m2
Something of a crude first idea (I'm tired). But the point is that you might not need to remap the whole toolchange procedure since your tool changer is already working. All you need is to do the moves before it and it looks like there is a nice shortcut for you by being able to call M6 from within its own remap.
By the way: I suggested "M66E0L0" between the moves so the two motions don't get blended.
Please Log in or Create an account to join the conversation.