PB_Conversational: conversational screens for Probe Basic
Thread milling, pockets, island contours and backlash compensation right on the LinuxCNC screen, without opening a CAM program. I made it for the machines in my shop and published it as an open project for anyone running Probe Basic on a mill.
Code on GitHubDownload installer 1.5.1Thread on the LinuxCNC forum

| For | Probe Basic on milling machines (LinuxCNC) |
|---|---|
| Versions | Probe Basic 0.6.x (Debian 12, PyQt5) and 1.0.x (Debian 13, PySide6) |
| Operations | Internal and external thread, rectangular and circular pocket, rectangular and circular island contour |
| Settings | Per-axis backlash compensation with INI backups |
| Units | Millimetres and inches; metric threads M1.6 to M64 and UNC/UNF from #0 to 2 inches |
| Installation | A single 130 KB .run file, no sudo or external dependencies |
| Language | Python 3 with qtpy, on QtPyVCP |
| License | MIT |
| Version | 1.5.1, November 22, 2026 |
Why I made it
To mill a thread, clear a centred pocket or tweak an axis's backlash I don't want to fire up a full CAM package, draw the part, generate the toolpath and transfer the program to the machine. These are jobs solved with half a dozen dimensions, and the natural place to enter them is at the machine.
Probe Basic ships with a CONVERSATIONAL tab full of ready but empty slots: a THREAD MILL with nothing in it, eight blank tabs in POCKETS and eight more in PERIMETER, and a free frame in SETTINGS. These screens fill exactly those slots.

Thread milling
A single thread mill cuts right- or left-hand threads, blind or through, across many diameters, without the risk of snapping a tap at the bottom of the part. The tedious bit is working out compensation, passes and tangential entry by hand; that's what the screen does.


Internal thread. It has a table of up to 30 X/Y coordinates, so a whole hole pattern comes out in a single program. With pre-drilling enabled, the program starts with the drill, drills every point and then changes to the thread mill. Pecking doesn't rely on a canned cycle: on every peck the drill retracts fully to the R-plane, rapids back to just above the previous depth, and the peck depth keeps shrinking. Drill depth is worked out automatically from the thread length, the tip-to-tooth distance and the drill point angle (118° or 135°).
Choosing a standard thread fills in the nominal diameter, the pitch and the tap drill. There are metric coarse and fine from M1.6 to M64, UNC and UNF from #0 to 2 inches, and a free mode for special pitches.
External thread. Works the same way on a boss or stud centred at X/Y: the cutter drops outside the diameter, arcs in tangentially over a quarter pitch, helixes around and arcs out tangentially before retracting.
| Climb milling | With the spindle in M3, climb-milling a right-hand internal thread means helixing up from the bottom in G3. Chips fall away and deflection pushes the cutter away from the thread root. |
|---|---|
| Passes | EQUAL or DECREASING. Decreasing spreads the depth by the square root of i/n so chip cross-section stays constant and the last pass is light; a spring pass can be added. |
| Fit | The cutter diameter is left at its real measured size and the fit is adjusted with CORRECC. Ø in hundredths until the go/no-go gauge feels right. |
| Chamfer | It uses the lower 60° flank of the tooth to interpolate a 120° countersink at the mouth of the hole. |
| BB cutters | A button fills in diameter, flute count and neck reach from the catalogue of BB single-tooth cutters (BK2055 and BF2055), and warns if the thread is deeper than the neck. |
| True feed rate | The feed is calculated at the cutting edge and scaled down to the tool-centre radius, so the tooth isn't loaded two or three times over inside a small hole. |
Pockets
Rectangular, with corner radius and rotation angle, or circular. Always centred at X0 Y0 in the active work coordinate system: probing or edge-finding the centre of a bearing bore is quicker and less error-prone than measuring from a corner.


To enter solid stock, the tool helixes down in the centre at the chosen ramp angle (2° to 3° in steel, 3° to 5° in aluminium) with a reduced entry feed. If the pocket is too narrow for a helix, it falls back to a zig-zag ramp along the long side, and if there's already a starter hole you can plunge straight in.
At each Z level the clearing goes from the centre outwards, always in the same direction, with stepover capped at 70 % of the diameter so no uncut triangles are left in the corners. On a small mill or one with some screw wear, zig-zag reverses the load on every pass and eats the backlash; that's why it isn't used here. If wall or floor stock is left, the finish pass comes at the end with a tangential arc lead-in and lead-out.
Island contours
The opposite of a pocket: you set X0 Y0 at the centre of the raw block, enter the rectangular or circular island that should be left in the middle, and the screen removes all the material around it down to the requested depth.


The cutter drops outside the block, a quarter of its diameter clear of the edge, and steps inwards in concentric G2 loops, climb milling on the outside. That's why the stock must stick up above the vice jaws by more than the contour depth.
Backlash compensation
On a converted benchtop mill, with rolled ball screws or worn acme screws, backlash is a fact of life, and a few hundredths show up when you interpolate a bore or thread-mill a tight fit. LinuxCNC compensates it per joint with BACKLASH in each [JOINT_n] of the INI, but changing it means closing LinuxCNC, editing the file by hand and not making a mistake.
The SETTINGS panel reads the values in the INI and the ones LinuxCNC has active right now, and lets you enable, disable and save each axis. Before touching the INI it saves a dated copy and keeps the last 30. It only changes the BACKLASH line in that section and leaves the rest of the file byte for byte. Disabling an axis doesn't delete the measurement: it comments it out, so you can compare when you measure again.
With a Mesa card or software stepgen, compensation forces the step generator to accelerate harder than the planner on every reversal. If STEPGEN_MAXACCEL isn't at least twice MAX_ACCELERATION, the panel warns you.
Measuring it with a dial indicator
| 1 | Disable compensation for the axis, save and restart LinuxCNC. |
|---|---|
| 2 | Set the dial indicator against the table (X, Y) or the head (Z). |
| 3 | In manual mode with a 0.01 step, jog into the indicator until it preloads and zero the bezel. |
| 4 | Jog 1.00 mm further in the same direction. |
| 5 | Jog back exactly the same distance. Whatever is missing to reach zero is the backlash. |
| 6 | Repeat three times in the area you actually machine in, average, save the value and restart LinuxCNC. |
| 7 | Check with compensation active: the needle should return to zero within a hundredth. |
If there is more than 0.15 mm of backlash, software compensation isn't the answer: first check the nut preload or the bearings.
How it plugs into Probe Basic
The rule I set myself was never to touch any Probe Basic file. If you modify its interface, the next update wipes your work or leaves you maintaining your own fork forever.
It installs as a normal user tab, in user_tabs/pb_conversational/, using the USER_TABS_PATH mechanism Probe Basic already has. On startup, once the main window is built, each screen moves into its place inside CONVERSATIONAL and SETTINGS, and the temporary tab disappears from the top bar. If a Probe Basic variant lacks one of those slots, nothing breaks: that screen stays in a normal tab called CONVERSATIONAL+.
When you type a tool number, the screen looks it up in the LinuxCNC tool table and shows its comment. If it doesn't exist, the field turns red, because LinuxCNC would reject the M6.
| HOLE OPS | The empty THREAD MILL becomes INT. THREAD, and EXT. THREAD appears next to it |
|---|---|
| POCKETS | The first two empty tabs become RECT. POCKET and CIRC. POCKET; the other six are hidden |
| PERIMETER | Same again, with RECT. CONTOUR and CIRC. CONTOUR |
| SETTINGS | The empty frame on the left gets the backlash panel |
| MISC | Left free for your own screens |
How it's built
The G-code generators are pure Python: they only import math, with no Qt or LinuxCNC, so they can be tested on any PC. Each one follows the same path: fill in the parameters, validate them, compute the geometry (radii, Z levels, entries and corrected feeds) and generate the commented .ngc program.
The screens use qtpy rather than PyQt5 or PySide6 directly, and detect at runtime which font and Qt API are active. That's why the same package runs on Probe Basic 0.6 on Debian 12 and on Probe Basic 1.0 on Debian 13, which refuses user tabs that import PyQt5.
The sketches aren't static images: they're drawn with QPainter from the toolpath that will be generated. Before posting the program you can already see the helix diameter, the number of passes, the cutter size against the hole or island, and the arc direction.
Installing it
On the machine's PC, just download the installer and run it. It looks for Probe Basic mill configurations in ~/linuxcnc/configs, asks which one to use if there are several, and leaves everything ready to restart Probe Basic.
bash pb_conversational_1.5.1.run
Before touching anything it saves an exact copy of the INI, and uninstalling puts it back as it was. If you've changed the INI since installing, it keeps your changes and only reverts its own lines. Generated .ngc programs are never touched, and updating keeps the last values of each screen.
Always check the program in the LinuxCNC backplot and run an air cut before machining.
Documentation
The repository explains every part in depth. It's in English, the language of the LinuxCNC forum.
Operations guide · Probe Basic integration · Backlash compensation · Installer and files · Code structure · Release notes 1.5.1
On the LinuxCNC forum
The project is presented in the GUI section of the official LinuxCNC forum, where you can leave questions, ideas and results.
The same machines also gave rise to the wireless display for LinuxCNC, and all the work with the Mesa 7i76E card and HAL is in LinuxCNC and control electronics.
Further reading
The adaptive clearing I'm adding to the pockets, with its maths, its history and an animated race on my EMCO F1: Adaptive clearing: why the cutter breaks in the corner and how to avoid it.