-
Registered
post processor
I am setting up a post processor for an Anilam
NC lathe using pro e.
How can I edit the Post processor to output extra
code when a tool change is required?
-
-
Registered
Use the Option File Generator to open the Post (Uncl.Pxx which you used ) and write FIL
For your ref...
CIMFIL/TURRET,ON
Rslt=postf(20)
TNUM=POSTF(7,4) $$ Tool Number
OSET=POSTF(7,5) $$ Tool Offset
Zgage=POSTF(7,6) $$ Z gage length
Xgage=POSTF(7,7) $$ X gage length
TURsid=POSTF(7,8) $$ Front or Rear Turret
CALNUM=(TNUM*100)+oset
CASE/XMODE
WHEN/1
IF(TVAL.EQ.1)THEN
AUXFUN/9
AUXFUN/5
AUXFUN/1
ENDIF
RSLT=POSTF(21)
CASE/TURSID
WHEN/ICODEF(FRONT)
TURID=1
WHEN/ICODEF(REAR)
TURID=0
ENDCAS
AUXFUN/9
AUXFUN/5
AUXFUN/1
INSERT/'M69','$'
INSERT/'G40G98','$'
POSTN/IN,T,CALNUM
Tval=1
WHEN/2
RSLT=POSTF(21)
AUXFUN/9
AUXFUN/5
AUXFUN/1
INSERT/'M69','$'
INSERT/'G40G98','$'
POSTN/IN,T,CALNUM
POSTN/IN,G,28,H,0
WHEN/3
RSLT=POSTF(21)
AUXFUN/9
AUXFUN/5
AUXFUN/1
INSERT/'M69','$'
INSERT/'G40G98','$'
POSTN/IN,T,CALNUM
POSTN/IN,G,28,H,0
ENDCAS
CIMFIL/OFF
Posting Permissions