Loading…

方法名称: MthEnableServiceAccessHart

方法ID: 0x472B

方法标签: Enable Service Access

方法描述: 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(18108,0);
  • _get_dev_var_value(literal_string(2010),0,18108);
  • _iassign(17232,3);
  • iDesiredLevel = _ivar_value(17232);
  • send(184,achCmdStatus);
  • if (achCmdStatus[0] != 0)
  • {
  • display_response_status(184,achCmdStatus[0]);
  • }


请登录以获得完整内容