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

Page 127

Advertising
background image

Publication 1746-UM006B-EN-P - August 2005

Application Examples 6-15

User Program

Shown below is the user program for the drilling example.

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

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

Rung 2:2
| Bits 14&15 indicate |INITIATE REV FEED |
| that the module |DRILLING |
| is in run mode | |
| I:1.0 I:1.0 B3 B3 O:2.0 |
|––––]/[––––––––] [––––––––] [––––––[OSR]–––––––––––––––––––––––+––––(U)–––––+–|
| 15 14 0 1 | 1 | |
| | | |
| | | |
| | | |
| | FWD FEED | |
| | O:2.0 | |
| +––––(L)–––––+ |
| 0 |

Rung 2:3
| Soft |
| Output bit |
| seven (7) |
| FWD FEED |
| I:1.4 O:2.0 |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––––––––––––+––––(U)–––––+–|
| 15 | 0 | |
| | REV FEED | |
| | O:2.0 | |
| +––––(L)–––––+ |
| 1 |

Rung 2:4
| 1 |
|–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––|
| 1 |

Advertising