About The Examples - Allen-Bradley 1784-KTX Reference Manual

Table of Contents

Advertisement

Appendix B
Programming Examples

About the Examples

Allen-Bradley Parts
B-2
We designed the examples in this manual to introduce the application
programmer to the host-to-KTx interface and commands. The examples
demonstrate all of the host-to-KTx commands as well as other common
tasks, such as:
reading and writing the I/O image tables
reading the status table
watchdog timer
start-up and shutdown
Unlike a typical application program, these example programs are not
designed to take advantage of the KTx's ability to interrupt the host when a
host-to-KTx command reaches completion. Some commands, such as
block transfers, are given 4 seconds by the KTx to complete their tasks
before the KTx declares a timeout error. For most applications it would be
impractical to suspend processing for this length of time.
Source code for an interrupt service routine has been included to
demonstrate how an application might handle KTx interrupts. The interrupt
service routine has not been integrated with the rest of the example source
code. That task has been left to the application programmer.

Advertisement

Table of Contents
loading

This manual is also suitable for:

1784-ktxd1784-kts

Table of Contents