Need Help! Need help with custom program for renishaw probe


Results 1 to 3 of 3

Thread: Need help with custom program for renishaw probe

  1. #1
    Member GruntinTucan's Avatar
    Join Date
    Oct 2022
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default Need help with custom program for renishaw probe

    At my shop, we are implementing a robot arm for part swapping in a machine on a job. With this implementation my boss asked for a probing program to verify the part placements prior to machining. This is because of critical dimensions of features that will be added to on this second operation.
    I have limited experience with making custom programs with macros so I'm asking for help.
    The below is the code I've written for this. I've had some success but some failures too. I have since added code to zero variables #185, #186, #187 prior to the probing cycle.
    Also, the purpose of the code is to verify to posistion of features relative to to the g55 xo. yo.
    Thank you for help in advance!

    %
    O00920
    N2 G0 G17 G40 G49 G80 G90
    T21 M06
    G00 G90 G55 X-0.190 Y-1.4400
    G43 H21 Z4.
    G65 P9832 (Probe ON)
    G65 P9810 Z-0.150 F80. (Op 2-move Z down to probe X)
    G65 P9811 X.2 (probe X single surface)
    G65 P9810 Z1. F80. (Clear Move)
    IF [[#185 + 0.0056 ] GT 0.001 ] GOTO10
    GOTO20
    N10
    #3000=10.(OP2 X out of POS!)
    N20
    G65 P9810 X4.1106 Y0.100 F80.(OP2-moving to Y probe start location)
    G65 P9810 Z-0.150 F80. (move Z down to probe Y)
    G65 P9811 Y-.2 (probe Y surface)
    G65 P9810 Z1. F80. (clear move)
    IF [[#186 - 0.003 ] GT -0.001 ] GOTO30
    GOTO40
    N30
    #3000=11.(OP2 Y out of POS!)
    N40
    G65 P9810 Z0.150 F80. (move to z start for probe)
    G65 P9810 X4.0 Y-0.1 F80. (OP2-move to Z probe start location)
    G65 P9811 Z-.175 (Probe Z surface)
    G65 P9810 Z1.0 F80. (Clear move)
    IF [[#187 - 0.011 ] GT 0.0015 ] GOTO50
    GOTO60
    N50
    #3000=12.(OP2 Z out of POS!)
    N60
    G65 P9810 Z4. F80. (Clear Move)
    G65 P9810 G54 X19.5 Y-2. F80. (move to Op 1)
    G65 P9810 Z0.25 (safe move to start Z probe location)
    G65 P9811 Z-0.25 (Probe Z surface)
    G65 P9810 Z1.0 F80.
    IF [[#187 - 0.155 ] GT 0.02 ] GOTO70
    GOTO80
    N70
    #3000=13.(OP1 Z out of POS!)
    N80
    G65 P9810 Z4. F80. (Clear Move)
    G65 P9833 (Probe OFF)
    M30


    %

    Similar Threads:
    Last edited by GruntinTucan; 10-06-2022 at 01:18 PM.


  2. #2
    eckitsch's Avatar
    Join Date
    Aug 2007
    Location
    Suhl
    Posts
    411
    Downloads
    0
    Uploads
    0

    Default Re: Need help with custom program for renishaw probe

    Hallo,

    habe in Deinem Programm etwas aufgeräumt und umstrukturiert. Habe es aber nicht testen können, also keine Garantie auf Fehlerfreiheit!
    Nach dem Tasten OP2 in X bricht bricht das Programm ab. Das ist nicht nötig.
    Wenn X nicht paßt, weiter mit Tasten OP1.
    Wenn X paßt und Y nicht, weiter mit Tasten OP1.
    Und wenn XY passen und Z nicht, trotzdem weiter mit Tasten OP1.
    Auswertung erfolgt erst am Ende. So hast Du dann alles auf einen Blick welche Aufspannung nicht stimmt.

    %
    O00920
    N2
    T21 M06 (Probe tool)
    G103 P1
    #601=0 (clear counter OP 1)
    #602=0 (clear counter OP 2)
    G55
    (OP 2 X)
    G00 X-0.190 Y-1.44
    G43 H21 Z4.
    G65 P9832 (Probe ON)
    G65 P9810 Z-0.150 F80.
    G65 P9811 X0.2 (probe X single surface)
    G65 P9810 Z1.
    IF [[#185 + 0.0056] GT 0.001] GOTO10
    GOTO20
    N10
    #602=#602+1
    GOTO 60

    N20
    (OP 2 Y)
    G65 P9810 X4.1106 Y0.1
    G65 P9810 Z-0.15
    G65 P9811 Y-0.2 (probe Y single surface)
    G65 P9810 Z1.
    IF [[#186 - 0.003] GT -0.001] GOTO30
    GOTO40
    N30
    #602=#602+1
    GOTO 60

    N40
    (OP 2 Z)
    G65 P9810 X4.0 Y-0.1
    G65 P9810 Z0.15
    G65 P9811 Z-0.175 (Probe Z singe surface)
    G65 P9810 Z1.0
    IF [[#187 - 0.011 ] GT 0.0015 ] GOTO50
    GOTO60
    N50
    #602=#602+1

    N60
    G65 P9810 Z4. (Clear Move)

    G54
    G65 P9810 Z0.25 (safe move to start Z probe location)
    G65 P9811 Z-0.25 (Probe Z surface)
    G65 P9810 Z1.0
    IF [[#187 - 0.155] GT 0.02] GOTO70
    GOTO80
    N70
    #601=#601+1

    N80
    G65 P9810 Z4. (Clear Move)
    G65 P9833 (Probe OFF)

    IF [[#601 LE 0] AND [#602 LE 0]] GOTO 199
    IF [[#601 GT 0] AND [#602 GT 0]] GOTO 170
    IF [#601 GT 0] GOTO 180
    IF [#602 GT 0] GOTO 190


    N170 #3000=3 (check position both parts)
    N180 #3000=1 (check position part 1)
    N190 #3000=2 (check position part 2)
    N199 (all positions Ok)
    G103 P0
    %



  3. #3
    Member GruntinTucan's Avatar
    Join Date
    Oct 2022
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default

    Thank you very much. I'll test it out and check for errors. Thanks again for the help. If I have issues, I'll come back with questions


    Quote Originally Posted by eckitsch View Post
    Hallo,

    habe in Deinem Programm etwas aufgeräumt und umstrukturiert. Habe es aber nicht testen können, also keine Garantie auf Fehlerfreiheit!
    Nach dem Tasten OP2 in X bricht bricht das Programm ab. Das ist nicht nötig.
    Wenn X nicht paßt, weiter mit Tasten OP1.
    Wenn X paßt und Y nicht, weiter mit Tasten OP1.
    Und wenn XY passen und Z nicht, trotzdem weiter mit Tasten OP1.
    Auswertung erfolgt erst am Ende. So hast Du dann alles auf einen Blick welche Aufspannung nicht stimmt.

    %
    O00920
    N2
    T21 M06 (Probe tool)
    G103 P1
    #601=0 (clear counter OP 1)
    #602=0 (clear counter OP 2)
    G55
    (OP 2 X)
    G00 X-0.190 Y-1.44
    G43 H21 Z4.
    G65 P9832 (Probe ON)
    G65 P9810 Z-0.150 F80.
    G65 P9811 X0.2 (probe X single surface)
    G65 P9810 Z1.
    IF [[#185 + 0.0056] GT 0.001] GOTO10
    GOTO20
    N10
    #602=#602+1
    GOTO 60

    N20
    (OP 2 Y)
    G65 P9810 X4.1106 Y0.1
    G65 P9810 Z-0.15
    G65 P9811 Y-0.2 (probe Y single surface)
    G65 P9810 Z1.
    IF [[#186 - 0.003] GT -0.001] GOTO30
    GOTO40
    N30
    #602=#602+1
    GOTO 60

    N40
    (OP 2 Z)
    G65 P9810 X4.0 Y-0.1
    G65 P9810 Z0.15
    G65 P9811 Z-0.175 (Probe Z singe surface)
    G65 P9810 Z1.0
    IF [[#187 - 0.011 ] GT 0.0015 ] GOTO50
    GOTO60
    N50
    #602=#602+1

    N60
    G65 P9810 Z4. (Clear Move)

    G54
    G65 P9810 Z0.25 (safe move to start Z probe location)
    G65 P9811 Z-0.25 (Probe Z surface)
    G65 P9810 Z1.0
    IF [[#187 - 0.155] GT 0.02] GOTO70
    GOTO80
    N70
    #601=#601+1

    N80
    G65 P9810 Z4. (Clear Move)
    G65 P9833 (Probe OFF)

    IF [[#601 LE 0] AND [#602 LE 0]] GOTO 199
    IF [[#601 GT 0] AND [#602 GT 0]] GOTO 170
    IF [#601 GT 0] GOTO 180
    IF [#602 GT 0] GOTO 190


    N170 #3000=3 (check position both parts)
    N180 #3000=1 (check position part 1)
    N190 #3000=2 (check position part 2)
    N199 (all positions Ok)
    G103 P0
    %




Tags for this Thread

Posting Permissions

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


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Need help with custom program for renishaw probe

Need help with custom program for renishaw probe