Preface
P-1
About This Manual
Use this document to understand, program, and employ the scanner
function of the 1784-KTX, 1784-KTXD, and 1784-KTS Communication
Interface cards.
In this document, we refer to the 1784-KTX, 1784-KTXD, and 1784-KTS
cards collectively as “1784-KTx” or “scanner.”
To use this product effectively, you must be familiar with:
C
programming
Allen-Bradley programmable controllers
We wrote this document for application programmers.
We use these conventions in this manual:
command names look like this:
Set Mode
variables and function names look like this:
get_scan_list
program constants and macros look like this:
SUCCESS
or
INIT_IN_PROGRESS
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
start-up and shutdown
watchdog
timer
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.
Objectives of This Manual
Audience
Conventions
About the Examples