![](/images/new-backgrounds/1180387/180387261x1.webp)
Chapter 4 Digital Modules | SMART I/O User’s Manual | |||
|
|
|
|
|
|
|
|
|
|
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 = close relay
1 = open relay Bits 6 and 7 have no function.
Input |
| |
u_int8 PortNr |
| |
u_int8 *buffer |
| Pointer to buffer where data is stored |
Output |
| if the module is unknown |
error_code | SUCCESS | |
| E_BMODE | |
| or standard | |
| Technical Manual Error Codes Section). |
Example
RetVal = SMREL1SetRly(0, buffer);
4
|
|
|
|
March 12, 1996 | ©1996 PEP Modular Computers GmbH | Page 4 - 43 | |
|
|