Abstract: An easy to use and inexpensive programmable electronic control system is provided for control of glue guns to spot glue on controllable positions on a carton blank, being conveyed past a glue station. The controls are synchronously related to the position of a workpiece on a conveyor platform by means of a rotary shaft in the conveyor mechanism to which a rotating timing wheel is coupled for precisely and synchronously identifying positions along the length of the workpiece. One or more solenoid actuated glue guns, may be positioned in preselected lanes across the width of the workpiece. By means of markers rotated by the timing wheel and an optical sensor coupled to a position adjacent the moving marker controls the glue dispensers. By means of a small diameter fiber link between the optical sensor and the marker, precise timing and control of glue dot positions is achieved for high fidelity and high speed response.