Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: Fred_evans on May 12, 2012, 02:36:23 PM
-
Hello There---
perhaps someone could look at this code and tell me why i am not getting to
subroutine O2 and subroutine O3 ??
regards
fred evans
-
At line 540 you had a GO (like let's "GO") not G0.... Appears to call subs OK in my backplotter (NC Plot).
See attached....
-
Just some tips, ALWAYS use lower case o for the Sub name(o123) once you use it it comes obvious as to why
Either use cap G or lower G but not both
You cannot use Z-#var MACH3 will error you must solve the #val as a neg value such as Z [-1*#3] YES it does not comform to standard Gcode BUT that is just the way Mach3 does it. The Z- in this case should indicate a neg DIRECTION call but it does not(;-)
Double check for end brackets on comments
Limit Comments to criticle issues (;-) Gcode is not a diary. Makes it hard to follow with all the comments jumbling up the code AS mach3 does NOT handle comments correctly for display. It should maintain the Gcode line to comment relationship BUT it just zipps to the end of the comments and stays there.
Correct the notes in the returned file (notes are in the file) and it should run ok.
(;-) TP
-
Thanks chaps-- this is really helping me
762X51 - please tell me how put the line numbers in ?? and formatted all to uppercase??
What is a back plotter ?
And TP - many thanks for the coding tips-- Certain conventions always to the benefit of the
greater good.
Re z-#3 -- point noted
could it be done as
#3=-18
>
>
>
subroutine starts
go z#3
??
thanks
So looks like all minor case at all times may be a good habit to develop ? also no comments on blank lines
Commenting kept to a minimum (as soon as I have memorised all the codes)
I have made the changes and it runs right throug- now just to debug and i can do my first job.
-
Fred,
I use NC Plot http://www.ncplot.com/ (http://www.ncplot.com/) and you can format your Gcode as well as display a plot of the tool paths with the program.
Attached is a screen shot...
Orin
-
Hello Orin,
thanks for the info. Is NC PLOT a similar type of program to Gwizard??
Why i am asking is that i have started the tutorial in cnc cookbook and find it to be really
good. they are punting their product called gwizard .
your observations are appreciated
regards
fred
-
Hi Fred,
Yes, Gwizard is a nice program but I didn't like having to buy a "subscription" that has an ongoing annual cost.
Orin