Bingo. Thank you. I've got it working, but I changed from "Enable 1" output to "Output 6". When I start Mach3, "Enable 1" begins active, and although I know I could use a start-up macro to turn "Enable 1" off by placing the start-up macro's name in the "Initialization String" textbox on the "General Config..." page, I decided to use the following code, and it works great:
Option Explicit
Dim Test As Boolean
Test = GetOEMLED (79)
If (Test = True) Then
DeActivateSignal(Output6)
Else
ActivateSignal(Output6)
End If
I need to work on my understanding of Mach3's functions, OEM codes, and user created stuff. Once I know those, my VB is pretty good, and I'll pick up on how to implement macros. I found the following to work exactly like the code above:
If GetOEMLED (79) Then
DeActivateSignal(Output6)
Else
ActivateSignal(Output6)
End If
It's interesting to me and seems a bit unorthodox to check the LED rather than the signal itself to see if the signal is active or not, but as long as it works, it's fine with me. I see that by activating the output, the LED turns on automatically. That is, I'm not required to activate the output and turn on the LED too.