Hello Guest it is September 21, 2019, 03:45:00 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

471
Mach4 General Discussion / Re: Mach 4 Lua Scripting modbus
« on: March 01, 2016, 08:14:14 PM »
LOL!!!  Yeah...  I forget a lot of stuff too.  You pretty much have to in order to start trying to forget new stuff.  :)

Steve

472
Matsuura MC500 with 16 pod tool changer.  Mach3/Galil driving the stock Yaskawa drives and servos.  Running 500 IMP.  It does HSM perfectly fine.  The main limitation is the spindle speed which is 5K.  Using Inventor HSM for the tool paths.  It is not a large machine, but it is certainly an industrial machine.  It never crashes.  It always does what I want it to.  Never needed Macro B and it never had it.  (Original control was YASNAC).  Mach 3 is FAR superior to the original control.  Tool changes are twice as fast!  Rapids are up from 275 IPM to 500 IPM.  

I took my time integrating Mach 3.  All of the original machine safety lockout are used and functional.  All of the macros are thoroughly debugged and working flawlessly.  This machine could be put to production use and never blink an eye.  

Converting one of these type of industrial mills can be a really good option for the hobbyist.  I have about as much in this machine as it would take to retrofit a Bridgeport.  And you get nice things like limit switches on both sides of the table (no one switch wonders here!), real home switches, and ATC.  

I think you get out of Mach 3 or Mach 4 what you put into it.

Steve

473
General Mach Discussion / Re: Artsoft sold??
« on: March 01, 2016, 03:02:37 PM »
It is HILARIOUS!!!  Thanks Art, err...  Susehr.  The levity is appreciated.  :)

Oh wait...  I'm supposed to be unemployed too!  Probably fired by Trump.  Anyway...  I can't remember. 

Steve

474
Update to the latest.  You are running an extremely OLD version.  The Modules directory will be off of the base installation directory.  C:\Mach4Hobby\Modules.

You may also have to update any motion plugins as well.

Steve

475
If you have installed Mach 4, the necessary sockets modules are pre-built and are in the Mach 4 Modules directory.  The Mach 4 LUA environment is completely separate from any other installed environment.  No building or installing is necessary.  However, scripts that used the modules in the Mach4 Modules directory do need to have their package.path and package.cpath set as in the example above.

Steve

476
The LUA sockets module is in the Modules directory. 

Setting the package path and cpath is important.  This is an email example, but it is proof of concept for using the LUA sockets module.

Code: [Select]
-- Replace the from and to addresses, as well as the mail server IP address,
-- with something useful.

package.path = package.path .. ";./Modules/?.lua;"
package.cpath = package.cpath .. ";./Modules/?.dll;"

function email()

    -- load the smtp support
    local smtp = require("/socket.smtp")

    -- Connects to server "localhost" and sends a message to users
    -- "fulano@example.com",  "beltrano@example.com",
    -- and "sicrano@example.com".
    -- Note that "fulano" is the primary recipient, "beltrano" receives a
    -- carbon copy and neither of them knows that "sicrano" received a blind
    -- carbon copy of the message.
    from = "<mailfrom@sendingdomain.com>"

    rcpt = {
        "<someuser@somedomain.com>"
    }

    mesgt = {
        headers = {
            to = "Some User <someuser@somedomain.com>",
            subject = "email test"
        },
        body = "This is a message from M300."
    }

    r, e = smtp.send{
        from = from,
        rcpt = rcpt,
        source = smtp.message(mesgt),
        server = "192.168.1.25" -- mail server to use...  defaults to port 25.
    }
    r = r
end   

email()

477
Mach4 General Discussion / Re: Mach 4 Lua Scripting modbus
« on: February 24, 2016, 12:29:58 AM »
Just tell the DRO to use the modbus exported register via the "Register" property in the screen editor.  No code needed.

Steve

478
Galil / Re: Trouble with RESET
« on: November 24, 2015, 01:06:47 AM »
Not sure if the Galil plugin for Mach 4 will be done by then.  I'm talking Beta status by then maybe.  But Mach 4 will be a better system in the end.  It is the future.

Steve

479
Galil / Re: Trouble with RESET
« on: November 22, 2015, 02:59:12 PM »
I believe that you will have the battle regardless of Mach3 or Mach4.  Because I think there is some Galil code on that controller (or jumper settings) that is causing the issue.  In other words, something is changing the default state of the controller.  The Galil debug file looks correct. 

480
Galil / Re: DMC-2143 time out
« on: November 18, 2015, 01:09:50 PM »
The difference between 4.5 and 4.6 is the Galil communication libraries.  I don't know what may be causing the CPU load.  I simply don't see it on my machine at all.  But...  25% is not 100%, so it should run fine.