This article discusses the flatbed correction feature built into myCNC software which is often useful when the working table is not even or has certain spots which are higher or lower than the reference position. This is especially useful in cases when something like a tangential knife needs to go over the uneven table, resulting in a cut that does not actually go through the working material properly, or alternatively a cut that goes far too deep into the material.
In order to account for this, flatbed correction is used.
The following video goes over the basic process of setting up flatbed correction within myCNC software:
To set up flatbed correction, into Settings > Config > Technology > Special Purpose > Flatbed Correction.
The screen presented to you will be the following:
After the measurements have been taken and the Reference Z has been entered, press the Save CFG button, enable Flatbed correction and reload the application.
By adding these correction points, myCNC software will create an updated Z-axis map of the working table. From here on, whenever Flatbed Correction is enabled, the machine will automatically adjust the z-axis height of the working tool in order to adjust for the table level changes depending on where in the XY-plane it currently is.
The code for the M402 macro can be found below:
(Surface measure macro) G28.2 Z0 (save current Z into Register1.Z) M88 L1 P15 (watch for input(P) to be closed (L1) - EDIT THIS) G91 G0 Z -35.000 F 200 (move down, stop if sensor triggered) G91 G0 Z 2.000 F 400 M89 L1 P15 (watch for input(P) to be closed (L1) - EDIT THIS) G91 G0 Z -2.000 F 20.0 G4 P0.2 G90 G10 L81 P8171 Q5021 G90 G10 L81 P8172 Q5022 G90 G10 L81 P8173 Q5023 G90 G10 L80 P8170 Q1 G91 G0 Z10
Here, you have to edit the two lines with the EDIT THIS comments. In the input P, you have to specify the input number for the sensor (set as 15 in this example), and in the L field you have to specify the behaviour that will be interpreted as the sensor being triggered (0 for a normally closed sensor which will be opened when triggered, and 1 for a normally open sensor which will be closed at contact).