Loading…
Loading…
方法名称: dv_trim
方法ID: 0x41DE
方法标签: Sensor trim
方法描述: 设备变量修正——允许线性调整设备的标定测量。发送至设备的修正点必须表示当前应用的过程变量值。
- {
- 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]);
请登录以获得完整内容