Installation manual

Publication 1747-RM001G-EN-P - November 2008
G-6 Application Example Programs
Conveyor Operation
When the start button is pressed, the conveyor moves the books forward. As
the first book moves close to the drill, the book trips a photo-eye sensor. This
tells the machine where the leading edge of the book is. Based on the position
of the selector switch, the conveyor moves the book until it reaches the first
drilling position. The drill sequence start bit is set and the first hole is drilled.
The drill sequence start bit is now unlatched and the conveyor moves the same
book to the second drilling position. The drilling process is then repeated until
there are the desired holes per book. The machine then looks for another book
to break the photo-eye beam and the process is repeated. The operator can
change the number of drilled holes by changing the selector switch.
The following rung resets the hole count sequencers each time the processor enters the RUN mode. This
ensures that the first preset value is loaded into the DII preset at each entry into the run
mode.
0000
INT
I/O Interrupt
INT S:1
15
First Pass
RES
R6:4
RES
R6:5
RES
R6:6
The following rung tells the DII to look for the presence of a book at the photo-eye and an encoder pulse. By
triggering on these two conditions, the DII only counts pulses when there is a book present, otherwise it holds
at its existing number of counts. S:49 is the DII PRESET value.
0001
MOV
Move
Source 5
5<
Dest S:49
0<
Discrete
Input
Interrupt-
Compare
Value