Hello Guest it is May 12, 2024, 06:58:45 PM

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 - Cbyrdtopper

31
Mach4 General Discussion / Re: MACH4 LATHE
« on: May 08, 2023, 02:26:12 PM »
I don't mind NFS getting rid of the diagnostics tab since it is full of fluff... however, I used the REF separate axis buttons all the time when setting up a new machine, so now it's a pain to have to put these in there manually each time.

32
Mach4 General Discussion / Re: Spindle and coolant stop on M01
« on: April 14, 2023, 11:57:19 AM »
You will have to ensure that you turn your spindle and coolant back on after the M101 is called. 
But this should get you going.

function m101()
local inst = mc.mcGetInstance()
local m01 = mc.mcSignalGetHandle(inst, mc.OSIG_OPT_STOP)
local m01State = mc.mcSignalGetState(m01)
local CoolantOutput = mc.mcSignalGetHandle(inst, mc.OSIG_COOLANTON)
if m01State == 1 then
    mc.mcSignalSetState(CoolantOutput, 0)
    mc.mcSpindleSetDirection(inst, 0);
    mc.mcCntlFeedHold(inst)
end--m101State
end

if (mc.mcInEditor() == 1) then
   m101()
end

33
Mach4 General Discussion / Re: Spindle and coolant stop on M01
« on: April 14, 2023, 10:33:16 AM »
Ok. I have it made. I’m just not at my desk at the moment.

34
Mach4 General Discussion / Re: Spindle and coolant stop on M01
« on: April 14, 2023, 10:28:54 AM »
Yeah. It should. Feedhold waits for cycle start.  You can even use the option stop button if you want.
Inside your macro check to see if the opt stop output is in. If it is then use the feedhold.  Otherwise ignore it.

35
Mach4 General Discussion / Re: Spindle and coolant stop on M01
« on: April 14, 2023, 10:10:22 AM »
Usually it is a setting or a keep relay that makes it do that. On some of the fanuc machines we have it would stop the spindle and coolant and some wouldn’t.

36
Mach4 General Discussion / Re: Spindle and coolant stop on M01
« on: April 14, 2023, 09:46:40 AM »
Add another physical button next to your e stop that can toggle the spindle and coolant on and off. If that’s an option for you, we can help you out with the script.

37
Mach4 General Discussion / Re: Spindle and coolant stop on M01
« on: April 14, 2023, 09:27:17 AM »
Unfortunately you cannot view macros that have internal functions already made by NFS.  You can make your own new macros for some of them, however, m01 is not one of those.
Per the Scripting Manual on page 9.  Manuals are found in the Mach4 Folder --> DOCS.

38
Mach4 General Discussion / Re: Update Mach4 with least pain
« on: March 30, 2023, 08:29:33 AM »
I'm curious.  Are you setting tool lengths somewhere on your machine?  Also, to use the H for the tool length, you need to call a G43 H(Toolnumber)

39
Mach4 General Discussion / Rotary Axis Display
« on: March 21, 2023, 09:49:36 AM »
Is there a way to turn off the rotary axis display.  We are making a Carbide Knife Grinder that uses 2 rotary axis along with X and Z and it is messing up the toolpath display.
We are using the lathe screenset to work with the CAM we are using to output the code.  The display is extremely useful for following and finding code when we go to edit it.  We just want to turn off the skew that it makes when it applies a rotary move.

40
Mach4 General Discussion / Re: Mach4 default scripts
« on: March 16, 2023, 05:10:36 PM »
I found what I was looking for.
Smurph talks about it a few posts down.

https://www.machsupport.com/forum/index.php?topic=33831.msg235284#msg235284