Rockwell Automation 1761-HHP-B30 MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual

Page 462

Advertising
background image

Appendix E
Application Example Programs

E–19

File 4, Rung 4

Ensures that the high-speed counter preset value (N7:7) is immediately
applied to the HSC instruction.

FUN GRAPHIC PARAMETER
CODE SYMBOL MNEMONIC NAME ADDRESS VALUE FORCES
–––– ––––––– –––––––– –––– ––––––– ––––– ––––––
171 HSL
High Speed Counter
CNTR C0

Output Mask (only use bit 0 ie. O:0/0)
SRC N5
LEN 5

File 4, Rung 5

Interrupt occurred due to low preset reached.

FUN GRAPHIC PARAMETER
CODE SYMBOL MNEMONIC NAME ADDRESS VALUE FORCES
–––– ––––––– –––––––– –––– ––––––– ––––– ––––––
20 |–] [– LD
interrupt occurred due to low preset reached
C0/IL 0

134 RET

File 4, Rung 6

Signals the main program (file 2) to initiate a drilling sequence. The
high-speed counter has already stopped the conveyor at the correct
position using its high preset output pattern data (clear O:0/0). This
occurred within microseconds of the high preset being reached (just prior
to entering this high-speed counter interrupt subroutine). The drill
sequence subroutine resets the drill sequence start bit and sets the
conveyor drive bit (O:0/0) upon completion of the drilling sequence.

FUN GRAPHIC PARAMETER
CODE SYMBOL MNEMONIC NAME ADDRESS VALUE FORCES
–––– ––––––– –––––––– –––– ––––––– ––––– ––––––
20 |–] [– LD
interrupt occurred due to hi preset reached
C0/IH 0

41 –(L)– SET
Drill Sequence Start
B/32 0

File 6, Rung 0

This section of ladder logic controls the up/down motion of the drill for
the book drilling machine. When the conveyor positions the book under the
drill, the DRILL SEQUENCE START bit is set. This rung uses that bit to
begin the drilling operation. Because the bit is set for the entire
drilling operation, the OSR is required to be able to turn off the forward
signal so the drill can retract.

FUN GRAPHIC PARAMETER
CODE SYMBOL MNEMONIC NAME ADDRESS VALUE FORCES
–––– ––––––– –––––––– –––– ––––––– ––––– ––––––
20 |–] [– LD
Drill Sequence Start
B/32 0

29 –OSR– AND–OSR
Drill Subr OSR
B/48 0

41 –(L)– SET
Drill Forward
O/3 0

Advertising