Loading…
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(literal_string(1454));
- send(76,status);
- lock_dev = _ivar_value(4208);
- if (lock_dev != 0)
- {
- ACKNOWLEDGE(literal_string(1455));
- process_abort();
- }
- if (display_type_code == 0)
- {
- ACKNOWLEDGE(literal_string(1456));
- process_abort();
- }
- if (screen_number < 62 || screen_number > 69)
- {
- screen_number = 62;
- }
- _get_dev_var_value(literal_string(1457),0,16567);
- PUT_MESSAGE(literal_string(1458));
- 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(literal_string(1459),0,16578);
- save_values();
- if (comn_disp_template == 3 || comn_disp_template == 2)
- {
- do {
- do {
- _get_dev_var_value(literal_string(1460),0,16576);
- if (comn_chart_low_limit > 100000000 || comn_chart_low_limit < -100000000)
- {
- ACKNOWLEDGE(literal_string(1461));
- }
- }
- while (comn_chart_low_limit > 100000000 || comn_chart_low_limit < -100000000);
- do {
- _get_dev_var_value(literal_string(1462),0,16577);
- if (comn_chart_hi_limit > 100000000 || comn_chart_hi_limit < -100000000)
- {
- ACKNOWLEDGE(literal_string(1461));
- }
- }
- while (comn_chart_hi_limit > 100000000 || comn_chart_hi_limit < -100000000);
- if (comn_chart_hi_limit <= comn_chart_low_limit)
- {
- ACKNOWLEDGE(literal_string(1463));
- }
- }
- while (comn_chart_hi_limit <= comn_chart_low_limit);
- if (comn_disp_template == 3)
- {
- if (comn_trend_duration < 1 || comn_trend_duration > 999)
- {
- comn_trend_duration = 1;
- }
- _get_dev_var_value(literal_string(1464),0,16582);
- }
- }
- if (comn_disp_template == 0)
- {
- do {
- send(64768,status);
- if (status[0] != 0 && status[0] != 16)
- {
- display_response_status(64768,status[0]);
- ACKNOWLEDGE(literal_string(1465));
- process_abort();
- }
- DELAY(5,literal_string(1466));
- }
- while (status[0] == 16);
- do {
Please login for more