Originally Posted by
RuckinFugger15
tell me if this works please
If your attempt is just a little fun....I suggest you go and play games elsewhere...say, the middle lane on the freeway
Code:
"%", e$
*progno$, e$
"(PROGRAM NAME - ", sprogname$, ")", e$
"(DATE=DD-MM-YY - ", date$, " TIME=HH:MM - ", time$, ")", e$
"(you really want all that in there ^^?)" e$ <--- this is your addition
pbld, n$, *smetric, e$
mayhew1......ignore the previous posters attachment.
normally for a single tool program, you load the tool ( into spindle ) before running the code. The machine is not continually checking / loading the same tool ( to save time )
but there can be reasons to ensure that the correct tool is loaded before running code
so find in the pst file and do the highlighted change ( one place only )
Code:
psof$ #Start of file for non-zero tool number
pcuttype
toolchng = one
if ntools$ = one,
[
#skip single tool outputs, stagetool must be on
#stagetool = m_one # comment placed to stop stagetool value being change to -1
!next_tool$
]
"%", e$
*progno$, e$
"(PROGRAM NAME - ", sprogname$, ")", e$
"(DATE=DD-MM-YY - ", date$, " TIME=HH:MM - ", time$, ")", e$
...
...
...
...
pcom_moveb
c_mmlt$ #Multiple tool subprogram call
ptoolcomment
comment$
pcan
if stagetool >= zero, pbld, n$, *t$, "M6", e$ # if stagetool is -1.... then this line is not executed
pindex
if mi1$ > one, absinc$ = zero