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

Simulating an imported ABB robot program

#1
I am using RoboDK in a PySide application and have a couple confusing things that I cannot figure out. The attached station has a couple small tool change paths. I have exported both of those as *.mod files that are also attached.

I know that I can simulate them in RoboDK as normal, but there are a lot of steps in our process that happen between authoring the paths and simulating them later.

When I use the Python API to import the mod files, it pops up a couple dialog boxes that get in the way and require user input.  I need to suppress those dialog boxes and work around them somehow.  Here are the two dialogs:
Import Options.png   
   
The program seems to import perfectly. However, the API says that the program is not valid. If I double click the program in the tree it will run as expected.  If I select the program and press F5 it will update the program and the icon returns to "valid".  But if the script tries to use the Update() method on the program it fails.

If you open the station, there is a "Import Robot Program" script that goes through all of these steps. I hope that you see the same results that I see :)

Does anyone have some suggestions of what I should try?  Or what I am doing wrong - which is more likely.

Thanks,
Henry


Attached Files
.mod   SpindleApproach.mod (Size: 2.51 KB / Downloads: 33)
.mod   SpindleRetract.mod (Size: 2.06 KB / Downloads: 26)
.rdk   Tool Change Development Simplified.rdk (Size: 3.29 MB / Downloads: 32)
#2
It is currently not possible to suppress the popup when importing MOD files for your ABB robot but we'll add the option to suppress this via the API.

Can you provide us with a Python script that shows the problem with the API Update call?
#3
Hello Albert - 

The "Tool Change Development Simplified.rdk" station in the post has a script called "Import Robot Program" that shows the issue.  Please try it with one of the MOD files in the attachments.  

It will also show that the program is marked as non-valid.  Which is the second issue that I need to solve.

Thank you for your help.
  




Users browsing this thread:
1 Guest(s)