Plc switches functions of panel when changing kind of machining