Keyence CV-X452F / UR5e Connection

I am trying to connect my Keyence CV-X452F controller to my UR5e cobot. I am able to ping the robot from the controller, but when I run the setup program on the robot I receive the error below:

I have tried adding a sync() function per recommendations for similar issues posted to this forum, but haven’t had any luck with that either. Has anyone had a similar experience or have any advice?

This most definetly a missing Sync() somewhere in the code.

Are you using a Urcap? because this might not be your fault then and might be a bug in the URCap.

I would start removing sections of your code in a effort to try and isolate where the error might be introduced.
But as a rule of thumb all while loops need a sync() call so another way to debug it, would be to save the program to a usb and open the script file in notepad or smiular and simply use ctrl+f to find all the while loops and then double check that they have a corresponding sync() call.

Hope this helps.
best regards CG1