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

General Mach Discussion / Re: Mach3 license.dat issue
« on: February 16, 2019, 07:39:20 PM »
Please open a support ticket via the website.  That is the safe way to deal with license issues. 


Mach4 General Discussion / Re: Sending Info to a Database from a Script
« on: February 16, 2019, 06:37:05 PM »
Mach Motion may not have included those files in their installation.  Attached are the complete set of Lua5.2 modules from 3804.  Don't overwrite your existing luasql thought, as the files you have now are newer.  Just get the modules you don't have. 

Use the Mach4 interpreter in ZeroBrane.  Always launch the Zerobrane editor from the Mach menus.  Otherwise, the paths will not be correct and it will not find the modules (machipc.dll, etc...).

As to if they will the run in the G code, yes.  Build a regular M code macro and put your DB code in there and it will be fine. 


Mach4 General Discussion / Re: Sending Info to a Database from a Script
« on: February 15, 2019, 01:27:34 PM »
You can't use the Lua module files from the 4088 build in the 3804 build.  The reason is that the 4088 uses Lua 5.3 where 3804 uses Lua 5.2.  Copying the lua53.dll file into the 3804 directory didn't do much other than let the 5.3 module go a step further.  However, the Mach GUI and core are still Lua 5.2, which is causing the 0xc0000005 exception. 

So yes, you need to upgrade the Mach 4 software on the target machine to use the Lua 5.3 modules from 4088.  However, knowing that it is a Mach Motion Win 7 Embedded control, I would not do that.  It will break a TON of their screen scripts.  So I went looking for Lau 5.2 versions of the luasql modules and found them in a later build.  They are attached.


Mach4 General Discussion / Re: Sending Info to a Database from a Script
« on: February 14, 2019, 11:48:55 PM »
I did a video that maybe explains things. 

In the video section of this forum:

or direct to youtube:


Mach4 General Discussion / Re: Sending Info to a Database from a Script
« on: February 14, 2019, 05:12:58 PM »
That means that the luasql/mysql.dll can't find the libmysql.dll client file.  This goes back to putting the mySql dll files into the PATH environment variables.  Or, you can drop the libmysql.dll into the Mach directory. (Attached is my libmysql.dll file).

Then Start Mach.  Next, open the Zerobrane editor with the menu path "Operator -> Open Script Editor" and load the file I a previously attached.  You should be able to step through the code.


They are on the development version part of the FTP site.  As with any development/beta builds, you need to be extremely careful and test things for your own safety!  Because the development builds haven't gone through the same amount of internal testing as the release builds do.

But I will say this...  4088 looks good.  It is definitely a release candidate.   


Mach4 General Discussion / Re: mach4 and Galil plugin
« on: February 14, 2019, 02:44:03 PM »

The problem is that if there is something that doesn't work with it, I'm not going to be capable of fixing it for the 21x3 series.  And I'm about 99% sure that the plugin will not work with a 21x3 at this time.  Because I did a lot of structural changes to better support the 4000 series controllers that are just not compatible with the 2000 series controllers.  :(  The reason I'm not 100% sure is because I don't have a 21x3 for which to test.  But just from working on the Galil plugin for many years, my experience tells me 21x3 is a no go now. 

The 4000 series is just a much better fit to Mach than the 2000 series ever was.  And as good as the Mach/Galil combination was with the 2000 series controls way back when, there really is no comparison to the Mach/Galil combination with the 4000 series.  So much so, I dumped all of my 2000 series controllers and bought 4000 series controllers to replace them.  Yeah, it was a bit painful.  But WELL worth it. 


3804 was the last "official" release.  We are up to 4088 on the development builds at the moment.  So you can see 3804 is nowhere near the bleeding edge builds.  We are working on trying to get another official release out now. 


You get the message in the status history the next time you press Cycle Start.  On some older builds, it crashed completely when the timeout happened.  This was due to the timeout not being graceful at all, to put it mildly.  This was fix in later versions.  I'm not remembering which at the moment though...