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

KUKA KRL in python

#4
[attachment=1705 Wrote:Albert pid='7211' dateline='1607963965']I assume you are using the robot driver. Custom instructions are not supported using the driver with most robot controllers.

However, you can customize a program calls trigger in your RoboDKSync file as explained here:
//www.sinclairbody.com/forum/Thread-Program-...29#pid4529

So you could link a program call such as Program(2) to BAS(#TOOL,2).

Dear Albert,

thank you very much for your reply!

I am not entirely sure if I understood you correctly, but I changed the RoboDKSync file as seen in the attachement.
With my python script I tried to run the "RunCodeCustom" command, but I am not sure how to pass the program ID so that the correct CASE within the Sync file is chosen.

According to your suggested thread I tried it like:
robot.RunCodeCustom("Program 2",INSTRUCTION_CALL_PROGRAM)
in order to enter CASE 2.

That does not work. So It seems like I am programming nonsense again.
Could you please help me with passing the program id, in order to choose the right CASE within the Sync file? Or to clear my misunderstandings?

Thank you very much!


Attached Files Thumbnail(s)



Messages In This Thread
KUKA KRL in python - byKatCla- 12-04-2020, 03:06 PM
RE: KUKA KRL in python - byKatCla- 12-11-2020, 09:30 AM
RE: KUKA KRL in python - byAlbert- 12-14-2020, 04:39 PM
RE: KUKA KRL in python - byKatCla- 12-18-2020, 10:18 AM
RE: KUKA KRL in python - byAlbert- 12-26-2020, 03:00 PM
RE: KUKA KRL in python - byKatCla- 01-03-2021, 05:12 PM



Users browsing this thread:
1 Guest(s)