Cables with digital signals should be laid out of direct contact with the cables for analogue measurement and communication lines (the recommended distance is at least 15cm); they should be laied out of direct contact with the system. Digital output signals can be lead together with the binary input cables, powering the MaR parts, etc. .
The cable length depends on the type of transmitted signals (the voltage drop and its impact).
What must be rigidly done is to eliminate interference of all elements, which by their nature cause it (contactors, valves, large relays, etc.) and come into close contact (or their inputs) with the system circuitry.
During the installation of cables connected to power elements with a very strong radiated interference it is recommended to always lay those cables separately from cables with data signals (analogue, communication, etc.) and the electronic equipment, in order to increase the resilience of the systems. If the cables are laid outdoors, it is important to avoid laying them in parallel with power lines, lightning conductor current leakages and long metal objects. If you are not able to meet these requirements, you should supplement the line upstream from the system with some surge protection device.