Hardware expansion of function of plc, programmable, connected in output line