100-412-234 REV. 06 269
D.2.5 Set Preset Value
This service is the access point for setting any value that is stored in the Preset. Any time
a value is written with this service, the value will be stored in the Current Preset only.
Setting Preset values in this manner follows the same rules for User Authority as does the
front panel. If a user does not have proper privileges to modify a value, an error code will
be returned.
There are two methods of using this service. The first is setting a single value on each
service request, or there is also an option to send bulk Preset values to be set using a
JSON array. This is useful if the entire Preset is stored externally and needs to be copied to
the Power Supply.
D.2.5.1 Setting a Single Value
URL
http://<2000Xc IP Address>/Services/SetPresetValue
POST Data
{"Sid":12345,"ParamId":177,"ParamValue":0.250}
Successful Response
{“ErrorCode”:0}
D.2.5.2 Setting Multiple Values
URL
http://<2000Xc IP Address>/Services/SetPresetValue
POST Data
{"Sid":12345,"Preset":[{"ParamId":177,"ParamValue":0.250,"Reason":"xyz"},{"ParamId":177,"
ParamValue":0.250,"Reason":"xyz"}]}
Successful Response
{“ErrorCode”:0}
All other Error Codes can be found in Table D.1 and the list of Parameter IDs can be found
in Table D.2.
NOTICE
Since a reason for changing a Preset value is only sometimes needed
(modifying a validated Preset), then instead of keeping track of when
a reason is required or not, simply send a reason with every change
and the Power Supply will take care of it.