User program, User program -24 – Rockwell Automation 1746-HSCE,D17466.5 High-Speed Counter Module User Manual

Page 136

Advertising
background image

Publication 1746-UM006B-EN-P - August 2005

6-24 Application Examples

User Program

Shown below is the user program for the Log Ripper example.

Rung 2:0
| Start Stop Saw Saw Motor |
| Saw |
| I:2.0 I:2.0 O:3.0 |
|–+––––] [–––––+––––]/[––––––––––––––––––––––––––––––––––––––––––––––––( )–––––|
| | 0 | 1 0 |
| | Saw | |
| | Motor | |
| | O:3.0 | |
| +––––] [–––––+ |
| 0 |

Rung 2:1
| 1’st Initialize |
| Pass module |
| |
| S:1 +COP–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––––––+COPY FILE +–|
| 15 |Source #N10:0| |
| |Dest #M0:1.0| |
| |Length 42| |
| +––––––––––––––––––+ |

Rung 2:2
| 1’st Function |
| Pass Control |
| Bit |
| S:1 M0:1.1 |
|––––] [–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––(L)–––––|
| 15 12 |

Rung 2:3
| Bits 14&15 indicate |
| that the module |
| is in run mode |
| Start Feed Stop Feed Feed Motor |
| |
| I:1.0 I:1.0 I:2.0 I:2.0 O:1.0 |
|––––]/[––––––––] [–––––+––––] [–––––+––––]/[––––––––––––––––––––––––––( )–––––|
| 15 14 | 2 | 3 0 |
| | | |
| | | |
| | | |
| | Feed Motor | |
| | | |
| | O:1.0 | |
| +––––] [–––––+ |
| 0 |

Rung 2:4
| Slow Speed Notify |
| control |
| panel of |
| slow saw |
| speed |
| I:1.4 O:3.0 |
|––––]/[–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )–––––|
| 15 1 |

Rung 2:5
| |
|–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––|
| |

Advertising