Hello Guest it is July 12, 2020, 07:44:01 PM

Author Topic: Outputs activated by hotkey?  (Read 1867 times)

0 Members and 1 Guest are viewing this topic.

Outputs activated by hotkey?
« on: May 11, 2011, 09:42:14 AM »

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,

Offline Tweakie.CNC

  • *
  •  8,356 8,356
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Outputs activated by hotkey?
« Reply #1 on: May 11, 2011, 11:53:43 AM »
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.


Offline BR549

  •  6,932 6,932
    • View Profile
Re: Outputs activated by hotkey?
« Reply #2 on: May 11, 2011, 11:38:04 PM »
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