What's Next - Allen-Bradley 1784-KTX Reference Manual

Table of Contents

Advertisement

Chapter 3
Programming Overview
/**** Host ack'd last interrupt ****/
case NO_KTX_INT_AVAILABLE :
break;
/**** Initialization is complete ****/
case INIT_DONE_INTERRUPT :
/**** Check completion status
if (dp–>init_status != SUCCESS)
unrecoverable_error(dp);
/**** If good, clear interrupt type ****/
else
dp–>int_status_to_host = 0;
break;
/**** A confirmation is available ****/
case CONFIRMATION_INTERRUPT :
/**** The application programmer needs to write a routine
***** that handles confirmations.
***** provided show how to do it when the application
***** waits for a confirmation before proceeding to the
***** next command.
***** to match up confirmations with pending commands
***** using the transaction number and acknowledge the
***** confirmation.
****/
break;
/**** A processing problem is an unrecoverable error ****/
case PROCESSING_PROBLEM_INTERRUPT
unrecoverable_error(dp);
break;
/**** Unknown interrupt type ****/
default :
break;
}
}
/* Need to issue the End Of Interrupt to the PIC controller(s) */
outportb(LowPICPort, EOI);
if (InterruptNumber > 7) outportb(HighPICPort, EOI); /* if int > 7 then second PIC also */
}

What's Next

3-8
****/
The other examples
An asynchronous version would need
:
Chapter 4 describes the five scanner management commands.

Advertisement

Table of Contents
loading

This manual is also suitable for:

1784-ktxd1784-kts

Table of Contents