Driving force of a bending motor is transmitted to a sprocket via a clutch
mechanism portion. The operation of a switching operation lever switches
the clutch mechanism portion to a disconnecting/restoring status. A
bending control device includes a bending angle calculating portion which
calculates information on a bending status based on an output signal of a
potentiometer, a motor driving signal generating portion which generates
a driving signal for bending a bending portion, a JS-motor driving signal
generating portion which calculates a position for an instructing status
of a stick portion based on the information on the bending status and
generates the driving signal for moving the stick portion to the
position, and a calibration instructing portion which receives a position
signal from a status detecting switch and which sends an instruction for
outputting to a JS motor, the driving signal generated by the JS-motor
driving signal generating portion. With the above construction, the
calibration operation is easily performed in a freely bending status.