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. KUKA 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

Master reference test fails.

  • Rebold
  • July 2, 2025 at 11:01 AM
  • Thread is Resolved
  • Rebold
    Trophies
    2
    Posts
    5
    • July 2, 2025 at 11:01 AM
    • New
    • #1

    Hey there

    We're trying to do the master referencing but it fails with error:

    15066, Level at Mastering Reference Switch Unexpectedly low

    We're using SafeOperation 3.6, and the robot is connected to PLC via ProfiNet.

    Here is masref_user.src:

    Code
    ...
    GLOBAL DEF MASREFSTARTG1()
    ;FOLD Teach path and position for reference group 1
    ;ENDFOLD
    
    ;FOLD SPTP p1 Vel=100 % PDAT1 Tool[0]:BaseCalPoint Base[0] ;%{PE}
    
    ;ENDFOLD
    ;FOLD SPTP p2 Vel=100 % PDAT2 Tool[0]:BaseCalPoint Base[0] ;%{PE}
    
    ;ENDFOLD
    ;FOLD SPTP p3 Vel=100 % PDAT3 Tool[0]:BaseCalPoint Base[0] ;%{PE}
    
    ;ENDFOLD
    ;FOLD SPTP p4 Vel=100 % PDAT4 Tool[0]:BaseCalPoint Base[0] ;%{PE}
    
    
    ; This is the position where the reference switch is actuated. We can see that on the switch.
    ;ENDFOLD
    ;FOLD SPTP p5 Vel=100 % PDAT5 Tool[0]:BaseCalPoint Base[0] ;%{PE}
    
    ;ENDFOLD
    
    END
    
    GLOBAL DEF MASREFBACKG1()
    ;FOLD SPTP p4 Vel=100 % PDAT4 Tool[0]:BaseCalPoint Base[0] ;%{PE}
    
    ;ENDFOLD
    END
    Display More

    SafeOperation_36_en talks about a file named VW_USER.INI, but it doesn't exist on our controller, so it's been a bit of cherry-picking from different sources, but we're out of ideas now.

    Can someone explain what were doing wrong?

    Edited once, last by Rebold (July 2, 2025 at 1:24 PM).

  • Go to Best Answer
  • MOM July 2, 2025 at 11:32 AM

    Approved the thread.
  • Roland Keller
    Reactions Received
    13
    Trophies
    5
    Posts
    66
    • July 2, 2025 at 12:48 PM
    • New
    • #2

    Have you also taught the position in the security configuration?

  • Fubini
    Reactions Received
    282
    Trophies
    9
    Posts
    1,898
    • July 2, 2025 at 12:49 PM
    • New
    • #3

    What ist the controller you are using? KSS or VSS?

    The error "Mastering Reference Switch Unexpectedly" typically indicates that the mastering reference switch was triggered when it shouldn't have been, or the signal was inconsistent during the mastering process. So either check that both signals on the switch are triggered simultaneous or do not hit the reference switch too early, for example already on your way to the check position. Maybe also your mastering position ist not even where you expect it to be. It needs to be entered into the safety configuration.

  • Rebold
    Trophies
    2
    Posts
    5
    • July 2, 2025 at 1:36 PM
    • New
    • #4

    Thank you for your replies!

    The controller is KSS. The position has been set up in safety config.

    I've updated the code, i see i posted the wrong one (we've tried a few things.)

    I assume the last move in MASREFSTARTG1() should be the one engaging the switch?

  • Online
    panic mode
    Reactions Received
    1,293
    Trophies
    11
    Posts
    13,122
    • July 2, 2025 at 2:25 PM
    • New
    • #5

    first off, you are using wrong manual. this is KSS manual for SOP3.6 and there is no mention of VW_USER.INI


    so i would follow suggestions to check if:

    mastering reference switch is configured correctly (connected to KRC or to PLC?), if the reference position is taught etc.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • Online
    panic mode
    Reactions Received
    1,293
    Trophies
    11
    Posts
    13,122
    • July 2, 2025 at 2:31 PM
    • New
    • #6
    Quote from Rebold

    I assume the last move in MASREFSTARTG1() should be the one engaging the switch?

    why assume? this is dealing with safety and there is no room for playing around. just follow the manual.

    you need to teach motions in two places:

    MASREFSTARTG1() to take you to the reference switch (from safe position such as home)

    MASREFBACKG1() to return from reference switch to a safe position

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • Rebold
    Trophies
    2
    Posts
    5
    • July 2, 2025 at 3:09 PM
    • New
    • #7
    Quote from panic mode

    why assume? this is dealing with safety and there is no room for playing around. just follow the manual.

    I was unaware that i had the wrong manual. I don't have much experience in the field.

    The robot is still in commisioning in-house. We are not playing around, we are trying to find the correct solution, hence we seek advice here.

    Thanks for your reply, i hope this will fix the issue! :smiling_face:

  • Online
    SkyeFire
    Reactions Received
    1,059
    Trophies
    12
    Posts
    9,450
    • July 2, 2025 at 3:43 PM
    • New
    • #8
    Quote from Rebold

    We're trying to do the master referencing but it fails with error:

    When does it fail? At what point in the program? During the move to MasRef position, or immediately on the start of the MasRef program? How is the KRC receiving the MasRef signals? Is the sensor wired directly to the KRC, or are you using a network safety signal from a Safety PLC?

    The MasRef sensor is a dual-sensor unit, with both sensors always "on" -- that is, the "normally closed" contacts of the sensors are wired to the KRC. And both lights on the sensor should always be on, until a piece of metal trips one (or both) of the sensors.

    The reason for this is so that the KRC can detect if the sensor has lost power or been disconnected, before attempting the MasRef test. If the error trips the moment you begin the program, you need to check for this.

    So the sensor being "unexpectedly low" means that either the signal is not being received by the KRC, or it could mean that the sensor is being tripped before the robot reaches the MasRef position set up in the SafeOp configuration.

    SafeOp depends on both of the MasRef sensors being tripped at the same time (within a few milliseconds), at the moment the robot reaches the MasRef position (plus/minus a very small window of error). That's why the "fork" that you're supposed to attach to the end effector is shaped the way it is -- a fairly small positional error will cause the MasRef check to fail.

  • Online
    panic mode
    Reactions Received
    1,293
    Trophies
    11
    Posts
    13,122
    • July 2, 2025 at 4:13 PM
    • New
    • #9

    make sure the reference switch software configuration matches connection.

    also approach of fork to sensor matters (depends on velocity). you want both channels to be triggered at the same time. so avoid approach where forks move like this:

    or this:

    i prefer to do it like this:

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • Rebold
    Trophies
    2
    Posts
    5
    • July 3, 2025 at 8:53 AM
    • New
    • #10

    Some extra information:

    1. We're using these to bolts to trigger the sensor.

    2. We have an external linear vertical Kuka axis, that the robot is mounted on. The reference switch is connected to this controller because, for some reason, the safety fails when it is connected to the robot controller. The mastering test input is set to "at cabinet"

    - I see now, that the error is present already before even attempting the master referencing, i didn't notice this before. I'm beginning to think it has to do with point 2. above.


    Where can i monitor the inputs from the reference switch? I can't find anything about that in the manuals or online.

    Appreciate you help!

  • Rebold
    Trophies
    2
    Posts
    5
    • July 3, 2025 at 11:53 AM
    • New
    • Best Answer
    • #11

    SOLVED!

    The problem was that under safety configuration->hardware options, Customer input had to be set to "Discrete CR5 Micro with JR input"

    (And the switch was connected to main controller)

  • Rebold July 3, 2025 at 11:54 AM

    Selected a post as the best answer.

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

  • Reference fail
  • Reference Switch
  • Referencing
  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