Loading…

Method Name: MthEnableServiceAccessHart

Method ID: 0x44BA

Method Label: Enable Service Access

Method Help: Enabling service parameter access via HART for 20 min. I.e. Setting the authorization level to Service (3).


  • {
  • char achCmdStatus[3];
  • int iDesiredLevel;
  • _set_device_status(0xFF,0);
  • _set_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • _iassign(18335,0);
  • _get_dev_var_value(literal_string(2181),0,18335);
  • _iassign(16414,3);
  • iDesiredLevel = _ivar_value(16414);
  • send(184,achCmdStatus);
  • if (achCmdStatus[0] != 0)
  • {
  • display_response_status(184,achCmdStatus[0]);
  • }


Please login for more