An apparatus for controlling a device for automatically cutting out a work piece in accordance with a pattern having a linear element with speed-changing marks disposed alongside which is automatically scanned by a scanning device having photodetecting line detecting means comprising a photoelectric mark detecting element, a variable speed drive for traversing the cutting and scanning devices and an operating control device connected to the photoelectric mark detecting element and to the drive whereby the drive is caused to change its speed when a speed-changing mark is detected, the speed-changing mark is disposed ahead of a change in detection of the linear element and comprises a speed retarding mark, the photoelectric scanning device has a scanning head, first and second photoelectric detectors in the scanning head, the first photoelectric detector being disposed a predetermined overhanging distance ahead of the second photoelectric detector, the operating control system including means for alternatively activating either the first or the second photoelectric detector, and the operating control system being constructed and arranged to normally maintain the first photoelectric detector activated and to activate the second photoelectric detector and inactivate the first photoelectric detector a predetermined time after a speed retarding mark is detected.