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

Page 182

Advertising
background image

Chapter 10
Using Math Instructions

10–16

Rung 7:6
When the number of 1/4 in. increments surpasses 1000, determines how many
increments are past 1000 and stores in N7:20. Adds 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| | |
| | +––––––––––––––––––+ | |
| | 1/4 in. | |
| | increments | |
| | | |
| | +MOV–––––––––––––––+ | |
| +–+MOVE +–+ |
| |Source N7:20| |
| | 0| |
| |Dest N7:10| |
| | 0| |
| +––––––––––––––––––+ |

Rung 7:7
| |
|–––––––––––––––––––––––––––––––––––––+END+–––––––––––––––––––––––––––|
| |

Instruction List

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

Advertising