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

Appendix E
Application Example Programs
E–22
File 7, Rung 1
Resets the number of 1/4 in. increments and the 1/4 in. thousands when the
”drill change reset” keyswitch is energized. This should occur following
each drill bit change.
FUN GRAPHIC PARAMETER
CODE SYMBOL MNEMONIC NAME ADDRESS VALUE FORCES
–––– ––––––– –––––––– –––– ––––––– ––––– ––––––
20 |–] [– LD
drill change reset keyswitch
I/8 0
85 CLR
1/4 in. Thousands
DEST N11 0000H
85 CLR
1/4 in. increments
DEST N10 0000H
File 7, Rung 2
➀
Moves the single-digit BCD thumbwheel value into an internal integer
register. This is done to properly align the four BCD input signals prior
to executing the BCD to Integer instruction (FRD). The thumbwheel is used
to allow the operator to enter the thickness of the paper that is to be
drilled. The thickness is entered in 1/4 in. increments. This provides a
range of 1/4 in. to 2.25 in.
FUN GRAPHIC PARAMETER
CODE SYMBOL MNEMONIC NAME ADDRESS VALUE FORCES
–––– ––––––– –––––––– –––– ––––––– ––––– ––––––
10 MPS
22 –] [– AND BCD bit 0
I/11 0
40 –( )– OUT FRD bit 0
N14/0 0
11 MRD
22 –] [– AND BCD bit 1
I/12 0
40 –( )– OUT FRD bit 1
N14/1 0
11 MRD
22 –] [– AND BCD bit 2
I/13 0
40 –( )– OUT FRD bit 2
N14/2 0
12 MPP
22 –] [– AND BCD bit 3
I/14 0
40 –( )– OUT FRD bit 3
N14/3 0
➀ 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.