Loading…
Loading…
Method Name: MthSetTotalizer
Method ID: 0x40C6
Method Label: Set start value
Method Help: Set the start value of the totalizer. Sets the totalizer to a desired value.
- {
- char status[3];
- int _countSteps;
- int _isAbort;
- int _isSendImmediateReset;
- int iResult;
- _isAbort = 0;
- _countSteps = 0;
- _isSendImmediateReset = 1;
- _set_device_status(0xFF,0);
- _set_all_resp_code(0);
- _set_xmtr_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- _add_abort_method(16583);
- send(230,status);
- if (stepDeviceFunction != 251)
- {
- iResult = SELECT_FROM_LIST(literal_string(1054),literal_string(1052));
- if (iResult == 1)
- {
- MthResetDeviceFunction();
- send(231,status);
- ;
- if (status[0])
- {
- display_response_status(231,status[0]);
- return;
- }
- }
- else
Please login for more