- Posts: 44
- Thank you received: 0
skip tool change if tools is already loaded
6 years 8 months ago #156603
by rogerxue
skip tool change if tools is already loaded was created 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?
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?
Please Log in to join the conversation.
6 years 8 months ago #156614
by cmorley
Replied by cmorley on topic skip tool change if tools is already loaded
Unfortunately. No there is currently no easier way.
Chris
Chris
Please Log in to join the conversation.
6 years 8 months ago #156616
by bbsr_5a
Replied by bbsr_5a on topic skip tool change if tools is already loaded
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
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 to join the conversation.
6 years 8 months ago #157079
by rogerxue
Replied by rogerxue on topic skip tool change if tools is already loaded
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
======
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 to join the conversation.
6 years 8 months ago #157179
by MaHa
Replied by MaHa on topic skip tool change if tools is already loaded
The following, slightly modified works for my remap M6:
in INI:
comment
add stanza
change.ngc
exclude specific Tool and T in spindle, G1 to change position
in INI:
Code:
[RS274NGC]
REMAP=M6 modalgroup=6 prolog=change_prolog ngc=change epilog=change_epilog
FEATURES = 12
comment
Code:
[EMCIO]
;TOOL_CHANGE_POSITION = 333 222 0
add stanza
Code:
[TOOLCHANGE]
TCH_X = 144
TCH_Y = 111
TCH_Z = 0
change.ngc
exclude specific Tool and T in spindle, G1 to change position
Code:
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
Please Log in to join the conversation.
Time to create page: 0.506 seconds
