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, I set $PRO_ACT=FALSE

  • Jozef Karas
  • October 30, 2024 at 4:15 PM
  • Thread is Unresolved
  • Jozef Karas
    Posts
    14
    • October 30, 2024 at 4:15 PM
    • #1

    Hello, how do I set the interrupt, I set $PRO_ACT=FALSE?

  • Online
    SkyeFire
    Reactions Received
    1,039
    Trophies
    12
    Posts
    9,375
    • October 30, 2024 at 6:13 PM
    • #2
    Quote from Jozef Karas

    Hello, how do I set the interrupt, I set $PRO_ACT=FALSE?

    $PRO_ACT is a system variable that shows the run status of the program interpreter. You cannot control it.

    "How do I set the interrupt" is too vague to make any response to, beyond "read the manual."

  • work_BR
    Reactions Received
    11
    Trophies
    1
    Posts
    95
    • October 30, 2024 at 10:21 PM
    • #3
    Code
    INTERRUPT DECL 126 WHEN $CYCFLAG[126] DO Your_program()
    $CYCFLAG[126] = NOT Your_variable 
    INTERRUPT ON 126

    When you declare a program, where you put your "DECL INT BLAH1, BLAH2..." declare your interrupt.

    It's kind of annoying that the value has to go from false to true (rising edge), but using the $CYCLEFLAG structure above i found is an easy way to get what you want.


    If you use the $CYCLEFLAG style, in the "Your_Program()" you need to turn the interrupt off, do what you want to happen, then turn it back on again with the:

    Code
       INTERRUPT OFF 126
       
       ..code..
       
       INTERRUPT ON 126
  • Jozef Karas
    Posts
    14
    • October 31, 2024 at 8:22 AM
    • #4

    GLOBAL INTERRUPT DECL 2 WHEN bIR_HALT==TRUE DO IR_HALT()
    INTERRUPT ON 3

    GLOBAL DEF IR_HALT()
    INTERRUPT OFF 2
    bIR_HALT=FALSE
    BRAKE
    WAIT SEC 0.8
    HALT
    INTERRUPT ON 2
    END

  • work_BR
    Reactions Received
    11
    Trophies
    1
    Posts
    95
    • October 31, 2024 at 3:29 PM
    • #5
    Code
    GLOBAL INTERRUPT DECL 2 WHEN bIR_HALT==TRUE DO IR_HALT()
    ;INTERRUPT ON 3
    --Your robot code--
    END
    
    GLOBAL DEF IR_HALT()
    ;INTERRUPT OFF 2
    bIR_HALT=FALSE
    BRAKE
    WAIT SEC 0.8
    HALT
    ;INTERRUPT ON 2
    END
    Display More

    Doing it as described, i don't believe you need any of the INTERUPT commands.

    I assume you're posting because it's not working.

  • hermann
    Reactions Received
    404
    Trophies
    9
    Posts
    2,595
    • November 1, 2024 at 10:26 AM
    • #6
    Quote from Jozef Karas

    GLOBAL INTERRUPT DECL2WHEN bIR_HALT==TRUE DO IR_HALT()
    INTERRUPT ON3

    Different numbers in statements.

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

  • retract robot after Arctech Collision sensor activation

    • sloopkogel
    • January 27, 2024 at 7:26 AM
    • 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