Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: davidc on May 11, 2011, 09:42:14 AM
-
Hi,
Apologies if this is a dense question, but I'm new to Mach3!
I've got a PC/Relay board attached to my LPT port, which activates relays based on an output on pins 2-9 (turn on pin 9 & a coressponding relay is activated)
I've assigned Output#1 to port 1, pin 8, and toggling active low on/off activates the relay as I want it to.
Is there a way to attach this to a keyboard hotkey? So for example pressing F1 switches output 1 on/off?
Many thanks,
Dave.
-
Hi Dave,
Yes it's pretty easy to do.
As an example if the spindle control is configured to output#1 the the F5 key will toggle your relay on and off.
Easy enough to change this, just experiment a bit and you will get the hang of it.
Tweakie.
-
I think you are going to have to create a screen button to run the code to activate the ouput, then assign a hotkey to that button.
Just a thought, (;-) TP