Slc 500 controller examples, Slc 500 controller example -11 – Rockwell Automation 20-COMM-R Remote I/O Adapter User Manual

Page 69

Advertising
background image

Using Block Transfer Messaging

5-11

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

Publication 20COMM-UM004D-EN-P

SLC 500 Controller

Examples

Examples in this section are provided for SLC 500 Series C controllers with
firmware revision 3.xx and higher, and for SLC 500 controllers all versions.

Block Transfer Data Files for Example Program—Series C Controller

with Firmware Revision 3.xx and Higher

In a series C, firmware revision 3.xx and higher SLC processor, Block
Transfer Read (BTR) and Block Transfer Write (BTW) instructions can be
used. When the length of the Block Transfer is 20 words or higher, the
20-COMM-R adapter knows the Block Transfer is for explicit messages and
not for I/O Block Transfer (Chapter 4). Block Transfer setup is the same for
a 1/4 rack or 1/2 rack configuration. This example is for Rack 1, Group 4
(the upper half rack).

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 and Control Data to Read Drive Parameter 1 (Hex)

Response and Control Data 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 and Control Data to Write to Drive Parameter 41 (Hex)

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

Advertising