Loading…

Method Name: main_unit

Method ID: 0x40C5

Method Label: Main unit

Method Help: Display main unit - Main unit on LCD of converter.


  • {
  • int result;
  • char status[3];
  • int main_unit10;
  • int main_unit20;
  • int main_total_direction10;
  • int main_total_direction20;
  • int selecter;
  • send(193,status);
  • main_unit10 = _ivar_value(resolve_record_ref(16598,16573));
  • main_total_direction10 = _ivar_value(resolve_record_ref(16598,16574));
  • do {
  • result = SELECT_FROM_LIST(literal_string(520),literal_string(521));
  • if (result == 0)
  • {
  • selecter = result;
  • result = SELECT_FROM_LIST(literal_string(522),literal_string(523));
  • switch (result)
  • {
  • case 0:
  • {
  • main_unit20 = 21;
  • break;
  • }
  • case 1:
  • {
  • main_unit20 = 20;
  • break;
  • }
  • }
  • _iassign(resolve_record_ref(16598,16573),main_unit20);
  • send(192,status);
  • if (status[0])
  • {
  • display_response_status(192,status[0]);
  • }
  • }
  • else
  • if (result == 1)
  • {
  • selecter = result;
  • result = SELECT_FROM_LIST(literal_string(524),literal_string(525));
  • switch (result)
  • {
  • case 0:
  • {
  • main_unit20 = 28;
  • break;
  • }
  • case 1:
  • {
  • main_unit20 = 131;
  • break;
  • }
  • case 2:
  • {
  • main_unit20 = 19;
  • break;
  • }
  • case 3:
  • {
  • main_unit20 = 29;
  • break;
  • }
  • case 4:
  • {
  • main_unit20 = 24;
  • break;


Please login for more