15.06.2020, 06:23
Sorry for late reply. CANx UIO8 does not have a configurable midpoint for analog input in binary mode. Predefined midpoint is around 12V so there's no guarantee that 12V signal will work correctly.
The easiest approach is to use a sensor with relay output. Then you can connect +24V and UIO8 input to the relay and use binary input mode.
If the sensor has an open drain output you can also connect to UIO8 but this will require adding an external pull-up resistor (~10 kilohm) between the input and +24V. Or you can use UI10 input module and connect open drain output directly to it.
The easiest approach is to use a sensor with relay output. Then you can connect +24V and UIO8 input to the relay and use binary input mode.
If the sensor has an open drain output you can also connect to UIO8 but this will require adding an external pull-up resistor (~10 kilohm) between the input and +24V. Or you can use UI10 input module and connect open drain output directly to it.