beautypg.com

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

Page 99

background image

Appendix C
Example Ladder Logic Program

C-7

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

Rung 2:0
| DOWNLOAD |
| TO TCM |
| PLC REQUIRED |
| RUNNING BIT–MAP |
| FIRST SCAN |
| S:1 +MOV–––––––––––––––+ |
+––––] [––––––––––––––––––––––––––––––––––––––––––––––––++MOVE ++–+
| 15 ||Source B26:0|| |
| || 0000001111111111|| |
| ||Destination B21:0|| |
| || 0000000000000000|| |
| |+––––––––––––––––––+| |
| | ENABLE | |
| | BTR FROM | |
| | TCM | |
| | B21 | |
| +–––––––––––––(L)––––+ |
| 48 |
Rung 2:1
The following rung will continuously force the program scan through the
Execute BTRs from TCM Subroutine (Program File #030). Program File #030
contains all logic required to continuously obtain and distribute current
status data from the two TCM.
| EXECUTE |
| BTR FROM |
| TCM |
| SUBROUTINE |
| +JSR––––––––––––––––––––+ |
+––––––––––––––––––––––––––––––––––––––––––––––––––––+JUMP TO SUBROUTINE +–+
| |Prog file number 30| |
| |Input parameter | |
| |Return parameter | |
| +–––––––––––––––––––––––+ |
Rung 2:2
The following rung will continuously force the program scan through the
Service TCM BTW Functions Subroutine (Program File #040). Program File #040
contains all logic required to update the two TCM with any new command data on
an as–required basis.
| SERVICE |
| TCM BTW |
| FUNCTIONS |
| SUBROUTINE |
| +JSR––––––––––––––––––––+ |
+––––––––––––––––––––––––––––––––––––––––––––––––––––+JUMP TO SUBROUTINE +–+
| |Prog file number 40| |
| |Input parameter | |
| |Return parameter | |
| +–––––––––––––––––––––––+ |
Rung 2:3
| COPY |
| COPY CONFIG |
| CONFIG FILES |
| FILES BIT SUBROUTINE |
| B21 +JSR––––––––––––––––––––+ |
+––––] [–––––––––––––––––––––––––––––––––––––––––––––+JUMP TO SUBROUTINE +–+
| 63 |Prog file number 35| |
| |Input parameter | |
| |Return parameter | |
| +–––––––––––––––––––––––+ |
Rung 2:4
| |
+––––––––––––––––––––––––––––––––[END OF FILE]–––––––––––––––––––––––––––––––––+
| |