Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 09:47:12 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  Outputs activated by hotkey?
Pages: 1   Go Down
Print
Author Topic: Outputs activated by hotkey?  (Read 212 times)
0 Members and 2 Guests are viewing this topic.
davidc
Active Member

Offline Offline

Posts: 5


View Profile
« on: May 11, 2011, 08: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.
Logged
Tweakie.CNC
Active Member

Offline Offline

Posts: 3,263


Super Kitty.


View Profile WWW
« Reply #1 on: May 11, 2011, 10: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.


* 11-05-2011 16-50-33.jpg (132.52 KB, 908x503 - viewed 41 times.)
Logged

Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
BR549
Active Member

Offline Offline

Posts: 2,557


View Profile
« Reply #2 on: May 11, 2011, 10: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
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!