This control device comprises: a light source for generating light when drive current is applied; a light source control unit for applying the drive current to the light source and bringing the light source in a state of repetitions of turning on and turning off in a predetermined periodic interval; a signal generation unit for generating a signal corresponding to received light; a light path switching unit for switching the light path of the light generated by the light source between a state of injection and a state of non-injection into the signal generation unit; a determination unit for determining whether or not the signal generated by the signal generation unit is a periodic signal having a periodically changing signal strength; and a function control unit performing control such that, if the determination unit has determined the absence of the periodic signal, a forbidden state forbidding the execution of a predetermined function in an execution unit for executing the predetermined function is established, and if the determination unit has determined the presence of the periodic signal, a permitted state permitting the execution of the predetermined function in the execution unit is established. In this manner, a control device capable of ensuring safety with a single safety device is provided.L'invention concerne un dispositif de commande comprenant : une source lumineuse pour générer de la lumière lorsqu'un courant d'excitation est appliqué ; une unité de commande de source lumineuse pour appliquer le courant d'excitation à la source lumineuse et amener la source lumineuse dans un état de répétitions de mise sous tension et de mise hors tension dans un intervalle périodique prédéterminé ; une unité de génération de signal pour générer un signal correspondant à la lumière reçue ; une unité de commutation de trajet de lumière pour commuter le trajet de lumière de la lumière générée par la source lumineuse entre un état d'injection et un état de non-injection