Loading…
Loading…
方法名称: m_configure_burst_command
方法ID: 0x4D11
方法标签: Configure Burst Mode Messages
方法描述:
- {
- char status[3];
- long ids[4];
- int burst_id;
- int response;
- int burst_mode_select;
- int burst_variable_code_local;
- int burst_variable_code_L_0;
- int burst_variable_code_L_1;
- int burst_variable_code_L_2;
- int burst_variable_code_L_3;
- int burst_variable_code_L_4;
- int burst_variable_code_L_5;
- int burst_variable_code_L_6;
- int burst_variable_code_L_7;
- long burst_update_period;
- long burst_update_period_result;
- long burst_max_update_period;
- long burst_max_update_period_result;
- int burst_command_number;
- int burst_message_trigger_mode;
- int burst_trigger_classification;
- int burst_trigger_units;
- float burst_trigger_level;
- int burst_subdevice_missing;
- int burst_subdevice_index;
- int burst_subdevice_index_int;
- int burst_trig_var;
- int burst_var;
- int burst_var_unit;
- long selection;
- char command_string[32];
- char burst_message_trigger_mode_string[32];
- char burst_trigger_units_string[32];
- char burst_class_string[32];
- DD_STRING burst_config_msg;
- DD_STRING burst_cmd_msg;
- DD_STRING burst_trigger_var_msg;
- DD_STRING burst_trigger_mode_msg;
- DD_STRING burst_mode_string;
- DD_STRING burst_trigger_unit_msg;
- DD_STRING burst_max_update_msg;
- DD_STRING burst_update_per_msg;
- DD_STRING burst_disp_dialog_msg;
- DD_STRING burst_trig_level_unit_msg;
- _set_all_resp_code(0);
- _set_device_status(0xFF,0);
- _set_xmtr_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- burst_id = SELECT_FROM_LIST(literal_string(1262),literal_string(1263));
- if (burst_id == 0)
- {
- burst_message_number = 0;
- }
- else
- if (burst_id == 1)
- {
- burst_message_number = 1;
- }
- else
- if (burst_id == 2)
- {
- burst_message_number = 2;
- }
- PUT_MESSAGE(literal_string(1264));
- send_command(105);
- burst_variable_code_local = _ivar_value(resolve_array_ref(resolve_array_ref(19733,burst_message_number),0));
- burst_mode_select = _ivar_value(resolve_record_ref(resolve_array_ref(19814,burst_message_number),4385));
- burst_update_period = _ivar_value(resolve_record_ref(resolve_array_ref(19814,burst_message_number),4383));
- burst_max_update_period = _ivar_value(resolve_record_ref(resolve_array_ref(19814,burst_message_number),4384));
- burst_command_number = _ivar_value(resolve_record_ref(resolve_array_ref(19814,burst_message_number),4381));
- burst_message_trigger_mode = _ivar_value(resolve_record_ref(resolve_array_ref(19814,burst_message_number),4394));
- burst_trigger_classification = _ivar_value(resolve_record_ref(resolve_array_ref(19814,burst_message_number),4395));
- burst_trigger_units = _ivar_value(resolve_record_ref(resolve_array_ref(19814,burst_message_number),4396));
- burst_trigger_level = _fvar_value(resolve_record_ref(resolve_array_ref(19814,burst_message_number),4397));
- _get_enum_string(resolve_record_ref(resolve_array_ref(19814,burst_message_number),4381),burst_command_number,command_string);
- _get_enum_string(resolve_record_ref(resolve_array_ref(19814,burst_message_number),4394),burst_message_trigger_mode,burst_message_trigger_mode_string);
- _get_enum_string(resolve_record_ref(resolve_array_ref(19814,burst_message_number),4396),burst_trigger_units,burst_trigger_units_string);
- _get_enum_string(resolve_record_ref(resolve_array_ref(19814,burst_message_number),4395),burst_trigger_classification,burst_class_string);
- _get_enum_string(resolve_record_ref(resolve_array_ref(19814,burst_message_number),4385),burst_mode_select,burst_mode_string);
- if (burst_trigger_units == 6)
- burst_trig_level_unit_msg = BUILD_MESSAGE(literal_string(1265));
- else
- if (burst_trigger_units == 7)
- burst_trig_level_unit_msg = BUILD_MESSAGE(literal_string(369));
- else
- if (burst_trigger_units == 32)
- burst_trig_level_unit_msg = BUILD_MESSAGE(literal_string(1266));
- else
- if (burst_trigger_units == 33)
- burst_trig_level_unit_msg = BUILD_MESSAGE(literal_string(1267));
- else
- if (burst_trigger_units == 57)
- burst_trig_level_unit_msg = BUILD_MESSAGE(literal_string(44));
- else
- if (burst_trigger_units == 39)
- burst_trig_level_unit_msg = BUILD_MESSAGE(literal_string(1268));
- else
- burst_trig_level_unit_msg = BUILD_MESSAGE(literal_string(1269));
- switch (burst_command_number)
- {
- case 1:
- burst_cmd_msg = BUILD_MESSAGE(literal_string(1270));
- burst_trigger_var_msg = BUILD_MESSAGE(literal_string(1271));
- break;
- case 2:
- burst_cmd_msg = BUILD_MESSAGE(literal_string(1272));
- burst_trigger_var_msg = BUILD_MESSAGE(literal_string(1271));
- break;
- case 3:
- burst_cmd_msg = BUILD_MESSAGE(literal_string(1273));
- burst_trigger_var_msg = BUILD_MESSAGE(literal_string(1271));
- break;
- case 9:
- burst_cmd_msg = BUILD_MESSAGE(literal_string(1274));
- if (burst_variable_code_local == 0)
- burst_trigger_var_msg = BUILD_MESSAGE(literal_string(1275));
- else
- if (burst_variable_code_local == 1)
- burst_trigger_var_msg = BUILD_MESSAGE(literal_string(1276));
- else
- if (burst_variable_code_local == 2)
- burst_trigger_var_msg = BUILD_MESSAGE(literal_string(1277));
- else
- if (burst_variable_code_local == 3)
- burst_trigger_var_msg = BUILD_MESSAGE(literal_string(1278));
- else
- if (burst_variable_code_local == 4)
- burst_trigger_var_msg = BUILD_MESSAGE(literal_string(1279));
- else
- if (burst_variable_code_local == 5)
- burst_trigger_var_msg = BUILD_MESSAGE(literal_string(1280));
请登录以获得完整内容