beautypg.com

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

Page 33

background image

Chapter 4

Programming Overview

4-6

4.

Create an EXAMPLES directory under your development directory,
using this command:

md examples

5.

Copy the user diagnostic program (source code and executable) to
this directory by typing these commands:

copy a:u*.? c:examples

copy a:u_d1m.exe c:examples\u_d1.exe

If you wish, you can print the source files (approximately 35 pages)
by using this command:

print examples\u_*.?

Method 2: Scanner files in development directory

1.

Create your development directory using the md command, and
change to that directory by using the cd command.

2.

Copy the header file and libraries, like this:

copy a:h_6008si.h c:

copy a:6008si?b.lib c:

You’ll see five libraries copied, for the small, compact, medium,
large, and huge memory models.

3.

Create an EXAMPLES directory under your development directory,
using this command:

md examples

4.

Copy the user diagnostic program, source code and executable, to this
directory by typing these commands:

copy a:u*.? c:examples

copy a:u_d1m.exe c:examples\u_d1.exe

If you wish, you can print the source files (approximately 35 pages)
by using this command:

print examples\u_*.?