torsten,
I lucked out in my junk box and found an optical and use it with a pullup resistor. This happens to be an axillary switch that I use for tool length compensation and have it wired in series with mechanical switches. Don't ask what the number is, cause its buried in the system and I can't read it. I was forutuate enough to be given some old copiers etc way back when and stripped them for parts. I had to use a test rig to find out which way round was closed circuit.
Just for your information.
art
Art
AKA Country Bubba (Older Than Dirt)