Rockwell Automation 20-COMM-I Interbus Adapter User Manual

Page 69

Advertising
background image

Using Explicit Messaging (PCP Communications)

6-7

Read Examples

Reading Pr. 140 [Accel Time 1] 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

12428

2

4

-32,764

0

2

4

CR# = 2 (Station 1.0)

Sub Index not used

Number of words following = 4

CR# = 2 (Station 1.0)

308C

2

4

2

4

N22:21

0

8004

Value (Dec)

N22:20

Result = 0 (success)

N22:25

N22:26

0

50

2

Number of bytes read = 2

Data word 2 not used

0

32

2

N22:24

N22:27

0

0

"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+8Ch = Parameter 140 [Accel Time]

8C hex = 140 dec = Parameter 140 [Accel Time]

Data word 1 = 32 hex = 50 dec = 5.0 seconds

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

140

8C

Parameter # = 140 [Accel Time]

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

Advertising