(Inside of a macro)...
value1 = GetuserDRO(1005) 'Tube Dia scale
value2 = GetuserDRO(1000) 'Tube length
value3 = GetuserDRO(1001) 'Tube length
value4 = GetuserDRO(1003) 'Start Cope angle file
value5 = GetuserDRO(1004) 'End Cope file
Code "G51 Y"&value1
If value4 = 90 Then
LoadRun ("D:\Mach3\Gcode\90.NCF")
ElseIF value4 = 60 Then
Print 60
ElseIF value4 = 45 Then
Print 45
ElseIF value4 = 30 Then
Print 30
ElseIf value4 = 20 Then
Print 20
ElseIf value4 = 15 Then
Print 15
End If
Not sure WHY? I can run the program no problem. I've tried loading the file, that works. But DoOEMButton(0) didn't work.
RunFile didn't work.