Hello Guest it is October 28, 2020, 04:54:37 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

1
Mach4 General Discussion / Re: Sending Info to a Database from a Script
« on: October 24, 2020, 01:17:01 AM »
MySQL plus any ODBC capable database.  However, for ODBC, the database must offer a 32 bit ODBC interface.  Most do.  So pretty much the sky is the limit. 

Steve

2
Mach4 General Discussion / Re: Files containing an M0 or M1 will not load.
« on: September 05, 2020, 12:44:34 PM »
The game plan is to get a new release available but that is proving difficult with all that is going on.  In the mean time, there is 4524 out on the FTP site which is VERY nice.  Bugs fixed and features added make it much nicer than 4300.

So the best course of action, IMHO, is to use a newer build which "Tigger ZA" alluded to.  However, 4300 can be made to work by setting parameters 8110 and 8111 to something that you are not using for a M code number.  For example, if you don't have M codes M200 and M201, set parameter 8110 to 200 and parameter 8110 to 201.  You can do this with G10 L50 while Mach is running or simply modify the parameters.ini file when Mach is not running.  That last part is important.  Mach cannot be running if you directly modify the profile's parameters.ini file.  :) 

If the parameters do not exist in the file or are set to 0 zero, then that is what is causing the problem.  Parameters 8110 and 8111 set the waiting start and end M codes for multi-path synchronization.  If 8110 is set to 0, then the interpreter will wait on M0!

Here is a snippet of a parameters.ini file that sets these parameters to 200 and 201.

[8110]
Desc=Waiting M code range minimum value.
Type=1
Value=200
[8111]
Desc=Waiting M code range maximum value.
Type=1
Value=201

Steve

3
Mach4 General Discussion / Re: Files containing an M0 or M1 will not load.
« on: September 04, 2020, 11:48:26 PM »
Err...  That was a bug that was fixed in a newer build.

Steve

4
Mach4 General Discussion / Re: z inhibit / max z depth
« on: September 01, 2020, 01:36:57 AM »
Set parameter 1801 to the minimum Z depth.  The default is NIL, or no minimum Z depth. 

You can do this with G10 L50 or just modify the parmaeters.ini file when Mach is not running. 

[1801]
Desc=Mnimum Z level
Type=2
Value=-2.00

Steve

5
Mach4 General Discussion / Re: POST PROCESSOR
« on: August 09, 2020, 01:09:07 AM »
Just use a Fanuc post.  Mach 4 is Fanuc compatible and both G76 formats will work.  Do not use a Mach 3 post with Mach 4, especially on lathe. 

Steve

6
Mach4 Videos / Re: Mach4 and luasql integration (mySql and ODBC)
« on: August 08, 2020, 06:45:53 PM »
Hello and thanks for your reply. I am running Mach 4 at build level 4.2.0.4517
Just curious, where did you download luasql. I cannot find a version for 5.3.
Thanks!

I got the luasql source and compiled the modules.  As with all of the modules in the modules directory.  They are custom made for the Mach LUA version and Mach 4 environment (module directory). 

Steve

7
Mach4 Videos / Re: Mach4 and luasql integration (mySql and ODBC)
« on: August 08, 2020, 12:49:49 PM »
??  What build are you running?  The current modules are for LUA 5.3

  lua53.dll
    Import Address Table:               0x00014154
    Import Name Table:                  0x0001A648
    Time Date Stamp:                    0x00000000
    Index of first forwarder reference: 0x00000000

Steve

8
Mach4 General Discussion / Re: Mach 4 Feature Request
« on: August 08, 2020, 12:46:33 PM »
Look in the modules directory.  It is already there.  mySql and ODBC.

Steve

9
Mach4 General Discussion / Re: LUA call functions in dynamic libraries
« on: August 05, 2020, 07:47:59 PM »
Yes, it will work with either 5.1 or 5.3, but the binaries better match the version of LUA that you are using.  Right now, it looks like your alien was compiled for LUA 5.1.  So you need to get alien that is compiled to use LUA 5.3.  I think that is all you need.

Once you upgrade your alien from 5.1 to 5.3, Zerobrane won't have an issue with it.

Steve

10
Mach4 General Discussion / Re: LUA call functions in dynamic libraries
« on: August 03, 2020, 09:41:41 PM »
We are running LUA 5.3.  I don't know much about alien, but you might have to up the version to 5.3 as well.

Steve