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

Page 111

Advertising
background image

Appendix C
Example Ladder Logic Program

C-19

Wed Jun 1, 1994 Page 13
Program Listing Report PLC–5/40 File TCM Rung 32:37

Rung 32:37
| MAIN |
| PROGRAM |
| POINTER #1 |
| +ADD–––––––––––––––+ |
+–––––––––––––––––––––––––––––––––––––––––––––––––––––––––+ADD +–+
| |Source A N22:1| |
| | 0| |
| |Source B 1| |
| | | |
| |Destination N22:1| |
| | 0| |
| +––––––––––––––––––+ |
Rung 32:38
| MAIN |
| PROGRAM LOAD ERROR |
| POINTER #1 CODES |
| +LEQ–––––––––––––––+ 1 |
+–+LESS THAN OR EQUAL+––––––––––––––––––––––––––––––––––––––––––––––––(JMP)––––+
| |Source A N22:1| |
| | 0| |
| |Source B 8| |
| | | |
| +––––––––––––––––––+ |
Rung 32:39
The following rung will force the program scan through the Check New TCM
BTR for Required Uploads Subroutine (Program File #033) each time a successful
BTR is completed from the module. The logic in Program File #033 contains all
logic required to determine if a process status block (other than SYS) upload
is required from TCM .
| CHECK FOR |
| REQUIRED |
| UPLOADS |
| FROM TCM |
| SUBROUTINE |
| +JSR––––––––––––––––––––+ |
+––––––––––––––––––––––––––––––––––––––––––––––––––––+JUMP TO SUBROUTINE +–+
| |Prog file number 33| |
| |Input parameter | |
| |Return parameter | |
| +–––––––––––––––––––––––+ |
Rung 32:40
| |
+––––––––––––––––––––––––––––––––[END OF FILE]–––––––––––––––––––––––––––––––––+
| |

Advertising