skip tool change if tools is already loaded

More
05 Feb 2020 19:49 #156603 by rogerxue
Hi Is there a simple way to add a check logic in M6?

e.g. if the tool in request is already loaded, don't move to predefined location for a tool change.

my current setup is a manual tool change with TOOL_CHANGE_POSITION = 1 3 0

it's annoying that the machine will still rapid to that location then rapid away if the tool is already loaded.

I know I can remap M6, but seems there's a lot of work and I might make a mistake. is there a simpler way? say I can find the default M6 file and add a couple of lines?
The following user(s) said Thank You: ikkuh

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

More
06 Feb 2020 07:10 #156614 by cmorley
Unfortunately. No there is currently no easier way.

Chris

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

More
06 Feb 2020 07:58 #156616 by bbsr_5a
If you dont start to Remap like you wish to act you hafe to stay at your behavior
and mistakes are not to be made if you do it a slow way
alot of Examples are around this Forum to start With
even a plain toolcchange.ngc can do it for you the way you like

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

More
11 Feb 2020 17:01 #157079 by rogerxue
I remapped M6. in the toolChange.ngc file, I have following:
======
o<toolchange> sub
(print, o<toolchange>)
; only execute this file if the requested tool is different tool in spindle
O100 IF [#<tool_in_spindle> NE #<selected_tool>]
(print, request tool different from loaded, start tc)
; debug code
G0 X5 Y5
O100 ENDIF
o<toolchange> endsub [1]
M2
=======

I noticed after this file is executed, the default M6 is still called. e.g. the machine will still move to the predefined location and pop a message to ask me to change tools. if the tool request is different from the tool loaded, it will move to x5y5 first then move to the predefined location and pop the message.

any idea why?

I have this line in ini file: REMAP=M6 modalgroup=6 prolog=change_prolog ngc=toolchange epilog=change_epilog

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

More
12 Feb 2020 14:48 #157179 by MaHa
The following, slightly modified works for my remap M6:

in INI:
[RS274NGC]
REMAP=M6  modalgroup=6 prolog=change_prolog ngc=change epilog=change_epilog
FEATURES = 12

comment
[EMCIO]
;TOOL_CHANGE_POSITION = 333 222 0

add stanza
[TOOLCHANGE]
TCH_X = 144
TCH_Y = 111
TCH_Z = 0

change.ngc
exclude specific Tool and T in spindle, G1 to change position
o<change> sub
o800 IF     [#<_task> EQ 0]
o800        RETURN [99]
o800 ENDIF
o141 IF     [[#<selected_tool> EQ 999] OR [#<selected_tool> EQ #<tool_in_spindle>]]
o141 RETURN [1]
o141 ENDIF
			#<F_TRAV> = 1200
			G0 G53 Z#<_ini[TOOLCHANGE]tch_z>
			G1 G53 X#<_ini[TOOLCHANGE]tch_x> Y#<_ini[TOOLCHANGE]tch_y> F#<F_TRAV>
o<change> endsub [1]
M2
The following user(s) said Thank You: ikkuh

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

More
18 Feb 2020 11:24 #157705 by ikkuh
Would be nice if this was standard in gmoccapy. Would save me a lot of time.

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

Time to create page: 0.109 seconds
Powered by Kunena Forum