Loading…
Loading…
Method Name: dewpoint_variable_trim
Method ID: 0x407B
Method Label: TV Trim
Method Help: Dew Point 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];
- int retry;
- int trim_source;
- int trim_code;
- int slen1;
- int wChoice;
- int Varcode;
- int doneLowTrim;
- float trim_point;
- float trim_min;
- float trim_max;
- long VarId[2];
- slen1 = 135;
- _get_dictionary_string(19726337,disp_string1,slen1);
- ACKNOWLEDGE(disp_string1);
- _add_abort_method(4118);
- _get_dictionary_string(19726356,disp_string1,slen1);
- ACKNOWLEDGE(disp_string1);
- _set_device_status(0xFF,0);
- _set_all_resp_code(0);
- _set_xmtr_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- _iassign(16464,2);
- _iassign(16488,2);
- send(178,status);
- _get_dev_var_value(literal_string(248),0,16444);
- trim_code = _ivar_value(16444);
- switch (trim_code)
- {
- case 0:
- wChoice = SELECT_FROM_LIST(literal_string(249),literal_string(242));
- switch (wChoice)
- {
- case 0:
- DELAY(3,literal_string(250));
- break;
- case 1:
- _iassign(16444,0);
- send(179,status);
Please login for more