Smdad1Putv - PEP Modular Computers Modular Computers RS485 User Manual

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

Advertisement

SMART I/O User's Manual

5.1.8.7 SMDAD1PutV

Syntax
error_code SMDAD1PutV(u_int8 PortNr, u_int8 Channel,
Description
This function sets the selected DAC channel to the chosen value. A gain and
offset correction is performed with the use of the automatically selected
conversion table depending whether a user-defined table has been specified
or not. Hence, if a user-defined table exists then this will be used, otherwise
the default factory set table will be used.
Input
u_int8 PortNr
u_int8 Channel
int16 Value
Output
error_code
Example
RetVal = SMDAD1PutV(0, 1, 0x7FF);
Unipolar
Positive Full-Scale
+1LSB
0
Page 5 - 22
int16 Value);
SM-Port number to be accessed
Number of the DAC output channel to access
(0-1)
Value to be written
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)
$0FFF
Positive Full-Scale
$0001
$0000
Negative Full-Scale
©1996 PEP Modular Computers GmbH
Chapter 5 Analog Modules
if module was not initialized
if the module is unknown
Bipolar
$07FF
+1LSB
$0001
0
$0000
-1LSB
$FFFF
$F800
March 12, 1996

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