I am trying to get a signal ON or OFF on an output pin on port #1 on a UC300ETH and I can't succeed.
I have configured under Mach3 the output1 signal as pin #16 on port #1 and when trying to put it ON or OFF via macro code:
- Code: Select all
ActivateSignal(OUTPUT1)
If IsActive(OUTPUT1) Then
MsgBox "OUTPUT #1 output is active"
End If
deactivatesignal(OUTPUT1)
If IsActive(OUTPUT1) Then
MsgBox "OUTPUT #1 output is not active"
End If
I never get the assumed 5V on the pin and I never get any message from the macro itself. However the LED is blinking red under the Mach3 Diagnostics (Alt-7) tab.
Any advice?
Many thanks