Pepper-computer Modular Computers RS485 Manual de usuario Pagina 130

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 320
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 129
SMART I/O User’s Manual
March 12, 1996
©1996 PEP Modular Computers GmbH
Page 4 - 42
Chapter 4 Digital Modules
4.3.8.5 SMREL1GetRly
Syntax
error_code SMREL1GetRly(u_int8 PortNr,
u_int8 *buffer);
Description
This function gets the input of the port PortNr and writes it to the buffer.
Bits 0-5 of the buffer reflect the Relay setting:
0 = relay closed
1 = relay open
Bits 6 and 7 are cleared.
Input
u_int8 PortNr
SM-Port number to get data
u_int8 *buffer
Pointer to Buffer where data is written
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 = SMREL1GetRly(0, buffer);
Vista de pagina 129
1 2 ... 125 126 127 128 129 130 131 132 133 134 135 ... 319 320

Comentarios a estos manuales

Sin comentarios