Menu

[Solved]Gcode File Contains Many Objects Want Take Gcode File Exiting Nodes Objects X Y Example Gc Q37105934

I have a Gcode file that contains many objects and I want totake from this Gcode file all the exiting nodes of objects withtheir x and y.

For example if I have in this Gcode a rectangle and a triangle Iwant the x and y of the four nodes of the rectangle and the 3 nodesof the triangle and so on.. and the program should mention that the4 nodes of the rectangle have ID=1 and the 3 nodes for the trianglehave ID=2..

Language : Java

example of gcode:

OPEN PROG 5 CLEAR

G17 G90 ; XY plane, absolute move spec

F500    ; Cutting speed 500 mm/min

G00 X10.00Y5.00                        ; Rapid move to (10,5)

M03                                               ; Start spindle

G04P2.0                                       ; Wait 2 seconds

G01Z0                                          ; Lower cutter

X30.25Y5.00                                 ; Linear XY move

G03 X35.25 Y10.00J5                   ; CCW arc move

G01 X35.25Y50.10                        ; Linear move

G03 X30.25 Y55.10I-5                   ; CCW arc move

G01 X10.00Y55.10                        ; Linear move

G03 X5.00 Y50.10J-5                    ; CCW arc move

G01 X5.00Y10.00                          ; Linear move

G03 X10.00 Y5.00I5                      ; CCW arc move

G01Z5                                           ; Cutter up

M05                                                ; Stop cutter

G00 X0Y0                                     ; Rapid move back to home

M30                                               ; End of program (not actually needed) CLOSE

Expert Answer


Answer to I have a Gcode file that contains many objects and I want to take from this Gcode file all the exiting nodes of objects … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *