Two emergency stop lines are provided. Due to contacts being opened by commands
from emergency stop factors and from first and second CPUs, conducting to first
and second contactors are stopped. Contacts of the contactors are opened, and power
supply to the motor is interrupted, whereby an emergency stop is performed. Further,
the first CPU on the first line transmits an abnormality signal to the second CPU
when the states of the contacts on the self emergency stop line, detected by digital
inputs, are abnormal, and the second CPU opens a contact on the self emergency
stop line so as to cause the contactor to be non-excited to thereby stop power
supply to the motor.