Rockwell Automation 2711 PanelBuilder Software Getting Started User Manual

Page 108

Advertising
background image

PLC Ladder Logic Program for DH+ Application

C–2

Publication 2711-6.2

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| |
| +––––––––––––––––––+ |

Rung 2:10
When the motor is started or stopped, the motor speed is moved to N7:2. The
PanelView displays the value at N7:2.
| B3 +MOV–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––––––+MOVE +–|
| 4 |Source N7:1| |
| | 0| |
| |Dest N7:2| |
| | 0| |
| +––––––––––––––––––+ |

Rung 2:11
When the motor is started or stopped, the motor speed is moved to N7:2. The
PanelView displays the value at N7:2.
| B3 +MOV–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––––––+MOVE +–|
| 5 |Source 0| |
| | | |
| |Dest N7:2| |
| | 0| |
| +––––––––––––––––––+ |

Advertising