Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.
Hi. "proone" you can't add G54 in config.pro file. You can configure post processor an create custom .fil file where:
CIMFIL/ON,LOADTL
$$ Add offset number if not programmed
NBEL=POSTF(5)$$ Number of word
$$IF (NBEL.EQ.4) THEN
$$ Only the tool number has been programmed
$$ Add ADJUST, Offset number=tool
$$ DMY=POSTF(9,5,(ICODEF(ADJUST)))
$$ DMY=POSTF(10,6,(POSTF(7,4)))
$$ Increase number of word
$$ DMY=POSTF(12,6)
$$ENDIF
$$ Process record
$$DMY=POSTF(13) INSERT/'G54$'
INSERT/'G0Z100.$'
CIMFIL/OFF
This is only evample. Edited by: mme
I like the insert I could make the post print G54 but no X,Y,Z to go to.Thanks to you now I am going back to make changes. Here is my Macro tell me what you think
What I want to do is tool path will sent the machine to that CS to start from running so I don't have to do more than one the set up.So G54 is machine zero to position before you run the tool path
Thanks;
Chris
$$ MARCO TO OUTPUT A FIXTURE OFFSET
$$
$$ SET / OFSETL, n
$$ SET / OFSETL, OFF
$$
CIMFIL/ON,SET $$ CATCH THE COMMANDS
SETV=POSTF(7,4)&nb sp;&nb sp;$$ GET THE 4TH CL WORD
SETT=POSTF(6,4)&nb sp;&nb sp;$$ GET THE 4TH CL WORD TYPE
IF(SETT.EQ.0.AND.SETV.EQ.(ICODEF(OFSETL)))THEN
OFSVAL = POSTF(7,5)&n bsp;$$ GET THE OFFSET VALUE
OFTYP = POSTF(6,5)&n bsp;$$ GET THE WORD TYPE
IF(OFTYP.EQ.1)THEN
CASE/OFSVAL
WHEN/1,54
PREFUN/54&nb sp;&nb sp;$$ OUTPUT G54
WHEN/2,55
PREFUN/55&nb sp;&nb sp;$$ OUTPUT G55
WHEN/3,56
PREFUN/56&nb sp;&nb sp;$$ OUTPUT G56
WHEN/4,57
PREFUN/57&nb sp;&nb sp;$$ OUTPUT G57
WHEN/5,58
PREFUN/58&nb sp;&nb sp;$$ OUTPUT G58
WHEN/6,59
PREFUN/59&nb sp;&nb sp;$$ OUTPUT G59
WHEN/OTHERS
PREFUN/54&nb sp;&nb sp;$$ OUTPUT G54
ENDCAS
ELSE
IF(OFSVAL.EQ.(ICODEF(OFF)))THEN
SELECT/0&nbs p;&nbs p;&nbs p;$$ OUTPUT THE CANCEL
OFFSET
ELSE
PTC=POSTF(13)  ;  ;$$ EXECUTE THE CURRENT CL RECORD
ENDIF
ENDIF
ELSE
PTC=POSTF(13)  ;  ; $$ EXECUTE THE CURRENT CL RECORD
ENDIF
CIMFIL/OFF
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.