Rung 2:5, Rung 2:6 – Rockwell Automation 1403-NENET Ethernet Communication Card Installation Instructions User Manual

Page 70

Advertising
background image

Publication 1403-IN005A-EN-P

C-10 Sample Ladder Listing

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.

Initialize for appropriate mode

0005

B3:0

2

Run mode

OSR

B3:18

14

One-shot 3

COP

Copy File
Source

#N13:0

Dest

#N10:0

Length

18

MOV

Move
Source

17

17<

Dest

R6:0.LEN

17<

Initialize Sequencer
length

CLR

Clear
Dest

R6:0.POS

1<

Initialize sequencer
position

MOV

Move
Source

N10:0

0<

Dest

N9:0

40<

Initialize sequencer
address

Main block transfer sequencer

0006

N[N9:0]:0

13

BT done bit

N[N9:0]:0

12

BT error bit

R6:0

T4:1

EN

DN

EN

DN

SQO

Sequencer Output
File

#N10:0

Mask

0FFFFh

Dest

N9:0

Control

R6:0

Length

17<

Position

1<

Advertising