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! The code is roughly as follows:
.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.