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

Program with subprograms does not run on a JAKA robot

#1
Hello,

I have made a "Main" program which consists of other sub-programs. For some reason, the program won't run on the robot (JAKA Zu20) at all. After I try to run it, an exclamation symbol appears in some of the sub-programs. Although it runs the simulation, there is no movement on the robot. Occasionally, a message appears that this move has caused singularity at joint 5 (not the exact wording).

Now, I have made some random targets because in order to get to a curve follow path, the robot initially makes some drastic movements to get in place. Most of which causes collision. I am not really sure how to solve this issue.

I have attached my .rdk file in case you want to have a look.

I would highly appreciate any help.


Attached Files
.rdk   FORMALTEST1.rdk (Size: 749.96 KB / Downloads: 27)
#2
If you want to run a program to the robot that has subprograms (other programs that depend on it), you should also make sure to transfer these subprograms.

Alternatively, you can also generate the main program as one program that includes all subprograms by selecting this option:
  1. Select Tools-Options
  2. Select the Program tab
  3. Check the option Inline subprograms
#3
By transfer, do you mean for every subprogram I should select "Send the program to robot"? As for the alternate solution, I have checked the option "Inline subprograms" but still, it won't run.
#4
What do you mean by it won't run? Do you see any issues when running the program on the robot?
#5
When I click Run on Robot-Run, the robot moves as expected (both in real life and simulation). But this is only for programs with no subprograms.

When I try to do the same with a program containing multiple subprograms, the same thing does not happen after I perform Run on Robot-Run. I hope I could explain the problem.
#6
You can the behavior when you use the Run on robot option to run the subprograms in RoboDK instead of the robot by changing this setting:
  1. Select Tools-Options
  2. Select the Drivers tab
  3. Uncheck the option Trigger program calls on the robot
#7
Albert, I think that is the opposite of what I want. Let's say I have program1 (it is a simple curve follow path). When I click on "Run on Robot" then on "Run", the actual robot moves successfully.

Now, let's say I have program2 (it consists of multiple programs).  When I click on "Run on Robot" then on "Run", the actual robot doesn't move.

I have tried including the subprograms and also the inline subprograms, but somehow failed.
#8
In this case, you should flag the subprograms to run on the robot as well: right click every subprogram you want to run on the robot and check the option to Run on robot.
  




Users browsing this thread:
1 Guest(s)