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

Page 460

Advertising
background image

Appendix E
Application Example Programs

E–17

File 4, Rung 0

Resets the hole count sequencers each time that the low preset is reached.
The low preset has been set to zero to cause an interrupt to occur each
time that a reset occurs. The low preset is reached anytime that a reset
C5:0 or hardware reset occurs. This ensures that the first preset value
is loaded into the high-speed counter at each entry into the RRUN mode and
each time that the external reset signal is activated.

FUN GRAPHIC PARAMETER
CODE SYMBOL MNEMONIC NAME ADDRESS VALUE FORCES
–––– ––––––– –––––––– –––– ––––––– ––––– ––––––
158 |–INT– LD–INT

22 –] [– AND
interrupt occurred due to low preset reached
C0/IL 0

7 RES
3 hole preset sequencer
R4

7 RES
5 hole preset sequencer
R5

7 RES
7 hole preset sequencer
R6

File 4, Rung 1

Keeps track of the hole number that is being drilled and loads the correct
high-speed counter preset based on the hole count. This rung is only
active when the ”hole selector switch” is in the ”3-hole” position. The
sequencer uses step 0 as a null step upon reset. It uses the last step as
a ”go forever” in anticipation of the ”end-of-manual” hard-wired external
reset.

FUN GRAPHIC PARAMETER
CODE SYMBOL MNEMONIC NAME ADDRESS VALUE FORCES
–––– ––––––– –––––––– –––– ––––––– ––––– ––––––
21 |–]/[– LDI
hole selector switch bit 0
I/9 0

22 –] [– AND
hole selector switch bit 1
I/10 0

152 SQO FILE #N50
MASK FFFFH

High Preset Value (counts to next hole)
DEST N7
3 hole preset sequencer
CTRL R4
LEN 5
POS 0000H

42 –(U)– RST
force the sequencer to increment on next scan
R4/EN 1

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

if you are using a 16 I/O controller.

Advertising