cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

tool length prep Code

GeorgiosLaboura
1-Newbie

tool length prep Code



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 4

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,

-nk/.

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,
>
>
-nk/.

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


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



Announcements


Top Tags