RoboDK Forum
How to run specific subroutines based on input signal (SWITCH CASE)- Printable Version

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+ -论坛:一般关于抢劫的问题oDK (//www.sinclairbody.com/forum/Forum-General-questions-about-RoboDK)
+--- Thread: How to run specific subroutines based on input signal (SWITCH CASE) (/Thread-How-to-run-specific-subroutines-based-on-input-signal-SWITCH-CASE)



How to run specific subroutines based on input signal (SWITCH CASE)-pbilancia-04-11-2022

Hello,

I am trying to implement a "SWITCH CASE" (KUKA) programming architecture for my station based on the value of an input signal (integer) coming from external source (e.g. a PLC). I know there is the command "Wait DI", though this may not be the best option.

Do you have any ideas? Once the program is translated with the post-processor (KUKA KRC4), the "SWITCH CASE" should appear...

Thanks

Pietro


RE: How to run specific subroutines based on input signal (SWITCH CASE)-Jeremy-04-14-2022

Unfortunately, we do not support control statements such as the Swith Case.

You can use the "Insert code" feature of the "Program call" instruction to reach a similar result, but it won't be executed in the simulation environment, only on the real robot.

Jeremy