Signal processing apparatus includes: connecting detection device, and being used to detect endoscope includes one or more connections The operating member signal selector of component, for selecting the signal of working condition, i.e., input comes from endoscope, it is connected when detecting endoscope, and select the signal of operating status, i.e., the operating member endoscope for corresponding to one or more components from the operating member that external input device includes one or more components is inputted, is not connected when detecting Endoscope assignment information storage unit, storage distribution information, is related to a kind of operating member for operating and being allocated to each component Operational order configuration part operational order, according to the signal selector that mode of operation selects, according to the signal selector and distribution information selected with mode of operation The unit operated with execution, for executing a kind of operational order that operation is arranged by setting unit according to operational order.