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

Page 56

Advertising
background image

D–6

Sample Ladder Listing

Publication 1403-5.1

Rung 2:5
Initialize for appropriate mode.
| Run |One Shot 3 Initialize |
| Mode | Sequencer |
| Input File |
| B3 B3 +COP–––––––––––––––+ |
+––––] [–––––––[ONS]–––––––––––––––––––––––––––––––+–––––+COPY FILE ++–+
| 2 302 | |Source #N13:0|| |
| | |Destination #N10:0|| |
| | |Length 8|| |
| | +––––––––––––––––––+| |
| | Initialize | |
| | Sequencer | |
| | Length | |
| |+MOV––––––––––––––––––––+| |
| ++MOVE ++ |
| ||Source 7|| |
| || || |
| ||Destination R6:0.LEN|| |
| || 7|| |
| |+–––––––––––––––––––––––+| |
| | Initialize | |
| | Sequencer | |
| | Position | |
| |+CLR––––––––––––––––––––+| |
| ++CLEAR ++ |
| ||Destination R6:0.POS|| |
| || 5|| |
| |+–––––––––––––––––––––––+| |
| | Initialize | |
| | Sequencer | |
| | Address | |
| | +MOV–––––––––––––––+| |
| +–––––+MOVE ++ |
| |Source N10:0| |
| | 40| |
| |Destination N9:0| |
| | 40| |
| +––––––––––––––––––+ |
Rung 2:6
Main block transfer sequencer.
| BT |
| Done |
| Bit |
| N[N9:0]:0 R6:0 +SQO–––––––––––––––+ |
+–+–––] [––––+–]/[–––––––––––––––––––––––––––––––––––+SEQUENCER OUTPUT +–(EN)–+
| | 13 | EN |File #N10:0| |
| |BT | |Mask FFFF+–(DN) |
| |Error | |Destination N9:0| |
| |Bit | |Control R6:0| |
| |N[N9:0]:0 | |Length 7| |
| +–––] [––––+ |Position 5| |
| 12 +––––––––––––––––––+ |
Rung 2:7
| Voltage/ |
| Current |
| BTR |
| +CMP–––––––––––––––+ +BTR––––––––––––––––––––+ |
+–+COMPARE +––––––––––––––––––––––––––+BLOCK TRANSFER READ +–(EN)–+
| |Expression | |Rack 01| |
| |N9:0 = 40 | |Group 0+–(DN) |
| +––––––––––––––––––+ |Module 0| |
| |Control block N40:0+–(ER) |
| |Data file N70:1| |
| |Length 53| |
| |Continuous N| |
| +–––––––––––––––––––––––+ |
Rung 2:8
| Real–Time |
| Power |
| BTR |
| +CMP–––––––––––––––+ +BTR––––––––––––––––––––+ |
+–+COMPARE +––––––––––––––––––––––––––+BLOCK TRANSFER READ +–(EN)–+
| |Expression | |Rack 01| |
| |N9:0 = 41 | |Group 0+–(DN) |
| +––––––––––––––––––+ |Module 0| |
| |Control block N41:0+–(ER) |
| |Data file N71:1| |
| |Length 62| |
| |Continuous N| |
| +–––––––––––––––––––––––+ |

Rung 2:5

Initialize the sequencer for run
mode. Same functionality as
Rungs 2:0 and 2:1.

Rung 2:6

This is the main block transfer
sequencer. The sequencer
output word, N9:0, is updated
whenever the previous block
transfer is done or fails.

Rung 2:7

Voltage/current BTR.

Rung 2:8

Real time power BTR.

Advertising