Skip to main content
1-Visitor
August 9, 2011
Question

tool length prep Code

  • August 9, 2011
  • 4 replies
  • 1286 views


Dear Pro MFG Gurus,



Novice to Gpost I am trying to develop the post for Mori Seiki 5 axis
machine. !!!

It is almost completed except for a few things.

For the tool length prep Code the acceptable value is G43.4 but the values
that Gpost accepts are integer numbers
and not ones with decimals.

So, can someone out there give me an idea ?



T.I.A



Georgios L.



Cnc programmer








This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

4 replies

1-Visitor
August 9, 2011
Hi George,

I think that the only way to do that is using FIL subroutine
I remember in the past, there was a way to develop a FIL subroutine which
finds and replaces
staff in the gcode. But it's been 7-8 years since that time i was dealing
with gpost.
Maybe someone here knows the way...

regards,

1-Visitor
August 9, 2011
I think the "REPLAC/" does the job...
someone more experienced to help??



2011/8/9 Nikos Kaminakis <->

> Hi George,
>
> I think that the only way to do that is using FIL subroutine
> I remember in the past, there was a way to develop a FIL subroutine which
> finds and replaces
> staff in the gcode. But it's been 7-8 years since that time i was dealing
> with gpost.
> Maybe someone here knows the way...
>
> regards,
>
>
12-Amethyst
August 9, 2011
Georgios,



Define the length compensation code in GPOST questionnaire as for
example 43 , i.e. G43, then add the following lines at the beginning of
your FIL macro file :



$$ Replace all occurrences of G43 by G43.4

T1=TEXT/'G43'

T2=TEXt/G43.4'

REPLAC/T1,T2





~ Francois


1-Visitor
August 9, 2011
Thank you Guys for your responses.

Especially I want to thank Mr. Lamy and Nikos Kaminakis who gave me helpful
tips.



The macro that actually worked is the following.



REPLAC/(TEXT/'G43'),(TEXT/'G43.4')



Thank you all,



Georgios Lambouras