team08
10-25-2008, 06:37 PM
I am having a problem setting the output in the following file:
'Put Tool in Holder #1
OPEN "C:\SbParts\TC\MONITOR.SBP" FOR OUTPUT AS #1
WRITE #1; "STATUS=BUSY"
CLOSE #1
VD,1,3,0,0,0,1,0,2.54,0,1,1,75,0,8800,4600,0
JS,8,4
MS,3,0.5
ST
SO,1,0
ST
J2,&PRESTAGE1X,&PRESTAGE1Y
JZ,&PUTOOLHEIGHT
PAUSE &DWELLPUTOOL
M2,&TOOL1X-&XADD,&TOOL1Y
SO,2,1
PAUSE .2
MZ,&ABOVEHEIGHT
SO,2,0
J2,&PRESTAGE1X,&PRESTAGE1Y
OPEN "C:\SbParts\TC\MONITOR.SBP" FOR OUTPUT AS #1
WRITE #1; "STATUS=DONE"
CLOSE #1
END
The line in particular is SO,2,1. If I type this command in the console manually, it turns on. I have tried messing with the pause time, and what comes before trying to turn on output 2, but no luck. I tried making this file:
SO,2,1
PAUSE 1
SO,2,0
and it works. I cannot seem to get the output to work in that file for the life of me! The machine pauses and then lifts in the Z axis and finishes the file, completely ignoring the part where it should set output 2. Any suggestions?
'Put Tool in Holder #1
OPEN "C:\SbParts\TC\MONITOR.SBP" FOR OUTPUT AS #1
WRITE #1; "STATUS=BUSY"
CLOSE #1
VD,1,3,0,0,0,1,0,2.54,0,1,1,75,0,8800,4600,0
JS,8,4
MS,3,0.5
ST
SO,1,0
ST
J2,&PRESTAGE1X,&PRESTAGE1Y
JZ,&PUTOOLHEIGHT
PAUSE &DWELLPUTOOL
M2,&TOOL1X-&XADD,&TOOL1Y
SO,2,1
PAUSE .2
MZ,&ABOVEHEIGHT
SO,2,0
J2,&PRESTAGE1X,&PRESTAGE1Y
OPEN "C:\SbParts\TC\MONITOR.SBP" FOR OUTPUT AS #1
WRITE #1; "STATUS=DONE"
CLOSE #1
END
The line in particular is SO,2,1. If I type this command in the console manually, it turns on. I have tried messing with the pause time, and what comes before trying to turn on output 2, but no luck. I tried making this file:
SO,2,1
PAUSE 1
SO,2,0
and it works. I cannot seem to get the output to work in that file for the life of me! The machine pauses and then lifts in the Z axis and finishes the file, completely ignoring the part where it should set output 2. Any suggestions?