Hello Guest it is September 26, 2020, 02:13:46 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - smurph

Mach4 General Discussion / Re: cant modify M function
« on: October 03, 2019, 07:34:25 PM »
You have a syntax error in the macro file.  Thus it will not compile and merge into the mcLua.mcc file. 

Mach4 General Discussion / Re: Screen Editor - Hide bar
« on: September 23, 2019, 01:14:12 PM »
The painting yourself into a corner comment was about making sure you leave a way to get the menu bar back on the screen if you need it.  Edit the screen and drop a button on any page/tab you want.  Or create a new tab, etc...

Just a button with:

scr.ShowMenu(true);  --in the button up event script property

Or a toggle button to toggle between on and off

scr.ShowMenu(true); -- in the button up event script property


scr.ShowMenu(false); -- in the button down event script property

Use the screen load script to set the initial state of the menu bar, if needed. 


Mach4 General Discussion / Re: Request for LUA advice: Rigid Tapping
« on: September 23, 2019, 01:02:41 PM »
You cannot modify the G84 call.  If you have Mach Industrial, you can program a G code (say G84.5) to do what you want.  Otherwise, it will have to be an M code.  And in both cases, Mach will wait on those functions to finish.


Mach4 General Discussion / Re: Screen Editor - Hide bar
« on: September 23, 2019, 12:48:49 PM »
?  It is only one line.


Mach4 General Discussion / Re: Mach 4 cv tuning wizard slider inoperable
« on: September 20, 2019, 09:55:59 PM »
It is because you are moving fast.  That and the fact that the simulator isn't a REAL motion controller.  This happens in Sim with rapid moves. 

Mach4 General Discussion / Re: check gcode file before run
« on: September 20, 2019, 09:46:43 PM »
The Module Works plugin will do collision detection, etc...  You might be able to write a LUA wizard or script that uses the MachAPI to do what you want to do.  But the Module Works was designed with this kind of task in mind.  However, you and your clients will have to learn to use the tool as you need to do a lot of tool table setups to more fully describe the tools, etc...


No, it will not work.  Use VistaCNC (as many have suggested) if you want a nice MPG for Mach4.


You are correct, the stock FRO doesn't affect any type of jog.  The Jog Rate affect jogs.  The slider on the bottom of the jog panel in a stock screen set or the Continuous Jog on that panel you have.  FRO should NEVER affect any jog rates.  That is purely for G code feeds. 


Mach4 General Discussion / Re: luac files
« on: September 11, 2019, 01:41:17 AM »
They are compiled LUA scripts.  The "c" on the end of the extension denotes the compiled nature.

Also, mcs vs. mcc extentions for the macro scripts. 

mcs, lua == human readable scripts.
mcc, luac == compiled scripts. 

If the script is compiled, then there is a reason for that.  A lot of times it is so that users can't change it and cause support issues.  And I'm sure there are other reasons that I'm not aware of too. 


Mach4 General Discussion / Re: Mach4 bug (wizards) - v + 4300
« on: September 10, 2019, 09:53:23 PM »
Look for versions of these files with a "mcc" extensions.  The mcs files are from your OLD install that had 5.2 LUA.  mcs files were never supposed to be compiled, but were, do to a misunderstanding way back when.

mcs == non-compiled human readable LUA scripts.
mcc == compiled scripts. 

Delete any non-readable *.mcs files and you should be good to go.