Application Example Programs
E–33
| | 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 –(CU)–|
| |Type Up (Res,Hld)+–(CD)|
| |Counter C5:0+–(DN) |
| |High Preset 1000| |
| |Accum 0| |
| +––––––––––––––––––+ |
Rung 2:4
| |
|–––––––––––––––––––––––––––––––––+END+–––––––––––––––––––––––––––––––––|
| |
Reference
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive