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

INTERRUPT PROBLEM - ON BEFORE IT SHOULD BE

  • rvsh
  • June 27, 2023 at 3:50 PM
  • Thread is Unresolved
  • rvsh
    Trophies
    3
    Posts
    26
    • June 27, 2023 at 3:50 PM
    • #1

    Hi,

    I've got a problem. Tested on krc2 5.5.8 and 5.6.10 the same behaviour.

    The interrupt 23 in the program below is activated even when robot is on move to XP1. Is this normal behaviour of kuka robots?

    I turn interrupt ON AFTER the robot should reach XP1 and still the XP1 is interrupted when the robot is in move to XP1.

    I simplified the program to show how I use this interrupt. I added halt to check that the program really going into the ir sub and it confirmed that it goes there even when INTERRUPT is OFF.

    Where is the problem? Thank you for any input.

    Code
    DEF search()
      INI
      $CYCFLAG[1] = $IN[1] AND $IN[2]
      INTERRUPT DECL 23 WHEN $CYCFLAG[1] == FALSE DO irStopRobot()
    
      PTP $POS_ACT
      $ADVANCE = 3
    
      $BWDSTART=FALSE
      PDAT_ACT=PDATmax
      FDAT_ACT=FB1
      BAS(#PTP_PARAMS,100)
      PTP XP1 C_PTP
    
      INTERRUPT ON 23
      MoveP2()
      $ADVANCE = 3
      INTERRUPT OFF 23
    END
    
    
    DEF MoveP2()
      $BWDSTART=FALSE
      LDAT_ACT=Lcpdatmax
      FDAT_ACT=FB1
      BAS(#CP_PARAMS,0.08)
      LIN XP2
      $ADVANCE = 0
    END
    
    
    DEF irStopRobot()
      INTERRUPT OFF 23
      BRAKE
      rPickPosSavedZ = $POS_INT.Z
      halt
      RESUME
    END
    Display More
  • Online
    SkyeFire
    Reactions Received
    1,039
    Trophies
    12
    Posts
    9,375
    • June 27, 2023 at 4:29 PM
    • #2

    Advance Run Pointer. Depending on the value of $ADVANCE, it "pre-loads" the next several motion commands (between 0 and 5, default value is 3), and pre-executes any non-motion code between those motions.

    Try making XP1 a non-CONT motion. Or place a WAIT SEC 0 between the XP1 move and the INTERRUPT ON command.

    If you absolutely must keep XP1 as a CONT motion, then you'll need to use a TRIGGER command to execute the INTERRUPT ON.

  • rvsh
    Trophies
    3
    Posts
    26
    • June 27, 2023 at 6:32 PM
    • #3

    I thought until today that ADVANCE was only merging robot moves, and the "standard instructions" are executed between these moves and ofcourse advance pointer stops at instructions mentioned in KUKA expert manual as advance pointer stoppers. It was big misunderstunding on my side. Thank you for clarifying this.

    From your post I assume that instructions that do not stop ADVANCE pointer are executed in sequence until reaching the move that ADVANCE pointer point at, even that the moves are not executed yet.

    CONT is needed to get smooth movement. I will try TRIGGER tommorow. It looks promising. Thank you.

  • Online
    SkyeFire
    Reactions Received
    1,039
    Trophies
    12
    Posts
    9,375
    • June 27, 2023 at 8:10 PM
    • #4
    Quote from rvsh

    From your post I assume that instructions that do not stop ADVANCE pointer are executed in sequence until reaching the move that ADVANCE pointer point at, even that the moves are not executed yet.

    Correct. The ARP runs ahead of the Main Run Pointer and executes any non-Motion commands "in advance", until it hits a "breaking" command. WAITs are the most obvious "breaking" commands, but there's an entire list in the KUKA documentation.

    Upon hitting a "breaking" command, the ARP halts until the MRP catches up with it.

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

Similar Threads

  • Interrupt and Resume Program Control

    • macraesk
    • October 27, 2020 at 8:33 PM
    • KUKA Robot Forum
  • EthernetKRL Sometimes message is not received correctly

    • EmilijaS
    • March 8, 2023 at 10:38 AM
    • KUKA Robot Forum
  • Startup error new motion -12

    • Elderwild
    • December 2, 2022 at 6:48 PM
    • ABB Robot Forum
  • KUKA.ApplicationsKRC_1.2 installation failed

    • Gocea
    • April 22, 2022 at 9:08 PM
    • KUKA Robot Forum
  • POS_ACT and E6POS

    • Robotmei
    • January 11, 2022 at 4:00 PM
    • KUKA Robot Forum
  • EKI - PTP commands executing too slow

    • Ravnicas
    • January 10, 2022 at 10:46 AM
    • KUKA Robot Forum
  • RSI distance control with ANIN problem.

    • PiotrEDC
    • July 22, 2021 at 6:06 PM
    • KUKA Robot Forum
  • Unintended motion

    • Robottech
    • February 2, 2021 at 12:28 AM
    • Yaskawa Motoman Robot Forum
  • Different brake reactions when searching for one part

    • robotecnik
    • September 23, 2020 at 10:12 AM
    • KUKA Robot Forum
  • Using interrupt to store values

    • chis
    • February 25, 2020 at 11:10 PM
    • KUKA Robot Forum

Tags

  • KRC2
  • interrupt

Users Viewing This Thread

  • 1 Guest
  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