Hello Guest it is April 19, 2024, 01:12:44 AM

Author Topic: Add or edit Mach4 Lathe screen  (Read 5145 times)

0 Members and 1 Guest are viewing this topic.

Re: Add or edit Mach4 Lathe screen
« Reply #30 on: January 16, 2019, 04:47:52 AM »
OK, as you say it works.
the problem is that until you press ENABLE, the M8 function is active, so the pump works.
I would like Mach4 to start with the pump off.
Re: Add or edit Mach4 Lathe screen
« Reply #31 on: January 18, 2019, 05:49:49 AM »
there is no solution?
how can I assign M9 (to turn off the refrigerant) when I press ESTOP?
Re: Add or edit Mach4 Lathe screen
« Reply #32 on: January 18, 2019, 08:21:14 AM »
Put your E STop signal in the SigLib in the screen load script.

[mc.ISIG_EMERGENCY] = function (state)
    if (state == 1) then
       local Coolant = mc.mcSignalGetHandle(inst, mc.OSIG_COOLANTON)
       mc.mcSignalSetState(Coolant, 0)
    end
 end,
Chad Byrd
Re: Add or edit Mach4 Lathe screen
« Reply #33 on: May 05, 2019, 04:24:05 AM »
I'm sorry, I forgot to answer.
IT WORKS!!
Re: Add or edit Mach4 Lathe screen
« Reply #34 on: May 06, 2019, 06:51:00 PM »
daniba,

(Is it possible to add a sound to the "Change tool" LED?
A simple "beep" at every impulse would be excellent.)

Did you get the sound to work when tool change led is flashing?
If so how... with details please

Thanks
Re: Add or edit Mach4 Lathe screen
« Reply #35 on: May 07, 2019, 01:55:40 AM »
No sorry.
I didn't make any changes, I just left the LED.
I intended to parallelize a buzzer with the LED.
the two objects have different power supplies (led / buzzer) and I didn't know how to do it, so I left it unchanged.