Hello Guest it is October 04, 2023, 11:14:20 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

241
Mach4 Toolbox / Re: M6: how to add manual spindle RPM with tool change?
« on: October 03, 2018, 11:34:36 AM »
I don't believe you can modify M3.  You can however put a macro named spindlspeed.mcs that will be called every time a m3 is issued.  See this post:

https://www.machsupport.com/forum/index.php?action=search2

Also, there is an api to get the current line being executed
mcCntlGetGcodeLineNbr
mcCntlGetGcodeLine

fromn that you could parse the line to see what is being requested

242
Mach4 General Discussion / Program Extents
« on: October 02, 2018, 10:43:36 AM »
Has anyone else noticed that the program extents don't work for Mach4 Lathe?  Or is it just my install?

I used to check those all of the time when I used Mach3 on my mill, wished I had on my lathe a few times lately :(



TIA

RT

243
Mach4 General Discussion / Re: Rotary machining on a lathe feed rates
« on: September 26, 2018, 12:46:47 PM »
Attached is an Aspire post processor for rotary on Mach4 lathe.  File extension of txt added for upload. See comments for axis changes.

HTH

RT

244
Mach4 General Discussion / Re: Rotary machining on a lathe feed rates
« on: September 18, 2018, 07:58:27 PM »
It is a lathe not a mill.  With lathes the set up uses the same right hand rule for setup but with a view from the headstock rather than the mill spindle.  Z moves to and away from the spindle, x in and out like a mill.  Few have a y axis.  Rotary can be a,b, or c.  Mach4/fanuc lathe only supports c as a rotary with incremental moves.

RT

245
Mach4 General Discussion / Re: Rotary machining on a lathe feed rates
« on: September 18, 2018, 07:15:39 PM »
Ger21, thanks for that. 

I have modified the post processor to now output what I think is correct code for g93.  I have attached a test Aspire file and the resultant gcode file.  It merely consists of a circle and square.  While the tool path is correct the circle takes 8 minutes to run and the square 12 seconds.  The square seems to run both the z and c axis at appropriates speeds, obviously the circle does not.  Anyone have thoughts as to what is wrong with the code or the setup?

TIA

RT

246
Mach4 General Discussion / Re: Rotary machining on a lathe feed rates
« on: September 18, 2018, 04:47:34 PM »
Can you point me to where that setting is set, option, toolpath?

247
Mach4 General Discussion / Rotary machining on a lathe feed rates
« on: September 18, 2018, 04:11:16 PM »
I have converted my lathe so that the spindle can be run as a 'C' axis rotary.  It works well when I cut threads but I have to use fedd rates of 12000 to get the z and C drive to turn at the appropriate speed.  I'm okay with that.

Vectric's Aspire has added rotary capabilities and I would like to use that.  I have modified their post processor to convert the A axis to C , the z axis to x, the x axis to z and doubled the x(z) values to compensate for diameter mode over radius.  So far so good.  

If I cut a circle on the stock surface there is coordinated movement and all works well.  Hypothetically 3d machining at an angle should work but there is a separate case that wont.  If I cut a square on the stock surface, one of the two axis is going to move drastically faster or slower than the other since there is no coordinated movement and the tool path has only on feed rate.  

I thought I would ask all of you seasoned CNC'ers  what alternatives I have/should consider.  I haven't asked Vectric yet if I can modify the post processor for one axis only movement feed rates.

Changing feed per revolution didn't solve the problem.  But that might be that I don't fully understand it.

TIA

RT

248
Mach4 General Discussion / Re: mach4 module help
« on: September 07, 2018, 12:05:22 PM »
Make sure you haven't saved any previous modules(ie. backups) with the same function names in the modules directory.  Lua compiles all files in that directory and you can get conflicting addresses for the functions. 

Just a thought,

HTH

RT

249
Mach4 General Discussion / Re: ScreenScript error after updating
« on: September 04, 2018, 11:11:04 AM »
prb is a variable configured by the screen load script.  I'm not running your version but in mine the code is:

--Probing module
package.loaded.Probing = nil
prb = require "mcProbing"
--mc.mcCntlSetLastError(inst, "Probe Version " .. prb.Version());


Your error indicates that prb was not successfully initialized.  make sure that the above code is in your screen load script and that the file mcProbing.lua exists in your;
C:\Mach4Hobby\Modules directory.

HTH

RT

250
You either have to Home C or unwind to C zero.