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

0 Members and 1 Guest are viewing this topic.

Offline daniba73

  • Active Member
  • Posts: 105
    • View Profile
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.

Offline daniba73

  • Active Member
  • Posts: 105
    • View Profile
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?

Offline Cbyrdtopper

  • Active Member
  • Posts: 615
    • View Profile
    • Byrd Tool Corp.
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