Plc-5 r i/o – Rockwell Automation 1403-NSC Smart Communication Card Instruction Sheet User Manual

Page 54

Advertising
background image

D–4

Sample Ladder Listing

Publication 1403-5.1

PLC-5 R I/O

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