Using RPF file 2 times if we have two jobs to cut on top or bottom

Help for setting up and using
Post Reply
userhomeinit
Posts: 6
Joined: Mon May 08, 2023 8:39 am

Using RPF file 2 times if we have two jobs to cut on top or bottom

Post by userhomeinit »

Hello,

I have a question about some issues I’m encountering when making cuts on the top or bottom of a PCB. For example, when I need to run two cuts on either side, I can't run the probing twice because some regions become isolated from the spindle, preventing surface detection. I need to adjust both G-code files—one for the PCB layout and the other for the border.

The issue is that after running a job on either side, I'm unable to use the PFG file to probe the surface with the CNC machine. This happens because the first job isolates the PCB, and zero detection fails since there’s no longer a copper connection between the spindle and the PCB.

I’ve tried using Autoleveller twice with the same file generated by my CNC, but it doesn’t seem to work correctly, and the jog speed isn’t being factored in.

My idea is to take a screenshot of the Autoleveller to save the mesh coordinates, then open another instance of Autoleveller, manually input the mesh coordinates, and load the first PFG measurement along with the new G-code to apply Autoleveller corrections. After that, I would generate a second job (the second Autoleveller-corrected file).

Also, why does Autoleveller display this message, and is there a way to adjust the maximum segment?

segmented line. Max segment length set to 5

Code: Select all

(This GCode script was designed to adjust the Z height of a CNC machine according)
(to the minute variations in the surface height in order to achieve a better result in the milling/etching process)
(This script is the output of AutoLevellerAE, 0.9.5u2 Changeset: ...2d0387 @ http://autoleveller.co.uk)
(Author: James Hawthorne PhD. File creation date: 26-09-2024 17:02)
(This program and any of its output is licensed under GPLv2 and as such...)
(AutoLevellerAE comes with ABSOLUTELY NO WARRANTY; for details, see sections 11 and 12 of the GPLv2 @ http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)

G90 G20 S20000 G17

M0 (Attach probe wires and clips that need attaching)
(Initialize probe routine)
G0 Z1.5 (Move clear of the board first)
G1 X0 Y-35.2835[color=#BF0000] F35[/color] (Move to bottom left corner)
G0 Z0.0787 (Quick move to probe clearance height)
G31 Z-0.0625 [color=#FF0000]F5[/color] (Probe to a maximum of the specified probe height at the specified feed rate)
G92 Z0 (Touch off Z to 0 once contact is made)
G0 Z0.0787 (Move Z to above the contact point)
G31 Z-0.0625[color=#FF0000] F2.5[/color] (Repeat at a more accurate slower rate)
G92 Z0
G0 Z0.0787
M0 (Detach any clips used for probing)

(G-CODE GENERATED BY FLATCAM v8.994 - www.flatcam.org - Version Date: 2020/11/7)

(Name: Gerber_BoardOutlineLayer.GKO_noncopper_cnc)
(Type: G-code from Geometry)
(Units: MM)

(Created on Friday, 13 September 2024 at 21:00)

(This preprocessor is used with MACH3 with probing height.)

(TOOL DIAMETER: 0.2155 mm)
(Feedrate_XY: 120.0 mm/min)
(Feedrate_Z: 60.0 mm/min)
(Feedrate rapids 1500.0 mm/min)

(Z_Cut: -0.1 mm)
(Z_Move: 2.0 mm)
(Z Start: None mm)
(Z End: 25.0 mm)
(X,Y End: None mm)
(Steps per circle: 64)
(Preprocessor Geometry: Toolchange_Probe_MACH3)

(X range:    1.0329 ...   72.9471  mm)
(Y range:  -37.4271 ...   -1.0729  mm)

(Spindle Speed: 0.0 RPM)
G21
G90
G17
G94


G01 F120.00

M5
T2
M6
G00 Z25.0000
G00 X0.0000 Y0.0000
(MSG, Change to Tool Dia = 0.2155 ||| CONNECT THE PROBE)
M0
F60.00
G31 Z-19.97808
G92 Z0.02192
G00 Z1.0000
F30.00
G31 Z-19.97808
G92 Z0.02192
G00 Z2.0000
(MSG, Remove any clips or other devices used for probing. CNC work is resuming ...)
M0

M03
G01 F120.00
G00 X1.0329 Y-37.4271
G01 F60.00
G01 Z-0.09174
G01 F120.00
G01 X1.03290 Y-32.42710Z-0.10114 [color=#FF0000];segmented line. Max segment length set to 5[/color]
G01 X1.03290 Y-27.42710Z-0.10730 ;segmented line. Max segment length set to 5
G01 X1.03290 Y-22.42710Z-0.10938 ;segmented line. Max segment length set to 5
G01 X1.03290 Y-17.42710Z-0.11216 ;segmented line. Max segment length set to 5
G01 X1.03290 Y-12.42710Z-0.10538 ;segmented line. Max segment length set to 5
G01 X1.03290 Y-7.42710Z-0.09707 ;segmented line. Max segment length set to 5
G01 X1.03290 Y-2.42710Z-0.09174 ;segmented line. Max segment length set to 5
G01 X1.0329 Y-1.0729Z-0.08752
G01 X6.03290 Y-1.07290Z-0.10478 ;segmented line. Max segment length set to 5
G01 X11.03290 Y-1.07290Z-0.13003 ;segmented line. Max segment length set to 5
G01 X16.03290 Y-1.07290Z-0.16267 ;segmented line. Max segment length set to 5
G01 X21.03290 Y-1.07290Z-0.19999 ;segmented line. Max segment length set to 5
G01 X26.03290 Y-1.07290Z-0.24023 ;segmented line. Max segment length set to 5
G01 X31.03290 Y-1.07290Z-0.27879 ;segmented line. Max segment length set to 5
G01 X36.03290 Y-1.07290Z-0.32080 ;segmented line. Max segment length set to 5
G01 X41.03290 Y-1.07290Z-0.36537 ;segmented line. Max segment length set to 5
G01 X46.03290 Y-1.07290Z-0.41391 ;segmented line. Max segment length set to 5
G01 X51.03290 Y-1.07290Z-0.46227 ;segmented line. Max segment length set to 5
G01 X56.03290 Y-1.07290Z-0.50679 ;segmented line. Max segment length set to 5
G01 X61.03290 Y-1.07290Z-0.55770 ;segmented line. Max segment length set to 5
G01 X66.03290 Y-1.07290Z-0.62202 ;segmented line. Max segment length set to 5
G01 X71.03290 Y-1.07290Z-0.63487 ;segmented line. Max segment length set to 5
G01 X72.9471 Y-1.0729Z-0.63487
G01 X72.94710 Y-6.07290Z-0.62744 ;segmented line. Max segment length set to 5
G01 X72.94710 Y-11.07290Z-0.63834 ;segmented line. Max segment length set to 5
G01 X72.94710 Y-16.07290Z-0.63416 ;segmented line. Max segment length set to 5
G01 X72.94710 Y-21.07290Z-0.62147 ;segmented line. Max segment length set to 5
G01 X72.94710 Y-26.07290Z-0.63090 ;segmented line. Max segment length set to 5
G01 X72.94710 Y-31.07290Z-0.62542 ;segmented line. Max segment length set to 5
G01 X72.94710 Y-36.07290Z-0.60189 ;segmented line. Max segment length set to 5
G01 X72.9471 Y-37.4271Z-0.60475
G01 X67.94710 Y-37.42710Z-0.60475 ;segmented line. Max segment length set to 5
G01 X62.94710 Y-37.42710Z-0.54710 ;segmented line. Max segment length set to 5
G01 X57.94710 Y-37.42710Z-0.48471 ;segmented line. Max segment length set to 5
G01 X52.94710 Y-37.42710Z-0.42436 ;segmented line. Max segment length set to 5
G01 X47.94710 Y-37.42710Z-0.37923 ;segmented line. Max segment length set to 5
G01 X42.94710 Y-37.42710Z-0.33751 ;segmented line. Max segment length set to 5
G01 X37.94710 Y-37.42710Z-0.29472 ;segmented line. Max segment length set to 5
G01 X32.94710 Y-37.42710Z-0.25392 ;segmented line. Max segment length set to 5
G01 X27.94710 Y-37.42710Z-0.21743 ;segmented line. Max segment length set to 5
G01 X22.94710 Y-37.42710Z-0.18604 ;segmented line. Max segment length set to 5
G01 X17.94710 Y-37.42710Z-0.15755 ;segmented line. Max segment length set to 5
G01 X12.94710 Y-37.42710Z-0.13453 ;segmented line. Max segment length set to 5
G01 X7.94710 Y-37.42710Z-0.10478 ;segmented line. Max segment length set to 5
G01 X2.94710 Y-37.42710Z-0.08303 ;segmented line. Max segment length set to 5
G01 X1.0329 Y-37.4271Z-0.09174
G00 Z2.0000
M05
G00 Z2.0000
G00 Z25.00


Attachments
PFG~67x35.nc
(32.28 KiB) Downloaded 148 times
Gerber_BoardOutlineLayer.GKO_noncopper_cnc.nc
(1.21 KiB) Downloaded 157 times
ALGerber_BoardOutlineLayer.GKO_noncopper_cnc.nc
(5.65 KiB) Downloaded 155 times
userhomeinit
Posts: 6
Joined: Mon May 08, 2023 8:39 am

Re: Using RPF file 2 times if we have two jobs to cut on top or bottom

Post by userhomeinit »

After reading the user manual, I believe I found the explanation for the unusual behavior I encountered.

https://www.autoleveller.co.uk/feature-guide/

P.S.: The user manual was really helpful. It would be great if the owner could link it or integrate it into the application. This way, users could find the information they need before turning to the forum for help.

I'll follow up to confirm if my question was fully answered and everything is clear.
Thank you! :D :mrgreen:
Post Reply