Rockwell Automation 1403-NSC Smart Communication Card Instruction Sheet User Manual
Page 59

D–9
Sample Ladder Listing
Publication 1403-5.1
Rung 2:19
| Diagnostic |
| BTR |
| +CMP–––––––––––––––+ +BTR––––––––––––––––––––+ |
+–+COMPARE +––––––––––––––––––––––––––+BLOCK TRANSFER READ +–(EN)–+
| |Expression | |Rack 01| |
| |N9:0 = 52 | |Group 0+–(DN) |
| +––––––––––––––––––+ |Module 0| |
| |Control block N52:0+–(ER) |
| |Data file N82:1| |
| |Length 39| |
| |Continuous N| |
| +–––––––––––––––––––––––+ |
Rung 2:20
| Relay/ |
| Setpoint |
| BTR |
| +CMP–––––––––––––––+ +BTR––––––––––––––––––––+ |
+–+COMPARE +––––––––––––––––––––––––––+BLOCK TRANSFER READ +–(EN)–+
| |Expression | |Rack 01| |
| |N9:0 = 53 | |Group 0+–(DN) |
| +––––––––––––––––––+ |Module 0| |
| |Control block N53:0+–(ER) |
| |Data file N83:1| |
| |Length 38| |
| |Continuous N| |
| +–––––––––––––––––––––––+ |
Rung 2:21
| Command |
| BTW |
| +CMP–––––––––––––––+ +BTW––––––––––––––––––––+ |
+–+COMPARE +––––––––––––––––––––––––––+BLOCK TRANSFER WRITE +–(EN)–+
| |Expression | |Rack 01| |
| |N9:0 = 54 | |Group 0+–(DN) |
| +––––––––––––––––––+ |Module 0| |
| |Control block N54:0+–(ER) |
| |Data file N84:1| |
| |Length 22| |
| |Continuous N| |
| +–––––––––––––––––––––––+ |
Rung 2:22
| Config |
| BTW |
| +CMP–––––––––––––––+ +BTW––––––––––––––––––––+ |
+–+COMPARE +––––––––––––––––––––––––––+BLOCK TRANSFER WRITE +–(EN)–+
| |Expression | |Rack 01| |
| |N9:0 = 55 | |Group 0+–(DN) |
| +––––––––––––––––––+ |Module 0| |
| |Control block N55:0+–(ER) |
| |Data file N85:1| |
| |Length 44| |
| |Continuous N| |
| +–––––––––––––––––––––––+ |
Rung 2:23
Begin run mode once all setpoint block transfers are complete.
| One Shot 4 Status – Setpoint Setpoint |
| Bad Table Counter Mode |
| Check Done Bit |
| +CMP–––––––––––––––+ B3 +CMP–––––––––––––––+ C5:0 B3 |
+–+COMPARE +–––[ONS]––––+COMPARE +––––] [–––––+–––(U)––––+–+
| |Expression | 303 |Expression | DN | 1 | |
| |N9:0 = 56 | |N82:36 = 0 | |Run | |
| +––––––––––––––––––+ +––––––––––––––––––+ |Mode | |
| | B3 | |
| +–––(L)––––+ |
| 2 |
Rung 2:19
Diagnostic BTR.
Rung 2:20
Relay/setpoint BTR.
Rung 2:21
Command BTW.
Rung 2:22
Configuration BTW.
Rung 2:23
If the setpoint counter done bit
is set, the last setpoint BTW has
occurred and was followed by a
diagnostic BTR. If the
diagnostic table indicates a
successful setpoint BTW,
setpoint mode is done. The
setpoint mode bit is unlatched,
and the run mode bit is latched.