Slc 500 ladder program – Rockwell Automation 1747-SCNR ControlNet Scanner Module Reference Manual User Manual

Page 66

Advertising
background image

Publication 1747-RM623D-EN-P - June 2006

C-6 CIP Client Management

SLC 500 Ladder Program

1

Get an image of the CIP Message Control data

Fill File

Source

0

Dest

#N7:0

Length

10

FLL

There is no request data, just
clear the command word

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) or insert
instructions here.

N7:0

Be sure the command data size word is null.

MOV

Move

Source

0

Dest

M0:1.1009

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

Get the response in N10 file.

Copy more data than expected in case of extended

status

COP

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

When the precondition is not valid, the message is done
and if the message is not in continuous mode, reset the
bit DN

Reset DN bit

M0:1.1000

13

U

Your Precondition

N7:0 N7:0

11

13

4

0

COP

Jump To Subroutine

SBR File Number U:3

Source #N7:0
Dest

#M0:1.1000

Length 10

Copy File
Source

#M0:1.1350

Dest

#N10:0

Length

32

41557

MOV

Move

Source

M0:1.1000

Dest

N7:0

Get an updated copy of the CIP Message Control word

Advertising