I am looking for some help to configure a macro.
I need to display the tool time after each sequence and also what tool is being used.
I am totally new to this and have absolutely no idea what I should be doing. I have so far managed to insert some code to request a user name after the program number. This displays ok in the tape file.
Does this code look ok to display the tool name? I found it online.
CIMFIL/ON,PPRINT
TXT=TEXT/CLW
TEST=TEXT/'TOOL NAME'
OKCOM=INDXF(TXT,TEST)
IF (OKCOM.NE.0) THEN
MESS=TEXT/OMIT,TXT,1
COL=TEXT/':'
COLPOS=INDXF(MESS,COL)
LEN=CANF(MESS,1)
NMESS=TEXT/RANGE,MESS,COLPOS+1,LEN
ELSE
DMY=POSTF(13)
ENDIF
CIMFIL/OFF
And this to display the cycle times:
CIMFIL/ON,LOADTL
RSLT=POSTF(20)
TIME=TEXT/POSTF(1,3,0498)
INSERT/'(TOOL CYCLE TIME=',TIME,')',EOB
RSLT=POSTF(21)
RSLT=POSTF(13)
CIMFIL/OFF
I am using Pro E Gpost.
Totally out my depth, any help would be welcome.