586,441 active members*
4,631 visitors online*
Register for free
Login
IndustryArena Forum > Tools / Tooling Technology > Calibration / Measurement > measuring a diameter by x & y point values
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2007
    Posts
    7

    measuring a diameter by x & y point values

    I'm trying to write a probe routine that will check a diameter. I don't have a problem, getting the x & y values. I don't know the mathmatical formula to get the diameter. The routine will measure 4 or more equally spaced points on the diameter, up to say 30 points. I want to be able to calculate the average diameter, and the maximum and minimum diameter. Any suggestions?

  2. #2
    Join Date
    Jul 2003
    Posts
    1220
    This will give you the centre XY and diameter from any three points.

    X1 = ?:X2 =?:X3 = ?:Y1 =?:Y2 = ?:Y3 = ?
    Ma = (Y2 - Y1) / (X2 - X1)
    Mb = (Y3 - Y2) / (X3 - X2)
    X = ((Ma * Mb) * (Y1 - Y3) + (Mb * (X1 + X2)) - (Ma * (X2 + X3))) / (2 * (Mb - Ma))
    Y = -(1 / Ma) * (X - (X1 + X2) / 2) + (Y1 + Y2) / 2
    Diameter = (Sqr((X2 - X) ^ 2 + (Y2 - Y) ^ 2))*2

Similar Threads

  1. Shaft Diameter, LeadScrew Diameter, Motor Torque?
    By cnc-newb in forum DIY CNC Router Table Machines
    Replies: 8
    Last Post: 12-24-2007, 09:51 PM
  2. Shaft Diameter, LeadScrew Diameter, Motor Torque?
    By cnc-newb in forum Uncategorised MetalWorking Machines
    Replies: 0
    Last Post: 12-15-2007, 04:25 AM
  3. Busellato Optima Point To point
    By Malacara in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 0
    Last Post: 12-12-2007, 01:22 AM
  4. converting point to point programs
    By kevinwd1 in forum Uncategorised CAM Discussion
    Replies: 2
    Last Post: 06-11-2007, 05:45 PM
  5. Point to point programs
    By Frankbals in forum Mazak, Mitsubishi, Mazatrol
    Replies: 2
    Last Post: 05-22-2007, 09:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •