方法名称: record_empty_spectrum
方法ID: 0x405B
方法标签: Empty spectrum
方法描述: Under this function the empty spectrum is activated or deactivated, or recorded and stored. To record spectrum the following conditions must be held: · Tank must be totally or partially drained. · All moving parts, e.g. agitators, must be switched on. · Tank height, antenna extension, distance piece and still well must be set correctly. When you select "RECORD", the choice is as following: · AVERAGE - Values are averaged. This setting can be used for most applications. · MAX. VALUES - Only maximum values considered when the empty spectrum is recorded. Of advantage in conjunction with "difficult" agitators, for example. If the tank is not completely drained, the empty tank spectrum can nevertheless still be recorded up to a certain range. In this case, select item PARTIAL. · If TOTAL selected, the empty-tank spectrum is recorded over the complete range. · If PARTIAL selected, interrogation is carried out concerning input of the distance value up to which the empty-tank spectrum shall be recorded. · The tank area below the current product level is excluded from the recording of the empty-tank spectrum. · The distance value is entered in the range of 0 m to tank height. · It is recommended to maintain a safe distance of 20 to 30 cm (8" to 12") to the actual distance. After recording of the empty-tank spectrum is started, countdown of measurements from '1000' to '0' is displayed. Procedure is over after approx. 2 Minutes. Recording of the empty spectrum can be aborted. The "old" empty spectrum is retained in this case. (Fct. 3.5.2)
- {
- char oldFunc;
- char cmd_status[3];
- long ids[1];
- oldFunc = _ivar_value(16568);
- _iassign(16915,oldFunc);
- _get_dev_var_value(literal_string(558),0,16915);
- if (_ivar_value(16915) < 2)
- {
- if (_ivar_value(16915) != oldFunc)
- {
- _iassign(16568,_ivar_value(16915));
- send(133,cmd_status);
- if (cmd_status[0])
- display_response_status(133,cmd_status[0]);
- }
- return;
- }
- _iassign(16622,_ivar_value(16573));
- _get_dev_var_value(literal_string(559),0,16622);
- _fassign(16623,_fvar_value(16661));
- if (_ivar_value(16622) > 1)