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

Page 62

Advertising
background image

D–12

Sample Ladder Listing

Publication 1403-5.1

Rung 2:2
Begin setpoint mode once configuration is complete.
| Config |Config |Status Status – Config |
| Mode |BTW |BTR Bad Table Mode |
| |Done |Done Check |
| B3 N55:0 N52:0 +EQU–––––––––––––––+ B3 |
|––––] [––––––––] [––––––––] [–––––+EQUAL +–––––––––+––––(U)–––––+–|
| 0 13 13 |Source A N82:36| | 0 | |
| | 0| | | |
| |Source B 0| | | |
| | | | | |
| +––––––––––––––––––+ | | |
| | Setpoint | |
| | Mode | |
| | B3 | |
| +––––(L)–––––+ |
| 1 |
Rung 2:3
Initialize for appropriate mode.
| Setpoint |One Shot 1 Initialize |
| Mode | Sequencer |
| Input File |
| B3 B3 +COP–––––––––––––––+ |
|––––] [–––––––[OSR]––––––––––––––––––––––––––––––––––+–+COPY FILE +–+–|
| 1 300 | |Source #N12:0| | |
| | |Dest #N10:0| | |
| | |Length 3| | |
| | +––––––––––––––––––+ | |
| | Initialize | |
| | Sequencer | |
| | Length | |
| | +MOV–––––––––––––––+ | |
| +–+MOVE +–+ |
| | |Source 2| | |
| | | | | |
| | |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:4
Load number of setpoints into setpoint counter.
| Setpoint |One Shot 2 Number Of |
| Mode | Setpoints |
| B3 B3 +MOV–––––––––––––––+ |
|––––] [–––––––[OSR]––––––––––––––––––––––––––––––––––+–+MOVE +–+–|
| 1 301 | |Source N20:0| | |
| | | 3| | |
| | |Dest C5:0.PRE| | |
| | | 3| | |
| | +––––––––––––––––––+ | |
| | C5:0 | |
| +––(RES)–––––––––––––––+ |
| |

Rung 2:2

If the configuration BTW and
diagnostic BTR are done, check
that the diagnostic table
parameters indicate a successful
BTW (word 36 and 37 equal 0).
If so, unlatch the configuration
mode bit and latch the setpoint
mode bit.

Rung 2:3

Initialize the sequencer for
setpoint mode. Same
functionality as Rung 2:0.

Rung 2:4

Move the number of setpoints
into the setpoint address
counter. Reset the setpoint
counter.

Advertising