Hello Guest it is April 18, 2024, 09:05:45 PM

Author Topic: G41 is reloaded after starting G-code.  (Read 786 times)

0 Members and 1 Guest are viewing this topic.

G41 is reloaded after starting G-code.
« on: June 03, 2019, 06:55:39 PM »
Hi you all!
Hope someone can help me!

Just got me an Emco VMC-100 and have upgraded this with new electronics, pokeys57cnc controller and ofcourse mach4.

But I encounter a strange problem. If I write "G40" in the MDI and run this line, the G41 disapears.
But if I run a G-code  with toolchange, it suddenly comes back to G41. (it stops when "G43 Z15. H10")

This is frustrating because the program then stops because of G28/G30.

What I use is SolidWorks with HSMworks U., Mach 4 postprosessor.

Code used:
Code: [Select]
(1_SOFT_JAWS_FOR SETTER)
(T3  D=4. CR=0. - ZMIN=-5. - FLAT END MILL)
(T10  D=6. CR=0. TAPER=118DEG - ZMIN=-11.813 - DRILL)
G90 G94 G91.1 G40 G49 G17
G21 G40
G28 G91 Z0.
G90

(DRILL1)
M5
T10 M6
S2500 M3
G54
G0 X50.2 Y-11.4
G43 Z15. H10
Z5.
G98 G81 X50.2 Y-11.4 Z-11.813 R0. F250.
X10.2
G80
Z15.
G28 G91 Z0.
G90

(2D POCKET1)
M5
M1
T3 M6
S2500 M3
G54
G0 X11.025 Y-11.78
G43 Z15. H3
Z5.
G1 Z0.2 F350.
X11.044 Y-11.763 Z0.102 F333.
X11.091 Y-11.711 Z0.029


I've tried changing the values in configuration -initialization values(only use G40)
changed the modal values in the screen editor...

So why is it returning to G41 after my toolchange?

I've added my M6.mcs-file

Sorry for my bad english :-[

hanfre
Re: G41 is reloaded after starting G-code.
« Reply #1 on: June 07, 2019, 04:16:50 PM »
made a quick fix...
Think it happens in my tool change macro/script(don't know why), but I put in G40 under each tool change and then voila, it worked!

HanFre