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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Post- processor header

dm-3
12-Amethyst

Post- processor header

Hi,

I have some basic queries regarding headers in post-processors.

I'm now customizing p20 gpost Makino FANUC 16M. I want the program to start without "%".

Also I want to print program number and time stamp but doesn't want to execute it.

Current out put from p20

%

(Date:05/28/15 Time:16:18:00)

G98G80G90G49G17

( / CAVITY_ELT_1)

Need to change to below format

;(Date:05/28/15 Time:16:18:00)

;( / CAVITY_ELT_1)

I tried and eliminated G98G80G90G49G17. Help me with your suggestions.

--

Dhinesh


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.
6 REPLIES 6
joshuataylor
12-Amethyst
(To:dm-3)

Select the Applications tab-> NC Post Proc-> open you post's option file -> start/end of prog->General

In the output section make sure "Rewind STOP code at beginning of NC code" is not checked. These options can be altered by the FIL file so if this doesn't work you may want to look there.

Josh

dm-3
12-Amethyst
(To:joshuataylor)

Josh,

That was helpful in removing "%". Is there any option to add ";"

--

Dhinesh

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

I've never had all that much success with the parameters. I tend to do this kind of thing by editing the FIL code. For your situation, it would seem that the file you need to modify is "uncx01.f20". You'll need to take a look at the MACHIN and PARTNO sections and reformat the output lines to add the things you want.

For your situation, it might be as simple as adding a

INSERT/ ';'

line right before each of the lines that outputs your current date/time and part number data.

dm-3
12-Amethyst
(To:KenFarley)

Ken,

I tried adding INSERT as you suggested for part number data. I'm unable to find lines in FIL for date/time.

I get part name in two broken lines as below. Help in resolving this. I'm very new to FIL editing.

(Date:06/01/15 Time:13:49:15)

G71

;                                                                 ( / CA

VITY_ELT_1)

T6M6

S7700M3

Also getting additional G71 & T6M6 codes.

--

Dhinesh

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

I don't know why you are getting "G71", it is probably some other setting, maybe in the config options.

The "T6M6" is a tool change. Presumably you are using "Tool 6" and it's changing to it. Can't understand how you see this as  a problem.

To format the "part number" and date/time stuff, you might try something like this:

CIMFIL/ON, PARTNO

RESULT = POSTF(13)

PN = TEXT/CLW

INSERT/ ';(', PN, ')$'

CIMFIL/OFF

CIMFIL/ON, MACHIN

RESULT = POSTF(13)

TXTLIN = TEXT/ ';(', TIMES, ')$'

INSERT/ TXTLIN

CIMFIL/OFF

This assumes you don't want to do anything else in when the post-processor encounters the part number specification (PARTNO), or the beginning of the program (MACHIN). You might already have some sort of text being output there. Usually things like machine initialization commands, etc.

If you are going to try to do this kind of stuff, you're really going to need to look up the meanings of the commands and understand what is going on in the process. It's kind of confusing and can have horrible consequences if you miss something. Search engines are your friends when you are trying to figure this out.

gkoch
12-Amethyst
(To:dm-3)

I assume you got rid of G98G80G90G49G17 by editing Start/End of Program > Start Prog.

Maybe you can try to change Control-Out Alias to add the semicolons:

control_out_gpost.jpg
But be aware this will add semicolon before every operator message!

Announcements


Top Tags