Starting a UR Program where you want.
/ Most recent by matthewd92
Here is the work around.
The switch case structure allows you to test sub part of your code.
The principle of this structure is simple:
Use a numerical variable pointing the part of code you want to do.
Use the switch structure to read its content and match it with the good case.
Put your code inside a folder inside of each case.
Each case can assign the next step value to the variable.
Using this, you can skip the Case 1 and Case 2 when testing making My_Switch_Variable = 3. This way, you execute the Case 3 .
This is useful when programming, testing or to try a new way to process a part of the program without affecting the previously tested part of it.
If you need to restart the program after a power cut, having the My_Switch_Variable saved permanently will let your program restart inside the good Case and the good part of the sequence.
I use it inside a loop sequence and count using some Insights tag to track when a step is done and if some Case are more prone to fail.
Hope this helps.
Coach en intégration
Robotiq is now into packaging, palletizing and sanding applications. Learn more about our new Vacuum Grippers and the Robotiq Sanding Kit.
1-888-ROBOTIQ #275 (762-6847)
1-418-380-2788 #275 (Outside US and Canada)
Follow us on