Loading…

Method Name: enter_sensor_configuration

Method ID: 0x4103

Method Label: Sensor configuration

Method Help: Configures sensor 1, sensor 2 and CJC sensor


  • {
  • int inputType;
  • int pvType;
  • int pvUnits;
  • int pvWires;
  • int dualSensor;
  • int choice;
  • int slen1;
  • char status[3];
  • char disp_string1[135];
  • _set_all_resp_code(0);
  • slen1 = 135;
  • _get_dictionary_string(19726337,disp_string1,slen1);
  • ACKNOWLEDGE(disp_string1);
  • _add_abort_method(4118);
  • _get_dictionary_string(19726356,disp_string1,slen1);
  • ACKNOWLEDGE(disp_string1);
  • inputType = SELECT_FROM_LIST(literal_string(840),literal_string(841));
  • if (inputType == 0)
  • {
  • pvType = 1;
  • _iassign(resolve_record_ref(resolve_array_ref(269,0),16591),pvType);
  • }
  • else
  • if (inputType == 1)
  • {
  • pvType = 129;
  • _iassign(resolve_record_ref(resolve_array_ref(269,0),16591),pvType);
  • }
  • else
  • if (inputType == 2)
  • {
  • choice = SELECT_FROM_LIST(literal_string(842),literal_string(843));
  • switch (choice)
  • {
  • case 0:
  • pvType = 11;
  • break;
  • case 1:
  • pvType = 12;
  • break;
  • case 2:
  • pvType = 13;
  • break;
  • case 3:
  • pvType = 14;
  • break;
  • case 4:
  • pvType = 15;
  • break;
  • default:
  • process_abort();
  • }
  • _iassign(resolve_record_ref(resolve_array_ref(269,0),16591),pvType);
  • }
  • else
  • if (inputType == 3)
  • {
  • choice = SELECT_FROM_LIST(literal_string(842),literal_string(844));
  • switch (choice)
  • {
  • case 0:
  • pvType = 71;
  • break;
  • case 1:
  • pvType = 72;
  • break;
  • case 2:
  • pvType = 73;


Please login for more