Loading…

Method Name: configure_screen

Method ID: 0x41ED

Method Label: Configure

Method Help: This allows you to configure a Advanced display screen


  • {
  • char status[3];
  • char temp_screen_number;
  • char sel_PV_publish;
  • char sel_PV_processing;
  • char sel_units;
  • int lock_dev;
  • unsigned char loc_prev_PV_publish;
  • _set_device_status(0xFF,0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_all_resp_code(0);
  • _set_xmtr_all_resp_code(0);
  • _add_abort_method(16876);
  • ACKNOWLEDGE ("|en|Please ensure that the display is connected to the device, settings menu is not accessed and device is not write protected or locked by any master. Proceed only if this care is taken. Do not remove the display from unit or manually enter in display settings using display keys until this configuration completes.");
  • send(76, status);
  • lock_dev = _ivar_value(4208);
  • if (lock_dev!=0)
  • {
  • ACKNOWLEDGE ("|en|Locked for writing by one of the masters. Please unlock and try again. Aborting...");
  • process_abort();
  • }
  • if(display_type_code == 0)
  • {
  • ACKNOWLEDGE ("|en|No Display connected. Aborting...");
  • process_abort();
  • }
  • if (screen_number<62 || screen_number>69)
  • {
  • screen_number = 62;
  • }
  • _get_dev_var_value(("|en|Select the screen to be configured"),0,16567);
  • PUT_MESSAGE ("|en|Reading current configuration of %{screen_number}...");
  • send_command (64771);
  • send_command (64772);
  • send_command (64773);
  • if (comn_disp_template<0 || comn_disp_template>3)
  • {
  • comn_disp_template = 0;
  • }
  • _get_dev_var_value(("|en|Select the Screen Format"),0,16578);
  • save_values();
  • if ( (comn_disp_template == 3) || (comn_disp_template == 2) )
  • {
  • do
  • {
  • do
  • {
  • _get_dev_var_value(("|en|Enter value for Chart Low Limit"),0,16576);
  • if((comn_chart_low_limit>100000000) || (comn_chart_low_limit<(-100000000)))
  • {
  • ACKNOWLEDGE ("|en|Invalid entry. Allowed range is -100000000 to 100000000. Please try again.");
  • }
  • }while ( ((comn_chart_low_limit>100000000) || (comn_chart_low_limit<(-100000000))) );
  • do
  • {
  • _get_dev_var_value(("|en|Enter value for Chart High Limit"),0,16577);
  • if((comn_chart_hi_limit>100000000) || (comn_chart_hi_limit<(-100000000)))
  • {
  • ACKNOWLEDGE ("|en|Invalid entry. Allowed range is -100000000 to 100000000. Please try again.");
  • }
  • }while ( ((comn_chart_hi_limit>100000000) || (comn_chart_hi_limit<(-100000000))) );
  • if (comn_chart_hi_limit <= comn_chart_low_limit)
  • {
  • ACKNOWLEDGE ("|en|High limit can not be less than or equal to low limit. Please try again.");
  • }
  • } while (comn_chart_hi_limit <= comn_chart_low_limit);
  • if (comn_disp_template == 3)
  • {
  • if (comn_trend_duration<1 || comn_trend_duration>999)


Please login for more