![](/images/new-backgrounds/1180387/180387229x1.webp)
Chapter 4 Digital Modules | SMART I/O User’s Manual | |||
|
|
|
|
|
|
|
|
|
|
4.2.8.4 SMDOUT1Get
Syntax
error_code SMDOUT1Get(u_int8 PortNr, u_int8 *buffer);
Description
This function fetches the output status of the port PortNr and writes it to the memory location pointed to by buffer. This buffer shows the status of all 8 outputs with bit 0 representing output 0 of the module.
Input
u_int8 PortNr u_int8 *buffer
Output
error_code
Example
stored.4
SUCCESS
or standard
RetVal = SMDOUT1Get(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
|
|
|
|
March 12, 1996 | ©1996 PEP Modular Computers GmbH | Page 4 - 27 | |
|
|