Hello Guest it is October 04, 2023, 10:53:17 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

281
G-Code, CAD, and CAM discussions / Re: Conditional programming
« on: March 20, 2018, 10:27:07 PM »
Your m98 is calling p02

You don't have a
o02
You have a
o2 defined

282
When you load mach it re-compiles all scripts and macros so if you have checkProbe() defined in any other file that contains an error mach will not compile correctly.

Move any files with the code you are trying to debug to a directory outside of your mach directory.  Start mach.  If you still get an error like the 'failure while running chunk something else is wrong.  If not then:

From Operator->edit/debug scripts select any m???.mcs file.  Then when in the editor select file->new.  With notepad cut and paste the code into this new file and hit F7.  Now you should get where the offending line of code is. 

HTH

RT



283
replace these two lines (41 and 42) by typing in directly.  there appears to be a bad hidden character

local zAxisDifference = zProbeStrikePos -ZaxisCurrentPos
local zAxisNewOffset = strikePlateThickness - zAxisDifferemce

284
G-Code, CAD, and CAM discussions / Re: Conditional programming
« on: March 20, 2018, 11:02:51 AM »
What Craig said is true.  You can do what you said though.

#1=.050 ; starting z value
M98 P1234 L10  call subprogram 10 times
M30

o1234
;do your moves
#1=[#1-.003] ;decrement Z
M99
%



Otherwise you need to use VB scripts.

HTH

RT

285
Show"N"Tell ( Your Machines) / Re: 7x10 CNC Lathe
« on: March 20, 2018, 10:51:32 AM »
Converted my 7x14 Microlux last year, same condition as yours (15 years old) and it looks like we're both using the same control box. I am using pmdx-411 and Mach4.  You will love the results using CSS.

Enjoy,

RT

286
When you debug this in the editor using F5, then stepping through each line by using successive  f11's, what line does it fail on?

287
Mach4 General Discussion / Re: Debugging Lua code...
« on: March 13, 2018, 12:47:49 PM »
from modules directory mcErrorCheck.lua

  • = 'MERROR_NOERROR',

288
Mach4 General Discussion / Re: Debugging Lua code...
« on: March 13, 2018, 12:34:39 PM »
from modules directory mcErrorCheck.lua

[-17] = 'MERROR_API_INIT',

I have no idea what that means or how to fix it.

289
Steve,

Thanks for that.  I posted a suggestion for this in mach4 feature request on January 18th.

It would seem that as a 'best practices' policy that the feature request post be monitored weekly and have your group respond with:

Not going to happen
Will be in the next revision
Already exists
Here is a solution

MTCW

RT

290
Mach4 General Discussion / Re: Home Signal
« on: February 22, 2018, 10:48:58 AM »
Steve, I think that I have one input left and that could work.  When the stepper is not engaged it is parked and I could put a NC switch that would open when parked against it.  Thanks for the idea.

RT