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

  • 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 126
SMART I/O Users ManualChapter 4 Digital Modules
©1996 PEP Modular Computers GmbHMarch 12, 1996 Page 4 - 39
4
Note
If the same SM-REL1 Module is to be accessed from different tasks, the
user must make sure that the actual output status is ensured by using for
example, semaphores within OS-9.
4.3.8.2 SMREL1Init
Syntax
error_code SMREL1Init(u_int8 PortNr);
Description
This function initializes the SM-REL1 Module on port PortNr by setting the
relays to OPEN, relay LED status to OFF and the external Vcc as input.
Input
u_int8 PortNr
SM-Port to initialize
(from 0 to 10)
Output
error_code SUCCESS
E_BMODE
if the module is unknown
or standard OS-9 error code (refer to the OS-9
Technical Manual Error Codes Section).
Example
RetVal = SMREL1Init(0);
Zobrazit stránku 126
1 2 ... 122 123 124 125 126 127 128 129 130 131 132 ... 319 320

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

Žádné komentáře