Loading…
Loading…
Method Name: setup_wizard
Method ID: 0x49BF
Method Label: Instale la ayuda
Method Help:
- {
- char status[3];
- long select;
- long step;
- int error;
- _set_device_status(0xFF,0);
- _set_all_resp_code(0);
- _set_xmtr_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- select = 0;
- step = 0;
- error = 0;
- _MenuDisplay(19036,literal_string(1476),literal_string(1477));
- do {
- switch (step)
- {
- case 0:
- send_command(13);
- send_command(20);
- send_command(12);
- send_command(169);
- tag_w = tag;
- descriptor_w = descriptor;
- date_w = date;
- save_values();
- _MenuDisplay(19016,literal_string(1476),literal_string(1477));
- save_values();
- send_trans(150,2,status);
- if (status[0] != 0)
- {
- display_response_status(150,status[0]);
- error = 1;
- status[0] = 0;
- }
- send(17,status);
- if (status[0] != 0)
- {
- display_response_status(17,status[0]);
- error = 1;
- status[0] = 0;
- }
- send_trans(252,0,status);
- if (status[0] != 0)
- {
- display_response_status(252,status[0]);
- error = 1;
- status[0] = 0;
- }
- send_trans(252,1,status);
- if (status[0] != 0)
- {
- display_response_status(252,status[0]);
- error = 1;
- status[0] = 0;
- }
- send_trans(252,2,status);
- if (status[0] != 0)
- {
- display_response_status(252,status[0]);
- error = 1;
- status[0] = 0;
- }
- send(22,status);
- if (status[0] != 0)
- {
- display_response_status(22,status[0]);
- error = 1;
- status[0] = 0;
- }
- send(170,status);
- if (status[0] != 0)
- {
- display_response_status(170,status[0]);
- error = 1;
- status[0] = 0;
- }
- send_command(13);
- send_command(20);
- save_values();
- if (!error)
- {
- step = 1;
- }
- break;
- case 1:
- _MenuDisplay(19017,literal_string(1478),literal_string(1477));
- if (select == 1)
- {
- save_values();
- send_trans(252,3,status);
- if (status[0] != 0)
- {
- display_response_status(252,status[0]);
- error = 1;
- status[0] = 0;
- }
- send(130,status);
- if (status[0] != 0)
- {
- display_response_status(130,status[0]);
- error = 1;
- status[0] = 0;
- }
- if (!error)
- {
- step = 2;
- }
- else
- {
- error = 0;
- }
- }
- else
- {
- step = 0;
- }
- break;
- case 2:
- _MenuDisplay(19018,literal_string(1478),literal_string(1477));
- if (select == 1)
- {
- save_values();
- send(148,status);
- if (status[0] != 0)
- {
- display_response_status(148,status[0]);
- error = 1;
- status[0] = 0;
- }
- send(138,status);
- if (status[0] != 0)
- {
- display_response_status(138,status[0]);
- error = 1;
- status[0] = 0;
- }
- send(132,status);
- if (status[0] != 0)
- {
- display_response_status(132,status[0]);
- error = 1;
- status[0] = 0;
- }
- send(142,status);
- if (status[0] != 0)
- {
- display_response_status(142,status[0]);
- error = 1;
- status[0] = 0;
- }
- if (!error)
- {
- step = 3;
- }
- else
- {
- error = 0;
- }
- }
- else
- {
- step = 1;
- }
- break;
- case 3:
- _MenuDisplay(19019,literal_string(1478),literal_string(1477));
- if (select == 1)
- {
- save_values();
- send(134,status);
- if (status[0] != 0)
- {
- display_response_status(134,status[0]);
- error = 1;
- status[0] = 0;
- }
- send(136,status);
- if (status[0] != 0)
- {
- display_response_status(136,status[0]);
- error = 1;
- status[0] = 0;
- }
- if (MeasType == 2)
- {
- step = 4;
- }
- else
- if (MeasType == 3)
- {
- step = 6;
- }
- else
- if (MeasType == 1)
- {
- send_trans(190,0,status);
- if (status[0] != 0)
- {
- display_response_status(190,status[0]);
- error = 1;
- status[0] = 0;
- }
- step = 9;
- }
- else
- {
- step = 9;
- }
- if (error)
- {
- step = 2;
- }
- }
- else
- {
Please login for more