Loading…

Method Name: FieldCommunicator_SILSequence_SequenceMethod_1

Method ID: 0x4BE6

Method Label: Confirm. SIL/WHG

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(19573);
  • step = 0;
  • write = 1;
  • do {
  • switch (step)
  • {
  • case 0:
  • step = 0 + 1;
  • send_command_trans(173,51);
  • send_command_trans(173,35);
  • send_command_trans(173,20);
  • send_command_trans(173,36);
  • send_command_trans(173,36);
  • write = 1;
  • _get_dev_var_value(literal_string(1567),0,16839);
  • if (write == 1)
  • {
  • send_command_trans(178,196);
  • send_command_trans(173,36);
  • }
  • send_command_trans(173,51);
  • send_command_trans(173,35);
  • send_command_trans(173,20);
  • send_command_trans(173,36);
  • send_command_trans(173,36);
  • if (SIL_SILState_1 == 0)
  • {
  • step = 0;
  • }
  • break;
  • case 1:
  • step = 1 + 1;
  • send_command_trans(173,51);
  • send_command_trans(173,35);
  • send_command_trans(173,20);
  • send_command_trans(173,36);
  • send_command_trans(173,36);
  • write = 1;
  • _get_dev_var_value(literal_string(373),0,16750);
  • if (write == 1)
  • {
  • send_command_trans(178,11859);
  • send_command_trans(173,20);
  • }
  • send_command_trans(173,51);
  • send_command_trans(173,35);
  • send_command_trans(173,20);
  • send_command_trans(173,36);
  • send_command_trans(173,36);
  • if (SIL_Commissioning_1 == 32989)
  • {
  • step = 1;
  • }
  • break;
  • case 2:
  • send_command_trans(159,79);
  • send_command_trans(159,78);
  • send_command_trans(159,80);
  • send_command_trans(159,81);
  • step = 2 + 1;
  • send_command_trans(173,51);
  • send_command_trans(173,35);
  • send_command_trans(173,20);
  • send_command_trans(173,36);
  • send_command_trans(173,36);
  • write = 0;
  • _get_dev_var_value(literal_string(1570),0,16753);
  • if (write == 1)
  • {
  • send_command_trans(178,11883);
  • send_command_trans(173,36);
  • }
  • send_command_trans(173,51);
  • send_command_trans(173,35);
  • send_command_trans(173,20);
  • send_command_trans(173,36);
  • send_command_trans(173,36);
  • if (SIL_Prepare_1 == 273)
  • {
  • step = 2;
  • }
  • break;
  • case 3:
  • step = 3 + 1;
  • send_command_trans(173,51);
  • send_command_trans(173,35);
  • send_command_trans(173,20);
  • send_command_trans(173,36);
  • send_command_trans(173,36);
  • if (SIL_Commissioning_1 == 236 && SIL_Prepare_1 != 275)
  • {
  • if (SB_SimulationDistanceOn_1 == 33006)
  • {
  • write = 1;
  • _get_dev_var_value(literal_string(976),0,16726);
  • if (write == 1)
  • {
  • send_command_trans(178,11245);
  • send_command_trans(173,38);
  • }
  • }
  • write = 0;
  • _get_dev_var_value(literal_string(1573),0,16528);
  • if (write == 1)
  • {
  • send_command_trans(178,1431);
  • send_command_trans(173,7);
  • }
  • }
  • break;
  • case 4:
  • step = 4 + 1;
  • send_command_trans(173,51);
  • send_command_trans(173,35);
  • send_command_trans(173,20);
  • send_command_trans(173,36);
  • send_command_trans(173,36);
  • if (SIL_Commissioning_1 == 236 && SIL_Prepare_1 != 275)
  • {
  • write = 0;


Please login for more