Loading…

Method Name: m_kalibrierung_2pkt

Method ID: 0x4051

Method Label: Man. 2-Point-Cal.

Method Help:


  • {
  • char status[3];
  • char kalibrierzustand;
  • int fernkalibrierung_local;
  • char kalibriermapping[20];
  • int bedienzustand_local;
  • int index;
  • int flag_kal_zustand_weiterschaltung;
  • int fern_kal_soll;
  • int fern_kal_ist;
  • int kal_zustand;
  • long ids[3];
  • _set_all_resp_code(0);
  • _set_device_status(0xFF,0);
  • _set_xmtr_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • _set_no_device(1);
  • _set_comm_status(0xFF,2);
  • _set_xmtr_comm_status(0xFF,2);
  • _set_comm_status(0x7F,2);
  • _set_xmtr_comm_status(0x7F,2);
  • SET_NUMBER_OF_RETRIES(5);
  • send(15,status);
  • if (status[0])
  • {
  • display_response_status(15,status[0]);
  • }
  • if (status[1])
  • {
  • int bit_index;
  • for (bit_index = 0x02; bit_index <= 0x40; bit_index <<= 1)
  • {
  • if (status[1] & bit_index)
  • {
  • _display_xmtr_status(152,bit_index);
  • }
  • }
  • }
  • if (_ivar_value(167))
  • {
  • _add_abort_method(16509);
  • process_abort();
  • }
  • else
  • {
  • _add_abort_method(16498);
  • _add_abort_method(16500);
  • for (index = 0; index < 20; index++)
  • {
  • switch (index)
  • {
  • case 0:
  • kalibriermapping[index] = 1;
  • break;
  • case 1:
  • kalibriermapping[index] = 20;
  • break;
  • case 9:
  • kalibriermapping[index] = 22;
  • break;
  • case 11:
  • kalibriermapping[index] = 23;
  • break;
  • case 13:
  • kalibriermapping[index] = 25;
  • break;
  • case 14:
  • kalibriermapping[index] = 4;


Please login for more