hurco post processor alteration g41 g43

hurco post processor alteration g41 g43

acuturn
Enthusiast Enthusiast
981 Views
5 Replies
Message 1 of 6

hurco post processor alteration g41 g43

acuturn
Enthusiast
Enthusiast

Anybody know how I can stop the generic hurco post from outputting a g43 and g41. I'm trying to eliminate the D and H  values so the machine takes its values from the tool setup effectively giving me 9999 offsets.

thanks people.

 

0 Likes
Accepted solutions (1)
982 Views
5 Replies
Replies (5)
Message 2 of 6

Captain-DJ
Collaborator
Collaborator

G43 is for tool length. I think it will be used...but my last modification was 2016 on an other CAM

G41 / G42 is tool compensation, you don´t need D and H parameter but the G41 G42 must be output in the gcode.

 

Only way that i know is to remove the D and H parameter on the postprozessor.

 

Message 3 of 6

Captain-DJ
Collaborator
Collaborator

I do a fast modification.

Hurco postprozessor with ISO output (not BNC)

 

O0093
(T21 D=8. CR=0. - ZMIN=-6.4 - Schaftfraser)
N1 G90 G17
N2 G21
N3 M59
N4 G0 M140
(2D-Kontur4 2)
N5 T21 M6
(SFRA 8P)
N6 S2586 M3
N7 G54
N8 M8
N9 G0 X65.1 Y5.8
N10 G43 Z51.   <-- no H here !
N11 Z6.
N12 G1 Z2. F555.
N13 Z-6.4
N14 G41 X64.3 Y9.8 F349.   <-- no D here !
N15 G3 X59.5 Y5. I0. J-4.8
N16 G1 Y-7.5
N17 G3 X70.5 I5.5 J0.
N18 G1 Y0.
N19 Y5.
N20 G3 X65.7 Y9.8 I-4.8 J0.
N21 G1 G40 X64.9 Y5.8
N22 G0 Z11.

This was the default post from Fusion, so i don´t know what is M59 or M140.

I think that´s all. Now the length and diameter from the tool table is used.

If this is ok, i can add the modified post here.

 

Message 4 of 6

acuturn
Enthusiast
Enthusiast

please go ahead and add the post, that would be greatly appreciated.

0 Likes
Message 5 of 6

Captain-DJ
Collaborator
Collaborator
Accepted solution

Ok, here is the pp.

If you want a look to the file, search about "DJ"

Here you see my modifications.  I always made an copy of the line and hide the line by adding //

 

Only here i block text directly:

if (!useMultiAxisFeatures || currentSection.isZOriented()) {
          writeBlock(
            gAbsIncModal.format(90),
            gMotionModal.format(0),
            gFormat.format(43), xOutput.format(initialPosition.x),
            yOutput.format(initialPosition.y),
            zOutput.format(initialPosition.z) //, hFormat.format(lengthOffset) DJ
          );

I don´t test multi axis ! So please be very carefull !

 

Test this post by your own risk ! i'm a doctor not an engineer 😉

 

Message 6 of 6

acuturn
Enthusiast
Enthusiast

job done, many thanks for your help

 

0 Likes