Example: slc 500 ladder program – Rockwell Automation 1747-SCNR ControlNet Scanner Module Reference Manual User Manual
Page 70

Publication 1747-RM623D-EN-P - June 2006
C-10 CIP Client Management
Example: SLC 500 Ladder Program
1
Get an image of the CIP Message Control data
Fill File
Source
0
Dest
#N7:0
Length
10
FLL
Use a flag to notify when the
message slot is free.
2
Your Precondition
Use a flag to notify that
a message is pending
B3:0
Jump into a subroutine that initializes N7 local
CIP control words (N7:0 to N7:8) command data
size and command data field (N7:9 to N7:42) or
insert instructions here.
N7:0
Copy the command data size and data field.
COP
Be sure the EN bit is set
JSR
L
15
Copy the control data with EN bit set!
The message is pending
COP
B3:0
L
0
No response other than status is expected.
Copy File
Source
#M0:1.1000
Dest
#N7:0
Length
10
If the bit Done is set
without timeout or error ...
N7:0
N7:0 N7:0
13
8
12
The message is completed
B3:0
U
0
4
0
COP
Jump To Subroutine
SBR File Number U:3
Source #N7:0
Dest
#M0:1.1000
Length 10
41559
MOV
Move
Source
M0:1.1000
Dest
N7:0
Source #N7:9
Dest
#M0:1.1100
Length 128
Get an updated copy of the CIP Message Control word
5