Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generate subprogram instructions
#1
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:
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?
#2
"Tools"->"Options"->"Program"
Check "Inline subprograms"
Find useful information about RoboDK and its features by visiting our2022世界杯32强赛程表时间 and by watching tutorials on ourYoutube Channel.






Users browsing this thread:
1 Guest(s)