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

KUKA Post Processor modification to include subprograms not working

#1
Hello all. 

Didn't managed to find a topic on this so sorry if this has already been discussed.

I am working on a kuka robot with KRC4 post processor.

I modified it as follows : 
Code:
  # Set to True to include subprograms in the main program. Otherwise, programs can be generated separately.
    INCLUDE_SUB_PROGRAMS = True    # Set to True to include subprograms in the same file

    # Generate subprograms as new files instead of adding them in the same file (INCLUDE_SUB_PROGRAMS must be set to True)
    SUB_PROGRAMS_AS_FILES = False

so that when i generate my main program all the instructions are included instead of having multiple calls (I need this for a specific project).

The issue is that the program thus generated has  DEF ... instructions for every program included, which gives errors. How can I solve this issue (without modifying manually the program)?

Thanks
#2
Did you use the KRC2 or KRC4 post processor?

Can you share your RoboDK project, the program generated after changing the post parameters and the edits that you need to do to make them work on the controller?
#3
Hi Albert.

Thanks for getting back to me.
I am using KRC4 postprocessor to matche my controller.

You can find attached the project and the program that it generates.
I have a python script that cleans it up afterwards (you can find also the cleaned up program attached for comparison), but I figured if we can do it inside robodk, would be better.


Attached Files
.src   Scan_300x200x100.src (Size: 13.04 KB / Downloads: 22)
.src   Scan_300x200x100_CLEAN.src (Size: 9.42 KB / Downloads: 28)
.rdk   Cellule rétroconception_RR.rdk (Size: 11.12 MB / Downloads: 29)
#4
I believe the issue is that the post processor is not outputting the END statement before the new function definition when you include multiple programs in the same SRC file.

We are working to fix this. 

Can you check if the attached file works as desired?


Attached Files
.src   Main_Scan.src (Size: 13.05 KB / Downloads: 17)
#5
You can find the fix with the updated KUKA post processor attached. Please let us know if this works as expected when embedding multiple programs.

Another important detail: special characters are ignored from the name (for example, X+ and X- are both exported as X, so one may override the other). Make sure to use unique names using ASCII characters.


Attached Files
.rdkp   KUKA_KRC4.py.rdkp (Size: 108.09 KB / Downloads: 13)
  




Users browsing this thread:
1 Guest(s)