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 "Instruction inadmissible"

  • st1tchy
  • November 21, 2018 at 10:09 PM
  • Thread is Resolved
  • st1tchy
    Trophies
    3
    Posts
    12
    • November 21, 2018 at 10:09 PM
    • #1

    I am having trouble with an interrupt function. I want to have the robot move down until a sensor is made and then stop and run a different move. It gets to the interrupt, the sensor comes on, and then I get "Inadmissible instruction." I am not sure what I have done wrong.

    Code
    ;Pick pounce
    ;FOLD PTP PkPnc CONT Vel=100 % PkPnc Tool[2]:VACUUM Base[1]:B CONTAINER;%{PE}%R 8.3.44,%MKUKATPBASIS,%CMOVE,%VPTP,%P 1:PTP, 2:PkPnc, 3:C_DIS, 5:100, 7:PkPnc
    $BWDSTART=FALSE
    PDAT_ACT=PPkPnc
    FDAT_ACT=FPkPnc
    BAS(#PTP_PARAMS,100)
    PTP XPkPnc C_DIS
    ;ENDFOLD
    
    
    ;Pick
    INTERRUPT DECL 1 WHEN $IN[33]==TRUE DO Liner()
    PickLiner()
    INTERRUPT OFF 1
    
    
    
    
    ;Liner pick
    ;FOLD LIN LINERPICK Vel=0.5 m/s LINERPICK Tool[2]:VACUUM Base[0];%{PE}%R 8.3.44,%MKUKATPBASIS,%CMOVE,%VLIN,%P 1:LIN, 2:LINERPICK, 3:, 5:0.5, 7:LINERPICK
    $BWDSTART=FALSE
    LDAT_ACT=LLINERPICK
    FDAT_ACT=FLINERPICK
    BAS(#CP_PARAMS,0.5)
    LIN XLINERPICK 
    ;ENDFOLD
    Display More
    Code
    DEF  PickLiner ( )   
    INTERRUPT ON 1
    
    
    ;FOLD LIN PICK Vel=2 m/s PICK Tool[2]:VACUUM Base[1]:B CONTAINER;%{PE}%R 8.3.44,%MKUKATPBASIS,%CMOVE,%VLIN,%P 1:LIN, 2:PICK, 3:, 5:2, 7:PICK
    $BWDSTART=FALSE
    LDAT_ACT=LPICK
    FDAT_ACT=FPICK
    BAS(#CP_PARAMS,2)
    LIN XPICK 
    ;ENDFOLD
    
    
    ;Wait 0 to prevent prescan
    ;Needed for INTERRUPT to function
    ;FOLD WAIT Time=0 sec;%{PE}%R 8.3.44,%MKUKATPBASIS,%CWAIT,%VWAIT,%P 3:0
    WAIT SEC 0
    ;ENDFOLD
    
    
    END
    Display More
    Code
    DEF Liner( )
    
    
    INTERRUPT OFF 1
    BRAKE
    
    
    XCurPos = $POS_ACT
    LINERPICK.Z = XCurPos.Z - 965
    
    
    RESUME
    
    
    END
    Display More
  • panic mode
    Reactions Received
    1,297
    Trophies
    11
    Posts
    13,141
    • November 21, 2018 at 10:38 PM
    • #2

    You never activated it

    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

  • st1tchy
    Trophies
    3
    Posts
    12
    • November 21, 2018 at 10:42 PM
    • #3

    Isn't that what INTERRUPT ON 1 is doing on the first line of PickLiner()?

  • panic mode
    Reactions Received
    1,297
    Trophies
    11
    Posts
    13,141
    • November 22, 2018 at 2:10 AM
    • #4

    you are right, did not see that (hard to read code on mobile)


    what instruction or line of code it is complaining about?


    motion to be aborted is in subroutine ending with wait sec 0. this is good.
    interrupts is turned off after sub call, this is good
    ISR routine is using $POS_ACT, this need to be changed to $POS_INT
    assignment that follows uses non-existent variable, should be prefixed with x.

    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

  • st1tchy
    Trophies
    3
    Posts
    12
    • November 23, 2018 at 2:16 PM
    • #5

    It locks up at the LIN move in PickLiner() immediately after the trigger comes on. It will move down just fine using that LIN move until the trigger comes on, then it stops and says Instruction Inadmissible.

    I have made the changes you suggested and that didn't seem to make a difference.

    Code
    ;Pick pounce
    ;FOLD PTP PkPnc CONT Vel=100 % PkPnc Tool[2]:VACUUM Base[1]:B CONTAINER;%{PE}%R 8.3.44,%MKUKATPBASIS,%CMOVE,%VPTP,%P 1:PTP, 2:PkPnc, 3:C_DIS, 5:100, 7:PkPnc
    $BWDSTART=FALSE
    PDAT_ACT=PPkPnc
    FDAT_ACT=FPkPnc
    BAS(#PTP_PARAMS,100)
    PTP XPkPnc C_DIS
    ;ENDFOLD
    
    
    ;Pick
    INTERRUPT DECL 1 WHEN $IN[33]==TRUE DO Liner()
    PickLiner()
    INTERRUPT OFF 1
    
    
    
    
    ;Liner pick
    Display More
    Code
    INTERRUPT ON 1
    
    
    ;**********IT LOCKS UP ON THIS LINE AFTER INTERRUPT TRIGGERS**********
    ;FOLD LIN PICK Vel=2 m/s PICK Tool[2]:VACUUM Base[1]:B CONTAINER;%{PE}%R 8.3.44,%MKUKATPBASIS,%CMOVE,%VLIN,%P 1:LIN, 2:PICK, 3:, 5:2, 7:PICK
    $BWDSTART=FALSE
    LDAT_ACT=LPICK
    FDAT_ACT=FPICK
    BAS(#CP_PARAMS,2)
    LIN XPICK 
    ;ENDFOLD
    
    
    ;Wait 0 to prevent prescan
    ;Needed for INTERRUPT to function
    ;FOLD WAIT Time=0 sec;%{PE}%R 8.3.44,%MKUKATPBASIS,%CWAIT,%VWAIT,%P 3:0
    WAIT SEC 0
    ;ENDFOLD
    
    
    END
    Display More
    Code
    INTERRUPT OFF 1
    BRAKE
    
    
    XCurPos = $POS_INT
    XLINERPICK.Z = XCurPos.Z - 965
    
    
    RESUME
    
    
    END
    Display More

    Edited once, last by st1tchy (November 23, 2018 at 2:41 PM).

  • PJonHar
    Trophies
    3
    Posts
    65
    • November 23, 2018 at 5:08 PM
    • #6

    Starting with a LIN move is annoying!

    try adding PTP $AXIS_ACT ?

  • st1tchy
    Trophies
    3
    Posts
    12
    • November 23, 2018 at 5:18 PM
    • #7
    Quote from PJonHar


    Starting with a LIN move is annoying!

    try adding PTP $AXIS_ACT ?

    In which routine? PickLiner()?

  • st1tchy
    Trophies
    3
    Posts
    12
    • November 23, 2018 at 7:03 PM
    • #8

    Figured it out. There was an INI fold in the interrupt program that it didn't like. Once I got rid of that, it ran just fine.

  • panic mode
    Reactions Received
    1,297
    Trophies
    11
    Posts
    13,141
    • November 23, 2018 at 8:47 PM
    • #9

    that was not shown in any of your posts. :icon_rolleyes:

    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

  • Anirudh
    Trophies
    2
    Posts
    13
    • January 9, 2022 at 5:07 PM
    • #10

    Can there be any other reason for this same error, because it is popping up even after removing the INI command from the interrupt program. Rest all seems same, error in my case is also coming in LIN command.

  • panic mode
    Reactions Received
    1,297
    Trophies
    11
    Posts
    13,141
    • January 9, 2022 at 5:21 PM
    • #11

    KRC has unfair advantage that it can see the code.

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