Loading…

Method Name: perform_varDiagnostic_Action_Code

Method ID: 0x4522

Method Label: Perform Diagnostic Action

Method Help:


  • {
  • char status[3];
  • int choice;
  • int yesno;
  • char disp_string[100];
  • char disp_string1[200];
  • int slen;
  • int slen1;
  • _set_xmtr_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_all_resp_code(0);
  • _iassign(17338,1);
  • _iassign(17339,237);
  • send(162,status);
  • if (varMODBUS_Data_Type_Code == 1 && varCoil_Value == 0x01)
  • {
  • ACKNOWLEDGE(literal_string(1078));
  • process_abort();
  • }
  • slen1 = 200;
  • slen = 100;
  • do {
  • _get_dictionary_string(858587245,disp_string,slen);
  • choice = SELECT_FROM_LIST(disp_string,literal_string(1096));
  • switch (choice)
  • {
  • case 0:
  • _fassign(17554,1);


Please login for more