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. Kawasaki 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

KROSET - Stop gracefully program with while loop

  • dhindhimathai
  • October 24, 2023 at 4:13 PM
  • Thread is Unresolved
  • dhindhimathai
    Reactions Received
    2
    Trophies
    1
    Posts
    15
    • October 24, 2023 at 4:13 PM
    • #1

    Hi all,

    Once again I'm here to ask for your help to solve a problem regarding Kawasaki robots and KROSET Lite simulator.

    I have a Main program in Kawasaki Robotics IDE that runs a communication thread and then enters a while loop to execute commands. You guys from this forum ( kwakisaki) have helped me write this and it works perfectly! :smiling_face: The code is roughly as follows:

    Code
    .PROGRAM Main () ; Main Program
      CALL Initialization
      WHILE TRUE DO
        ; Call the communication program
        PCEXECUTE 1:Communication
        ; Execute commands in a loop
        WHILE client_connected DO
          ; Execute commands
          PRINT "Executing..."
        END
        ; Do something else
        TWAIT 1.0
      END
    .END
    Display More

    My question is more regarding KROSET and KIDE.

    I do the following at the beginning from KIDE (see the attached figure 1.png):

    1) I connect to the Kawasaki robot in KROSET simulation.

    2) I load the program onto the robot.

    3) I execute the program. Then, I can communicate and send commands to the robot in the simulation.

    However, how do I stop the simulation properly? How can I stop the program running on the robot simulation in KROSET?

    I tried to kill the background and foreground processes using the buttons highlighted in 2.png in the attachments... But, I'm sure there is a proper way to terminate the main program and the thread run from it.

    Thank you so much in advance for you help.

    Images

    • 2.png
      • 109.85 kB
      • 1,918 × 82
      • 2
    • 1.png
      • 118.86 kB
      • 1,920 × 121
      • 3
  • kwakisaki
    Reactions Received
    694
    Trophies
    12
    Posts
    4,770
    • October 24, 2023 at 8:15 PM
    • #2

    If you are running it in the main program, due to your code, you have no 'exit' unless your comms exits your WHILES.

    So the only thing you could use is type ABORT in the terminal editor in KRoset.

    You could hit the emergency stop too or just toggle it back to teach mode.

    This will only stop the MAIN task though, your PC Task may keep running though.

    You could write a separate PC Task to manage the above and then set a couple of buttons on the IFP to stop and start it.

    View my channel at Industrial Robotics Consultancy Limited - YouTube

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

Tags

  • kawasaki
  • Stop
  • simulation
  • KROSET
  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