Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started 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?
-
This should do the trick
http://www.machsupport.com/forum/index.php/topic,31585.0.html
DazThrGas
-
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.
-
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.
-
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.
-
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.