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

Page 454

Advertising
background image

Appendix E
Application Example Programs

E–11

Rung 7: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.

| drill change 1/4 in. |
| reset keyswitch Thousands |
| I:0 +CLR–––––––––––––––+ |
|––––] [–––––––––––––––––––––––––––––––––––––+–+CLEAR +–+–|
| 8 | |Dest N7:11| | |
| | | 0| | |
| | +––––––––––––––––––+ | |
| | 1/4 in. | |
| | increments | |
| | | |
| | +CLR–––––––––––––––+ | |
| +–+CLEAR +–+ |
| |Dest N7:10| |
| | 0| |
| +––––––––––––––––––+ |

Rung 7: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.

| BCD bit 0 |FRD bit 0 |
| I:0 N7:14 |
|–––––––––––––––––––––––––––––––––––––––––––+––––] [––––––––( )–––––+–|
| | 11 0 | |
| | BCD bit 1 |FRD bit 1 | |
| | I:0 N7:14 | |
| +––––] [––––––––( )–––––+ |
| | 12 1 | |
| | BCD bit 2 |FRD bit 2 | |
| | I:0 N7:14 | |
| +––––] [––––––––( )–––––+ |
| | 13 2 | |
| | BCD bit 3 |FRD bit 3 | |
| | I:0 N7:14 | |
| +––––] [––––––––( )–––––+ |
| 14 3 |

➀ 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