Hello Guest it is March 28, 2024, 06:21:49 AM

Author Topic: Screen Set Ideas  (Read 183719 times)

0 Members and 1 Guest are viewing this topic.

Re: Screen Set Ideas
« Reply #170 on: November 13, 2014, 09:36:48 PM »
not much other than mach4 does not support encoders other than use the signals from a MPG dial and Art called them encoders in Darwin.
Re: Screen Set Ideas
« Reply #171 on: November 14, 2014, 12:08:28 PM »
Ya-Nvr-No,

How do you configure the MPGs?

Peter
Re: Screen Set Ideas
« Reply #172 on: November 14, 2014, 01:05:08 PM »
I did them with function calls, I just pass the data from the button to a common function.

but this is basically what you need to set

    joginc = mc.mcJogGetInc(inst,0); -- get the present increment

    mc.mcMpgSetAxis(inst, encoderid, axisid); --mpg encoder , axis ;  encoder 0, X axis 0
    mc.mcMpgSetAccel(inst, encoderid, 15); -- 15%
    mc.mcMpgSetRate(inst, encoderid, 100); --100
    mc.mcMpgSetCountsPerDetent(inst, encoderid, 1); --one click give one incremental step
    mc.mcMpgSetInc(inst, encoderid, joginc); -- pass the increments from the MPG encoder steps
Re: Screen Set Ideas
« Reply #173 on: November 14, 2014, 04:18:19 PM »
Where are these function calls listed/documented?

Peter
Re: Screen Set Ideas
« Reply #174 on: November 14, 2014, 05:56:28 PM »
If you start typing mc.mcMpg you get a whole list of functions to choose from on a drop down list. All started from some scatted files created and shared. I spent hours copying and pasting what popped up when I started the wx.wx list. And then LOTs & LOTs of trial & error to start to grasp how to use Lua. There is scattered tidbits of info all over the mach4 forum section. And my understanding is they are working on a reference doc.

http://www.machsupport.com/forum/index.php/topic,27141.0.html
Re: Screen Set Ideas
« Reply #175 on: November 14, 2014, 07:59:25 PM »
Ya-Nvr-No,

Thanks for the drop down hint, that'll help tremendously.  How did you get the argument lists?  None of these are in the reference doc that I can find.
I fully expect that learning how to write scripts for Mach 4 is either going to keep me out of the bars or in them.  I've learned a few programming languages this way and greatly appreciate any help in getting started.  Just getting to the point of writing and executing the first script can be intense.  A "Hello World" example for Mach 4 might help a lot of people get started.

Peter
Re: Screen Set Ideas
« Reply #176 on: November 14, 2014, 09:13:13 PM »
Brian had provided a wizzard to use the mouse scroll wheel as a MPG so I picked up a lot in that example, sorry not sure where its at as I did a search but cant find it.
Re: Screen Set Ideas
« Reply #177 on: November 14, 2014, 09:59:53 PM »
Ah hah, a mouse wheel.  That explains a lot to me!  Well, Mach 4 won't be soup until long after MPG support is incorporated.

Maybe I should spend my time trying to fix the homing routine instead.

Thanks for your help.

Peter

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Screen Set Ideas
« Reply #178 on: November 14, 2014, 10:32:24 PM »
Found this video, which has a link to the script:
https://www.youtube.com/watch?v=MRyaRQwhYWk
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Screen Set Ideas
« Reply #179 on: November 15, 2014, 06:36:17 AM »
Thanks Gerry
I knew it was not lost, but I sure don't remember getting it from there.   :-[ Hell to get old.

I included the folder link. Hopefully Brian will add to it soon with other cool features

ftp://machsupport.com/Mach4_Lua_Scripts/Panel_Scripts/
« Last Edit: November 15, 2014, 06:57:34 AM by Ya-Nvr-No »