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

CONT motion breaks

  • Mangesh Shenavi
  • January 3, 2024 at 12:49 PM
  • Thread is Resolved
  • Mangesh Shenavi
    Reactions Received
    1
    Trophies
    2
    Posts
    80
    • January 3, 2024 at 12:49 PM
    • #1

    Hello all,

    I am using kuka KR210R2700_2 C4 FLR, Robot with KSS 8.6.9

    Here's my program

    Def SUB_1()

    PTP P1 CONT Vel=100%

    PTP P2 CONT Vel=100%

    End

    Def SUB_2()

    PTP P11 CONT Vel=100%

    PTP P22 CONT Vel=100%

    End

    My problem is, while robot moves from P1 to P2 it takes continue motion, but while robot moves from P2 to P11 it breaks the continuous motion. (P2 is last point of SUB_1 & P11 is first point of SUB_2 program)

    Could you please help me to resolve this problem!!

    How can i jump from one subprogram to other subprogram with CONT motion.??

    Thanks in advance.

  • panic mode
    Reactions Received
    1,295
    Trophies
    11
    Posts
    13,130
    • January 3, 2024 at 1:22 PM
    • #2

    Something is causing advance run stop but code you shared does not show those other instructions.

    You need to look at all program lines, not only motions.

    your example does not even show why your motions should be approximated at all - there is no indication that necessary initialization is done.

    to see what causes ARP stop, lookup variable $stopnoaprox

    (see pinned topic READ FIRST for accessing KUKA documentation).

    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

  • SkyeFire
    Reactions Received
    1,060
    Trophies
    12
    Posts
    9,456
    • January 3, 2024 at 9:50 PM
    • #3
    Quote from Mangesh Shenavi

    Here's my program


    Def SUB_1()

    PTP P1 CONT Vel=100%

    PTP P2 CONT Vel=100%

    End


    Def SUB_2()

    PTP P11 CONT Vel=100%

    PTP P22 CONT Vel=100%

    End

    Display More

    What is the complete program? Whatever routine is calling SUB_1 and SUB_2 may have advance-braking commands between the calls. Or you may have default INI Folds at the top of SUB_1 and SUB_2 that are breaking the ARP.

    We cannot help you without full details.

  • Mangesh Shenavi
    Reactions Received
    1
    Trophies
    2
    Posts
    80
    • January 4, 2024 at 9:28 AM
    • #4
    Quote from SkyeFire

    What is the complete program? Whatever routine is calling SUB_1 and SUB_2 may have advance-braking commands between the calls. Or you may have default INI Folds at the top of SUB_1 and SUB_2 that are breaking the ARP.


    We cannot help you without full details.

    Sorry, I wrote that program in tread for just an example.

    And there is INI Folds in both programs that breaks CONT motion. But how can I achieve CONT motion ??

  • panic mode
    Reactions Received
    1,295
    Trophies
    11
    Posts
    13,130
    • January 4, 2024 at 1:09 PM
    • #5

    One option is to remove INI, but of course this can make programa not work correctly (or at all).

    The better option is to check if i initialization is needed and only process INI when needed

    I think the variable is called $MOVE_BCO:

    If $move_bco then

    INI

    Endif

    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

  • SkyeFire
    Reactions Received
    1,060
    Trophies
    12
    Posts
    9,456
    • January 4, 2024 at 4:22 PM
    • #6
    Quote from Mangesh Shenavi

    Sorry, I wrote that program in tread for just an example.

    So, where's the full program?

    Quote from Mangesh Shenavi

    And there is INI Folds in both programs that breaks CONT motion. But how can I achieve CONT motion ?

    Don't put ARP-breaking code in between motions you want to be Continuous.

    In this case, the INI Folds are definitely contributing factors (specifically, the calls to BAS(#INITMOV))

    However, just deleting these creates a problem: it makes it much harder to hand-select SUB_1 or SUB_2 for teaching or testing. This is due to how KUKA handles BCO (Block Coincidence) and initialization of Velocity, Acceleration, and other motion-controlling variables.

    As Panic says, one way around this would be to put the INI Fold inside an IF statement checking for the system variable $MOVE_BCO. This will cause the INI Fold to be skipped if BCO has already been achieved (as when SUB_1 or SUB_2 are called from another routine that has already achieved BCO), but will call the code in the INI Fold if BCO has not been achieved.

    Code
      IF $MOVE_BCO THEN
        ;FOLD INI
          ;FOLD BASISTECH INI
            GLOBAL INTERRUPT DECL 3 WHEN $STOPMESS==TRUE DO IR_STOPM ( )
              INTERRUPT ON 3 
              BAS (#INITMOV,0 )
          ;ENDFOLD (BASISTECH INI)
          ;FOLD USER INI
            ;Make your modifications here
            PTP $AXIS_ACT
            $TOOL = $NULLFRAME
            $BASE = $NULLFRAME
            PTP $POS_ACT
          ;ENDFOLD (USER INI)
        ;ENDFOLD (INI)
      ENDIF
    Display More

    The USER INI code included above is not necessary, but I often find it convenient.

  • xSajkox
    Reactions Received
    1
    Trophies
    2
    Posts
    10
    • January 5, 2024 at 1:35 PM
    • #7

    You can also use INI only in $T1 mode if you want to touch up some points or something like that. Or comment INI and uncomment when u need it.

    Example:

    If $T1 Then

    INI

    Endif

    Or if is possible combine these two programs with each other and put motion moves together.

  • Mangesh Shenavi
    Reactions Received
    1
    Trophies
    2
    Posts
    80
    • January 6, 2024 at 4:21 PM
    • #8
    Quote from xSajkox

    Or if is possible combine these two programs with each other and put motion moves together.

    No, I can't combine these two programs. Because sometimes SUB_3 program call after SUB_1 as per conditions...

    But now problem is solved by bypassing INI with "goto" command.

    goto R1

    INI

    R1:

    Thanks all of you, for help.

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

  • Software Request to KUKA - the robot forum bugs and wish list

    • Werner Hampel
    • August 17, 2019 at 10:37 AM
    • KUKA Robot Forum
  • How to use the SPS.sub file to ensure a smooth programme

    • M J
    • November 2, 2023 at 2:25 PM
    • KUKA Robot Forum
  • Change speed between points while retaining continual motion

    • eilevb
    • October 16, 2023 at 8:34 PM
    • KUKA Robot Forum
  • Delay functionality in .sub program

    • Secrettnk
    • June 19, 2023 at 12:15 PM
    • KUKA Robot Forum
  • External Axis Torque Mode in T1

    • kw5918448
    • July 12, 2022 at 10:28 PM
    • KUKA Robot Forum
  • Please inquire about robot linear motion.

    • ksj
    • March 15, 2022 at 5:15 PM
    • Kawasaki Robot Forum
  • Safety Stop and robot drops down

    • ApacheKaplan21
    • April 22, 2020 at 6:39 PM
    • KUKA Robot Forum
  • robot in linear motion at world coordinates it does not maintain alignment at the tip of the tool

    • Nicolas Romero
    • February 26, 2021 at 9:26 PM
    • Fanuc Robot Forum
  • SRVO-023 Stop error excess on external axis

    • ApacheKaplan21
    • December 10, 2019 at 3:34 PM
    • Fanuc 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