Allen-Bradley 1784-KTX Reference Manual page 87

Table of Contents

Advertisement

Appendix B
Programming Examples
/************************************************************************
*
KTXCONST.H
*
*
Description:
*
*
This file contains defintions for all of the global constants used
*
the 1784–KTX Scanner examples.
*
*
History:
*
*
02/22/93
MJG
Original creation.
*
************************************************************************/
#ifndef KTXCONST_H
#define KTXCONST_H 1
/* boolean definitions */
#define FALSE
0
#define TRUE
1
#define OFF
0
#define ON
1
#define SUCCESS
0
#define FAIL
1
#define NO
0
#define YES
1
/*
initialization constants */
#define
SCANNER_LINK_ADDRESS
#define
KTX_SCANNER_PROTOCOL
#define
LINK_230_KBAUD
#define
LINK_115_KBAUD
#define
LINK_57_KBAUD
/*
int_status_to_host values
#define NO_KTX_INT_AVAILABLE
#define INIT_DONE_INTERRUPT
#define CONFIRMATION_INTERRUPT
#define PROCESSING_PROBLEM_INTERRUPT
/*
int_status_from_host values
#define INTERRUPT_PROCESSED
#define SCANNER_COMMAND_FROM_HOST
#define CONFIRMATION_PROCESSED
/*
possible command ids
#define SET_MODE
#define SET_SCAN_LIST
#define AUTOCONFIG
#define BT_WRITE
#define BT_READ
#define SET_FAULT_GROUP
#define GET_SCAN_LIST
/*
modes of operation
*/
#define PROGRAM
#define TEST
#define RUN
/* number of words by rack size */
#define
QUARTER_RACK_SIZE
#define
HALF_RACK_SIZE
#define
THREE_QUARTER_RACK_SIZE
#define
FULL_RACK_SIZE
Allen-Bradley Parts
B-8
ktxconst.h file
0xFD
0x06
0xFE
0xFD
0xFC
*/
0
1
2
3
*/
0
1
2
*/
1
2
3
4
5
6
7
0
1
2
2
4
6
8
*
*
*
*
*
*
*
*
*
*
*

Advertisement

Table of Contents
loading

This manual is also suitable for:

1784-ktxd1784-kts

Table of Contents