Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: Cartierusm on February 11, 2017, 08:52:52 PM

Title: Help setting up functions for keyboard.
Post by: Cartierusm on February 11, 2017, 08:52:52 PM
I read most the stuff on here about keyboards, but what I'm trying to do doesn't seem to be explained. Unless I'm doing it wrong.

Basically, I just want to press, let's say, C on my keyboard have it cycle start. That's it.

How would I go about that?
Title: Re: Help setting up functions for keyboard.
Post by: DazTheGas on February 12, 2017, 02:32:16 AM
This should do the trick

http://www.machsupport.com/forum/index.php/topic,31585.0.html

DazThrGas
Title: Re: Help setting up functions for keyboard.
Post by: Cartierusm on February 12, 2017, 12:21:10 PM
Ok I'll try that. Where can I find the other codes for other functions?

I need:

Feed Hold
Cycle Start
Incremental Jog
Fast Jog
and then custom feed rates such as F.5 F2 F5 F10

Thanks.
Title: Re: Help setting up functions for keyboard.
Post by: Steve Stallings on February 12, 2017, 12:47:15 PM
If you have installed Mach4Hobby on your machine, even the demo, then
you will have a folder called DOCS inside your main Mach4Hobby folder. In
there you will find a file named Mach4CoreAPI.chm which is a Windows
help file. Just double click on the file name and it will open a help window.

Look in the section for API Reference by Category for the topic Operations.



Title: Re: Help setting up functions for keyboard.
Post by: Cartierusm on March 03, 2017, 12:20:32 PM
Ok so I'm now getting around to this. I see the code in Daz's post. Do I need to put 'end' at the end of each block of code I put in there? So for example

Code for cycle start, end
Code for feed hold, end.
Etc.  etc.
Title: Re: Help setting up functions for keyboard.
Post by: Cartierusm on March 03, 2017, 03:42:02 PM
Figured it out. Separate blocks of code for each instance.

Also noticed when clicking on the last part of the name such as, mcCntlCycleStart, a pop up dialog box will come up and you can select the function you need.