Rockwell Automation 2711 PanelBuilder Software Getting Started User Manual

Page 99

Advertising
background image

SLC Ladder Logic Program for DH-485/DH+ Application

A–2

Publication 2711-6.2

Rung 2:5
Counter C5:0 indicates the speed of the motor. If auto mode is selected and
the motor is started the counter will increment.
| T4:0 +EQU–––––––––––––––+ B3 C5:0 B3 +CTU–––––––––––––––+ |
|––] [––+EQUAL +––] [–––]/[–––]/[––––––––+COUNT UP +–(CU)–|
| DN |Source A N7:0| 4 DN 6 |Counter C5:0+–(DN) |
| | 0| |Preset 20| |
| |Source B 0| |Accum 0| |
| | | +––––––––––––––––––+ |
| +––––––––––––––––––+ |

Rung 2:6
Counter C5:0 indicates the speed of the motor. If auto mode is selected and
the motor is started the counter will decrement.
| T4:0 +EQU–––––––––––––––+ B3 B3 +CTD–––––––––––––––+ |
|––] [––+EQUAL +––] [–––] [––––––––––––––+COUNT DOWN +–(CD)–|
| DN |Source A N7:0| 4 6 |Counter C5:0+–(DN) |
| | 0| |Preset 20| |
| |Source B 0| |Accum 0| |
| | | +––––––––––––––––––+ |
| +––––––––––––––––––+ |

Rung 2:7
The motor speed is scaled by a value of 50 and stored in address N7:1 when in
auto mode.
| +EQU–––––––––––––––+ +MUL–––––––––––––––+ |
|–+EQUAL +––––––––––––––––––––––––––––––––––––+MULTIPLY +–|
| |Source A N7:0| |Source A C5:0.ACC| |
| | 0| | 0| |
| |Source B 0| |Source B 50| |
| | | | | |
| +––––––––––––––––––+ |Dest N7:1| |
| | 0| |
| +––––––––––––––––––+ |

Rung 2:8
The operator entered motor speed, indicated by N7:1, is scaled and stored in
C5:0 when manual mode is selected.
| +EQU–––––––––––––––+ +DIV–––––––––––––––+ |
|–+EQUAL +––––––––––––––––––––––––––––––––––––+DIVIDE +–|
| |Source A N7:0| |Source A N7:1| |
| | 0| | 0| |
| |Source B 1| |Source B 50| |
| | | | | |
| +––––––––––––––––––+ |Dest C5:0.ACC| |
| | 0| |
| +––––––––––––––––––+ |

Rung 2:9
Timer used for incrementing and decrementing motor speed when manual mode is
selected.
| T4:1 +TON–––––––––––––––+ |
|––]/[–––––––––––––––––––––––––––––––––––––––––––––––+TIMER ON DELAY +–(EN)–|
| DN |Timer T4:1+–(DN) |
| |Time Base 0.01| |
| |Preset 50| |
| |Accum 0| |
| +––––––––––––––––––+ |

Advertising