beautypg.com

Rockwell Automation 6008-SI IBM PC I/O SCNNR 6008-SI User Manual

Page 29

background image

Chapter 4

Programming Overview

4-2

Table 4.B lists the rest of the files that make up the source code for the user
diagnostic program:

Table 4.B

Source Code for the User Diagnostic Program

File:

Contents:

U_D1.C

main program

U_D1.H

include file for the U_*.C files

U_BT.C

single block transfers

U_BTC.C

continuous block transfers

U_BTM.C

multiple block transfers

U_DISC.C

fullĆscreen discrete I/O

U_GET.C

keyboard handler

U_GROUP.C

singleĆgroup discrete I/O

U_MR.C

management requests

U_PICK.C

main menu

We provide the diagnostic program source files so that you have extended
examples of successful programming for the scanner. You should feel free
to experiment by modifying them, though we cannot support any modified
program versions.

Important: All of the files on the diskettes are Copyright

(C)

Allen-Bradley Company and may not be distributed or copied (other

than from the distribution disk to your hard-disk or working diskette)
without our permission.

All of the source files are identical between the two diskettes. The
run-time libraries are different and have different names, as explained
below. The executable programs work the same, but contain different code
because they were compiled with different compilers.

If your system is equipped with a hard disk, please read the installation
hints for the Borland or Microsoft version, below. (We provide hints rather
than firm instructions because your hard disk could be organized in many
ways for system development.)

If your system doesn’t have a hard disk, you can write and run scanner
programs using just floppy drives. Please consult your compiler and linker
manuals for instructions on organizing your floppy disks.