ng means operated in accordance with the direction of movement of the XY table for passing the laser beam from the laser beam oscillator only when the XY table is moved in a predetermined direction in synchronism with the motor and for interrupting the laser beam from the oscillator when the XY table is moved in other directions, said light interrupting means including a light interrupting switch