01-03-2021, 05:12 PM
(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!