DMU380SA Series
User’s Manual
________________________________________________________________________
Doc# 7430-0026 Rev. 01
Page 66
Commands to Program Configuration
8.8
8.8.1
Write Fields Command
Write Fields (‘WF’ =
0x5746)
Preamble
Packet Type
Length
Payload
Terminatio
n
0x5555
0x5746
1+numFields*4
<WF payload>
<CRC
(U2)>
This command allows the user to write default power-up configuration fields to the
EEPROM. Writing the default configuration will not take affect until the unit is power
cycled. NumFields is the number of words to be written. The field0, field1, etc. are the
field
IDs that will be written with the field0Data, field1Data, etc., respectively. The unit will
not write to calibration or algorithm fields. If at least one field is successfully written, the
unit will respond with a write fields response containing the field IDs of the successfully
written fields. If any field is unable to be written, the unit will respond with an error
response. Note that both a write fields and an error response may be received as a result
of a write fields command. Attempts to write a field with an invalid value is one way to
generate an error response. A table of field IDs and valid field values is available in
Section 8.1.
WF Payload Contents
Byte Offset
Name
Format
Scaling
Units
Description
0
numFields
U1
-
-
The number of fields to write
1
field0
U2
-
-
The first field ID to write
3
field0Data
U2
-
-
The first field ID’s data to write
5
field1
U2
-
-
The second field ID to write
7
field1Data
U2
-
-
The second field ID’s data
…
…
U2
-
-
…
numFields*4 -3
field…
U2
-
-
The last field ID to write
numFields*4 -1
field…Data
U2
-
-
The last field ID’s data to write
Write Fields Response
Write Fields (‘WF’ = 0x5746)
Preamble
Packet Type
Length
Payload
Termination
0x5555
0x5746
1+numFields*2
<WF payload>
<CRC (U2)>
The unit will send this packet in response to a write fields command if the command has
completed without errors.
WF Payload Contents
Byte Offset
Name
Format
Scaling
Units
Description
0
numFields
U1
-
-
The number of fields written
1
field0
U2
-
-
The first field ID written
3
field1
U2
-
-
The second field ID written