Message operation, Example, Scattered parameter value write – Rockwell Automation 1336T PLC Comm. Adapter, Series B, FRN 2.xx-3.xx User Manual
Page 163: Continued)

7–17
Publication 1336 FORCE–5.13 –– September, 1998
Message Operation
The Scattered Parameter Value Write function specified in the BTW
writes data values to a defined group of parameters in any order.
Word 3 of the BTW data file defines the number of parameters to be
written to. The parameters to be written to, and their order is defined
starting with word 4. The BTR response message returns a status
word for each value written to, indicating whether the parameter
write was successful.
If a transfer is not successful for a given parameter, the value in the
parameter number location is negative (bit 15 is set to 1).
If an error occurs, the response returns a status code for the error.
Example
In this example, six parameters were written to in a 1336
FORCE.
Word 3 of the BTW message (N10:12) defines the number of
parameter values that are transferred. Each parameter number
followed by its value is listed in the message beginning with Word 4.
The values are entered in drive units. The BTR response (N10:90)
returns the status of each parameter write.
Note that a value of 600 was sent to parameter 392 (words N10:7
and N10:8). Word N10:91 indicates the block transfer operation was
not completely successful. If all parameter values had been
successfully transferred, N10:91 would contain the value 3. Word
N10:97 contains a negative value indicating the error occurred with
parameter 392. Word N10:98 contains the status code indicating the
parameter value is out of range.
1
0
N10:10
2
3
4
5
6
7
8
9
N10:20
BTW
Data File
BTR
Data File
Data Format
6
90
2
12
15
10
-32767
10
1
5
150
4
392
6000
31
N10:90
N10:100
6
90
0
12
0
0
-32765
10
0
0
150
0
392
6
31
➀
➀
➀
➀
➀
➀
➀
➀
➀
➀
➀
➀
➀
➀
➀
➀
➀
➀
➀
➀
➀
➀
➀
➀
➀
➀
➀
These values vary depending on parameters and products.
Scattered Parameter Value Write
(continued)