beautypg.com

Rockwell Automation 1771-TCM,D17716.5.108 TEMPERATURE CONTROL MOD User Manual

Page 102

background image

Example Ladder Logic Program

Appendix C

C-10

Wed Jun 1, 1994 Page 4
Program Listing Report PLC–5/40 File TCM Rung 30:4

Rung 30:4
The following rung will force the program scan through the Service Complete
BTR from TCM Subroutine (Program File #032) each time a successful BTR is
completed from the module. The logic in Program File #032 will determine the ID
of the status block that has been received, and buffer the new data to its
proper working location in the PLC–5 data table.
| SERVICE |
| COMPLETE |
| BTR FROM BTR FROM |
| TCM TCM |
| COMPLETE SUBROUTINE |
| B24 +JSR––––––––––––––––––––+ |
+––––] [–––––––––––––––––––––––––––––––––––––––––––––+JUMP TO SUBROUTINE +–+
| 13 |Prog file number 32| |
| |Input parameter | |
| |Return parameter | |
| +–––––––––––––––––––––––+ |
Rung 30:5
The following two rungs will increment the BTR Error Counter (C25:0) assigned
to TCM each time an unsuccessful BTR is attempted from the module.
| ERROR BTR FROM |
| PERFORMING TCM |
| BTR FROM ERROR |
| TCM COUNTER |
| B24 +CTU–––––––––––––––+ |
+––––] [–––––––––––––––––––––––––––––––––––––––––––––+COUNT UP +–(CU)–+
| 12 |Counter C25:0| |
| |Preset 5+–(DN) |
| |Accum 0| |
| +––––––––––––––––––+ |
Rung 30:6
| BTR FROM |
| TCM |
| ERROR |
| COUNTER |
| ENABLED |
| C25:0 |
+––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––(U)–––––+
| CU |
Rung 30:7
| |
+––––––––––––––––––––––––––––––––[END OF FILE]–––––––––––––––––––––––––––––––––+
| |