Loading…
Loading…
Method Name: sub_unit
Method ID: 0x40C6
Method Label: Sub unit
Method Help: Display sub unit - Sub 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,16575));
- main_total_direction10 = _ivar_value(resolve_record_ref(16598,16576));
- do {
- result = SELECT_FROM_LIST(literal_string(528),literal_string(529));
- if (result == 0)
- {
- selecter = result;
- result = SELECT_FROM_LIST(literal_string(530),literal_string(531));
- switch (result)
- {
- case 0:
- {
- main_unit20 = 21;
- break;
- }
- case 1:
- {
- main_unit20 = 20;
- break;
- }
- }
- _iassign(resolve_record_ref(16598,16575),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(532),literal_string(533));
- 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;
- }
- case 5:
- {
- main_unit20 = 17;
- break;
- }
- case 6:
- {
- main_unit20 = 138;
- break;
- }
Please login for more