By the way, an emergency stop switch, a temporary stop switch, a safety guard, or the like for insuring safety is generally connected to a controller for controlling a device such as a machine tool or an industrial robot by a multi-tasking, and it has a safety function such as emergency stop means which stops a robot by cutting off the electric power supplied to a driving motor of the movable port