Rockwell Automation 1747-DCM,D17476.8 Direct Communication Module User Manual

Page 61

Advertising
background image

Chapter 8
Application Examples

8–7

RUNG

2.2

EQU

EQUAL
Source A

C5:0.ACC

0

Source B

2

MOV

MOVE
Source

C5:0.ACC

0

Dest

0:1.1

0

COP

COPY FILE
Source

#I:2.0

Dest

#0:1.2

Length

4

MOV

MOVE
Source

C5:0.ACC

0

Dest

0:1.6

0

Module Number Monitored = 2

For rungs 2.2 through 2.5 the module number being monitored is shown above each example. For each
rung, when SOURCE A = C5:0.ACC equals the value in SOURCE B = MODULE #, the rung moves the
module number to word 1 of the DCM output file. This verifies the start of the data and the module
number it’s coming from. Then it copies the four words of analog data to the DCM output words 2
through 5, followed by the module number at word 6 to indicate the end of data.

RUNG

2.3

EQU

EQUAL
Source A

C5:0.ACC

0

Source B

3

MOV

MOVE
Source

C5:0.ACC

0

Dest

0:1.1

0

COP

COPY FILE
Source

#I:3.0

Dest

#0:1.2

Length

4

MOV

MOVE
Source

C5:0.ACC

0

Dest

0:1.6

0

Module Number Monitored = 3

Advertising