01-19-2022, 09:56 AM
(This post was last modified: 01-19-2022, 09:59 AM by Pradnil Kamble.)
Hi RoboDK team,
I want to ouput multiple robot programs for a single robot movementes through a python API.
For example, a particular block of robot movements should be exported through KR C4 whereas other block of robot movements should be exported to a Kuka.CNC program.
to explain:
// defined parameter: imports, robot, robot_base, path etc.
RDK.setRunMode(3)
post_processor = "KUKA_KRC4"
robot.setParam("PostProcessor", post_processor)
RDK.ProgramStart('Prog1', path, post_processor, robot)
...
// movements for Prog1
...
RDK.Finish() //finish the movements for Prog1 and export a KR C4 program
RDK.setRunMode(3)
post_processor = "KUKA_CNC"
robot.setParam("PostProcessor", post_processor)
RDK.ProgramStart('Prog2', path, post_processor, robot)
...
// movements for Prog2
...
RDK.Finish() //finish the movements for Prog1 and export a KUKA_CNC program
...
// Further moves
...
I want to ouput multiple robot programs for a single robot movementes through a python API.
For example, a particular block of robot movements should be exported through KR C4 whereas other block of robot movements should be exported to a Kuka.CNC program.
to explain:
// defined parameter: imports, robot, robot_base, path etc.
RDK.setRunMode(3)
post_processor = "KUKA_KRC4"
robot.setParam("PostProcessor", post_processor)
RDK.ProgramStart('Prog1', path, post_processor, robot)
...
// movements for Prog1
...
RDK.Finish() //finish the movements for Prog1 and export a KR C4 program
RDK.setRunMode(3)
post_processor = "KUKA_CNC"
robot.setParam("PostProcessor", post_processor)
RDK.ProgramStart('Prog2', path, post_processor, robot)
...
// movements for Prog2
...
RDK.Finish() //finish the movements for Prog1 and export a KUKA_CNC program
...
// Further moves
...