Hi All
I am having an issue at the moment with a loop function.
Background
We are using a CB3 UR10 cobot and a Sensopart vision camera using the Visor URCAP for comms.
The Cobot send an expression to the camera to load a particular job. The camera sends a response back to the cobot whether the job has been successfully loaded of failed to load.
I need to add a loop that is the camera sends a failed to load job expression then the cobot resends the request until the job had loaded successfully.
Cobot to camera expression - CJB003 (example)
Camera successful load expression - CJBPT003
Camera failed to load job expression - CJBFT003
If I use the ‘Loop when expression is True’
str_find(visor _response,‘‘F’’)>0 The loop does not work
str_find(visor _response,‘‘P’’)>0 The loop does work when a job load successful expression is given.
Any help would be appreciated.