Pepper-computer Modular Computers RS485 Uživatelský manuál Strana 311

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 320
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 310
SMART I/O Users Manual
©1996 PEP Modular Computers GmbHOctober 01, 1996 Page 6 - 29
6
Chapter 6 Communications Modules
6.2.12 ‘C’ Programming
6.2.12.1 SM-SSI Library
The SM-SSI library of functions smartio.l provide a convenient way of
accessing the SM-SSI module.
All functions are written in ANSI C;
• Prototypes are to be found in the file ssilib.h.
Hardware Requirements
• SMART I/O Base Module or Base Module and Extension unit;
• SM-SSI1 Module.
Software Requirements
The compiler from one of the following:
• Ultra C Version 1.1.2 or higher;
• FasTrak 2.02 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 SMSSIInit must first be
called. This allocates the requested resources. Furthermore, this function
needs to be called for each SM-SSI Module called within the task. Upon
completion of the application, the function SMSSIDeInit needs to be called
for each SM-SSI Module that has been initialized.
In order to illustrate the use of the SM-SSI library, an application example
called demssi.c can be found in the SMART I/O application directory (nor-
mally found in /<device>/APPLIC/SMART/CMDS).
Zobrazit stránku 310
1 2 ... 306 307 308 309 310 311 312 313 314 315 316 ... 319 320

Komentáře k této Příručce

Žádné komentáře