A translation of David's digitizing with MACH3
[His English is better than my French ...which I am learning again... with some help of translation programs]
The translations are presented sequentially following his entries on his web site.
The "****" are breaks where there are photographs or videos on his web site.(picture added)
Hi all,
Recently, I became interested in a very useful feature of Mach3, its ability to scan in 3D with the CN [?] and the help of the digitizing Wizard that allows it (+ a few personal tweaks ..)
Scan with Mach3
The wizard opens a screen for setting a vertical scanning over a rectangular area.

After entering the width and height (in the XY plane) of the area to "scan", 10 x 10 mm. Here, we define the positions of minimum and maximum Z displacement; then the probe will descend to a maximum coordinate - 2 if it detects anything before. It will rise to the +4 coordinated rapidly before moving to the next measurement point.
The button "Check file size" can be used to calculate the number of lines of code to be produced depending on the settings.
You must also determine the feed rate of probing, here set to 300mm/min.
Once all adjustments made, click on "Create and load G-code" to generate the G-code that will be directly transferred to the interface of Mach3.

It only remains to launch the program.
The M40 calls a routine in Visual Basic (a. M1S) located in the folder macros Mach3, and contains just the "OpenDigFile ()" which has the effect to open a query file in which you will specify the file name under which the coordinates scanned will be saved.
It is important to you then remember to put the extension. Txt at the end of the filename (Mach does not do automatically), otherwise it will not be available for the second part of the operation that is turn it into a 3D file in STL format.

The second line G-code, G92X0Y0Z0 has the effect of moving all axes to 0 at the point where the sensor is located, so before starting the program, move your probe to the point that you consider the 0, 0, 0 in XYZ.
The G31 triggers the descent of Z; when the entry of "digit" is activated by contact with the object, the coordinates are saved in text file.
Here is an excerpt of this text file, with the X, Y and Z of each scanned point on a line.
0.00000,0.00000,0.00259
4.99917,0.00000,0.00259
10.00458,0.00000,0.00259
15.00375,0.00000,0.00259
20.00292,0.00000,0.00259
.....................
The zigzag scan is performed as shown in the image below.
Mounting of the probeIn my case, I simply used my touch probe, mounted upside down and is operated through the back of the stem of the guage, which in this case, only serves as a "accurate movable rod ". This arrangement may of course also be used only with the guage for other uses.
Here the assembly into 3D images



.... and actual parts ....



mounting on the machine ....



and then a test on a mouse.
https://www.youtube.com/watch?v=rJT_sCL-sBoThen a coin
https://www.youtube.com/watch?v=uBfli_h4uok#t=16and finally capture a profile using a step Y greater than the size of the area to be scanned, which provides a single line.
https://www.youtube.com/watch?v=DHmXUbzNhNAFile conversion points.I had to develop a small application in Visual Basic. Net to transform this "scatter" in a full 3D shape, and in a format readable by most of 3D softwares.
This application, Mach3Digit2STL.exe is attached and the converted. Txt file created by Mach3 in a file. STL
the file. STL result is saved in the same folder and with the same name as the original text file, except that its file extension becomes. stl
Here is a video how to do this.
http://www.screencast.com/t/yiroCd0sAQand the result for the coin, opened in 3Dsmax. The difference in height of the engraving is of the order of 0.25mm

Note that if you do not remove the scanned part of the machine, and you put in the STL CAMBAM, all coordinates are in correspondence between the "real" part and the part in 3D open CAMBAM, you just have to replace the probe by a tool and re-Z 0 in order to be able to machine at the desired location on the workpiece.
EDIT: Instead of my Mach3Digit2STL utility, you can use the Digitizer Import Plugin written by GeoffreyGRoy that give better results.http://www.cambam.co.uk/forum/index.php?topic=4303.msg30573#msg30573+ +
David
attachments
Mach3Digit2STL.zip