• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

conversion series profile points in polylinea dwg dxf...

fifurnio

Guest
hello to all

is my first ad, I tried to search in the forum and on the net but I did not find answers to my question: I am making the project of a 2d laser scanner that detects a series of distances on a constant step scanning plane on a forged piece (mobile, for production control purposes), the laser produces a series of hexadecimal quantities that I can correlate with scanning (which I command at constant steps of 1-2 mm) producing pairs of x and y values in text format; the customer asks for a polyline in cad format to each scan.
the piece is rough and there are no precision requirements beyond the millimeter, so a polyline consisting of segments of 1-2-3 mm is fine.
I already have a plc-touch integrated to the tool that is already able to generate the text file with the quotas in sequence.
I have tried to study the various formats, since for the most part they are convertible into text, the most intuitive is the iges, I studied the structure, the coordinates of the points of the various elements are also visible in clear and are hexadecimal, but from here to build a 2d file I see it a little difficult for my means.
I ask if someone can help me directly or if there is a program per pc or even an insertable routine already in the plc that can directly produce the file.
for the record: the pieces in question have dimensions around the meter height and two of diameter.
 
good morning fifurnio, would be liked a presentation (there is the special discussion in the forum) before starting to post.
I think that by geometries 2d is more indicated a dxf output.
If I didn't get it wrong, we're talking about a 2d profile meter.
There are already many solutions like this, well evaluated if it can be possible to design from scratch an existing device on the market.
 
dxf dwg or iges is not the problem, okay any format openable from a cad program
Yes, it is a device that tracks a profile, only that in addition to that it has to do other things including measuring distances with a wire encoder, is a custom-made object for a customer.
solutions on the market: I mean 2d laser scanners aren't good and cost, I have concave profiles where laser scanners don't track.
my tool mounts a fixed-range laser keyence on a cart that moves on a motorized axis, and must draw external and internal profiles on various planes of shaped profiled rings; lighthouse and hexagon for example propose three-dimensional systems on 100000 euros, and are in this case unnecessarily accurate, as well as slow.

If you have other solutions, can you tell me something?

I hope to fill the gap tonight.
 
I found this:http://www.ingegneri.info/forum/viewtopic.php?f=4&t=10570
here the juice:

1) on excel we develop our function on two columns, type f(x)=x^2;
column b
1
2 4
3 9
4
25
6
7 49
864
981
etc... .

2) Save with .csv extension
3) change extension in .scr
4) opens this file, you change the points and commas with commas, in the first line you write "line" (magari depends on the program language):

psyche
0.0
1,1
2,4
3,9
4,16
5.25
6,36
7,49
8,64
9.
etc. .
you save everything.

5) from autocad, fixed the 0 of the axes, gives the script command and opens the saved file
Has anyone tried?
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top