I see Turtle as a very simple yet accomplished display/viewer of vectors. It could be used to make a G-code reader & display tool.
CNC machine code is Gcode like this (a 200x100mm rertangle with 5mm radius corners starting at 50x50):
[Toolpath name: Profile 1]
[Tool: End Mill (0.125 inch)]
[Depth: 0.394 @ Feed: F25]
[X/Y Feed rate: F80]
[Set Surface sensor to: 0.394]
[---= Begin Job =---]
G90
M3
G53 Z0
[End Mill (0.125 inch)]
G0X1.9685Y2.1654
G0Z0.2000
G1Z-0.3937F25
G1Y5.7087F80
G2X2.1654Y5.9055I0.1969J0.0000
G1X9.6457
G2X9.8425Y5.7087I0.0000J-0.1969
G1Y2.1654
G2X9.6457Y1.9685I-0.1969J0.0000
G1X2.1654
G2X1.9685Y2.1654I0.0000J0.1969
[End Mill (0.125 inch)]
G0
G0Z0.2000
G0Z0.8000
M5
G53Z0
M2
---
How would I scale the display to fit the X & Y coordinates and how would I handle arcs (G2 & G3 in Gcode)?
Thanks all.
CNC machine code is Gcode like this (a 200x100mm rertangle with 5mm radius corners starting at 50x50):
[Toolpath name: Profile 1]
[Tool: End Mill (0.125 inch)]
[Depth: 0.394 @ Feed: F25]
[X/Y Feed rate: F80]
[Set Surface sensor to: 0.394]
[---= Begin Job =---]
G90
M3
G53 Z0
[End Mill (0.125 inch)]
G0X1.9685Y2.1654
G0Z0.2000
G1Z-0.3937F25
G1Y5.7087F80
G2X2.1654Y5.9055I0.1969J0.0000
G1X9.6457
G2X9.8425Y5.7087I0.0000J-0.1969
G1Y2.1654
G2X9.6457Y1.9685I-0.1969J0.0000
G1X2.1654
G2X1.9685Y2.1654I0.0000J0.1969
[End Mill (0.125 inch)]
G0
G0Z0.2000
G0Z0.8000
M5
G53Z0
M2
---
How would I scale the display to fit the X & Y coordinates and how would I handle arcs (G2 & G3 in Gcode)?
Thanks all.