Loading…
Loading…
Method Name: MthSetAccessLevelHart
Method ID: 0x420F
Method Label: Set Access Level
Method Help: Setting the authorization level for data access via the HART interface. When activating a protection level a new password is set which needs to be entered again for deactivation. SIL-mode can be set only by the device manufacturer.
- {
- char cmd_status[3];
- int iAccessLevelOriginal;
- int iAccessLevelDesired;
- long var_ids[2];
- _set_device_status(0xFF,0);
- _set_all_resp_code(0);
- _set_xmtr_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- send(234,cmd_status);
- iAccessLevelOriginal = _ivar_value(16883);
- _get_dev_var_value(literal_string(1238),0,16883);
- _get_dev_var_value(literal_string(1239),0,16884);
- iAccessLevelDesired = _ivar_value(16883);
- send(235,cmd_status);
- if (cmd_status[0] != 0)
- {
- display_response_status(235,cmd_status[0]);
- }
Please login for more