Hello Guest it is April 19, 2024, 08:31:58 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 - henri

Pages: 1
1
Mach4 General Discussion / Re: External button scripts in Mach4
« on: September 20, 2021, 03:22:12 AM »
Hi again

Can someone suggest somebody who is experienced with Mach4 LUA scripting and wants to script some functions in Signal Library?
I´m willing to pay for the work.

Functions that needs to be scripted as inputs are following:
    Pages:
        Program Run
        Turn Cycles
    Tables:
        Tool table
        Fixture Offset
    Tabs:
        GCode
        MDI
    REF X
    REF Z
    REF ALL
    Set X Offset
    Set Z Offset
    Spindle CW
    Spindle CCW
    Jog mode:
        INCREMENTAL
        CONTINOUS
    JOG rate/speed:
        25%
        50%
        75%
        100%


BR,
henri

2
Mach4 General Discussion / Re: External button scripts in Mach4
« on: September 15, 2021, 04:13:20 AM »
Thank you for advice. ""RefAllHome" works!
Have you anybody an idea how to script SET X and Z OFFSET? Is it right to copy all the script from SETTOOLXOFFSET (Clicked script) to Signal Library or is there any shortcut for that?
And also how to script tabs (between GCode and MDI)?

henri

3
Mach4 General Discussion / Re: External button scripts in Mach4
« on: September 14, 2021, 03:02:04 AM »
Hi,
I haven't had any problem with <RefAll>.

What you need to do is assign an input signal, say ISIG_INPUT10 to your external button via your controller.
In the SigLib table whenever that input goes high have it call the existing <RefAll> script, you are just using an external
button to trigger an existing Mach4 function.

Post the error message. You may have noted that the standard <RefAll> script homes all four axes....but if you only have three then
it will fault. You need to go to the RefAll script in the ScreenLoad script and edit the fourth  axis out of the sequence.

Craig

Hi

It gives following Lua error: error while running chunk. Have no idea how to repair it.
I added some pics about the Signal Library and the error.

henri

4
Mach4 General Discussion / Re: External button scripts in Mach4
« on: September 13, 2021, 03:45:47 AM »
Hi,
all of those features are already included in Mach4. If you go into 'Screen Edit' mode and click on each feature
you will be able to see how NFS coded each.....all you require is to duplicate that for each feature in the SigLib table,
one entry in the table per external button.

Craig

Thank you, Craig!
I tried to script the REF ALL, but it is giving LUA error. Do you have any examples how do you have it done?

Henri

5
Mach4 General Discussion / External button scripts in Mach4
« on: September 09, 2021, 04:52:57 AM »
Hi

I am retrofitting 16A20 lathe and using Mach 4 with CSMIO IP-S controller. I built operation panel with push buttons but don´t know how to script the programm.
For START, FEEDHOLD and STOP I´ve got it worked, but need also script for SET Z OFFSET, SET X OFFSET, REF ALL, REF Z, REF X, MDI tab, GCode tab, Fixture Offset, Turn Cycles, Spindle CW, Spindle CWW etc.

Can anyone give some advice or tutorial?

Thanks in advance,
Henri

Pages: 1