The schematic of my test setup is quite simple:
It's also simple, I did it in around 30 minutes. It's no problem to connect cables to the powered device, it's only 24V and has protection and galvanic isolation for any inputs, outputs and data lines (like RS485 PHY).
Put covers in place:
Ready setup looks like this:
Now it's time to create a user interface and do some programming.....