Replacing legacy control systems together with an I/O level