Loading…
Loading…
方法名称: load_CC_TOPO
方法ID: 0x404C
方法标签: Load...
方法描述:
- {
- int curve;
- int i;
- int count_of_bufs;
- int points;
- int startidx;
- int id;
- var_CC_TOPO_MinVal = 999;
- var_CC_TOPO_MaxVal = 0;
- var_CC_TOPO_MinXVal = 999;
- var_CC_TOPO_MaxXVal = 0;
- PUT_MESSAGE(literal_string(2385));
- curve = PRM_9425;
- send_command_trans(161,500);
- i = 0;
- do {
- send_command_trans(160,500);
- DELAY_TIME(1);
- if (i++ > 30)
- {
- ACKNOWLEDGE(literal_string(2386));
- return;
- }
- }
- while (curve != PRM_9425);
- PUT_MESSAGE(literal_string(2387));
- send_command_trans(160,4);
- send_command_trans(160,225);
- send_command_trans(160,22);
- send_command_trans(160,23);
- send_command_trans(160,206);
- PUT_MESSAGE(literal_string(2388));
- send_command_trans(160,501);
- send_command_trans(160,502);
- send_command_trans(160,504);
- send_command_trans(160,505);
- send_command_trans(160,506);
- var_CC_TOPO_MinVal = 0;
- var_CC_TOPO_MaxVal = PRM_2318;
- PUT_MESSAGE(literal_string(2389));
- points = PRM_7121;
- count_of_bufs = points / (32 / 2);
- if (points % (32 / 2) > 0)
- {
- count_of_bufs += 1;
- }
- for (i = 0; i < count_of_bufs; i++)
- {
- id = 7130 + i;
- switch (id)
- {
- case 7130:
- send_command_trans(160,507);
- startidx = 0 * 32 / 2;
- break;
- case 7131:
- send_command_trans(160,508);
- startidx = 1 * 32 / 2;
- break;
- case 7132:
- send_command_trans(160,509);
- startidx = 2 * 32 / 2;
- break;
- case 7133:
- send_command_trans(160,510);
- startidx = 3 * 32 / 2;
- break;
- case 7134:
- send_command_trans(160,511);
- startidx = 4 * 32 / 2;
- break;
- case 7135:
- send_command_trans(160,512);
- startidx = 5 * 32 / 2;
- break;
- case 7136:
- send_command_trans(160,513);
- startidx = 6 * 32 / 2;
- break;
- case 7137:
- send_command_trans(160,514);
- startidx = 7 * 32 / 2;
- break;
- default:
- return;
- break;
- }
- if (startidx < points)
- arr_CC_TOPO_XValues[startidx++] = var_CCTOPO_posbuf00;
- else
- arr_CC_TOPO_XValues[startidx++] = 0;
- if (startidx < points)
- arr_CC_TOPO_XValues[startidx++] = var_CCTOPO_posbuf01;
- else
- arr_CC_TOPO_XValues[startidx++] = 0;
- if (startidx < points)
- arr_CC_TOPO_XValues[startidx++] = var_CCTOPO_posbuf02;
- else
- arr_CC_TOPO_XValues[startidx++] = 0;
- if (startidx < points)
- arr_CC_TOPO_XValues[startidx++] = var_CCTOPO_posbuf03;
- else
- arr_CC_TOPO_XValues[startidx++] = 0;
- if (startidx < points)
- arr_CC_TOPO_XValues[startidx++] = var_CCTOPO_posbuf04;
- else
- arr_CC_TOPO_XValues[startidx++] = 0;
- if (startidx < points)
- arr_CC_TOPO_XValues[startidx++] = var_CCTOPO_posbuf05;
- else
- arr_CC_TOPO_XValues[startidx++] = 0;
- if (startidx < points)
- arr_CC_TOPO_XValues[startidx++] = var_CCTOPO_posbuf06;
- else
- arr_CC_TOPO_XValues[startidx++] = 0;
- if (startidx < points)
- arr_CC_TOPO_XValues[startidx++] = var_CCTOPO_posbuf07;
- else
- arr_CC_TOPO_XValues[startidx++] = 0;
- if (startidx < points)
- arr_CC_TOPO_XValues[startidx++] = var_CCTOPO_posbuf08;
- else
- arr_CC_TOPO_XValues[startidx++] = 0;
- if (startidx < points)
- arr_CC_TOPO_XValues[startidx++] = var_CCTOPO_posbuf09;
- else
- arr_CC_TOPO_XValues[startidx++] = 0;
- if (startidx < points)
- arr_CC_TOPO_XValues[startidx++] = var_CCTOPO_posbuf10;
- else
- arr_CC_TOPO_XValues[startidx++] = 0;
请登录以获得完整内容