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);
- SendPassword();
- if (transmitter_revision > 1)
- {
- if (WriteEnabled == 0)
- {
- process_abort();
- }
- }
- _get_dictionary_string(19726337,disp_string1,slen1);
- ACKNOWLEDGE(disp_string1);
- _add_abort_method(4118);
- _get_dictionary_string(19726356,disp_string1,slen1);
- ACKNOWLEDGE(disp_string1);
- do {
- retry = 1;
- cal_gas_cnt = SELECT_FROM_LIST(literal_string(613),literal_string(614)) + 1;
- calSensorId = 0;
- calType = cal_gas_cnt;
- send(132,status);
- if (status[0])
- {
- display_response_status(132,status[0]);
请登录以获得完整内容