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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

How to redefine tool change in g-post

divanov
1-Visitor

How to redefine tool change in g-post

Please help me to redefine tool change sequence using g-post.

My machine needs tool change sequence as follows.

T1M12 (load T1 from spindel to tool changer assembly )

T2M18 (load T2 to spindel )

M15

I can manage with t2m18 and m15, but I can not get a tool number to load from spindel to tool changer from the CL-data.

Excuse my poor English


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.
ACCEPTED SOLUTION

Accepted Solutions
KenFarley
21-Topaz I
(To:divanov)

If I understand correctly, you need to get the "last tool" number to put with the M12 code. To get this kind of information you need to use the POSTF function.

The last tool and current tool numbers are stored as double values. To get them you make a call like the following:

LASTTL = POSTF ( 1, 3, 0496 ) $$ Get the last tool

CURRTL = POSTF ( 1, 3, 0497 ) $$ Get the current tool

I don't know which you will need. It depends on whether the postprocessor has already updated these values when it got the tool change you are handling. You can try it out and see.

Also, you'll probably need to have some sort of check for the case where you are changing tools for the first time and there is thus no tool to put back into the tool changer assembly?

View solution in original post

5 REPLIES 5
KenFarley
21-Topaz I
(To:divanov)

If I understand correctly, you need to get the "last tool" number to put with the M12 code. To get this kind of information you need to use the POSTF function.

The last tool and current tool numbers are stored as double values. To get them you make a call like the following:

LASTTL = POSTF ( 1, 3, 0496 ) $$ Get the last tool

CURRTL = POSTF ( 1, 3, 0497 ) $$ Get the current tool

I don't know which you will need. It depends on whether the postprocessor has already updated these values when it got the tool change you are handling. You can try it out and see.

Also, you'll probably need to have some sort of check for the case where you are changing tools for the first time and there is thus no tool to put back into the tool changer assembly?

That is exactly what I need. Thanks a lot.

Maybe you tell me how to get a fixture ottset number and insert some codes before and after it.

dm-3
12-Amethyst
(To:KenFarley)

Hi,

Can you guide me editing FIL? I am new to using FIL Editor and trying to extract tool comments rfom .ncl file.

--

Dhinesh

KenFarley
21-Topaz I
(To:dm-3)

I asked this question in the past and ended up figuring out the answer myself. Here's a link to the discussion.

http://communities.ptc.com/message/194236#194236

dm-3
12-Amethyst
(To:KenFarley)

Kenneth, of late I landed automatically at the link provided as I am cluelessly searching for result for my problem. That's actually a good job.

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags