I am trying to use an ultrasonic distance sensor HC-SR04, which generates a pulse width proportional to the detection distance of an object. With Arduino it is very easy to do this measurement, but I don’t know how to do it with an ABB IRB 1100 robot with Omnicore E10 controller.
You could start a timer off the input going high and stop it when it goes low.