
Basic Steps in Creating a DP Application
DP Base Programming Interface for CP 5613/CP 5614
10
C79000-G8976-C108-01
Procedure
The steps outlined below represent the fastest and simplest way of achieving your
aims:
Step Description
1 Familiarize yourself with the basic principles of PROFIBUS DP. Read
the following chapter 2 (“Overview of PROFIBUS DP").
2
Familiarize yourself with the basic characteristics of the DP Base
programming interface of the CP 5613 and CP 5614. Read the
following chapter 3 (“Overview of the DP Base Interface").
3 Check through the contents of the subfolder "prog" in your installation
folder so that you know what it contains and the purpose of the
components for the subsequent steps.
The subfolder contains the following:
The "readme.txt" file with the latest additional information and most
recent modifications.
The C header file "dp_5613.h" with the functions and data structures
of the DP Base interface and "5613_ret.h" with the return codes.
The import libraries "dp_base.lib" and "dps_base.lib" for linking to
your user program.
The sample programs and corresponding databases in the
"examples" subfolder.
4 Now work through the source text of the sample program "ExamEasy"
and read through the functions and data accesses in Chapter 4
Description of the DP Functions, Data, and Error Codes
5 Adapt the "ExamEasy" sample program to suit your system
configuration by, for example, using additional or different slaves.
Compile and link the sample program and try it out. You may need to
extend the "ExamEasy" sample database (with COM PROFIBUS).
6 Now work through the source text of the sample program "ExamComp",
modify the program and try it out with an extended sample database.
7 If you want to use the slave functions of the CP 5614, you should also
work through the "transfer" sample, modify it to your requirements and
try it out with an extended sample database.
8 Please read the FAQs in Chapter 5, particularly the check list for
programmers and the information on structuring your user program.
Table continued on next page
Commentaires sur ces manuels