Ok, now I am really frustrated! The GetOEMLED() function does not function. I can see on the Diag screen that
the Home led lights up so I put a led on my screen to probe the grinding wheel. I wrote a program to move the
wheel until the switch trips. The switch trips and the led illuminates but GetOEMLED(839) always returns a zero
or false. It does not matter where I use GetOEMLED() or how I use it - it is not working. This must be a bug
of some kind where Mach is not communicating with this function. GetOEMDRO() is working however. I have
tested printing GetOEMLED(389) in loops with variables substituted and defined as integers etc and never can
get anything but zero. The switch is set as Home A and the Diag screen Home A led is set to OEM 839. Everything
looks correct except the basic function not working. Any ideas? Is there a way to reinstall or reactivate basic?
My program is something like this and GetOEMLED(839) is always false even after the switch trips and the diag led
is on. It should go to true when the switch trips?
'output file opened to #1
Yval=.001
for i=1 to 100
code "G1 Y-" & Yval & "F1" 'moves toward switch at .001 increments
print #1, Yval, GetOEMLED(839) ' writes y position and led condition to file
Yval=Yval+.001
next i