beautypg.com

Preface – Rockwell Automation 1761 MicroLogix 1000 Programmable Controllers User Manual

Page 366

background image

Preface

MicroLogix 1000 Programmable Controllers User Manual

E–16

Rung 7:5
Keeps a running total of how many inches of paper have been drilled
with the current drill bit. Every time a hole is drilled, adds the
thickness (in 1/4 ins) to the running total (kept in 1/4 ins). The OSR
is necessary because the ADD executes every time the rung is true, and
the drill body would actuate the DRILL DEPTH limit switch for more than
1 program scan. Integer N7:12 is the integer-converted value of the
BCD thumbwheel on inputs I:0/11 – I:0/14.

| Drill |Drill Wear 1/4 in. |
| Depth LS | OSR 1 increments |
| |
| I:0 B3 +ADD–––––––––––––––+ |
|––––] [–––––––[OSR]–––––––––––––––––––––––––––––+ADD +–|
| 4 24 |Source A N7:12| |
| | 0| |
| |Source B N7:10| |
| | 0| |
| |Dest N7:10| |
| | 0| |
| +––––––––––––––––––+ |

Rung 7:6
When the number of 1/4 in. increments surpasses 1000, finds out now
many increments are past 1000 and stores in N7:20. Add 1 to the total
of ’1000 1/4 in.’ increments, and re-initializes the 1/4 in. increments
accumulator to how many increments were beyond 1000.

| 1/4 in. |
| increments |
| |
| +GEQ–––––––––––––––+ +SUB–––––––––––––––+ |
|–+GRTR THAN OR EQUAL+–––––––––––––––––––––––+–+SUBTRACT +–+–|
| |Source A N7:10| | |Source A N7:10| | |
| | 0| | | 0| | |
| |Source B 1000| | |Source B 1000| | |
| | | | | | | |
| +––––––––––––––––––+ | |Dest N7:20| | |
| | | 0| | |
| | +––––––––––––––––––+ | |
| | 1/4 in. | |
| | Thousands | |
| | +ADD–––––––––––––––+ | |
| +–+ADD +–+ |
| | |Source A 1| | |
| | | | | |
| | |Source B N7:11| | |
| | | 0| | |
| | |Dest N7:11| | |
| | | 0| | |
| | +––––––––––––––––––+ | |