Loading…

Method Name: Handheld_SILSequence_SequenceMethod_1

Method ID: 0x4984

Method Label: SIL/WHG confirm.

Method Help:


  • {
  • int varid[1];
  • int step;
  • int write;
  • int tempconfirm;
  • int select;
  • long temp;
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _add_abort_method(18954);
  • step = 0;
  • write = 1;
  • do {
  • switch (step)
  • {
  • case 0:
  • step = 0 + 1;
  • send_command_trans(173,46);
  • send_command_trans(173,28);
  • send_command_trans(173,15);
  • send_command_trans(173,29);
  • send_command_trans(173,30);
  • write = 1;
  • _get_dev_var_value(literal_string(1587),0,16750);
  • if (write == 1)
  • {
  • send_command_trans(178,196);
  • send_command_trans(173,30);
  • }
  • send_command_trans(173,46);
  • send_command_trans(173,28);
  • send_command_trans(173,15);
  • send_command_trans(173,29);
  • send_command_trans(173,30);
  • if (SIL_SILState_1 == 0)
  • {
  • step = 0;
  • }
  • break;
  • case 1:
  • step = 1 + 1;
  • send_command_trans(173,46);
  • send_command_trans(173,28);
  • send_command_trans(173,15);
  • send_command_trans(173,29);
  • send_command_trans(173,30);
  • write = 1;
  • _get_dev_var_value(literal_string(350),0,16597);
  • if (write == 1)
  • {
  • send_command_trans(178,11793);
  • send_command_trans(173,15);
  • }
  • send_command_trans(173,46);
  • send_command_trans(173,28);
  • send_command_trans(173,15);
  • send_command_trans(173,29);
  • send_command_trans(173,30);
  • if (SIL_Commissioning_1 == 32989)
  • {
  • step = 1;
  • }
  • break;
  • case 2:
  • send_command_trans(159,72);
  • send_command_trans(159,74);
  • send_command_trans(159,73);
  • step = 2 + 1;
  • send_command_trans(173,46);
  • send_command_trans(173,28);
  • send_command_trans(173,15);
  • send_command_trans(173,29);
  • send_command_trans(173,30);
  • write = 0;
  • _get_dev_var_value(literal_string(1590),0,16616);
  • if (write == 1)
  • {
  • send_command_trans(178,11803);
  • send_command_trans(173,29);
  • }
  • send_command_trans(173,46);
  • send_command_trans(173,28);
  • send_command_trans(173,15);
  • send_command_trans(173,29);
  • send_command_trans(173,30);
  • if (SIL_Prepare_1 == 273)
  • {
  • step = 2;
  • }
  • break;
  • case 3:
  • step = 3 + 1;
  • send_command_trans(173,46);
  • send_command_trans(173,28);
  • send_command_trans(173,15);
  • send_command_trans(173,29);
  • send_command_trans(173,30);
  • if (SIL_Commissioning_1 == 236 && SIL_Prepare_1 != 275)
  • {
  • if (SB_SimulationDistanceOn_1 == 33006)
  • {
  • write = 1;
  • _get_dev_var_value(literal_string(977),0,16939);
  • if (write == 1)
  • {
  • send_command_trans(178,11249);
  • send_command_trans(173,31);
  • }


Please login for more