CamBam
News:
 
*
Welcome, Guest. Please login or register. April 19, 2014, 15:07:53 pm


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: 3D digitize with Mach3 and Cambam  (Read 4813 times)
dh42
CNC Jedi
*****
Offline Offline

Posts: 1530



View Profile WWW
« on: March 12, 2012, 19:57:47 pm »

Hello,

From some days, I work on the digitizing features of Mach3, and you can show the results here.

http://www.metabricoleur.com/t2083-numerisation-3d-avec-mach3#28389

I must create a little soft in VB to convert Mach digit file in stl format.

It's in French, but there is full of picture and video ....(translation in the following post, thanks to Imagining !)

++
David

* Mach3Digit2STL.zip (11.43 KB - downloaded 239 times.)
« Last Edit: April 01, 2013, 17:01:41 pm by dh42 » Logged
Imagining
Storm Trooper
***
Offline Offline

Posts: 134


View Profile
« Reply #1 on: April 09, 2012, 00:24:48 am »

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.



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 probe

In 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.
*****************
Then a coin
*****************
and finally capture a profile using a step Y greater than the size of the area to be scanned, which provides a single line.
************
File 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.
*************
and the result for the room, 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.

+ +
David

attachments
Mach3Digit2STL.zip
Logged
dh42
CNC Jedi
*****
Offline Offline

Posts: 1530



View Profile WWW
« Reply #2 on: April 09, 2012, 15:41:42 pm »

Hello,

Thanks for the translation  Cheesy

++
David
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.153 seconds with 17 queries.

Copyright © 2008 HexRay Ltd. | Sitemap