Loading…
Loading…
方法名称: MthDisableServiceAccessHart
方法ID: 0x44BB
方法标签: Disable Service Access
方法描述: Disabling service parameter access via HART. I.e. Resetting the authorization level to Standard (1).
- {
- char achCmdStatus[3];
- int iDesiredLevel;
- long ai32VariableIds[2];
- int iResult;
- iResult = SELECT_FROM_LIST(literal_string(2165),literal_string(2166));
- if (iResult != 1)
- return;
- _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);
- _iassign(16414,1);
- iDesiredLevel = _ivar_value(16414);
- send(184,achCmdStatus);
- if (achCmdStatus[0] != 0)
- {
- display_response_status(184,achCmdStatus[0]);
请登录以获得完整内容