Hello Guest it is May 21, 2019, 11:20:31 PM

Author Topic: Super Simple Gcode translation (I hope)  (Read 1915 times)

0 Members and 1 Guest are viewing this topic.

Super Simple Gcode translation (I hope)
« on: December 02, 2014, 11:10:17 AM »
hi here is some sample simple Shopbot cnc code. I want to cut this with my Mach3 cnc. Can someone please tell me how this code would be written in Mach3 gcode?   ???

MS,1.7,0.5
JZ,0.787402
J2,0.000000,0.000000
J3,1.462340,-5.889563,0.236220
M3,1.462340,-5.889563,-0.137086
M3,1.275624,-6.612135,-0.136735
M3,1.271747,-6.642036,-0.132859
M3,1.560218,-5.506177,-0.136568
M3,1.462340,-5.889563,-0.137086
J3,1.462340,-5.889563,0.236220
JZ,0.787402
END

Offline ger21

*
  • *
  •  6,232 6,232
    • View Profile
    • The CNC Woodworker
Re: Super Simple Gcode translation (I hope)
« Reply #1 on: December 02, 2014, 11:46:01 AM »
Something like this:


G0 Z0.787402
G0 X0.000000 Y0.000000
G1 X1.462340 Y-5.889563 Z0.236220 F30
G1 Z-0.137086
G1 X1.275624 Y-6.612135 Z-0.136735 F102
G1 X1.271747 Y-6.642036 Z-0.132859
G1 X1.560218 Y-5.506177 Z-0.136568
G1 X1.462340 Y-5.889563 Z0.137086
G0  Z0.236220
G0 Z0.787402
M30
%
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Super Simple Gcode translation (I hope)
« Reply #2 on: December 02, 2014, 11:52:49 AM »
Excellent. Thanks. I greatly appreciate you help.

I have thousands of lines to translate. The only idea I have so far is to import it into Excel and try to figure out how to break up and rearrange columns etc. (Though not sure how exactly.)

Do you have any idea where I could find software or a macro or something that could help make changes to thousands of linear interpolation lines?
Re: Super Simple Gcode translation (I hope)
« Reply #3 on: December 02, 2014, 03:09:13 PM »
hi Gerry,

Why did you add the "F30" and "F102" at the end of lines?

Also, what does the "%" sign do?

Offline ger21

*
  • *
  •  6,232 6,232
    • View Profile
    • The CNC Woodworker
Re: Super Simple Gcode translation (I hope)
« Reply #4 on: December 02, 2014, 03:27:48 PM »
Those are feed rates, and replace the "MS,1.7,0.5"

I was going from memory, and I think that those are the feed and plunge rates in inches/sec. Mach3 uses inches per minute, and does not have separate plunge and feed rates. There is only one feed rate setting and must be changed as needed.

The % makes sure that mach3 reads all the lines. If there is no "return" after the last line "M30", Mach3 will ignore it. The % makes sure that the M30 is read.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline BR549

*
  •  6,865 6,865
    • View Profile
Re: Super Simple Gcode translation (I hope)
« Reply #5 on: December 02, 2014, 07:53:14 PM »