Loading…
Loading…
Method Name: dv_trim
Method ID: 0x41DE
Method Label: Sensor trim
Method Help: Device Variable Trim- Allows for the calibration measurement of a device variable to be adjusted linearly. The trim point that is sent to the device must represent the presently applied process variable value.
- {
- char status[3];
- char disp_string1[135];
- char disp_string2[60];
- int trim_code;
- int doneHighTrim;
- int retry;
- int slen1;
- int slen2;
- int gas_idx;
- int cal_gas_cnt;
- float trim_point;
- float trim_min;
- float trim_max;
- int i;
- int ack;
- int var_id[2];
- slen1 = 135;
- slen2 = 60;
- _set_device_status(0xFF,0);
- _set_all_resp_code(0);
- _set_xmtr_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- _get_dictionary_string(19726337,disp_string1,slen1);
- ACKNOWLEDGE(disp_string1);
- _add_abort_method(4118);
- _get_dictionary_string(19726356,disp_string1,slen1);
- ACKNOWLEDGE(disp_string1);
- device_variable_trim_code = CalibDisplayCode * 3 + 1;
- do {
- retry = 1;
- send(81,status);
- if (status[0])
- {
- display_response_status(81,status[0]);
Please login for more