Overview of the function calls, Programming considerations – Rockwell Automation 6001-F2E AB STANDARD DRIVER SFTW User Manual

Page 13

Advertising
background image

Chapter 3

Planning an Application Program

3-2

Function calls let your application program communicate with devices on
the DH-485 network:

This Function Call

Lets You

Open_StdDrv()

initialize the 6001-F2E Standard Driver. Use this function call in
every program you write.

Appl_StdDrv()

use predefined support routines (Application Library) in
applications that use the basic command set. See page 4-2 for a
list of these commands.

Send_StdDrv()

format commands not provided in the Application Library. It lets
you format message packets when communicating with
token-passing or slave-only devices.

Get_ErrMsg()

retrieve an ASCII string that describes a network message error.

Close_StdDrv()

end communication. Use this function call in every program you
write.

Important: When you write your program, you must always start with
Open_StdDrv() and end with Close_StdDrv(). The middle of your
program will consist of Appl_StdDrv() or Send_StdDrv() or a
combination of both. Use the Send_StdDrv() function call to format
commands not supported by the Application Library routines. (See table
4.B on page 4-2 for a list of these commands.)

Your disk contains example programs (F2EDIAG.C and F2ESLC.C) you
can use to test communication on the DH-485 network. (See appendix A
for additional program examples.)

The next chapter for the format and parameters for each function call.

Keep the following considerations in mind when you write your
application program:

Use Borland Turbo C (v2.01 or later) or Microsoft C (v5.0 or later)
Whether you use only Appl_StdDrv() routines or Send_StdDrv()

routines, you must always link the following:

If you are using this

Link these files

Borland Turbo C (v2.01)

L_TCKR.LIB

L_TCAPP.LIB

Microsoft C (v5.0)

L_MSKR.LIB

L_MSAPP.LIB

Overview of the Function Calls

Programming Considerations

Advertising