Hi RoboDK team,
I have a more general question in regards to using the python API in production. There's not much info on how it should be done, so I'll provide a simplified version on how I am using it at the moment, but I would like to know if there is a more appropriate way
General workflow of my robotcell:
I am using the API to generate sanding programs for custom made solid surface bathroom sinks (up to 8 at the same time). I have a Siemens PLC with a start and stop button, that starts and stops a linux service respectively. This service starts a python program, where (based on data from a database) robot sanding programs will be generated using the RoboDK API. The sanding paths for the inside of the sinks were made with Autodesk Fusion CAM and these paths are stored as APT files. The RoboDK API loads in the correct apt file corresponding to the database data, calculates the robot moves ( all slightly different for these 8 positions). The PC sequentially uploads these robot programs to the robot and the robot starts sanding.
How I use the API:
When the script starts, it opens robodk and opens the robotcell.rdk file which contains the robot, tools and origin points for the 8 different positions (Identical calibrated representation of the physical cell). After all the paths are generated, I shutdown roboDK and run through all the individual sanding programs.
Is there a more correct way to start and stop the roboDK API in the background?
Thanks in advance!
I have a more general question in regards to using the python API in production. There's not much info on how it should be done, so I'll provide a simplified version on how I am using it at the moment, but I would like to know if there is a more appropriate way
General workflow of my robotcell:
I am using the API to generate sanding programs for custom made solid surface bathroom sinks (up to 8 at the same time). I have a Siemens PLC with a start and stop button, that starts and stops a linux service respectively. This service starts a python program, where (based on data from a database) robot sanding programs will be generated using the RoboDK API. The sanding paths for the inside of the sinks were made with Autodesk Fusion CAM and these paths are stored as APT files. The RoboDK API loads in the correct apt file corresponding to the database data, calculates the robot moves ( all slightly different for these 8 positions). The PC sequentially uploads these robot programs to the robot and the robot starts sanding.
How I use the API:
When the script starts, it opens robodk and opens the robotcell.rdk file which contains the robot, tools and origin points for the 8 different positions (Identical calibrated representation of the physical cell). After all the paths are generated, I shutdown roboDK and run through all the individual sanding programs.
Is there a more correct way to start and stop the roboDK API in the background?
Thanks in advance!