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

Page 103

Advertising
background image

Appendix C
Example Ladder Logic Program

C-11

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

Rung 32:0
The following rung will reset the BTR Error Counter (C25:0) assigned to TCM
each time a successful BTR is completed from the module.
| BTR FROM |
| TCM |
| ERROR |
| COUNTER |
| C25:0 |
+–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––(RES)––––+
| |
Rung 32:1
The following two rungs will decode the Status Block ID returned with the new
BTR from the TCM whose BTR is being serviced.
| BLOCK ID |
| OF LAST |
| STATUS BLK |
| RECEIVED |
| FROM TCM |
| +CLR–––––––––––––––+ |
+–––––––––––––––––––––––––––––––––––––––––––––––––––––––––+CLEAR +–+
| |Destination N22:0| |
| | 255| |
| +––––––––––––––––––+ |
Rung 32:2
| BLOCK ID |
| OF LAST |
| STATUS BLK |
| RECEIVED |
| FROM TCM |
| +MVM–––––––––––––––+ |
+–––––––––––––––––––––––––––––––––––––––––––––––––––––––––+MOVE WITH MASK +–+
| |Source B24:10| |
| | 1000100011111111| |
| |Mask 00FF| |
| | | |
| |Destination N22:0| |
| | 255| |
| +––––––––––––––––––+ |
Rung 32:3
| BLOCK ID |
| OF LAST STATUS BLK |
| STATUS BLK RECEIVED |
| RECEIVED FROM TCM |
| FROM TCM IS SYS |
| +EQU–––––––––––––––+ 0 |
+–+EQUAL +––––––––––––––––––––––––––––––––––––––––––––––––(JMP)––––+
| |Source A N22:0| |
| | 255| |
| |Source B 255| |
| | | |
| +––––––––––––––––––+ |

Advertising