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

Page 486

Advertising
background image

Appendix E
Application Example Programs

E–43

| | 1 second Frequency | |
| | has now in Hertz | |
| | elapsed | |
| | C5:1 +MOV–––––––––––––––+ | |
| +–––] [–––+––+MOVE +–+–––––––––––––––––––––––––+ |
| DN | |Source N7:3| | |
| | | 0| | |
| | |Dest N7:4| | |
| | | 0| | |
| | +––––––––––––––––––+ | |
| | Frequency | |
| | calculation | |
| | register | |
| | +CLR–––––––––––––––+ | |
| +––+CLEAR +–+ |
| | |Dest N7:3| | |
| | | 0| | |
| | +––––––––––––––––––+ | |
| | Frequency | |
| | determination | |
| | counter | |
| | C5:1 | |
| +–––––––––(RES)–––––––––+ |
| | Temporary reg. | |
| | (math reg is real | |
| | destination | |
| | +MUL–––––––––––––––+ | |
| +––+MULTIPLY +–+ |
| | |Source A N7:4| | |
| | | 0| | |
| | |Source B 60| | |
| | | | | |
| | |Dest N7:6| | |
| | | 0| | |
| | +––––––––––––––––––+ | |
| | RPM based on | |
| | counts per turn | |
| | register N7:2 | |
| | +DDV–––––––––––––––+ | |
| +––+DOUBLE DIVIDE +–+ |
| | |Source N7:2| | |
| | | 1000| | |
| | |Dest N7:5| | |
| | | 0| | |
| | +––––––––––––––––––+ | |
| | Math overflow | |
| | error bit | |
| | S:5 | |
| +–––––––––(U)–––––––––––+ |
| 0 |

Rung 2:3

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

Rung 2:4

| |
|–––––––––––––––––––––––––––––––––+END+–––––––––––––––––––––––––––––––––|
| |

Advertising