@RoboBar I do not know how many conditionals you can have, I've never needed more than about 20 but what you are running into is an issue where the if statement is taking longer than 8ms to process and that is why you are getting an infinite loop. I'd recommend breaking your parent into two parent if statements with a sync() between the two parent if's. this will allow the process to get back in sync with the system and will eliminate that infinite loop. I've run into similar issues when using lots of sub programs and either select statements or if statements controlling the sequencing of the sub programs.
Does anyone know what the max amount of conditional statements the UR5 can handle in a single parent program? I've tried over 100 conditionals in a single parent program and cannot get out of an infinite loop, but it will work with roughly 64 conditionals.If i add one more conditional i get an infinite loop error. Anyone have any ideas that could help me out ?