Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: hoglibogli on October 08, 2018, 08:02:09 PM
-
Since this is my first post here, Hello to everyone.
As the title implies I would like to switch a relay using the ActivateSignal command.
I can switch the relay by clicking the active low button in the output tab. So the wiring seems to be ok.
So far I didn’t manage to switch the output by using the ActivateSignal command.
I setup Output #1 on Port 1 Pin 8
As far as I understood the code should be
ActivateSignal(OUTPUT1)
I put this in a M999 script and called it via MDI. The relay doesn’t move, but the Stepper Motors move a bit each time I call the M999.
What is going on here?
-
Solved: Turned out to be a week power supply on 12v.
Strange though that it worked in the Output Tab but not with the ActivateSignal command.
Anyway, with a separate power supply for the relay it works also with the script command now.
-
:)
Pleased you found the problem.