Loading…

Method Name: send_code_entry

Method ID: 0x4025

Method Label: Code entry

Method Help: Safety code entry field for write protect for HART. Entering correct code disables write protection, entering -1 enables write protection.


  • {
  • char status[3];
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • _get_dev_var_value(literal_string(127),0,16407);
  • _iassign(16391,0x51);
  • send(145,status);
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);


Please login for more