Hello Guest it is December 02, 2023, 08:22:40 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 - rhtuttle

Mach4 General Discussion / Re: Turret lathe axis question
« on: October 02, 2023, 11:39:09 AM »
You set the tool length/offset for each tool in the tool table and call your m6 macro with T0202 to get tool 2 with tool 2 offset.  Do an advanced search here of the Mach4 discussion and search for turret lathe. 

Mach4 General Discussion / Re: Problem with custom M5 macro
« on: August 10, 2023, 11:57:35 AM »
I am sure you have already done this but first thing to check is make sure that your m5 macro is in the macros directory and uses lowercase file name.  m5.mcs and make sure you don't have another macro with a function m5() defined in that same directory.


I would also make your dir variable local.


Mach4 General Discussion / Re: m03, m05 and G04 dwell commands
« on: August 02, 2023, 10:49:06 AM »
mc.mcCntlSetLastError(inst, GCode )

Mach4 General Discussion / Re: m03, m05 and G04 dwell commands
« on: August 02, 2023, 10:32:00 AM »
first thing I would try is to check the value in 'GCode' to make sure you have a valid string to execute.
GCode = GCode .. string.format("G04 P%.4f\n", dwell)

Mach4 General Discussion / Re: put userdata in register
« on: May 26, 2023, 09:55:07 AM »
If I understand you correctly:
The tonumber() method in Lua converts the value provided to it into a number. If this argument is a number or a convertible string, the tonumber() function returns the converted number. If it is not a number or a convertible string, it will return nil .

Mach4 General Discussion / Re: turn cycle can't select tool
« on: May 26, 2023, 09:52:54 AM »
Pocket 7, offset 7

Mach4 General Discussion / Lathe Internal Taper
« on: May 19, 2023, 03:13:57 PM »
Are we ever going to get a functional version of the turn cycles?
Internal taper: 20 degrees
Xi 1.23
Zi -.748
Zf -1
A 20

Have tried the latest "stable" version, with both turn and facing options garbage code.
4********* dev version and latest 5125 build unable to show wizard3: wxLua: Expected a 'wxColour' for parameter 2 but got a nil.

Rant over

Mach4 General Discussion / Re: Lathe turn cycle only works once.
« on: May 04, 2023, 12:08:31 PM »
Which turn cycle are you trying?  When I use the Turning module from the Turn Cycles tab it works as expected.
Selecting from the wizard gets an error code of LUA version mismatch.

Mach4 General Discussion / Re: Mach4 hobby macro not running
« on: April 30, 2023, 04:31:08 PM »
If your m6.mcs filename is M6.mcs try renaming with lowercase.  Also check to make sure that the macro is in the macros directory for the profile you are using.