I am looking at the state of the Ref LED for starting the loop so I have to de-ref first step so that it is in the correct state.
The Red for the homed LEDs are seen as active state, green inactive (if thats proper terminology

)
I have used the DoLoop for years, first used it on the big lathes turret, found it in a VB for dummies book I think, which incidentally is still too advanced for me to read and understand
Hood