Loading…

Method Name: MthResetTotalizer2

Method ID: 0x4690

Method Label: Reset Totaliser 2

Method Help: Resets totaliser 2 (Fct. C4.2.6)


  • {
  • char achCmdStatus[3];
  • int iResult;
  • iResult = SELECT_FROM_LIST(literal_string(1951),literal_string(1950));
  • if (iResult != 1)
  • return;
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_no_device(0);
  • _set_comm_status(0xFF,0);
  • SET_NUMBER_OF_RETRIES(0);
  • switch (_lvar_value(16711))
  • {
  • case 1:
  • _iassign(18050,_ivar_value(16850));
  • break;
  • case 2:
  • _iassign(18050,_ivar_value(16849));
  • break;
  • default:
  • _iassign(18050,_ivar_value(16849));


Please login for more