Program listing for plc5/15 – Rockwell Automation 1747-DCM,D17476.8 Direct Communication Module User Manual

Page 63

Advertising
background image

Chapter 8
Application Examples

8–9

Program Listing for PLC5/15

The following examples are for rungs 2.0 through 2.3. The module number
being monitored is shown above the examples. For each rung, the first EQU
monitors the module number and the start of the data transfer, while the
second EQU monitors the module number and the end of the data transfer.
The COP then moves the four words of analog data to an integer file.

RUNG

2.0

EQU

EQUAL
Source A

I:011

0

Source B

2

COP

COPY FILE
Source

#I:012

Dest

#N7:0

Length

4

EQU

EQUAL
Source A

I:016

0

Source B

2

Module Number Monitored = 2

RUNG

2.1

EQU

EQUAL
Source A

I:011

0

Source B

3

COP

COPY FILE
Source

#I:012

Dest

#N7:4

Length

4

EQU

EQUAL
Source A

I:016

0

Source B

3

Module Number Monitored = 3

RUNG

2.2

EQU

EQUAL
Source A

I:011

0

Source B

4

COP

COPY FILE
Source

#I:012

Dest

#N7:8

Length

4

EQU

EQUAL
Source A

I:016

0

Source B

4

Module Number Monitored = 4

RUNG

2.3

EQU

EQUAL
Source A

I:011

0

Source B

5

COP

COPY FILE
Source

#I:012

Dest

#N7:12

Length

4

EQU

EQUAL
Source A

I:016

0

Source B

5

<END>

Module Number Monitored = 5

Advertising