PEP Modular Computers Modular Computers RS485 User Manual page 115

8 channel ac input unit micro plcs and real-time computers
Table of Contents

Advertisement

Chapter 4 Digital Modules
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
RetVal = SMDOUT1Get(0, buffer);
Buffer Explanation:
Bit Value :
March 12, 1996
SUCCESS
or standard OS-9 error code (refer to the OS-9
Technical Manual Error Codes Section).
D7
Ch.7 Ch.6 Ch.5 Ch.4 Ch.3 Ch.2 Ch.1 Ch.0
0 = Output is ON
1 = Output is OFF
©1996 PEP Modular Computers GmbH
SMART I/O User's Manual
SM-Port number to fetch data
Pointer to a buffer where data is to be
stored.
D0
4
Page 4 - 27

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Modular Computers RS485 and is the answer not in the manual?

This manual is also suitable for:

Modular computers rs232Smart i/o

Table of Contents