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

Not generating output file using API

#1
I need to generate an offline robot program by directly recording a stream of Python API commands.

The problem I am having is that no file is created, and I am at a complete loss. I have tried 100+ variants and looked at every doc and example I can find.

Manual program generation and MakeProgram() both work, but I need the stream recorded instead.

ProgramStart returns 0 errors, but no robot program file is generated after RDK.Finish().

I reproduced the same issue with a clean ABB station using ABB_RAPID_IRC5 and separately with FANUC using Fanuc_R30i.

Is there an additional step required when using RUNMODE_MAKE_ROBOTPROG and ProgramStart, , or am I misunderstanding the intended use of this run mode?

RoboDK 6.0.6, Python 3.13, robodk package 5.9.4.

Code:
Code:
from robodk.robolink import *
import time
RDK = Robolink()
RDK.AddFile("C:/Users/Sam/code/robodk_stations/test_station.rdk")
robot = RDK.Item("ABB CRB 1300-7/1.4", ITEM_TYPE_ROBOT)
t1 = RDK.Item("safe_target_1", ITEM_TYPE_TARGET)
t2 = RDK.Item("safe_target_2", ITEM_TYPE_TARGET)
RDK.setRunMode(RUNMODE_MAKE_ROBOTPROG)
errors = RDK.ProgramStart(
    "Prog123",
    "C:/Users/Sam/Downloads/",
    "ABB_RAPID_IRC5",
    robot
)
print("ProgramStart errors:", errors)
robot.MoveJ(t1)
robot.MoveL(t2)
RDK.Finish()


Attached Files
.rdk   test_station.rdk (Size: 1.65 MB / Downloads: 20)
#2
I was able to generate the program using your example without any issues. I only had to update the path to save the file.

Here are some questions that will help troubleshoot this issue on your computer:
  1. Can you make sure the path you set to store the file is valid?
  2. Did you make any modifications to RoboDK or changed any settings? For example the post processor.
  3. Can you try with the default settings in RoboDK? (select Tools-Options-Set default settings)
  4. If the issue persists, can you run in debug mode and send us the debug log?
To run in debug.mode:
  1. Close RoboDK
  2. Start RoboDK by double clicking this file: C:/RoboDK/RoboDK-Debug.bat
  3. Try to reproduce the problem in RoboDK
  4. Right after you see the issue, send us this file: C:/RoboDK/bin/RoboDK.debug.txt
#3
Hi Albert, I appreciate your help.

To answer your questions:
1) All paths appear valid.
2) Unmodified versions tried. Multiple post processors / robots tried. Post processor files exist.
3) Tried just now but it isn't resolved.
4) Please see the attached debug logs. It appears as if the post processor is never called.

Thank you.


Attached Files
.txt   RoboDK.debug.txt (Size: 7.79 KB / Downloads: 9)
  




Users browsing this thread:
1 Guest(s)