603,850 active members*
3,141 visitors online*
Register for free
Login

Thread: Any ideas?

Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2014
    Posts
    19

    Any ideas?

    Just in the process of writing a macro to check the concentricity of two ends of a part on a horizontal machining centre.

    The first end is probed to check if a bore diameter is in tolerance, then it probes the OD of the part, indexes 180deg and probes the other end.

    I haven't proved my macro yet, but I think the following would work. The only thing I wanted to do, and this is my question, was have another alarm generated when BOTH X and Y are out of tolerance. What would be the best way of doing this? Would I have to use some kind of counter?

    Thanks in advance!


    (G65P9814D50.Z-10.H0.1) (PROBE DIAMETER AND CHECK IF IN TOLERANCE)

    (G65P9814D80.Z-10.) (PROBE DIA FOR REF CONCENTRICITY)


    #605 = ABS[#135] (STORE X VALUE OF CONCENTRICITY REF DIA)
    #606 = ABS[#136] (STORE Y VALUE OF CONCENTRICITY REF DIA)



    IF [[ABS[[ABS[#135]]-40.]] GT 0.025] GOTO 1003

    IF [[ABS[[ABS[#136]]-40.]] GT 0.025] GOTO 1004




    GOTO1212

    N1002#3000=101(TARGET DIAMETER INCORRECT)
    N1003#3000=102(X POSITION FOR CONCENTRICITY OUT OF TOLERANCE)
    N1004#3000=103(Y POSITION FOR CONCENTRICITY OUT OF TOLERANCE)

    N1212M00


    (CONTINUE WITH PROG)

  2. #2
    Join Date
    Jan 2009
    Posts
    105

    Re: Any ideas?

    Hi Alexmf,
    this is how I would do it:

    IF [[ABS[[ABS[#135]]-40.]] GT 0.025]THEN#135=1 (IF #135=1 THEN X OUT OF TOL.)
    IF [[ABS[[ABS[#136]]-40.]] GT 0.025]THEN#136=1 (IF #136=1 THEN Y OUT OF TOL.)

    (OR THIS IF YOUR CONTROL DOESN'T SUPPORT "THEN")

    IF [[ABS[[ABS[#135]]-40.]] LT 0.025]GOTO1
    #135=1 (IF #135=1 THEN X OUT OF TOL.)
    N1
    IF [[ABS[[ABS[#136]]-40.]] LT 0.025]GOTO2
    #136=1 (IF #136=1 THEN Y OUT OF TOL.)
    N2

    #137=[#135+#136](IF #137=2 X AND Y OUT OF TOL.)

    (ERROR CHECKING)
    IF [#137 EQ 2] GOTO 1005
    IF [#135 EQ 1] GOTO 1003
    IF [#136 EQ 1] GOTO 1004


    N1002#3000=101(TARGET DIAMETER INCORRECT)
    N1003#3000=102(X POSITION FOR CONCENTRICITY OUT OF TOLERANCE)
    N1004#3000=103(Y POSITION FOR CONCENTRICITY OUT OF TOLERANCE)
    N1005#3000=104(X AND Y POSITION FOR CONCENTRICITY OUT OF TOLERANCE)



    the check for both is tested first which allows all possibilities, Hope this helps

    Mark

  3. #3
    Join Date
    Feb 2014
    Posts
    19

    Re: Any ideas?

    Cheers for that Mark! All worked fined apart from on the next run it as alarming out on X AXIS OUT OF POS, but after scratching my head for a while, realised the #135, #136 and #137 variables needed resetting to zero again.

    Cheers for your help!

    Alex.

  4. #4
    Join Date
    Jan 2009
    Posts
    105

    Re: Any ideas?

    Hi Alex,
    That makes sense, Nice to see you worked it out.

    Mark

Similar Threads

  1. Any ideas?
    By Redhawk in forum Tormach Personal CNC Mill
    Replies: 6
    Last Post: 01-05-2012, 02:35 AM
  2. Need some ideas
    By lourenco in forum Hobby Discussion
    Replies: 4
    Last Post: 02-16-2009, 09:47 PM
  3. Need some ideas
    By skyverse in forum Engraving Machines
    Replies: 0
    Last Post: 02-21-2008, 10:54 PM
  4. I need some ideas
    By Ken_Shea in forum Uncategorised MetalWorking Machines
    Replies: 17
    Last Post: 08-19-2004, 01:11 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
  •