Adding G90 in post processor
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
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
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.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.