2d mesuring

More
21 Sep 2019 06:57 #145735 by jefsaro
2d mesuring was created by jefsaro
Good morning all ,
 I have been working with linuxcnc for a number of years, doing a milling machine, a hobbing and a mortiser.
I do a lot of old motorcycle parts, the scanner 3 d is not necessary, I would like to measure parts with linear encoders, x y, without motor control, a bit like a three-dimensional but in 2 d.
I would use a cross laser module and a button to record the position of the points.
I know how to use the touch probe but for the return of linear measurements I do not know, I found examples, but I can not get them to work.

Please Log in or Create an account to join the conversation.

More
21 Sep 2019 18:58 #145778 by tommylight
Replied by tommylight on topic 2d mesuring
There is something like the teach function for Linuxcnc, but i can not recal what it's name was so i can not find it.
I do recal BigJT mentioning it a while back, so maybe he or someone else can lend more info about it.

Please Log in or Create an account to join the conversation.

More
22 Sep 2019 15:52 #145861 by MaHa
Replied by MaHa on topic 2d mesuring
To append absolute position, machinecoordinates, (G53) in a logfile,
for example a subroutine containing

o<posxyz_log> sub
G28.1
(LOGAPPEND,/home/NcFiles/LOGs/LOG_XYZ.NGC)
(LOG,X#5161 Y#5162 Z#5163)
(LOGCLOSE)
o<posxyz_log> endsub
M2

or to log positions of the active coordinatesystem

o<posxyz_log> sub
(LOG,X#5420 Y#5421 Z#5422)
(LOGCLOSE)
o<posxyz_log> endsub
M2


or search for position logger

Please Log in or Create an account to join the conversation.

More
25 Sep 2019 22:57 #146201 by andypugh
Replied by andypugh on topic 2d mesuring
Do you want to push the axes around by hand, or jog them? I suspect that you mean the first of the two?

LinuxCNC can do this, but it might be considered slightly excessive for the job.

But, it isn't like the unused bits of the system have any real cost.

In addition to the suggestions above from MaHa, look at how HALUI can be used to call his subroutines when you press a physical button.

Jogging and probing can also work:
bodgesoc.blogspot.com/2014/07/neracar6.html

Please Log in or Create an account to join the conversation.

More
26 Sep 2019 04:55 #146216 by jefsaro
Replied by jefsaro on topic 2d mesuring
thanks for many response , yes andypugh i want move whit my hand

Please Log in or Create an account to join the conversation.

More
26 Sep 2019 07:18 #146222 by pl7i92
Replied by pl7i92 on topic 2d mesuring
so best is to use the O-code variant and log your current position

the hint is the mesure tool diameter correction to the Moving axis
lets say you log Y+ the part is
#<_y> - Return current relative Y coordinate including all offsets. Same as #5421.
subtract by 5410 - Tool Diameter. Volatile. HALF

OR you log Y- the part is

#<_y> - Return current relative Y coordinate including all offsets. Same as #5421.
ADD by 5410 - Tool Diameter. Volatile. HALF

Please Log in or Create an account to join the conversation.

More
26 Sep 2019 07:23 #146224 by Hakan
Replied by Hakan on topic 2d mesuring
The output from a linear scale comes from the hal encoder module in two pins
hm2_7i76e.0.encoder.00.position
hm2_7i76e.0.encoder.00.count
position is a floating point number in machine units if the scale parameter is set right, count is well count. Some similar naming if using a bob.

You can use it in Gcode like
#<xpoint>=#<_hal[hm2_7i76e.0.encoder.00.position]>

Please Log in or Create an account to join the conversation.

More
26 Sep 2019 10:08 #146242 by andypugh
Replied by andypugh on topic 2d mesuring
If I wanted to make a LinuxCNC CMM (Which is what you are describing) then I would be tempted to use LinuxCNC HAL for the hardware drivers, but with a custom GUI programmed in Python to display and log the positions.

Though it has just occurred to me that for reverse-engineering like you describe, far more useful would be some way to send points directly to Fusion360, and at that point I would be looking at using an Arduino (or ItsyBitsy from Adafruit for more power) and writing a plug-in for Fusion to get the points in directly from the hardware.
(Alternatively, LinuxCNC + drivers running on a Pi doing much the same thing)
This would allow you to model the part interactively, which I feel would be more useful than trying to interpret your point cloud later on.

I am part-way through a similar project, I am converting an old Faro arm in to a standalone USB device. (Using the ItsyBitsy M4)

Please Log in or Create an account to join the conversation.

More
26 Sep 2019 14:26 #146268 by pl7i92
Replied by pl7i92 on topic 2d mesuring
this woudt draw you a 2D/3D part direct of a poin cloud

Please Log in or Create an account to join the conversation.

More
26 Sep 2019 14:32 #146270 by andypugh
Replied by andypugh on topic 2d mesuring
Yes, but reverse-engineering functional components is about a lot more than the basic 3D shape.
The scheme I am suggesting would end up with a fully parametric model.

Please Log in or Create an account to join the conversation.

Time to create page: 0.556 seconds
Powered by Kunena Forum