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. ABB 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 in Rapid

  • sikander bakht
  • March 11, 2021 at 3:52 PM
  • Thread is Unresolved
  • sikander bakht
    Reactions Received
    1
    Trophies
    3
    Posts
    33
    • March 11, 2021 at 3:52 PM
    • #1

    Hello to the members..

    i am working on a drilling spindle which can sense the object using load indicator, a touch will generate current rise, which is used as interrupt signal in the rapid code. the point of touch will be the starting point of the moveL in trap routine.

    below is the rapid code for the drill:


    VAR intnum intload

    PROC main ()

    IDelete intload;

    Connect intload WITH Drilling;

    ISignalDI , Control_Drill, 1,intload;

    Set Spindle_on; “Bit to power up Spindle”

    MoveJ p10, v100, Fine, Tool1;

    MoveL p20, v100, Fine, Tool1;

    Set Enable_On; “Spindle Start Rotating at reference speed”

    Wait Time 2; “Time to reach desired rpm and get smooth in terms of current”

    MoveL OFFs (P20, 0, 0, 50), V10, Fine, Tool1;

    ! Interrupt should occur here as the drill bit touches the surface before reaching 50mm Z-Axis and DI “Control_Drill” sets high. Robot should go to P40.

    Reset Enable_On;

    MoveL p30, V10, Fine, Tool1;

    Reset Spindle_on;

    End PROC

    TRAP Drilling

    VAR Robotarget p40

    StopMove/ Quick;

    P40:= CRobT ( \Tool := Tool1 \ WObj := WObj0);

    MoveL OFFs (p40, 0, 0, 30), v10, Fine, Tool1;

    ClearPath;

    StartMove;

    ExitCycle;

    End TRAP

  • sikander bakht
    Reactions Received
    1
    Trophies
    3
    Posts
    33
    • March 11, 2021 at 3:52 PM
    • #2

    my problem is, in auto-mode robot directly goes to TRAP Routine at P40, and got stuck there, even if the DI is not set high.

    I also used "SearchL" command instead of "MoveL". the robot goes to p40 and got stuck there after Di is set high.

    i looked for "StorePath" and "RestorePath" commands in my teachpendant commands list but could not found.

  • Lemster68
    Reactions Received
    301
    Trophies
    9
    Posts
    2,485
    Blog Articles
    7
    • March 11, 2021 at 4:06 PM
    • #3

    You really ought to use SearchL. Move offset from the position stored in the search.

  • sikander bakht
    Reactions Received
    1
    Trophies
    3
    Posts
    33
    • March 11, 2021 at 4:58 PM
    • #4

    thanks for reply.

    Sir, with SearchL the robot goes to the interrupt trap and store the position of Touch point. but robot got stuck there.

    SearchL Control_Drill, p40, OFFs( p20, 0, 0, 50), Fine, Tool1;

    !robot execute the command, and store the position data in p40.

    TRAP Drilling

    StopMove/ Quick;

    MoveL OFFs (p40, 0, 0, 30), v10, Fine, Tool1;

    !Robot stuck here at MoveL command. and not executing the command.

    ClearPath;

    StartMove;

    ExitCycle;

    End TRAP

    any help...

  • Lemster68
    Reactions Received
    301
    Trophies
    9
    Posts
    2,485
    Blog Articles
    7
    • March 11, 2021 at 5:06 PM
    • #5

    You do not use a trap in conjunction with a search. Just continue the program moving offset from the stored position.

  • sikander bakht
    Reactions Received
    1
    Trophies
    3
    Posts
    33
    • March 16, 2021 at 3:33 AM
    • #6

    Sir, i tried the SearchL option without any trap routine, but robot still stop at "MoveL" command after the "StopMove/Quick" command. and stays their.

    Could be the reason "Storepath" and "RestorePath" are missing in the code.

    also not present in my Tech.Pendant..

  • Reboot
    Trophies
    2
    Posts
    32
    • March 26, 2021 at 7:21 PM
    • #7

    have you checked if the signal is not already high before the cycle starts?

    I would put a waitDI before connecting the interrupt.

    then in my opinion more correct inside the trap:

    StopMove

    ClearPath;

    WaitTime 0.3;

    StartMove;

    pMemPos: = CRobT (\ Tool: = tTool1);

    MoveL Offs (pMemPos, 0,0,50), v200, fine, tTool1;

  • sikander bakht
    Reactions Received
    1
    Trophies
    3
    Posts
    33
    • March 27, 2021 at 10:09 PM
    • #8

    SearchL/Stop (Quick) works fine for me. The robot stops as the input bit goes high.

    many thanks to @ Lemster68...

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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • 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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Similar Threads

  • ABB robot dynamic joint data to PLC?

    • n0909
    • February 12, 2021 at 7:30 AM
    • ABB Robot Forum
  • one doubt about a KUKA instruction.

    • danao
    • October 23, 2020 at 4:25 PM
    • KUKA Robot Forum
  • Recommendations to search a part?

    • robotecnik
    • December 27, 2019 at 10:54 AM
    • KUKA Robot Forum
  • Get robot error numbers in RAPID

    • blizz1993
    • June 26, 2019 at 12:53 PM
    • ABB Robot Forum
  • Programmatic Emergency Stop in RAPID

    • luijtena
    • May 25, 2018 at 5:43 PM
    • ABB Robot Forum
  • Physical input

    • JFL
    • January 10, 2018 at 4:58 PM
    • Yaskawa Motoman Robot Forum

Tags

  • trap routine

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