Hello Guest it is September 19, 2019, 06:05:57 PM

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

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. 

Mach4 General Discussion / Re: Android as remote control
« on: September 05, 2019, 04:04:01 PM »
The easier thing to do is write a web application that uses the Mach API.  Then use the phone/tablet's web browser.  But that is not something that is on our list of things to do.  I'm just throwing the idea out there. 


No.  Just poll it every 100ms or so. 

Mach4 General Discussion / Re: stop while Mfuncion run
« on: August 18, 2019, 11:49:20 PM »
Look at the LUA syntax.  It is different than the C syntax you posted. 

state, rc = mc.mcCntlGetState(inst)

if (state == mc.MC_STATE_IDLE) then
    -- We are no longer running because of a stop or e-stop.

Here are some interesting control state constants:
mc.MC_STATE_JOG -- manual jogging
mc.MC_STATE_DRYRUN --dry run
mc.MC_STATE_FRUN -- running a G code file.
mc.MC_STATE_MRUN -- running MDI G code. 


Mach4 General Discussion / Re: Popup - "Configure a correct IP adress"
« on: August 18, 2019, 02:59:19 PM »
I'm going to beg to differ.  That popup is NOT coming from Mach.  Mach cares nothing about IP addresses.  Only motion and IO devices may care about IP addresses.  Even the popup suggests it is a message from a device.  So if it is not coming from ESS or Mach, then perhaps it is some other plugin that supports an Ethernet device?  Or a script, possibly?


Mach4 General Discussion / Re: stop while Mfuncion run
« on: August 18, 2019, 02:51:19 PM »
Checking the state of the control, mcCntlGetState(), looking for a non running state could be used.  You would need to check the state after every call that does not return an error when the control is stopped.  For example, mcSignalSteState().  It is perfectly fine to set a signal state when the control is stopped.  So you MUST use some other method to check for a stop condition with those types of API calls. 


Mach4 General Discussion / Re: rs485 VFD Spindle Control
« on: August 16, 2019, 01:09:56 PM »
Mach 3 plugins will NOT install into Mach 4.  I can answer that part.  As to if there is something similar to that Mach 3 plugin, I don't know.  :(