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

Page 128

Advertising
background image

Example Ladder Logic Program

Appendix C

C-36

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

Rung 44:0
The following two rungs will ”continuously” write command data to TCM. The
contents of the BTW data file are determined by the logic in Program File #043.
The XIC,B24/92 and XIC,B24/93 permissives in the second rung are not required
for file operation, but are included in the event that the TCM BTW rung is
moved to Program File #002.
| CONTROL |
| WORD |
| FOR BTW TO |
| TCM |
| +BTW––––––––––––––––––––+ |
+–––––––––––––––––––––––––––––––––––––––––––––––+BLOCK TRANSFER WRITE +–(EN)–+
| |Rack 00| |
| |Group 2+–(DN) |
| |Module 0| |
| |Control block B24:5+–(ER) |
| |Data file B24:74| |
| |Length 0| |
| |Continuous N| |
| +–––––––––––––––––––––––+ |
Rung 44:1
| ERROR |
| PERFORMING BTW TO |
| BTW TO TCM |
| TCM ENABLED |
| B24 B24 |
+–+–––] [––––+–––––––––––––––––––––––––––––––––––––––––––––––––––––––––(U)–––––+
| | 92 | 95 |
| | BTW TO | |
| | TCM | |
| | COMPLETE | |
| | B24 | |
| +–––] [––––+ |
| 93 |
Rung 44:2
The following rung will force the program scan through the Service
Completed TCM BTW Subroutine (Program File #045) each time a successful BTW
is completed to the module. The logic in Program File #045 will reset the
proper ”Download Required” bit (B21/0 – B21/25), reset all ”Download in
Progress” bits (B21/64 – B21/89), and re–load the DYC into the BTW data file so
it may be used by the comparison function in Program File #042.
| SERVICE |
| COMPLETE |
| BTW TO BTW TO |
| TCM TCM |
| COMPLETE SUBROUTINE |
| B24 +JSR––––––––––––––––––––+ |
+––––] [–––––––––––––––––––––––––––––––––––––––––––––+JUMP TO SUBROUTINE +–+
| 93 |Prog file number 45| |
| |Input parameter | |
| |Return parameter | |
| +–––––––––––––––––––––––+ |

Advertising