beautypg.com

Plc-5 controller example, Plc-5 controller example -9 – Rockwell Automation 20-COMM-R Remote I/O Adapter User Manual

Page 67

background image

Using Block Transfer Messaging

5-9

20-COMM-R Remote Adapter I/O User Manual

Publication 20COMM-UM004D-EN-P

PLC-5 Controller Example

Block Transfer Data Files for PLC-5 Example Program

The following set of data files shows a read of drive parameter 1 - [Output
Freq]. The value of parameter 1 is 213 (21.3 Hz).

Request Data (BTW) to Read Drive Parameter 1 (Hex)

Response Data (BTR) to Read Drive Parameter 1 (Hex)

The following set of data files shows a write of drive parameter 41 - [Motor
NP Volts]. The value written is 2300 (230.0V AC).

Request Data (BTW) to Write to Drive Parameter 41 (Hex)

Response Data (BTR) to Write to Drive Parameter 41 (Hex)

See

Formatting Block Transfer Messages on page 5-2

for more information

on block transfer messages.

Address

Value (hex)

Description

See Page

N12:0

000A

Length of Message = 10 bytes (A hex)

5-3

N12:1

0081

Required Setting

5-3

N12:2

000E

Service = Get_Attribute_Single

C-1

N12:3

0093

Class = 93 DPI Parameter Object

C-5

N12:4

0001

Instance = Parameter 1 (1 hex)

C-5

N12:5

0009

Attribute = 09 DPI Parameter Value

C-6

Address

Value (hex)

Description

See Page

N13:0

0004

Length of Message = 4 bytes

5-4

N13:1

0000

The Message was Successful

5-4

N13:2

0000

N13:3

00D5

Response Data = 213 (D5 hex) = 21.3 Hz.

n/a

Address

Value (hex)

Description

See Page

N12:0

000C

Length of Message = 12 bytes (C hex)

5-3

N12:1

0081

Required Setting

5-3

N12:2

0010

Service = Set_Attribute_Single

C-1

N12:3

0093

Class = 93 DPI Parameter Object

C-5

N12:4

0029

Instance = Parameter 41 (29 hex)

C-5

N12:5

0009

Attribute = 09 DPI Parameter Value

C-6

N12:6

08FC

Data = 2300 (8FC hex) = 230.0V AC

n/a

Address

Value (hex)

Description

See Page

N13:0

0002

Length of Message = 2 bytes

5-4

N13:1

0000

The Message was Successful

5-4

N13:2

0000