Pepper-computer Modular Computers RS485 Bedienungsanleitung Seite 100

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 320
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 99
SMART I/O User’s Manual
March 12, 1996
©1996 PEP Modular Computers GmbH
Page 4 - 12
Chapter 4 Digital Modules
4.1.8 ‘C’ Programming
4.1.8.1 SM-DIN1 Library
The SM-DIN1 library of functions smartio.l provide a convenient way of
accessing the SM-DIN1 module.
All functions are written in ANSI C;
Prototypes are to be found in the file din1lib.h.
Hardware Requirements
SMART I/O Base Module or Base Module and Extension unit;
• SM-DIN1 Module.
Software Requirements
The compiler from one of the following:
• Ultra C Version 1.1.2 or higher;
• FasTrak 2.0.2 or higher.
The leftmost SM-Module has number 0 assigned to it a far as programming
is concerned although physically this is slot 1!
Before a library function can be used, the function SMDIN1Init must first be
called. This allocates the requested resources. Furthermore, this function
needs to be called for each SM-DIN1 Module called within the task. Upon
completion of the application, the function SMDIN1DeInit needs to be called
for each SM-DIN1 Module that has been initialized.
In order to illustrate the use of the SM-DIN1 library, an application example
called demodin1.c can be found in the SMART I/O application directory
(normally found in /<device>/APPLIC/SMART/CMDS).
Seitenansicht 99
1 2 ... 95 96 97 98 99 100 101 102 103 104 105 ... 319 320

Kommentare zu diesen Handbüchern

Keine Kommentare