Hello Guest it is May 26, 2019, 09:48:21 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

31
Mach4 General Discussion / Re: touch probeing
« on: February 28, 2019, 07:37:15 PM »
Blum makes a good line of probes/tool setters too.  None of the good stuff is cheap, unfortunately.

Steve

32
Mach4 General Discussion / Re: Signal scripts while disabled.
« on: February 28, 2019, 04:23:46 PM »
mcSignalWait() used to require that the control was enabled.  The reason was because mcSignaWait() used to be ONLY used by the Industrial MacroB functions and ONLY on the general purpose input and output signals.  In the newer builds, this requirement has been removed and mcSignalWait() will work on ALL input and output signals. 

If you check the return code from mcSignalWait() it would have told you MERROR_NOT_ENABLED.  This is why it is ALWAYS important to check the return code.  :)

Steve

33
Again, a reminder to keep all M code function names and file names lower case. 

Steve

34
No.  :(  X, Y, Z, A, B, and C are coordinated axes.  That means that they move in coordination with each other.  Always.  The out of band axes are not coordinated.

Steve

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

Steve

36
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. 

Steve

37
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.

Steve


38
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:  https://www.machsupport.com/forum/index.php?topic=39466.0

or direct to youtube:  https://www.youtube.com/watch?v=BtzPPv1WNZQ

Steve


40
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.

Steve