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

Page 118

Advertising
background image

Publication 1746-UM006B-EN-P - August 2005

6-6 Application Examples

User Program

Shown below is the user program for the Count-Only example.

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
| 1’st |
| Pass |
| |
| +GEQ–––––––––––––––+ B3 |
|–––+GRTR THAN OR EQUAL+––––––––––––––––––––––––––––––––––––––––––––––( )––––– |
| |Source A I:1.1| 0 |
| |Source B 2500| |
| | | |
| +––––––––––––––––––+ |

Rung 2:4
| 1’st |
| Pass |
| |
| +LES–––––––––––––––+ B3 |
|–––+LESS THAN OR EQUAL+––––––––––––––––––––––––––––––––––––––––––––––( )––––– |
| |Source A I:1.1| 1 |
| |Source B 2500| |
| | | |
| +––––––––––––––––––+ |

Rung 2:5
| |
| Reset Push Soft |
| Button Reset |
| I:2 B3 M0:1.1 |
|––––] [––––––––––[OSR]––––––––––––––––––––––––––––––––––––––––––––––––(L)–––––|
| 0 2 4 |

Rung 2:6
| |
| Reset Soft |
| Input Reset |
| I:1.0 M0:1.1 |
|––––] [–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––(U)–––––|
| 12 4 |

Rung 2:7
| |
|–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––|
| |

Advertising