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

Page 55

Advertising
background image

D–5

Sample Ladder Listing

Publication 1403-5.1

Rung 2:2
Begin setpoint mode once configuration is complete.
| Config |Config |Status Status – Status – Config |
| Mode |BTW |BTR Bad Table Bad Param. Mode |
| |Done |Done Check Check |
| B3 N55:0 N52:0 +CMP–––––––––––––+ +CMP–––––––––––––+ B3 |
+––] [–––––] [–––––] [–––+COMPARE +–+COMPARE ++–––––––(U)––––+–+
| 0 13 13 |Expression | |Expression || 0 | |
| |N82:36 = 0 | |N82:37 = 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–––––––––––––––+ |
+––––] [–––––––[ONS]–––––––––––––––––––––––––––––––+–––––+COPY FILE ++–+
| 1 300 | |Source #N12:0|| |
| | |Destination #N10:0|| |
| | |Length 3|| |
| | +––––––––––––––––––+| |
| | Initialize | |
| | Sequencer | |
| | Length | |
| |+MOV––––––––––––––––––––+| |
| ++MOVE ++ |
| ||Source 2|| |
| || || |
| ||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:4
Load number of setpoints into setpoint counter.
| Setpoint |One Shot 2 Number of |
| Mode | Setpoints |
| B3 B3 +MOV––––––––––––––––––––+ |
+––––] [–––––––[ONS]–––––––––––––––––––––––––––––––++MOVE ++–+
| 1 301 ||Source N20:0|| |
| || 3|| |
| ||Destination 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