How to make a tool changer move to home

More
06 Nov 2020 22:50 - 18 Dec 2020 17:07 #188551 by Clive S
Ok this is my first time playing with a tool changer.

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 ?
Last edit: 18 Dec 2020 17:07 by Clive S.

Please Log in or Create an account to join the conversation.

More
06 Nov 2020 23:01 #188552 by tommylight
The following user(s) said Thank You: Clive S

Please Log in or Create an account to join the conversation.

More
07 Nov 2020 01:49 #188561 by rootboy
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

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
The following user(s) said Thank You: Clive S

Please Log in or Create an account to join the conversation.

More
07 Nov 2020 17:42 #188598 by Clive S

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.

More
09 Nov 2020 16:12 #188760 by Clive S

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.

More
09 Nov 2020 16:28 #188762 by bevins

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.

More
09 Nov 2020 16:53 #188766 by Clive S
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

Please Log in or Create an account to join the conversation.

More
09 Nov 2020 18:55 #188779 by bevins

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.
The following user(s) said Thank You: Clive S

Please Log in or Create an account to join the conversation.

More
09 Nov 2020 19:10 #188781 by Aciera
Clive!
So remap of M6 is going to be the next adventure.
The following user(s) said Thank You: Clive S

Please Log in or Create an account to join the conversation.

More
09 Nov 2020 19:40 - 09 Nov 2020 19:42 #188785 by Aciera
Have a look at this:

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.
Last edit: 09 Nov 2020 19:42 by Aciera.
The following user(s) said Thank You: Clive S

Please Log in or Create an account to join the conversation.

Time to create page: 0.180 seconds
Powered by Kunena Forum