Rockwell Automation 1771-TCM,D17716.5.108 TEMPERATURE CONTROL MOD User Manual
Page 107
Appendix C
Example Ladder Logic Program
C-15
Wed Jun 1, 1994 Page 9
Program Listing Report PLC–5/40 File TCM Rung 32:21
Rung 32:21
| +SUB–––––––––––––––+ |
+–––––––––––––––––––––––––––––––––––––––––––––––––––––––––+SUBTRACT +–+
| |Source A F28:0| |
| | 0.000000| |
| |Source B N22:5| |
| | 0| |
| |Destination F28:1| |
| | 0.000000| |
| +––––––––––––––––––+ |
Rung 32:22
| +LES–––––––––––––––+ +SUB–––––––––––––––+ |
+–+LESS THAN +––––––––––––––––––––––––––––––––––++SUBTRACT ++–+
| |Source A F28:1| ||Source A N22:5|| |
| | 0.000000| || 0|| |
| |Source B 0.000000| ||Source B 1|| |
| | | || || |
| +––––––––––––––––––+ ||Destination N22:5|| |
| || 0|| |
| |+––––––––––––––––––+| |
| |+SUB–––––––––––––––+| |
| ++SUBTRACT ++ |
| |Source A F28:0| |
| | 0.000000| |
| |Source B N22:5| |
| | 0| |
| |Destination F28:1| |
| | 0.000000| |
| +––––––––––––––––––+ |
Rung 32:23
| +MUL–––––––––––––––+ |
+–––––––––––––––––––––––––––––––––––––––––––––––––––––––––+MULTIPLY +–+
| |Source A F28:1| |
| | 0.000000| |
| |Source B 100.0000| |
| | | |
| |Destination N22:4| |
| | 0| |
| +––––––––––––––––––+ |
Rung 32:24
| ERROR CODE |
| FILE N29 |
| WORD |
| [N22:3] |
| +MOV––––––––––––––––––––+ |
+––––––––––––––––––––––––––––––––––––––––––––––––––––+MOVE +–+
| |Source N22:4| |
| | 0| |
| |Destination N29[N22:3]| |
| | 0| |
| +–––––––––––––––––––––––+ |