@dc42 Thanks for answer! I will try but if it wont work do you think using optocouplers might work?

here is one with 200kHz switching capability:

optocoupler24vdc-200kHz ok1-2 1.jpg

optocoupler24vdc-200kHz ok1-2 2.jpg

a30ef584-4dba-4340-ba87-87f6f2578882-image.png