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

D–13
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–––––––––––––––+ |
|––––] [–––––––[OSR]––––––––––––––––––––––––––––––––––+–+COPY FILE +–+–|
| 2 302 | |Source #N13:0| | |
| | |Dest #N10:0| | |
| | |Length 4| | |
| | +––––––––––––––––––+ | |
| |
| |
| | Initialize | |
| | Sequencer | |
| | Length | |
| | +MOV–––––––––––––––+ | |
| +–+MOVE +–+ |
| | |Source 3| | |
| | | | | |
| | |Dest R6:0.LEN| | |
| | | 1| | |
| | +––––––––––––––––––+ | |
| | Initialize | |
| | Sequencer | |
| | Position | |
| | +CLR–––––––––––––––+ | |
| +–+CLEAR +–+ |
| | |Dest R6:0.POS| | |
| | | 1| | |
| | +––––––––––––––––––+ | |
| | Initialize | |
| | Sequencer | |
| | Address | |
| | +MOV–––––––––––––––+ | |
| +–+MOVE +–+ |
| | |Source N10:0| | |
| | | 40| | |
| | |Dest N9:0| | |
| | | 40| | |
| | +––––––––––––––––––+ | |
| | Prepare | |
| | For BT | |
| | +JSR–––––––––––––––+ | |
| +–+JUMP TO SUBROUTINE+–+ |
| |SBR file number 5| |
| +––––––––––––––––––+ |
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+–(DN) | |
| | | | |Mask FFFF| | |
| | | | |Dest N9:0| | |
| | | | |Control R6:0| | |
| | | | |Length 3| | |
| | | | |Position 1| | |
| | | | +––––––––––––––––––+ | |
| | BT Error | | Prepare | |
| | Bit | | For BT | |
| | N[N9:0]:0 | | +JSR–––––––––––––––+ | |
| +––––] [–––––+ +–+JUMP TO SUBROUTINE+––––––+ |
| 12 |SBR file number 5| |
| +––––––––––––––––––+ |
Rung 2:7
Perform appropriate block transfer read.
| +EQU–––––––––––––––+ +JSR–––––––––––––––+ |
|–+EQUAL +––––––––––––––––––––––––––––––––––––+JUMP TO SUBROUTINE+–|
| |Source A N9:0| |SBR file number 3| |
| | 40| +––––––––––––––––––+ |
| |Source B 40| |
| | | |
| +––––––––––––––––––+ |
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. After
each sequencer increment, the
block transfer preparation
subroutine is called.
Rung 2:7
Voltage/current BTR.