EDIT XYZ probe script

Is there a way to edit the GCODE that controls the XYZ zeroing process?

1 Like

I hacked my probing code enough to get a custom probe block to work. The aluminum block I have is 1.1811" square by .5906" high.

  1. Download the source code for the firmware at:
    https://github.com/OneFinityCNC/onefinity-firmware

  2. Extract the download and edit the following file:
    onefinity-1.0.9-20211217.tar\bbctrl-1.0.9\src\py\bbctrl\http\ index.html

  3. Around line 20,210 I modified the following ORIGINAL code

G91 G0 X ${mm(20)}
G91 G0 Z ${mm(-plunge)}
G38.2 X ${mm(-20)} ${speed(fastSeek)}
G91 G1 X ${mm(1)}
G38.2 X ${mm(-2)} ${speed(slowSeek)}
G92 X ${mm(xoffset)}

G91 G0 X ${mm(1)}
G91 G0 Y ${mm(20)}
G91 G0 X ${mm(-20)}
G38.2 Y ${mm(-20)} ${speed(fastSeek)}
G91 G1 Y ${mm(1)}


To be the following:
G91 G0 X ${mm(10)}
G91 G0 Z ${mm(-plunge)}
G38.2 X ${mm(-40)} ${speed(fastSeek)}
G91 G1 X ${mm(1)}
G38.2 X ${mm(-2)} ${speed(slowSeek)}
G92 X ${mm(xoffset)}

G91 G0 X ${mm(20)}
G91 G0 Y ${mm(10)}
G91 G0 X ${mm(-10)}
G38.2 Y ${mm(-40)} ${speed(fastSeek)}
G91 G1 Y ${mm(1)}
G38.2 Y ${mm(-2)} ${speed(slowSeek)}

  1. Use SSH to login to the Onefinity and upload the new index.html file, overwriting the original.
1 Like

thanks for this info, do have a link for the 1.1.1 version

thanks gene

1 Like

If you go to the release channel at

https://github.com/OneFinityCNC/onefinity-release

…you can download the ZIP file (using the green Code button/drop-down list) which contains all versions.

Or, if you SSH into your OneFinity, you could just pull down the active index.html from the machine itself.

1 Like

Hey Forrest,

by the way, Markdown, as supported here in discourse.org forum software, allows nice automatic syntax highlighting for Diffs in Unified Diff format (and for a lot of other languages):

--- XYZ_probe_script_old.txt<>2022-12-23 22:05:54.809038645 +0100
+++ XYZ_probe_script_new.txt<>2022-12-23 22:05:37.504965621 +0100
@@ -1,12 +1,13 @@
-G91 G0 X ${mm(20)}
+G91 G0 X ${mm(10)}
 G91 G0 Z ${mm(-plunge)}
-G38.2 X ${mm(-20)} ${speed(fastSeek)}
+G38.2 X ${mm(-40)} ${speed(fastSeek)}
 G91 G1 X ${mm(1)}
 G38.2 X ${mm(-2)} ${speed(slowSeek)}
 G92 X ${mm(xoffset)}
 
-G91 G0 X ${mm(1)}
-G91 G0 Y ${mm(20)}
-G91 G0 X ${mm(-20)}
-G38.2 Y ${mm(-20)} ${speed(fastSeek)}
+G91 G0 X ${mm(20)}
+G91 G0 Y ${mm(10)}
+G91 G0 X ${mm(-10)}
+G38.2 Y ${mm(-40)} ${speed(fastSeek)}
 G91 G1 Y ${mm(1)}
+G38.2 Y ${mm(-2)} ${speed(slowSeek)}
3 Likes