Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Problem converting the python script to robot prog

#1
Hello, I am trying to convert a Python script to the robot prog for the Mitsubishi robot. When I select the "generate robot program" the whole RoboDK software collapses and shuts down. Kindly clarify what could be the problem. I am using roboDk v 5.5.2. And here is my code.
Code:
# More information about the RoboDK API here:
# https://robodk.com/doc/en/RoboDK-API.html
from robolink import *    # API to communicate with RoboDK
from robodk   import *      # robodk robotics toolbox
# Connect to the RoboDK API
RDK = Robolink()
list_items = RDK.ItemList()
for item in list_items:
    print(item.Name())

robot=RDK.Item('Mitsubishi RV-7FR')
# robot.Connect("192.168.0.25") # connect to the robot. Use double inverted comma for ip address
# Retrieve all items and print their names
home_position = RDK.Item('Home')
Target_position_2 = RDK.Item('Target')
Target_position_1 = RDK.Item('Target 3')
speed_lin = mbox('Set Your Linear Speed', entry=" ")
speed_ang = mbox('Set Your Angular Speed', entry=" ")
loop = mbox('Set Your Loop Count', entry=" ")
robot.setSpeed(int(speed_lin), int(speed_ang))
for i in range(int(loop)):
    robot.MoveJ(home_position)
    robot.MoveJ(Target_position_1)
    robot.MoveL(Target_position_2)
    robot.MoveL(Target_position_1)
    robot.MoveJ(Target_position_2)
    robot.MoveJ(Target_position_1)
    robot.MoveJ(home_position)



Also, kindly take note that the Python script can simulate the motion properly. I am also attaching the project file herewith for your reference.


Attached Files Thumbnail(s)
   

.rdk   Mitsubishi RV 7FR_tutorial2.rdk (Size: 1,008.08 KB / Downloads: 95)
#2
Thank you for letting us know about this bug. We were able to reproduce it and it will be fixed with the new release in the next week or so. If you prefer downloading RoboDK version 5.6.3 you should not have this crash.
#3
I just checked with version 5.6.3....the crash still happens
#4
The crash can happen with a custom Mitsubishi post processor and previous versions of RoboDK. Thank you for letting us know though.

We'll make sure to fix the crash with our next release this week.
  




Users browsing this thread:
1 Guest(s)