Loading…
Loading…
Method Name: Application_setup
Method ID: 0x424F
Method Label: Application Setup
Method Help: Probe Type is the mechanical design of the sensor.The factory installed Probe Type is displayed.Choice depends on the application{Refer product documentation}.
- {
- int l_product_type;
- int l_air_gap_flag;
- int l_number_of_products;
- int l_top_product;
- int l_application_type;
- int l_mixed_type;
- long l_product_er;
- char status[3];
- long ids[2];
- ids[0] = 16483;
- _set_device_status(0xFF,0);
- _set_xmtr_device_status(0xFF,0);
- acknowledge(literal_string(600),ids);
- l_product_type = SELECT_FROM_LIST(literal_string(601),literal_string(602));
- _iassign(16497,l_product_type);
- if (l_product_type == 1)
- l_air_gap_flag = SELECT_FROM_LIST(literal_string(603),literal_string(604));
- else
- l_air_gap_flag = SELECT_FROM_LIST(literal_string(603),literal_string(516));
- _iassign(16498,l_air_gap_flag);
- if (l_product_type == 1)
- {
- if (l_air_gap_flag == 1)
- l_number_of_products = SELECT_FROM_LIST(literal_string(605),literal_string(606));
- else
- {
- l_number_of_products = SELECT_FROM_LIST(literal_string(605),literal_string(607));
- l_number_of_products = l_number_of_products + 1;
- }
- _iassign(16487,l_number_of_products);
- l_top_product = SELECT_FROM_LIST(literal_string(608),literal_string(609));
- _iassign(16499,l_top_product);
- if (l_number_of_products > 0)
- {
- if (_ivar_value(16506) == 1)
- {
- if (l_air_gap_flag == 1)
- {
- l_application_type = SELECT_FROM_LIST(literal_string(610),literal_string(611));
- }
- else
- {
- l_application_type = SELECT_FROM_LIST(literal_string(610),literal_string(534));
- }
- }
- else
- {
- l_application_type = SELECT_FROM_LIST(literal_string(610),literal_string(205));
- }
- _iassign(16500,l_application_type);
- l_mixed_type = SELECT_FROM_LIST(literal_string(612),literal_string(613));
- _iassign(16502,l_mixed_type);
- }
- else
- {
- l_application_type = SELECT_FROM_LIST(literal_string(610),literal_string(205));
- _iassign(16500,l_application_type);
- _iassign(16502,0);
- }
- }
- else
- {
- l_number_of_products = SELECT_FROM_LIST(literal_string(605),literal_string(510));
- _iassign(16487,0);
- l_top_product = SELECT_FROM_LIST(literal_string(608),literal_string(614));
- if (l_top_product < 3)
- _iassign(16499,l_top_product + 9);
- else
- _iassign(16499,8);
- l_application_type = SELECT_FROM_LIST(literal_string(610),literal_string(205));
- _iassign(16500,0);
- _iassign(16502,0);
- }
- if (l_application_type == 0)
- {
- if (l_product_type == 1)
- {
- if (l_number_of_products == 0)
- _iassign(16486,0);
- else
- _iassign(16486,1);
- }
Please login for more