Rockwell-automation 2098-UWCPRG Ultraware Software User Manual Bedienungsanleitung Seite 303

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 354
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 302
Rockwell Automation Publication 2098-UM001G-EN-P - February 2011 305
Creating and Running Programs Chapter 6
Using Header Files
A header file is a text file that contains C programming language code, which
Ultraware software uses to create an executable program file for an Ultra5000
drive. A header file is identified by its .h extension and contains external
declarations of variables and functions that the source file can use. Each header
file may contain:
# include statements, (which refer to other header files - identified by
their .h extensions), and
the C code declarations.
You can move a header file to an Ultra5000 drive's Archives branch for storage.
Creating a New Header File
To create a new header file, perform this step.
1. Use one of these commands:
Click Header File in the Insert menu.
Click the project in the Workspace window, and then right-click Insert
Header File.
A new header file appears in the selected place in the Workspace window. The
name of the new header file is Header.h or (if Header.h already exists) Headern.h,
where n is the lowest integer that creates a unique header file name within the
selected project.
Once a header file is created, you can configure its parameters (for example,
change its name), and edit its contents.
Renaming a Header File
To rename a header file, perform these steps.
1. Click the header file in the Workspace window.
2. Use one of these commands:
Click Properties in the File menu.
Right-click Properties from the pop-up menu.
Double-click the selected source file.
Seitenansicht 302
1 2 ... 298 299 300 301 302 303 304 305 306 307 308 ... 353 354

Kommentare zu diesen Handbüchern

Keine Kommentare