Hello Guest it is March 28, 2024, 05:22:28 AM

Author Topic: Help setting up functions for keyboard.  (Read 1902 times)

0 Members and 1 Guest are viewing this topic.

Help setting up functions for keyboard.
« 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?

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: Help setting up functions for keyboard.
« Reply #1 on: February 12, 2017, 02:32:16 AM »
New For 2022 - Instagram: dazthegas
Re: Help setting up functions for keyboard.
« Reply #2 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.
Re: Help setting up functions for keyboard.
« Reply #3 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.



Steve Stallings
www.PMDX.com
Re: Help setting up functions for keyboard.
« Reply #4 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.
Re: Help setting up functions for keyboard.
« Reply #5 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.