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

KUKA KRL in python

#1
Dear forum users,

I wonder if there is a possibility to include KUKA KRL code within my python script. With KRL i would write:BAS( #TOOL ,2) to activate Tool2. Now I wonder how to activate tools with the RoboDK API?

I tried to think of a workaround. I wanted to create a KUKA program within the Python script, pass the KRL command and run the program. That didn't work. Maybe I faulty interpreted the AddProgram()-function. Those are the few lines I have tried within my python script:

prog = RDK.AddProgram('Set_Tool_Program')
prog.RunInstruction('BAS(#TOOL,2)',INSTRUCTION_INSERT_CODE)
prog.RunCode()
prog.WaitFinished()


Does anybody know how to incorporate the KRL "BAS(#TOOL,2)" command into my python script?

Thank you in advance!


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)