simulation of my nc file not working

308 views
Skip to first unread message

rss

unread,
Jul 22, 2014, 3:01:25 PM7/22/14
to opensca...@googlegroups.com
Hi,
first time I have tried to use openScam and my simulation does not seem to work. I suspect it is not recognising my NC file. This file runs fine on a CNC machine.
I can't work out if the software is not compatible with this format of GCode or whether I haven't worked out how to setup a new openScam file properly?
Can anyone help? (file attached)
Many thanks,
RSS
_73_4_holes.nc

daryls...@gmail.com

unread,
Jul 22, 2014, 5:58:56 PM7/22/14
to opensca...@googlegroups.com
Well maybe someone else will chime in on this -- I'm new with this particular software too. I don't even know what a CAM TECH CMC3 FILE is. But It seems to me that OpenSCAM is fairly tight to the LinuxCNC style of interpreting RS274 g-codes (as opposed to the ISO standards). So right off the bat I changed your first lines into comments with semicolons. Like this:

;[CAM TECH CMC3 FILE ]
;[FILE SET TO RUN IN MM]

;[MATERIAL]

;[X-SIZE = 600.000 Y-SIZE = 1200.000 Z-SIZE =  50.000]

;[THICKNESS=50.000]


G90 ;[ABSOLUTE MODE]
G22 ; [SET TO MM]
G9S10; [SMOOTHING FACTOR]
M3 ;[SPINDLE ON]
G0Z70.0

And then it ran in OpenSCAM for me. I don't think LinuxCNC/OpenSCAM understands what a G22 (stored stroke limit) is.  Since OpenSCAM displayed your file (with semicolons) for me I guess it just ignors the G-codes it doesn't recognize so long as other conditions are met. I'm not sure if modality makes any difference. My g-codes reference says a G9 is an "exact stop check"
, not a "[SMOOTHING FACTOR]". So I guess I'm out of touch with whatever you might be generating code with. But I've run a lot of milling codes through OpenSCAM over the last couple of weeks and, as long as it is LinucCNC/RS274 compatible and only for 3-axis milling with XYZ then it's run okay. When I try some of my XYZA code it rejects it as having A-axis lines. But that is the known behavior of it. Generally the first sign that OpenSCAM is rejecting your file is when you see a material size at or near zero for XYZ. I hope this helps.

We are lucky that OpenSCAM is available!

Joseph Coffland

unread,
Jul 22, 2014, 6:21:40 PM7/22/14
to opensca...@googlegroups.com
Daryl,

You are absolutely correct.  OpenSCAM expects RS274/LinuxCNC style GCode. 
There are many different versions.  The code you reference seems to use
square brackets as a comment delimiter.  In RS274 GCode, parenthesis are
used instead or as you pointed out a semicolon works as well.

Joseph
Reply all
Reply to author
Forward
0 new messages