SMART I/O User’s Manual | 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 = relay closed
1 = relay open Bits 6 and 7 are cleared.
Input
u_int8 PortNr u_int8 *buffer
Output
error_code
Example
Pointer to Buffer where data is written
SUCCESS
E_BMODE if the module is unknown or standard 
RetVal = SMREL1GetRly(0, buffer);
  | 
  | 
  | 
  | 
Page  | 4 - 42  | ©1996 PEP Modular Computers GmbH  | March 12, 1996  | 
  | 
  | 
  |