03-07-2022, 09:14 AM
Is there any way to generate not only the Program Call instruction in the G-Code but the whole Subprogram with all it's movements?
So I've tried this method in my Main-program:
And also the RunProgram command.
Both of these generated only the Program call instruction in the G-Code and not the sub-program(Path1) itself.
Is it possible to generate the whole Path1 sub-program when I generate my Main?
So I've tried this method in my Main-program:
Code:
prog1 = RDK.Item('Path1', ITEM_TYPE_PROGRAM)
prog1.RunCode()
while prog1.Busy():
robot.Pause(0.1)
And also the RunProgram command.
Both of these generated only the Program call instruction in the G-Code and not the sub-program(Path1) itself.
Code:
.PROGRAM MainProg()
;程序生成的RoboDK v5.4.1川崎重工RS050N on 07/03/2022 10:09:18
CALL Path1
.END
Is it possible to generate the whole Path1 sub-program when I generate my Main?