DIP_SWITCH_SII,2,0,usNumberOfCompPoints,
while(cCharacter!='0');
}//End of MainMenu
!Á
printf("6: Compensation On/Off\n");
printf("0: End");
do
{
if (extucErrorCode)
{
DisplayError();
}
if (extucMessage)
{
DisplayMessage();
}
}
while (!(kbhit()));
cCharacter=getch();
switch(cCharacter)
{
case '1':
TraverseOverReferenceMark(DIP_SWITCH_SI, DIP_SWITCH_SII, 1);
break;
case '2':
TraverseOverReferenceMark(DIP_SWITCH_SI, DIP_SWITCH_SII, 2);
break;
case '3':
DisplayPositionValue(DIP_SWITCH_SI, DIP_SWITCH_SII);
break;
case '4':
clrscr();
fflush(stdin);
printf("\nNumber of Compensation Points
scanf("%d",&usNumberOfCompPoints);
fflush(stdin);
printf("\nInterval of Compensation Points
scanf("%d",&usIntervalOfCompPoints);
CompensationRun (DIP_SWITCH_SI, DIP_SWITCH_SII,1,0,
break;
case '5':
clrscr();
fflush(stdin);
printf("\nNumber of Compensation Points
scanf("%d",&usNumberOfCompPoints);
fflush(stdin);
printf("\nInterval of Compensation Points
scanf("%d",&usIntervalOfCompPoints);
CompensationRun(DIP_SWITCH_SI,
break;
case '6':
CompensationOnOff(DIP_SWITCH_SI, DIP_SWITCH_SII);
break;
}
}
//Set normal cursor again
_setcursortype (_NORMALCURSOR);
//InitIK320() sets a new interrupt vector. Therefore the old
//interrupt vector has to be reinstalled.
RestoreOldInterruptVector();
usNumberOfCompPoints,
usIntervalOfCompPoints,1);
usIntervalOfCompPoints,0);
");
");
");
");