Chapter 4 Digital Modules
4.3.8.6 SMREL1SetRly
Syntax
error_code SMREL1SetRly(u_int8 PortNr,
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:
Bits 6 and 7 have no function.
Input
u_int8 PortNr
u_int8 *buffer
Output
error_code
Example
RetVal = SMREL1SetRly(0, buffer);
March 12, 1996
0 = close relay
1 = open relay
SUCCESS
E_BMODE
or standard OS-9 error code (refer to the OS-9
Technical Manual Error Codes Section).
©1996 PEP Modular Computers GmbH
SMART I/O User's Manual
u_int8 *buffer);
SM-Port number to set data
Pointer to buffer where data is stored
if the module is unknown
4
Page 4 - 43
Need help?
Do you have a question about the Modular Computers RS485 and is the answer not in the manual?