Loading…
Loading…
Method Name: configure_basic_screen
Method ID: 0x41EE
Method Label: Configure Basic Screen
Method Help: This allows you to configure a Basic 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();
- }
- screen_number = 62;
- if (comn_disp_template != 1)
- {
- comn_disp_template = 1;
- }
- 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(64773);
- loc_prev_PV_publish = comn_PV_publish;
- if (controlling_var == 4 && loop_control_choice == 2)
- {
- sel_PV_publish = SELECT_FROM_LIST(literal_string(1468),literal_string(1469));
- if (sel_PV_publish == 0)
- {
- comn_PV_publish = 2;
- }
- else
- {
- if (sel_PV_publish == 1)
- {
- comn_PV_publish = 3;
- }
- else
- {
- if (sel_PV_publish == 2)
- {
- comn_PV_publish = 6;
- }
- else
- {
- if (sel_PV_publish == 3)
- {
- comn_PV_publish = 8;
- }
- else
- {
- if (sel_PV_publish == 4)
- {
- comn_PV_publish = 9;
- }
- }
- }
Please login for more