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

Page 274

Advertising
background image

Chapter 14
Using High-Speed Counter Instructions

14–24

Example 1

To enter the RRUN mode and have the HSC Outputs, ACC, and Interrupt
Subroutine resume their previous state, apply the following:

Ladder Rungs

Rung 2:0
No action required. (Remember that all OUT instructions are zeroed when
entering the RRUN mode. Use SET/RST instructions in place of OUT
instructions in your conditional logic requiring retention.)

| S:1 +HSL–––––––––––––––+ |
|––][––––––––––––––––––––––––––––––––––––––––––––––+HSC LOAD +–|
| 15 |Counter C5:0| |
| |Source N7:0| |
| |Length 5| |
| +––––––––––––––––––+ |

Rung 2:1
| +HSC––––––––––––––––––––+ |
|––––––––––––––––––––––––––––––––––––––––+HIGH SPEED COUNTER +–(CU)–|
| |Type Encoder(Res,Hld) +–(CD) |
| |Counter C5:0+–(DN) |
| |High Preset 1000| |
| |Accum 0| |
| +–––––––––––––––––––––––+ |

Instruction List

File 2, Rung 1

No action required. (Remember that all OUT instructions are zeroed when
entering the RRUN mode. Use SET/RST instructions in place of OUT
instructions in your conditional logic requiring retention.)

FUN GRAPHIC PARAMETER
CODE SYMBOL MNEMONIC NAME ADDRESS VALUE FORCES
–––– ––––––– –––––––– –––– ––––––– ––––– ––––––
20 |–] [– LD S1/15 0

171 HSL CNTR C0
SRC N0
LEN 5

File 2, Rung 1

FUN GRAPHIC PARAMETER
CODE SYMBOL MNEMONIC NAME ADDRESS VALUE FORCES
–––– ––––––– –––––––– –––– ––––––– ––––– ––––––
170 HSC TYPE Encoder (Res,Hld)
CNTR C0
PRE 1000
ACC 0000H

Advertising