Scott,
Just a couple of small corrections. Very good figuring it all out. The sleep times may be able to be shortened but if they are to short it will not work. Of course the buttons, leds, dros and the userlabels need to be in the screenset.
Load Button
If GetUserLED (1110) = 1 Then 'The I wanna use a dual Gcode LED I have a button that turns this on and off
DoOEMButton (216) ' Opens window to select file to 1st file to load - second file that will be cut
While IsLoading()
Wend
cutfile = (FileName())
SetUserLabel (2,cutfile) 'Sets second userlabel to file just opened
DoOEMButton (216) ' Opens window to select file to 2nd file to load - first file that will be cut
While IsLoading()
Wend
camerafile = (FileName())
SetUserLabel (1,camerafile) 'Sets first userlabel to file just opened
Else 'only opening the cut file This is so you can run normally
DoOEMButton (216)
While IsLoading()
Wend
cutfile = (FileName())
SetUserLabel (2,cutfile) 'Sets second userlabel to file just opened
camerafile = "None"
SetUserLabel (1,camerafile) 'Sets first userlabel to read None
End If
Run Button
If GetUserLED (1110) = 1 Then 'The I wanna use a dual Gcode LED I have a button that turns this on and off
If GetUserLED (1112) = 0 Then 'If I am not running the 2nd file LED
SetUserLED (1111,1) 'I am running the 1st file LED
camerafile = GetUserLabel(1) 'file name from load code
LoadFile (camerafile) 'load the camera file
While IsLoading()
Wend
Sleep (1000)
DoButton (0) 'Cycle Start
While IsMoving()
Sleep (2000)
Wend
Sleep (5000)
SetUserLED (1111,0) '1st file finished LED off
SetUserLED (1112,1) '2nd file to run LED
Sleep (100)
End If
If GetUserLED (1112) = 1 Then 'if run 2nd file LED is on
cutfile = GetUserLabel(2) 'file name from load code
LoadFile (cutfile) 'load 2nd file cut file
While IsLoading()
Wend
Sleep (1000)
DoButton (0) 'Cycle Start
While IsMoving()
Sleep (2000)
Wend
Sleep (5000)
SetUserLED (1112,0) '2nd file done turn off LED
Sleep (100)
End If
Else
SetUserLED (1112,1) 'only running the cut file This is so you can run normally
Sleep (1000)
DoButton (0) 'Cycle Start
While IsMoving()
Sleep (2000)
Wend
Sleep (5000)
SetUserLED (1112,0) 'done running the cut file
End If