Loading…
Loading…
方法名称: configure_basic_screen
方法ID: 0x41EE
方法标签: Configure Basic Screen
方法描述: 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 ("|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();
- }
- 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(("|en|Select the screen to be configured"),0,16567);
- PUT_MESSAGE ("|en|Reading current configuration of %{screen_number}...");
- 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("|en|Enter value of PV Selection","|en|Loop PV;CJ Temperature;Sensor 1;Sensor 1 Resistance;Loop Output(mA);Percent Output");
- if(sel_PV_publish==0)
- {
- comn_PV_publish = 1;
- }
- else
- {
- if(sel_PV_publish==1)
- {
- comn_PV_publish = 2;
- }
请登录以获得完整内容