Smdad1Getvraw - PEP Modular Computers Modular Computers RS485 User Manual

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

Advertisement

Chapter 5 Analog Modules

5.1.8.4 SMDAD1GetVRaw

Syntax
error_code SMDAD1GetVRaw(u_int8 PortNr, u_int8
Description
This function fetches the conversion result of a selected channel without
performing a gain or offset correction. The result is always a signed integer
value. If bipolar mode is selected, the function returns the 2's complement
value of the original read.
Input
u_int8 PortNr
u_int8 Channel
int16 *pValue
Output
error_code
Example
RetVal = SMDAD1GetVRaw(0, 2, 0x07FF);
Positive Full-Scale
March 12, 1996
SM-Port to be accessed
Number of the ADC input channel to access
(0-3)
Pointer to the location where the conversion
result will be stored
SUCCESS
E_SEEK
E-BMODE
or standard OS-9 error code (refer to the OS-9
Technical Manual Error Codes Section).
Value (16-bit HEX)
Unipolar
$07FF
+1LSB
$0001
0
$0000
©1996 PEP Modular Computers GmbH
SMART I/O User's Manual
Channel, int16 *pValue);
if module was not initialized
if the module is unknown
Bipolar
Positive Full-Scale
+1LSB
-1LSB
Negative Full-Scale
$07FF
$0001
$FFFF
$F800
Page 5 - 19
5

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Modular computers rs232Smart i/o

Table of Contents