Hello Guest it is April 23, 2024, 05:36:12 AM

Author Topic: Implementation of physical buttons  (Read 3157 times)

0 Members and 1 Guest are viewing this topic.

Re: Implementation of physical buttons
« Reply #10 on: June 26, 2018, 03:00:19 PM »
Hi,
no.....you don't need to program how Mach is to jog.....it knows how to do that already.

The attached pic is the event properties of the X axis jog button. Thus if you have a button <X Jog> then it would simply call the stock actions.

In your case you wish to use an axis selector switch and an MPG. You will need to attach, albeit temporarily, an axis to your MPG:

Quote
LUA Syntax:
rc = mc.mcMpgSetAxis(
      number mInst,
      number mpg,
      number axis)

Where the axis ID is provided by reading the axis selector inputs.

The movement is given by:

Quote
LUA Syntax:
rc = mc.mcMpgMoveCounts(
      number mInst,
      number mpg,
      number deltaCounts)


Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'