DMU380SA Series
User’s Manual
________________________________________________________________________
Doc# 7430-0026 Rev.01
Page 67
…
…
U2
-
-
More field IDs written
numFields*2
–
1
Field…
U2
-
-
The last field ID written
8.8.2
Set Fields Command
Set Fields (‘SF’ = 0x5346)
Preamble
Packet Type
Length
Payload
Termination
0x5555
0x5346
1+numFields*4
<SF payload>
<CRC (U2)>
This command allows the user to set the unit’s current configuration (SF) fields
immediately which will then be lost on power down. NumFields is the number of words
to be set. The field0, field1, etc. are the field IDs that will be written with the field0Data,
field1Data, etc., respectively. This command can be used to set configuration fields. The
unit will not set calibration or algorithm fields. If at least one field is successfully set, the
unit will respond with a set fields response containing the field IDs of the successfully set
fields. If any field is unable to be set, the unit will respond with an error response. Note
that both a set fields and an error response may be received as a result of one set fields
command. Attempts to set 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.
SF Payload Contents
Byte Offset
Name
Format
Scaling
Units
Description
0
numFields
U1
-
-
The number of fields to set
1
field0
U2
-
-
The first field ID to set
3
field0Data
U2
-
-
The first field ID’s data to set
5
field1
U2
-
-
The second field ID to set
7
field1Data
U2
-
-
The second field ID’s data to set
…
…
U2
-
-
…
numFields*4 -3
field…
U2
-
-
The last field ID to set
numFields*4 -1
field…Data
U2
-
-
The last field ID’s data to set
Set Fields Response
Set Fields (‘SF’ = 0x5346)
Preamble
Packet Type
Length
Payload
Termination
0x5555
0x5346
1+numFields*2
<SF payload>
<CRC (U2)>
The unit will send this packet in response to a set fields command if the command has
completed without errors.
SF Payload Contents
Byte Offset
Name
Format
Scaling
Units
Description
0
numFields
U1
-
-
The number of fields set
1
field0
U2
-
-
The first field ID set
3
field1
U2
-
-
The second field ID set
…
…
U2
-
-
More field IDs set
numFields*2 - 1
Field…
U2
-
-
The last field ID set