EasyManua.ls Logo

PEP Modular Computers Modular Computers RS485 - Page 153

Default Icon
320 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Digital Modules
08 Jan. 98
SMART I/O User’s Manual
Page 4 - 67Manual ID 09901, Rev. Index 0500
Example
RetVal = SMACI1DeInit(0);
4.4.8.4 SMACI1Get
Syntax
error_code SMACI1Get(u_int8 PortNr, u_int8
*buffer);
Description
This function fetches the status of ALL 8 input lines of the port
PortNr and writes it to the address pointed to by buffer with bit 0
of the buffer representing input 0 of the module.
Input
u_int8 PortNr
SM-Port number to fetch data.
u_int8 *buffer
Pointer to buffer where data is to be stored.
Output
error_code SUCCESS
or OS-9 error code (refer to the OS-9 Technical Manual Error
Codes Section).
Example
RetVal = SMACI1Get(0, buffer);

Table of Contents