Pepper-computer Modular Computers RS485 Manuale Utente Pagina 116

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 320
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 115
SMART I/O User’s Manual
March 12, 1996
©1996 PEP Modular Computers GmbH
Page 4 - 28
Chapter 4 Digital Modules
4.2.8.5 SMDOUT1Set
Syntax
error_code SMDOUT1Set(u_int8 PortNr, u_int8 *buffer);
Description
This function sets the output of the port PortNr with the contents of the
address pointed to by buffer. When writing to this buffer, observe that all 8
outputs are set at the same time.
Input
u_int8 PortNr
SM-Port number to fetch data
u_int8 *buffer
Pointer to buffer where the data is to
be written
Output
error_code SUCCESS
or standard OS-9 error code (refer to the OS-9
Technical Manual Error Codes Section).
Example
RetVal = SMDOUT1Set(0, buffer);
Buffer Explanation:
D7 D0
Ch.7 Ch.6 Ch.5 Ch.4 Ch.3 Ch.2 Ch.1 Ch.0
Bit Value : 0 = Output is ON
1 = Output is OFF
Vedere la pagina 115
1 2 ... 111 112 113 114 115 116 117 118 119 120 121 ... 319 320

Commenti su questo manuale

Nessun commento