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

Page 116

Advertising
background image

Example Ladder Logic Program

Appendix C

C-24

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

Rung 40:0
As long at the last BTW attempted to TCM was successful, the following rung
will continuously force the program scan through the Check for Required
Downloads to TCM Subroutine (Program File #042). Program File #042 contains
all logic required to determine if a command block download is required to
TCM. The XIO,B27/95 permissive is not required for file operation, but is
included in the event that the TCM BTW rung is moved to Program File #002.
| CHECK FOR |
| | ERROR REQUIRED |
| BTW TO |PERFORMING DOWNLOADS |
| TCM | BTW TO TO TCM |
| ENABLED | TCM SUBROUTINE |
| B24 B24 +JSR––––––––––––––––––––+ |
+––––]/[––––––––]/[––––––––––––––––––––––––––––––––––+JUMP TO SUBROUTINE +–+
| 95 92 |Prog file number 42| |
| |Input parameter | |
| |Return parameter | |
| +–––––––––––––––––––––––+ |
Rung 40:1
If the logic in Program File #042 has indicated that a command block download
is required to TCM, the following rung will continuously force the
program scan through the Load Command Block for TCM Subroutine (Program File
#043). Program File #043 contains all logic required to determine which command
block must be downloaded, and to load the write buffer in preparation for the
BTW that will be enabled in Program File #044.
| LOAD |
| COMMAND |
| DOWNLOAD BLOCK |
| TO TCM FOR TCM |
| REQUIRED SUBROUTINE |
| B21 +JSR––––––––––––––––––––+ |
+––––] [–––––––––––––––––––––––––––––––––––––––––––––+JUMP TO SUBROUTINE +–+
| 31 |Prog file number 43| |
| |Input parameter | |
| |Return parameter | |
| +–––––––––––––––––––––––+ |
Rung 40:2
If the logic in Program File #042 has indicated that a command block download
is required to TCM, the following rung will force the program scan
through the Execute BTW to TCM Subroutine (Program File #044). Program File
#044 contains all logic required to write the BTW data file (loaded in Program
File #043) to TCM .
| EXECUTE |
| DOWNLOAD BTW TO |
| TO TCM TCM |
| REQUIRED SUBROUTINE |
| B21 +JSR––––––––––––––––––––+ |
+––––] [–––––––––––––––––––––––––––––––––––––––––––––+JUMP TO SUBROUTINE +–+
| 31 |Prog file number 44| |
| |Input parameter | |
| |Return parameter | |
| +–––––––––––––––––––––––+ |
Rung 40:3
| |
+––––––––––––––––––––––––––––––––[END OF FILE]–––––––––––––––––––––––––––––––––+
| |

Advertising