Dynamic tool messurment macro abort oftens at the same step

More
5 years 11 months ago #190018 by DanielSun
Hi together,

my name is Daniel and I have a problem with my gmoccapy.
At first I love gmoccapy :-)
All runs but I have a Problem with a macro.

The macro works great and is from Talla83.

With axis, it works.

With gmoccapy it sometimes (2 or 3 times) at this position.
G53 X#1801 Y#1802 (Taster Position)

It's the moment after the machine goes to toolchange position and i confirme the toolchange then comes the line
G53 X#1801 Y#1802 (Taster Position)
but then it stops there.
I inserted a G4 P0.01 for the line but it doesn't help.

Has somebody an Idea or can help me?
If necessary I can make a video of the problem.

I searched here in the forum and on google but i found nothing :-(

Thanks
Best wishes
Daniel
Code:
o<messen> sub #1700=153 (Wechsel X Position) #1701=-2071 (Wechsel Y Position) #1702=-30 (Wechsel Z Position) #1800=-90 (Position sicheres Z) #1801=77.25 (Position Taster X) #1802=-2504.81 (Position Taster Y) #1900=#<_coord_system> (NP merken nur G54 bis G59) o500 if [#<_current_tool> EQ #<_selected_tool>] ;(debug, Tool bereits in der Spindel) o500 else M5 G54 G90 G0 G53 Z#1702 (Wechsel Z Position) G53 X#1700 Y#1701 (Wechsel XY Position) M6 T#<_selected_tool> G4 P0.01 G53 X#1801 Y#1802 (Taster Position) G53 Z#1800 (Sichere Z Position) G43.1 Z0 (TLO reset) G91 G38.2 Z-60 F500 (messen grob) G1 Z1.0 F500 (frei fahren) G38.2 Z-10 F25 (messen fein) #2000=[#5063+#5223] (Tastpunkt+NP Verschiebung) #2001=[#2000-#2002+#2003](Neu - diff + alt) #2002=[#2000] (Tastpunkt alt merken) #2003=[#2001] (Offset alt merken) G1 Z5.0 F500 (frei fahren) G90 G0 G43.1 Z#2001 (TLO set) G53 Z#1800 (Sichere Z Position) G53 Z#1702 (Wechsel Z Position) ;(debug, Differenz ist: #2001) (NP wiederhestellen nur G54 bis G59) o100 if[#1900 EQ 540] G54 o100 endif o101 if[#1900 EQ 550] G55 o101 endif o102 if[#1900 EQ 560] G56 o102 endif o103 if[#1900 EQ 570] G57 o103 endif o104 if[#1900 EQ 580] G58 o104 endif o500 endif o<messen> endsub M2

Please Log in to join the conversation.

More
5 years 11 months ago #190295 by newbynobi
I do not think it is the G53 move, but one command earlier.

Could you please try to change M6 T#<_selected_tool> to be a two line command

T#<_selected_tool>
M6

And check the Hal pin for the tool change with Hal view?

Norbert

Please Log in to join the conversation.

More
5 years 11 months ago #190296 by Hakan
Can it be that the motion mode G0/G1 is forgotten at tool change M6?
Try with G53 G0 X#1801 Y#1802

Please Log in to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum