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

Page 458

Advertising
background image

Appendix E
Application Example Programs

E–15

File 2, Rung 2

Forces a high-speed counter low preset interrupt to occur each RRUN mode
entry. An interrupt can only occur on the transition of the high-speed
counter accum to a preset value (accum reset to 1, then 0). This is done
to allow the high-speed counter interrupt subroutine sequencers to
initialize. The order of high-speed counter initialization is: (1)load
high-speed counter parameters (2)execute HSL instruction (3)execute true
HSC instruction (4)(optional) force high-speed counter interrupt to
occur.

FUN GRAPHIC PARAMETER
CODE SYMBOL MNEMONIC NAME ADDRESS VALUE FORCES
–––– ––––––– –––––––– –––– ––––––– ––––– ––––––
20 |–] [– LD 1’st Pass

S1/15 0

132 RAC
High Speed Counter
CNTR C0
SRC 1

7 RES
High Speed Counter
C0

File 2, Rung 3

Starts the conveyor in motion when the start button is pressed. However,
another condition must also be met before we start the conveyor: the
drill bit must be in its fully retracted position (home). This rung also
stops the conveyor when the stop button is pressed.

FUN GRAPHIC PARAMETER
CODE SYMBOL MNEMONIC NAME ADDRESS VALUE FORCES
–––– ––––––– –––––––– –––– ––––––– ––––– ––––––
20 |–] [– LD
START Button
I/6 0

22 –] [– AND
Drill Home LS
I/5 0

24 |_] [_| OR
Machine RUN Latch
B/0 0

23 –]/[– ANI
STOP Button
I/7 0

23

–]/[– ANI

change drill bit NOW
O/6 0

40 –( )– OUT
Machine RUN Latch
B/0 0

➀ This instruction accesses I/O only available with 32 I/O controllers. Therefore, do not include this

instruction if you are using a 16 I/O controller.

Advertising