24VDC PLC with 12VDC inputs
simulate this circuit &ndash; Schematic created using CircuitLab

Figure 1. Relay isolation between two systems.

You have been vague about the type if inputs on your PLC - current sourcing or sinking - so you may have a little work to do adapting this solution.