Integrating Keyence Pass/Fail parameters with the UR

I am currently using a laser micrometer with a UR5e.

It takes measurements through its LS-NAV software and is able to pass/fail the bottle based on tolerances and also has a excel transfer feature.

Is there a way to connect the computer with the UR5e so that when the Keyence program fails the bottle, the robot pauses or stops the program?

Thank you in advance for your input and advice.

You can use the total judgement output from the LS controller, it would be an OK signal.
so you can either do a wait for input ON and it would just stop there.
or setup a case statement for Input ON and OFF conditions.