Hello Guest it is April 23, 2024, 04:39:04 PM

Author Topic: Jogging/Pendant Interface-What is the best way? Ramblings  (Read 39802 times)

0 Members and 1 Guest are viewing this topic.

Offline TimGS

*
  •  108 108
    • View Profile
Jogging/Pendant Interface-What is the best way? Ramblings
« on: May 13, 2015, 10:23:19 AM »
What is the best way to interface with the jogging features of Mach4?
What is the plan going forward?
The jogging tab on the Mach4 screen looks like it has all of the features just not the facilities to easily tie in external control.
Options:
Make a Lua Panel (Similar to the Joystick Project)
   Positives:
     User modifiable
     Can use images for switches and controls
   Negatives:
     The current jogging tab will be out of sync with the new display
Make a plugin
     Same as previous
How do I keep the current Jogging Display in Sync?

Just trying to implement this in a way that is usable by anyone...
...also trying understand the programing paradigm
« Last Edit: May 13, 2015, 10:36:45 AM by TimGS »

Offline TimGS

*
  •  108 108
    • View Profile
Re: Jogging/Pendant Interface-What is the best way? Ramblings
« Reply #1 on: May 13, 2015, 12:52:13 PM »
Simple Jog test panel...

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Jogging/Pendant Interface-What is the best way? Ramblings
« Reply #2 on: May 13, 2015, 07:20:02 PM »
you can tye them to inputs, there is a lot of ways to do it via a pluging, lua, modbus. search through google there is some good lua stuff out there its just hard to find the correct stuff.

poppabear would be the person to talk to about it

Offline TimGS

*
  •  108 108
    • View Profile
Re: Jogging/Pendant Interface-What is the best way? Ramblings
« Reply #3 on: May 14, 2015, 10:33:28 AM »
Thank You.  I have been in touch with him.  I was really hoping the Brian B. would chime in and provide some programmatic insight.  I can make it work.  The question is how best to hook it up (HW and SW)?  Do you need a plug in or macro to calculate the correct movements based upon a momentary switch input or MPG input.  There is a jog feature built into the MACH 4 display.  Shouldn't there be an easy way to connect electrical inputs to the basic functions of the Jogging Tab? 

I will draw some pictures later to explain what I am trying to do. (Hardware wise and Software wise) 

The toughest part about this hobby is finding time....between the girlfriend  ::)....my house...oh...and work too :o

I just want some "me" time to play with my cnc toys   :'( 
...awe who needs sleep  ;D

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: Jogging/Pendant Interface-What is the best way? Ramblings
« Reply #4 on: May 15, 2015, 02:19:49 AM »
Strip down an old usb keyboard, theres plenty of vids on utube on how to do this, then use the keyboard plugin in mach4 to configure. on the stripped down one include the shift lock key to act as an on and off key.

Another way is to use an arduino as an interface between the keys you have and the computer, the arduino has a keyboard library.

I feel a quick video coming on......

DazTheGas
New For 2022 - Instagram: dazthegas

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Jogging/Pendant Interface-What is the best way? Ramblings
« Reply #5 on: May 15, 2015, 03:08:12 AM »
daz you could use a num pad with M3 as a pendent using key grabber to set what key does what played with it years ago on a keyboard with a num pad.

since you can use the keyboard plugin and tye it to any input or output it should work as a pendent as well.

you may well be able to do it with a Arduino Leonardo as well through modbus or a plugin

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: Jogging/Pendant Interface-What is the best way? Ramblings
« Reply #6 on: May 15, 2015, 03:19:51 AM »
on the external case i am building ive got a touchscreen connected to a leonardo which is connected to usb as a keyboard, anything i can put on screen can be programmed through the keyboard plugin to work.

DazTheGas
New For 2022 - Instagram: dazthegas

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Jogging/Pendant Interface-What is the best way? Ramblings
« Reply #7 on: May 15, 2015, 03:34:25 AM »
are you going to shear your hard work it would be cool if you did, if you did not that's understandable lua is hard work.

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: Jogging/Pendant Interface-What is the best way? Ramblings
« Reply #8 on: May 15, 2015, 07:32:34 AM »
i can share everything apart from me chocky buscuits.

I`ll put a very short vid together of it working and how.

DazTheGas
New For 2022 - Instagram: dazthegas

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Jogging/Pendant Interface-What is the best way? Ramblings
« Reply #9 on: May 15, 2015, 07:40:45 AM »
thanks man its going to be a big help to everyone your the man