PP for DeskCNC MM

Discussion of post processors for various CNC machines

PP for DeskCNC MM

Postby xray965 » Tue Jul 12, 2016 3:12 am

Hi there

Still teaching myself here and was looking through the files of the PP's that comes with the meshcam, my setup is for metric and not inch and having cross referenced the Std Gcode as a minimum reference point i.e seeing the difference between the std gcode in inch and mm it seems to me that it is not that complex.

So I pulled up the Deskcnc-Inch pp file in text edit and looks pretty much easy to modify to metric.

DESCRIPTION = "DeskCNC-Inch(*.nc)" (This needs to be DeskCNC-mm(*.nc)
FILE_EXTENSION = "nc"
UNITS = Inch (This needs to be mm instead of Inch)
;Feeds
FORMAT = [F|#|F|1.1]
;Moves
FORMAT = [X|#|X|1.4]
FORMAT = [Y|#|Y|1.4]
FORMAT = [Z|#|Z|1.4]
START = "%"
START = "(FILENAME: [FILENAME])"
; The following is a dummy tool to keep CutViewer from generating an error when G20 is called without a tool
START = "(TOOL/MILL,0.1,0.05,0.000,0)"
START = "G20" (This needs to be G21 instead of G20)
START = "([CUTVIEWERSTOCK])"
;
TOOLCHANGE = "([CUTVIEWERTOOL])"
TOOLCHANGE = "M6 [T]"
;
RAPID_RATE_MOVE = "G0[X][Y][Z]"
;
FIRST_FEED_RATE_MOVE = "G1[X][Y][Z][F]"
FEED_RATE_MOVE = "[X][Y][Z]"
;
END = "(END)"
END = "(OF PROGRAM)"

Can someone please verify if I am correct in stating the above, also one more thing I noticed the Deskcnc keeps asking for a M02 end command which is not being entered by the Std Gcode PP or the Above Deskcnc-Inch PP, is I wanted to add the M02 I believe it should be instead of of the END it should read M02 am I correct ?

:)
xray965
 
Posts: 4
Joined: Sat Jul 09, 2016 3:34 am

Re: PP for DeskCNC MM

Postby Randy » Tue Jul 12, 2016 4:20 pm

You have it exactly right, xray965, and you are 95% of the way there.

When you add the M02 line put it like

END = M02

Anything enclosed in parentheses is a comment and the gcode interpreter will ignore it. CutViewer does use the STOCK and TOOL comments to set up its simulation, but otherwise they are for the operator's convenience, and usually will be shown on the controller screen in a message area.

And your observation is correct that gcode is very straightforward, as are the posts. gcode is actually a programming language, and the post is basically a big FORMAT statement to tell MeshCAM how to write the gcode program.

Randy
All opinions in this post are mine alone. I am not a MeshCAM employee, I do not have a financial interest in MeshCAM, nor do I speak for MeshCAM. MeshCAM user since Beta 5 in 2003. viewtopic.php?f=11&t=15333 :ugeek:
Randy
 
Posts: 1812
Joined: Wed May 14, 2008 9:50 am
Location: North Texas, USA

Re: PP for DeskCNC MM

Postby xray965 » Wed Jul 13, 2016 12:22 am

Way cool.... having fun with this, just managed to write my first Gcode today and made the mistake of entering 2 co-ordinates on one line resulting in interpolated move and went diagonal as opposed to move right 10mm then up 10mm it went 45 degrees.
Figured yeah system literally is WYSIWYG.

:lol:
xray965
 
Posts: 4
Joined: Sat Jul 09, 2016 3:34 am


Return to Post Processors

cron