Hello Guest it is November 22, 2019, 07:46:50 AM

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

0 Members and 1 Guest are viewing this topic.

Outputs activated by hotkey?
« 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.

Online Tweakie.CNC

*
  • *
  •  8,009 8,009
  • 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.

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.

Offline BR549

*
  •  6,916 6,916
    • 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