Loading…
Loading…
方法名称: select_sensor_method
方法ID: 0x4042
方法标签: Sensor selection
方法描述: Guided tour through the sensor selection (type, mode, connection type or cjc mode, range).
- {
- char status[3];
- char xmtr_status[25];
- char disp_str[60];
- int strlen;
- int result;
- int result2;
- int urv_i;
- int lrv_i;
- int sensor_nr;
- float urv;
- float lrv;
- float usl;
- float lsl;
- float span_abs;
- float span_min_allowed;
- long ids[3];
- _set_device_status(0xFF,0);
- strlen = 60;
- _get_dictionary_string(19726337,disp_str,strlen);
- ACKNOWLEDGE(disp_str);
- _add_abort_method(4118);
- sensor_nr = _ivar_value(16404);
- if (sensor_nr == 3 || sensor_nr == 4 || sensor_nr == 20 || sensor_nr == 21)
- {
- sensor_nr = 31;
- }
- else
- if (sensor_nr == 15 || sensor_nr == 16 || sensor_nr == 18 || sensor_nr == 19)
- {
- sensor_nr = 30;
- }
- _iassign(16410,sensor_nr);
- _get_dev_var_value(literal_string(224),0,16410);
- sensor_nr = _ivar_value(16410);
- if (sensor_nr == 30)
- {
- result2 = SELECT_FROM_LIST(literal_string(225),literal_string(226));
- switch (result2)
- {
- case 0:
- sensor_nr = 15;
- break;
- case 1:
- sensor_nr = 18;
- break;
- case 2:
- sensor_nr = 19;
- break;
- case 3:
请登录以获得完整内容