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 vs global interrupt

  • SBDP_4.0
  • June 9, 2020 at 10:08 AM
  • Thread is Unresolved
  • SBDP_4.0
    Reactions Received
    2
    Posts
    23
    • June 9, 2020 at 10:08 AM
    • #1

    Hi everybody,

    I'm new to KRL, I've done robot prog 1 and 2 and I've being searching into the KSS 8.3 System Integrator manual but I can't see a clear definition in it.

    Could someone explain me the difference between a GLOBAL INTERRUPT and an INTERRUPT, please?

    Thanks in advance

  • Mentat
    Reactions Received
    61
    Trophies
    5
    Posts
    243
    • June 9, 2020 at 12:05 PM
    • #2

    Straight from the manual:

    Quote

    An interrupt is only recognized at, or below, the level in which it is declared. In other words, an interrupt declared in a subprogram is not recognized in the main program (and cannot be activated there). If an interrupt is also to be recognized at higher levels, the declaration must be preceded by the keyword GLOBAL.

  • SBDP_4.0
    Reactions Received
    2
    Posts
    23
    • June 9, 2020 at 12:18 PM
    • #3

    Yes I've read that but then my following question would be:

    what is the benefice to use a GLOBAL INTERRUPT in a main program, for example in cell.src?

  • Mentat
    Reactions Received
    61
    Trophies
    5
    Posts
    243
    • June 9, 2020 at 1:24 PM
    • #4

    It will be recognized in all functions/procedures above cell.src (e.i. none).

  • SBDP_4.0
    Reactions Received
    2
    Posts
    23
    • June 9, 2020 at 1:31 PM
    • #5

    So why at the start of cell.src there is:

    GLOBAL INTERRUPT DECL 3 WHEN $STOPMESS==TRUE DO IR_STOPM ( )

    INTERRUPT ON 3

    It is also there if creating a new module using the in-built template.

  • Online
    panic mode
    Reactions Received
    1,280
    Trophies
    11
    Posts
    13,088
    • June 9, 2020 at 1:33 PM
    • #6

    Also RESUME vcannot be used with interrupts declared as GLOBAL, c

    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,280
    Trophies
    11
    Posts
    13,088
    • June 9, 2020 at 1:34 PM
    • #7

    ... that declaration tells to robot to call stop isr when fault is detected.

    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

  • SBDP_4.0
    Reactions Received
    2
    Posts
    23
    • June 9, 2020 at 1:37 PM
    • #8

    panic mode, Yes I noticed that during my testing phase. Do you know what is the reason?

    One of my colleagues said that it's because it wouldn't know where to Resume as it is declared globally.

  • SBDP_4.0
    Reactions Received
    2
    Posts
    23
    • June 9, 2020 at 1:39 PM
    • #9
    Quote from panic mode

    . that declaration tells to robot to call stop isr when fault is detected.

    Ok but why is it declared as GLOBAL INTERRUPT? I understand why in the template module because they can be used in a main program but cell.src isn't suppose to be the highest level?

  • Mentat
    Reactions Received
    61
    Trophies
    5
    Posts
    243
    • June 9, 2020 at 1:45 PM
    • #10
    Quote from SBDP_4.0

    Ok but why is it declared as GLOBAL INTERRUPT? I understand why in the template module because they can be used in a main program but cell.src isn't suppose to be the highest level?

    That part is boilerplate code, no special case was made for cell.src. Doesn't affect the functionality.

  • Online
    panic mode
    Reactions Received
    1,280
    Trophies
    11
    Posts
    13,088
    • June 9, 2020 at 2:19 PM
    • #11
    Quote from SBDP_4.0

    panic mode, Yes I noticed that during my testing phase. Do you know what is the reason?

    One of my colleagues said that it's because it wouldn't know where to Resume as it is declared globally.

    this was covered in programming2.

    RESUME kills all subprograms below level where the interrupt is declared and returns to main program after call to this (killed) branch.

    but global interrupt would then try kill ... everything ....

    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

  • SBDP_4.0
    Reactions Received
    2
    Posts
    23
    • June 9, 2020 at 2:45 PM
    • #12

    Thanks panic mode and Mentat

    With the Covid situation, I have followed the robot programming 2 manual (from a colleague manual) but didn't get the chance yet to have the training class.

  • Benjamin12321
    Trophies
    1
    Posts
    3
    • October 31, 2023 at 3:57 PM
    • #13

    Hello everyone, I have a question about global Interrupt. When I push button, I want to pause the program that means Want to create interrupt but I wonder How Can the program turn to home position in the interrupt program. If you can help me, I will be happy

  • Online
    panic mode
    Reactions Received
    1,280
    Trophies
    11
    Posts
    13,088
    • October 31, 2023 at 4:46 PM
    • #14

    don't do that....

    interrupts ae meant to react to events and be done quickly. so just use interrupt to detect and flag something. use separate program that gets the robot home

    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

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

  • Cancel Program and Send Pointer to Cell.

    • PGG
    • August 31, 2017 at 10:40 PM
    • KUKA Robot Forum
  • KRC4 interrupts without stopping motion

    • Agustin Costa
    • February 13, 2020 at 2:54 PM
    • KUKA Robot Forum
  • Switching TOOL and BASE in SPS

    • Gnot
    • December 6, 2018 at 6:23 PM
    • KUKA Robot Forum
  • exit to subprogram after interrupt with case

    • sofiened
    • October 16, 2019 at 10:57 AM
    • KUKA Robot Forum
  • Problem Interrupt subprogram is not executed

    • ouila
    • November 2, 2018 at 11:03 PM
    • KUKA Robot Forum
  • Autoextern tool and base are lost?

    • knowledgesharing
    • November 9, 2017 at 12:38 PM
    • KUKA Robot Forum
  • Question regarding event triggering an Interrupt

    • ML_VS
    • July 24, 2017 at 3:01 AM
    • KUKA Robot Forum
  • Smoothing out program

    • 9566317
    • January 31, 2014 at 1:10 AM
    • KUKA Robot Forum
  • Interrupt Programming Issue

    • PJonHar
    • July 12, 2016 at 5:21 PM
    • KUKA Robot Forum
  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