Skip to main content
1-Visitor
August 27, 2014
Solved

Adding G90 in post processor

  • August 27, 2014
  • 1 reply
  • 6389 views

Hello all, I am putting together a post processor and want to add a G90 whenever a workoffset is called. I assume it is a FIL routine. Any help would be greatly appreciated.

Thanks

Josh

Best answer by KenFarley

This little chunk of code from my post-processor is how I handle the offset being set in the CIM file:

CIMFIL/ ON, SET, OFSETL

OFSTYP = POSTF ( 6, 5 )

OFSREG = POSTF ( 7, 5 )

IF ( OFSTYP .EQ. 1 ) THEN

IF ( OFSREG.GE.54.AND.OFSREG.LE.59.AND.CURREG.NE.OFSREG ) THEN

CURREG = OFSREG

OFSCMD = TEXT/ 'G', CONVI, OFSREG, 2, '$'

INSERT/ OFSCMD

ENDIF

ENDIF

CIMFIL/ OFF

Perhaps you could use this to add your own additional commands? The available documentation on doing this stuff is rather lacking. It's like some sort of arcane language.

1 reply

14-Alexandrite
August 27, 2014

Taylor,

In your FIL file you may try something like this:

CIMFIL/ON,OFSETL

DMY=POSTF(20)

POSTN/OUT,7,90

DMY=POSTF(21)

DMY=POSTF(13)

CIMFIL/OFF

CIMFIL is the way to capture certain commands in the CL file. In this particular example OFSETL

DMY is the return value for each function. I thas no particular use in this example.

POSTF(20) store the current command

POSTN/OUT,7,90 - output the G90 code

POSTF(21) recalls the stared command and POSTF(13) execute the command.

The G-post and FIL manuals are located in the <load-point>\<Machine-type>\gpost directory:

... Creo 2.0\Common Files\M110\x86e_win64\gpost\V64_GPost_CD_Manual.pdf

... Creo 2.0\Common Files\M110\x86e_win64\gpost\V64_FIL_CD_Manual.pdf

Look at section 2.5.1 in the FIL manual for more details about the CIMFIL routines.

1-Visitor
August 27, 2014

I have been trying something similar (using INSERT instead of POSTN) but it seems to be ignored

G90inseert.JPG

14-Alexandrite
August 27, 2014

It looks like you are trying to output the G91 G28 Z0 and M1 before each tool change? Is this correct?