Slc-500 rs-232 – Rockwell Automation 1403-NSC Smart Communication Card Instruction Sheet User Manual

Page 74

Advertising
background image

D–24

Sample Ladder Listing

Publication 1403-5.1

SLC–500 RS-232

Rung 2:0
Enable configuration mode and clear one shot bits.
| First Config |
| Pass Mode |
| S:1 B3 |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+––––(L)–––––––––––––––+–|
| 15 | 0 | |
| | Setpoint | |
| | Mode | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 1 | |
| | Run | |
| | Mode | |
| | B3 | |
| +––––(U)–––––––––––––––+ |
| | 2 | |
| | Clear | |
| | One Shots | |
| | +CLR–––––––––––––––+ | |
| +–+CLEAR +–+ |
| | |Dest B3:18| | |
| | | 0100000000000000| | |
| | +––––––––––––––––––+ | |
| | +CLR–––––––––––––––+ | |
| +–+CLEAR +–+ |
| |Dest B3:19| |
| | 0000000000000000| |
| +––––––––––––––––––+ |
Rung 2:1
Initialize for appropriate mode.
| First Initialize |
| Pass Sequencer |
| Input File |
| S:1 +COP–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+COPY FILE +–+–|
| 15 | |Source #N11: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| |
| +––––––––––––––––––+ |

Rung 2:0

Latch configuration mode and
unlatch setpoint and run modes.
Clear one-shot bits.

Rung 2:1

Initialize the sequencer for
configuration mode. This
includes loading the sequencer
input file with the configuration
block transfer numbers, setting
the sequencer length, clearing
the sequencer position and
moving the reset word into the
sequencer’s output file.

Advertising