B–25, Scattered write – Rockwell Automation 1203-SM1 SLC to SCANport Communication Module User Manual

Page 91

Advertising
background image

SCANport Messaging

B–25

Publication 1203–5.9 –– October 1996

Scattered Write

The Scattered Write message lets you write the values of multiple
parameters, not necessarily starting from parameter 1. The following
is an example of this request:

Service=Set Attribute Scattered

Internal A–B Vendor Specific Class

Instance

Attribute

Data Length=12 Bytes

M0:e.000

M0:e.001

M0:e.002

M0:e.003

M0:e.004

0034

0093

0000

0000

000c

Value

Scattered Write

Service=Set Attribute Scattered

Internal A–B Vendor Specific Class

Instance

Attribute

Data Length=12 Bytes

M1:e.100

M1:e.101

M1:e.102

M1:e.103

M1:e.104

0034

0093

0000

0000

000c

Value

Response to Scattered Write

Parameter 5

M0:e.005

0005

Value

Parameter 6

Value

Parameter 7

M0:e.006

M0:e.007

M0:e.008

M0:e.009

0001

0006

0002

0007

Value

M0:e.010

0258

Parameter 5*

Status (see error codes)

Parameter 6*

M1:e.105

M1:e.106

M1:e.107

0005

0000

0006

Status (see error codes)

Parameter 7*

Status (see error codes)

M1:e.108

M1:e.109

M1:e.110

0000

0007

0000

Note: The Scattered Write can continue
on in this pattern for up to 47 parameters.

Note: The Scattered Write can continue on
in this pattern for up to 47 parameters.

* If an error has occurred while writing to this
parameter, the MSB of the parameter number
will be set to 1.

Figure B.18 shows a Scattered Write request. This example writes
three parameters.

N10:4 contains the length of the data in bytes (three parameters
require 12 bytes). A pair of words are required for each parameter
being read (starting at N10:5). The first word of each pair is the
parameter number. The second word is the value to be written.

Advertising