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

  • 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 130
SMART I/O Users ManualChapter 4 Digital Modules
©1996 PEP Modular Computers GmbHMarch 12, 1996 Page 4 - 43
4
4.3.8.6 SMREL1SetRly
Syntax
error_code SMREL1SetRly(u_int8 PortNr,
u_int8 *buffer);
Description
This function sets the output of the port PortNr with the buffer contents.
Bits 0-5 of the buffer are used to set the Relays:
0 = close relay
1 = open relay
Bits 6 and 7 have no function.
Input
u_int8 PortNr
SM-Port number to set data
u_int8 *buffer
Pointer to buffer where data is stored
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 = SMREL1SetRly(0, buffer);
Zobrazit stránku 130
1 2 ... 126 127 128 129 130 131 132 133 134 135 136 ... 319 320

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

Žádné komentáře