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

KUKA KRL in python

#6
(12-26-2020, 03:00 PM)Albert Wrote:Can you try calling RunInstruction instead of RunCodeCustom?

For example:
Code:
robot.RunInstruction("Program 2",INSTRUCTION_CALL_PROGRAM)

This should enter CASE2. Keep in mind this Switch case is inside another switch case.

Hello Albert,
thank you again for your reply!

I will try your suggestion. Thank you!

To clear misunderstandings: You have mentioned in a different thread that I can not trigger programs by name, so "Program 2" is the fixed syntax? I do not have to adapt the "Program" ? Just the following integer, depending on what case to enter? My RoboDKSync file is the default file. Do I have to adapt anything else?

What do you mean by "this switch case is inside another switch case"? Do I have to set the according case (case 13 => COM_ACTION = 13) of the outer (first) switch case myself? In my understanding: The call of "RunInstruction(program_id, ...)" triggers (enters) the 13th case of the first switch case and with the program_id I choose the case of the second switch case. Isn't it like that?

Thank you for your help!


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)