Hello Guest it is April 16, 2024, 01:10:09 AM

Author Topic: Outputs activated by hotkey?  (Read 2536 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.

Offline Tweakie.CNC

*
  • *
  •  9,195 9,195
  • Super Kitty
    • View Profile
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.
PEACE

Offline BR549

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