Message operation, Example, Scattered parameter value write – Rockwell Automation 1336T ControlNet Frn1.02 Rev 1.5 User Manual
Page 64: Continued)
4–22
Using Unscheduled Messaging
Publication 1336 FORCE–5.18 ––March, 1999
Message Operation
The Scattered Parameter Value Write function specified in the PMW
writes data values to a defined group of parameters in any order.
Word 3 of the PMW 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 PMR 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 PMW message (N7: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 PMR response (N7:90)
returns the status of each parameter write.
Note that a value of 600 was sent to parameter 392 (words N7:7 and
N7:8). Word N7:91 indicates the block transfer operation was not
completely successful. If all parameter values had been successfully
transferred, N7:91 would contain the value 3. Word N7:97 contains a
negative value indicating the error occurred with parameter 392.
Word N7:98 contains the status code indicating the parameter value
is out of range.
1
0
N7:10
2
3
4
5
6
7
8
9
N7:20
PLC MSG
Write File
PLC MSG
Read File
Data Format
6
90
2
12
15
10
-32767
10
1
5
150
4
392
6000
31
N7:90
N7: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)