Loading…

Method Name: device_variable_trim

Method ID: 0x1080

Method Label: Device variable 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];
  • long var_id[2];
  • int trim_code;
  • int doneLowTrim;
  • int retry;
  • int slen1;
  • int slen2;
  • float trim_point;
  • float trim_min;
  • float trim_max;
  • 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);
  • _get_dictionary_string(19726406,disp_string1,slen1);
  • ACKNOWLEDGE(disp_string1);
  • do {
  • doneLowTrim = 0;
  • do {
  • retry = 1;
  • _get_dictionary_string(19726373,disp_string1,slen1);
  • _get_dev_var_value(disp_string1,0,4223);
  • send(81,status);
  • if (status[0])


Please login for more