Further information, 4ć15 – Rockwell Automation 6008-SI IBM PC I/O SCNNR 6008-SI User Manual
Page 42

Chapter 4
Programming Overview
4-15
Example 2: If your program is in several source modules, you can list
them on the command line. If you have chosen medium model, the
command is
CL /J /AM /W3 applic.c /link 6008simm
The three source files will be compiled and linked as CONTROL.EXE.
Example 3: You have many source files –– U_D1.C, U_BT.C, and so on
–– to be compiled and linked in a program called U_D1M.EXE. Header
files are not in the same directory as source code, but are in directory
c:\dev\hdr. The following command will compile and link in small model.
CL /J /AS /W3 /FeU_D1M /Ic:\dev\hdr U_*.C /link
6008sism
This is quite similar to the command we used to create the U_D1M
program on your distribution disk.
The next few chapters of this manual explain programming features:
Chapter 5, Startup, Status, and Shutdown, explains features that must be
in every scanner interface program, including how to start and stop
scanner operation, status monitoring, and the host watchdog.
Chapter 6, Discrete I/O, explains how to read single-point inputs and
write outputs.
Chapter 7, Scanner Management, explains how to issue management
requests that modify the operation of the scanner.
Chapter 8, Block Transfer, explains how to read data from, and write
data to, intelligent I/O modules.
Chapter 9, General Support Features, explains how to write timing
loops, time-stamp a file or printout, and translate a numeric scanner
command to English.
Further Information