In controllers, digital (bit) inputs are usually inputs that are activated after applying voltage to them - if we are talking about EASY, then in xxxDC versions it is +24Vdc, and in xxxAC versions - 230V ac.
If you want to use the analog inputs as digital, you must remember that the voltage on them must not exceed +24Vdc.
As for exits, the situation here is a bit different. Still sticking to EASY - we have a way out. digital and analog. out digital switches can be in two versions - a transistor supplying +24Vdc voltage or a relay with a potential-free contact. With regard to the use of analog (0-10V) as digital, I made comparators in the controller that "threw" me at the output. voltage every 2V, and as a result got 5 additional outputs. But I did it only once, since then I prefer to buy an extension module than to lose the output. analog.