Rung 2:1, Rung 2:2 – Rockwell Automation 1403-NENET Ethernet Communication Card Installation Instructions User Manual
Page 68

Publication 1403-IN005A-EN-P
C-8 Sample Ladder Listing
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.
Rung 2:2
If the configuration MSG Write and
diagnostic MSG Read are done,
check that the diagnostic table
parameters indicate a successful MSG
Write (word 36 and 37
equal 0). If so, unlatch the
configuration mode bit and latch the
setpoint mode bit.
Initialize for appropriate mode
0001
S:1
15
First pass
COP
Copy File
Source
#N11:0
Dest
#N10:0
Length
3
MOV
Move
Source
2
2<
Dest
R6:0.LEN
17<
InitializeSequencer
length
CLR
Clear
Dest
R6:0.POS
1<
Initialize sequencer
position
MOV
Move
Source
N10:0
0<
Dest
N9:0
40<
Initialize sequencer
address
Begin setpoint mode once configurationis complete
0002
B3:0
0
Config mode
N55:0
13
Config
MSG write done
N52:0
13
Status
MSG read done
EQU
Equal
Source A
N82:36
0<
Source B
0
0<
Status
-
Bad table check
B3:0
0
Config mode
B3:0
1
Setpoint mode