Shop OBEX P1 Docs P2 Docs Learn Events
Gcode help — Parallax Forums

Gcode help

MR MOTIONMR MOTION Posts: 1
edited 2014-02-04 13:12 in General Discussion
Hello all
I need some help.
I have a small PC board that I’m CNC I have made these boards before but one at a time.
Would like to know how I can set them up to CNC three or four at one time.
I need the boards to stay on the X axis and repeat out several times.
I have taken the original G code and took out a lot of the center so the code is not very long.
It would be greatly appreciated if I could solve this problem.
It will allow me to set up a Blank PC board and cut 3 to 4 boards at one time.
G20
G90
G00 Z0.5000
G00 X0 Y0
M03
G04 P3.000000
G00 Z0.0200
G00 X1.2023 Y-0.4011
G01 Z-0.0050 F10.00
G01 X1.0657 Y-0.4011
G01 X1.0614 Y-0.3999
G01 X1.1499 Y-1.0129
G01 X1.1499 Y-0.9626
(File Footer)
G00 Z0.0200
G00 Z0.5000
M05
M02:frown:

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2014-02-03 21:41
    You can use G92 to set the origin to a different location, then simply repeat the commands that do the cutting.

    -Phil
  • PublisonPublison Posts: 12,366
    edited 2014-02-04 10:22
    Your duplicate post was deleted. It is against forums rules to double post.

    http://forums.parallax.com/showthread.php/134682-Forum-Guidelines

    I
    t seems that Phil already answered the question.

    After the first board is done, move to a new location, insert G92 to set the new origin, then run the same code from there.

    You will have to calculate the new origin based on the board size.
  • GenetixGenetix Posts: 1,754
    edited 2014-02-04 13:12
    Depending on how sophisticated your CNC controller is you could give each board it's own work coordinate or you could use a sub-program to do the drilling (incremental positioning) and have the main program move to the starting positioning of each board before calling the sub-program.

    You could also try drilling several boards at once but be sure to lower the drill feed rate so you don't break the drill. Be sure to check that all the boards clear the drill head and that the drill is long enough.
Sign In or Register to comment.