1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Industrial Robot Support and Discussion Center
  4. Fanuc Robot Forum
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

Search [X], [-X], [Y], [-Y], [Z], [-Z], Simply task a lot of Obstacles

  • fmiroslav
  • May 13, 2021 at 9:18 AM
  • Thread is Unresolved
  • fmiroslav
    Reactions Received
    18
    Trophies
    2
    Posts
    91
    • May 13, 2021 at 9:18 AM
    • #1

    DO[66] - Touch Sensing at Welding machine, ON activate this function

    DI[73] - Arc detect from Welding machine, ON - wire is in contact with part

    3 line of Code, 4 THSR errors

    After line 8,

    Error THSR-025 Nested Search Start

    R.: Add a search_end instruction in appropriate place or delete extra search start.

    ???

    Reset

    At line 10,

    Error THSR-006 Search Without Search Start

    R.: Add Search start instruction.

    Reset

    I execute again program from line 7

    Line 10,

    Error THSR-022 Part is not mastered

    R.: Mastering the part first.

    Only place where you can find Mastering the part first is list of errors!?

    Mastering the Part? Where we can find something about it?

    If I slightly move part by -X I get Arc detect DI[73] ON

    When robot reach position P[3]

    error appear THSR-023 No Search Start

    R.: Add Search Start before Search.

    Very often in manuals missing precondition for Tasks, maybe they are somewhere taxably noted,

    but we need manual where all steps is described in real World.

    Any Idea?

    Thanks!


  • GallusRoboticus
    Reactions Received
    9
    Trophies
    3
    Posts
    27
    • May 14, 2021 at 2:58 PM
    • #2

    The first time you run a program with touch sensing you will need to master the part by turning on the master flag in the touch sense schedule you are trying to use. It should automatically turn off after you execute the program the first time.

  • fmiroslav
    Reactions Received
    18
    Trophies
    2
    Posts
    91
    • May 14, 2021 at 8:49 PM
    • #3

    P2 start point for searching

    P3 origin of Touch Frame #1

  • fmiroslav
    Reactions Received
    18
    Trophies
    2
    Posts
    91
    • May 14, 2021 at 8:51 PM
    • #4
    Quote from GallusRoboticus

    The first time you run a program with touch sensing you will need to master the part by turning on the master flag in the touch sense schedule you are trying to use. It should automatically turn off after you execute the program the first time.

    I will checkout in RG, or at Monday on RR

  • fmiroslav
    Reactions Received
    18
    Trophies
    2
    Posts
    91
    • May 17, 2021 at 12:44 PM
    • #5
    Quote from GallusRoboticus

    The first time you run a program with touch sensing you will need to master the part by turning on the master flag in the touch sense schedule you are trying to use. It should automatically turn off after you execute the program the first time.

    Thanks GallusRoboticus :thumbs_up::beerchug:

    In DATA Touch Sched for Master flag must be ON then program will work.

    What doesn't work

    Search Start [1] PR[1]

    doesn't write to Position Register PR[1], only Contact record PR from DATA Touch Sched

    is updated with contact position, in my case PR[32].

    Why is Position Record from Search Start command ignored?


  • fmiroslav
    Reactions Received
    18
    Trophies
    2
    Posts
    91
    • May 17, 2021 at 1:15 PM
    • #6

    Master Flag

    Default=OFF

    This item enables the search routine to be used as a mastering routine for those touch

    sensing programs that generate positional offset information. If set to ON, when the

    search routine is executed, the touched positions are recorded on TP program internally

    as the reference positions to be used by future searches. This flag must be set to OFF

    after the master search is completed in order to generate the information of position offset

    on the objects to be searched. When the search is performed with Master Flag ON, the

    information of position offset in the position register is set to all zero values.

    The Master Flag condition has no effect on simple search pattern.

    Quote

    If set to ON, when the search routine is executed, the touched positions are recorded on TP program internally as the reference positions to be used by future searches.

    Will be recorded to Position Record PR defined in DATA Touch Sched.

    Quote

    This flag must be set to OFF after the master search is completed in order to generate the information of position offset on the objects to be searched.

    How from TP set this flag OFF?

    Does Search End do this, setting Master Flag OFF?

    Where is placed (generated) offset position? In PR register (defined in DATA Touch Sched) will be placed information of touched position in absolute coordinate.

    Quote

    When the search is performed with Master Flag ON, the

    information of position offset in the position register is set to all zero values.

    The Master Flag condition has no effect on simple search pattern.

    Search Start [1] PR[1]  Will reset X, Y, Z, W, P, and R values to 0,000.

    Edited 4 times, last by fmiroslav (May 17, 2021 at 2:05 PM).

  • GallusRoboticus
    Reactions Received
    9
    Trophies
    3
    Posts
    27
    • May 17, 2021 at 3:23 PM
    • #7
    Quote from fmiroslav

    How from TP set this flag OFF?

    Does Search End do this, setting Master Flag OFF?

    Where is placed (generated) offset position?

    Yes, I believe Search End will turn off the Master flag automatically. You can also turn it off manually in the Touch Schedule in the same way that you turned it on.

    When you run a search with the Master flag off, it will store the offset in the PR you specify in the Search Start command, which in your case would be PR[1].

  • fmiroslav
    Reactions Received
    18
    Trophies
    2
    Posts
    91
    • May 19, 2021 at 10:00 AM
    • #8
    Quote from GallusRoboticus

    Yes, I believe Search End will turn off the Master flag automatically. You can also turn it off manually in the Touch Schedule in the same way that you turned it on.

    When you run a search with the Master flag off, it will store the offset in the PR you specify in the Search Start command, which in your case would be PR[1].

    DATA / Touch Schedule

    Master Flag must be manually turned ON and OFF

  • fmiroslav
    Reactions Received
    18
    Trophies
    2
    Posts
    91
    • May 19, 2021 at 11:08 AM
    • #9

    After RFM and FRFM Method, try, change, try, change, try... , and finally solving,

    Here is a full code, it is different from code in F Manuals, have extra lines :smiling_face: and extra reactions :winking_face_with_tongue:.

    At first You need to Mastering Part, for that You turn ON Master Flag for selected

    Touch Schedule (in my case #4), at screenshot you can see parameters.

    When You Mastering Part, remove Remark from line 14 and 23, when run program back Remark.

    At line 15 and 24 get Error THSR-025 Nested search start, step up for one line (to line 14 and 23)

    press RESET to remove error message, press SHIFT + FWD keep SHIFT pressed.

    Program will be executed search and retract.

    At line 29 Error THSR-013 Illegal number of search, Just ignore because You CAN, RESET.

    Look up for PR[10] values, You will see something like

    X -.153 mm W .000 deg

    Y .514 mm P -.000 deg

    Z .000 mm R -0.038 deg

    Then teach positions.

    When You finished Mastering Part, in DATA Touch Schedule for Master Flag set OFF.

    RUN code, move part or turn around Z (R value) and RUN code again, look up for PR[10] values again

    You will see something like

    when you move

    X 10.555 mm W .000 deg

    Y 2.650 mm P .000 deg

    Z .000 mm R 0.005 deg

    move and rotate

    X 8.234 mm W .000 deg

    Y 1.876 mm P .000 deg

    Z .000 mm R 5.354 deg

    Code
    1:  UFRAME_NUM=0 ;
    2:  UTOOL_NUM=5 ;
    3:   ;
    4:  Touch Offset End ;
    5:  PR[10:PR_10]=PR[100:ALL_ZERO]    ;
    6:J P[1:          ] 10% FINE    ;
    7:   ;
    8:L P[2:          ] 25mm/sec FINE    ;
    9:  DO[66:OFF:E1 Touch Sensing]=(ON) ;
    10:  Search Start [4] PR[10] ;
    11:L P[3:          ] 5mm/sec FINE Search[X]    ;
    12:L P[4:          ] 25mm/sec FINE    ;
    13:  !Unremark when mastering ;
    14:  //Search Start [4] PR[10] ;
    15:   ;
    16:L P[5:          ] 25mm/sec FINE Search[X]    ;
    17:L P[6:          ] 25mm/sec FINE    ;
    18:L P[7:          ] 25mm/sec FINE    ;
    19:L P[8:          ] 25mm/sec FINE    ;
    20:L P[9:          ] 5mm/sec FINE Search[-Y]    ;
    21:L P[10:          ] 25mm/sec FINE    ;
    22:  !Unremark when mastering ;
    23:  //Search Start [4] PR[10] ;
    24:   ;
    25:L P[11:          ] 25mm/sec FINE Search[-Y]    ;
    26:L P[12:          ] 25mm/sec FINE    ;
    27:   ;
    28:  Search End ;
    29:   ;
    30:  DO[66:OFF:E1 Touch Sensing]=(OFF) ;
    31:   ;
    32:   ;
    33:   ;
    34:   ;
    35:  Touch Offset PR[10] ;
    36:L P[13:          ] 10mm/sec FINE    ;
    37:   ;
    38:L P[14:          ] 10mm/sec FINE    ;
    39:L P[15:          ] 10mm/sec FINE    ;
    40:L P[16:          ] 25mm/sec FINE    ;
    41:  WAIT   2.00(sec) ;
    42:  Touch Offset End ;
    43:L P[1:          ] 50mm/sec FINE    ;
    Display More

  • fmiroslav
    Reactions Received
    18
    Trophies
    2
    Posts
    91
    • May 19, 2021 at 12:53 PM
    • #10

    Program in action, Mastered position, offset and rotated position, program

    will execute movement by corner of cube in both case, second time movement is

    offset in X and Y axis and rotated by Z axis.

    External Content youtu.be
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

  • MoEL
    Reactions Received
    1
    Trophies
    2
    Posts
    97
    • November 3, 2021 at 11:58 AM
    • #11
    Quote from fmiroslav

    After RFM and FRFM Method, try, change, try, change, try... , and finally solving,

    Here is a full code, it is different from code in F Manuals, have extra lines :smiling_face: and extra reactions :winking_face_with_tongue:.

    At first You need to Mastering Part, for that You turn ON Master Flag for selected

    Touch Schedule (in my case #4), at screenshot you can see parameters.

    When You Mastering Part, remove Remark from line 14 and 23, when run program back Remark.

    At line 15 and 24 get Error THSR-025 Nested search start, step up for one line (to line 14 and 23)

    press RESET to remove error message, press SHIFT + FWD keep SHIFT pressed.

    Program will be executed search and retract.

    At line 29 Error THSR-013 Illegal number of search, Just ignore because You CAN, RESET.

    Look up for PR[10] values, You will see something like

    X -.153 mm W .000 deg

    Y .514 mm P -.000 deg

    Z .000 mm R -0.038 deg

    Then teach positions.

    When You finished Mastering Part, in DATA Touch Schedule for Master Flag set OFF.

    RUN code, move part or turn around Z (R value) and RUN code again, look up for PR[10] values again

    You will see something like

    when you move

    X 10.555 mm W .000 deg

    Y 2.650 mm P .000 deg

    Z .000 mm R 0.005 deg

    move and rotate

    X 8.234 mm W .000 deg

    Y 1.876 mm P .000 deg

    Z .000 mm R 5.354 deg

    Code
    1:  UFRAME_NUM=0 ;
    2:  UTOOL_NUM=5 ;
    3:   ;
    4:  Touch Offset End ;
    5:  PR[10:PR_10]=PR[100:ALL_ZERO]    ;
    6:J P[1:          ] 10% FINE    ;
    7:   ;
    8:L P[2:          ] 25mm/sec FINE    ;
    9:  DO[66:OFF:E1 Touch Sensing]=(ON) ;
    10:  Search Start [4] PR[10] ;
    11:L P[3:          ] 5mm/sec FINE Search[X]    ;
    12:L P[4:          ] 25mm/sec FINE    ;
    13:  !Unremark when mastering ;
    14:  //Search Start [4] PR[10] ;
    15:   ;
    16:L P[5:          ] 25mm/sec FINE Search[X]    ;
    17:L P[6:          ] 25mm/sec FINE    ;
    18:L P[7:          ] 25mm/sec FINE    ;
    19:L P[8:          ] 25mm/sec FINE    ;
    20:L P[9:          ] 5mm/sec FINE Search[-Y]    ;
    21:L P[10:          ] 25mm/sec FINE    ;
    22:  !Unremark when mastering ;
    23:  //Search Start [4] PR[10] ;
    24:   ;
    25:L P[11:          ] 25mm/sec FINE Search[-Y]    ;
    26:L P[12:          ] 25mm/sec FINE    ;
    27:   ;
    28:  Search End ;
    29:   ;
    30:  DO[66:OFF:E1 Touch Sensing]=(OFF) ;
    31:   ;
    32:   ;
    33:   ;
    34:   ;
    35:  Touch Offset PR[10] ;
    36:L P[13:          ] 10mm/sec FINE    ;
    37:   ;
    38:L P[14:          ] 10mm/sec FINE    ;
    39:L P[15:          ] 10mm/sec FINE    ;
    40:L P[16:          ] 25mm/sec FINE    ;
    41:  WAIT   2.00(sec) ;
    42:  Touch Offset End ;
    43:L P[1:          ] 50mm/sec FINE    ;
    Display More

    Display More


    Hello

    I am trying to use your program to create mine, but I don't understund why you need to do this for mastering

    Code
    2:  !Unremark when mastering ;
    23:  //Search Start [4] PR[10] ;

    When I unmark these lines, I got this error message:

    THSR-025 Nested search start

    Could you/someone help please?

    Thank you

  • fmiroslav
    Reactions Received
    18
    Trophies
    2
    Posts
    91
    • November 4, 2021 at 3:28 PM
    • #12
    Quote from MoEL

    Hello

    I am trying to use your program to create mine, but I don't understund why you need to do this for mastering

    Code
    2:  !Unremark when mastering ;
    23:  //Search Start [4] PR[10] ;

    When I unmark these lines, I got this error message:

    THSR-025 Nested search start

    Could you/someone help please?

    Thank you

    Display More

    Hi MoEL,

    try to Mastering Part with Remarked line

    Code
    13:  !Unremark when mastering ;
    
    14:  //Search Start [4] PR[10] ;
    Code
    22:  !Unremark when mastering ;
    
    23:  //Search Start [4] PR[10] ;

    if You fail at that, then please follow this steps

    Quote from fmiroslav

    When You Mastering Part, remove Remark from line 14 and 23, when run program back Remark.

    At line 15 and 24 get Error THSR-025 Nested search start, step up for one line (to line 14 and 23)

    press RESET to remove error message, press SHIFT + FWD keep SHIFT pressed.

    Program will be executed search and retract.

    At line 29 Error THSR-013 Illegal number of search, Just ignore because You CAN, RES

    Why is it so, that is question for Fanuc. I try school examples from manual.... maybe is some problem in configuration of robot? I would like if You succeed with // Marked lines.

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Tags

  • Search [X]
  • Search [Y]
  • Search [Z]
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download