Using High-Speed Counter Instructions
12–27
Example 2
To
enter the REM Run mode and retain the HSC ACC value while having the HSC
Outputs and Interrupt Subroutine reassert themselves, apply the following:
Rung 2:0
Unlatch the C5:0/HP and C5:0/LP bits during the first scan BEFORE the
HSC instruction is executed for the first time.
| S:1 +HSL–––––––––––––––+ |
|––][––––––––––––––––––––––––––––––––––––––––––+HSC LOAD +– |
| 15 |Counter C5:0| |
| |Source N7:0| |
| |Length 5| |
| +––––––––––––––––––+ |
Rung 2:1
| S:1 C5:0 |
|––][–––––––––––––––––––––––––––––––––––––––––––––––––––––+–(U)––+|––|
| 15 | HP | |
| | C5:0 | |
| +––(U)––+ |
| LP |
Rung 2:2
| +HSC––––––––––––––––––––+ |
|–––––––––––––––––––––––––––––––––––––+HIGH SPEED COUNTER +–(CU)–|
| |Type Encoder (Res,Hld)+–(CD) |
| |Counter C5:0+–(DN) |
| |High Preset 1000| |
| |Accum 0| |
| +–––––––––––––––––––––––+ |
Programming
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive