beautypg.com

8 using explicit messaging (pcp communications) – Rockwell Automation 20-COMM-I Interbus Adapter User Manual

Page 70

background image

6-8

Using Explicit Messaging (PCP Communications)

Reading Pr. 244 [Fault 1 Time] from a PowerFlex 70 (DPI Host)

In the example ladder logic program, the user would load these
registers before calling the subroutine to perform the PCP Read:

Echo of the Command Word (PCP Read)

Message

Command word = 4 = PCP Read (bit 2 ON)

N22:10

Command

4

4

SLC Address

Descr

iption

Value (He

x)

N22:22

N22:13

N22:12

N22:11

N22:23

Reply

12532

2

4

-32,764

0

2

5

CR# = 2 (Station 1.0)

Sub Index not used

Number of words following = 5

CR# =2(Station 1.0)

30F4

2

4

2

5

N22:21

0

8004

Value (Dec)

N22:20

Result = 0 (success)

N22:25

N22:26

0

59

4

Number of bytes read = 4

3B235B hex = 3875675 decimal = 387.5675 hours

0

3B

4

N22:24

N22:27 9051

235B

"8000" (bit 15 ON) indicates Reply message present

Status word:

"0004" (bit 2 ON) echo's the command (PCP Read)

3001h is the start of PowerFlex 70 parameters (Pr.1)

Index =3000h+F4h = Parameter 244 [Fault 1 Time]

F4 hex = 244 dec = Parameter 244 [Fault 1Time]

Message

CR# =2 (Station 1.0)

N22:0

Request

2

2

SLC Address

Desc

ription

Value (He

x)

N22:1

0

0= PowerFlex 70 (DPI Host)

0

Value (Dec)

N22:3

244

F4

Parameter # = 244 [Fault 1 Time]

20COMM-UM007A-EN-P.book Page 8 Tuesday, January 22, 2002 10:52 AM