Loading…
Loading…
Method Name: MthCalibrateDensity
Method ID: 0x444A
Method Label: Calibrate Density
Method Help: Start Density Calibration (Fct. C1.2.1)
- {
- int iOptionChosen;
- int iTimeResponseDelayedGdc;
- float flTimeResponseDelayedGdc;
- char achCmdStatus[3];
- long ai32VariableIds[4];
- char stStandardDct[60];
- int iLengthStStandardDct;
- _set_device_status(0xFF,0);
- _set_all_resp_code(0);
- _set_xmtr_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- _lassign(17434,20451);
- send(153,achCmdStatus);
- if (achCmdStatus[0] != 0)
- {
- display_response_status(153,achCmdStatus[0]);
- iLengthStStandardDct = 60;
- _get_dictionary_string(19726342,stStandardDct,iLengthStStandardDct);
- DELAY(2,stStandardDct);
- process_abort();
- }
- _get_dev_var_value(literal_string(711),0,17304);
- _lassign(17434,20451);
- send(155,achCmdStatus);
- if (achCmdStatus[0] != 0)
- {
- display_response_status(155,achCmdStatus[0]);
- iLengthStStandardDct = 60;
- _get_dictionary_string(19726342,stStandardDct,iLengthStStandardDct);
- DELAY(2,stStandardDct);
- process_abort();
- }
- _add_abort_method(17479);
- switch (_ivar_value(17304))
- {
- case 0:
- case 1:
- _lassign(17434,20452);
- send(153,achCmdStatus);
- if (achCmdStatus[0] != 0)
- {
- display_response_status(153,achCmdStatus[0]);
- iLengthStStandardDct = 60;
- _get_dictionary_string(19726342,stStandardDct,iLengthStStandardDct);
- DELAY(2,stStandardDct);
- process_abort();
- }
- _get_dev_var_value(literal_string(717),0,17305);
- _lassign(17434,20452);
- send(155,achCmdStatus);
- if (achCmdStatus[0] != 0)
- {
- display_response_status(155,achCmdStatus[0]);
- iLengthStStandardDct = 60;
- _get_dictionary_string(19726342,stStandardDct,iLengthStStandardDct);
- DELAY(2,stStandardDct);
- process_abort();
Please login for more