3 smdac1openloop, 3 smdac1openloop -115 – Pepper Computer Modular Computers RS485 User Manual

Page 271

Advertising
background image

SMART I/O User’s Manual

©1996 PEP Modular Computers GmbH

October 01, 1996

Page 5 - 115

5

Chapter 5 Analog Modules

5.5.8.3 SMDAC1OpenLoop

Syntax

error_code SMDAC1OpenLoop(u_int8 PortNr, u_int8

pStatus);

Description

This function should only be used for the current version of the SM-DAC1

module and checks the wires for open loop in a 4..20mA environment. The

result is stored in a register with the following definition.

Register value: 111110

-> channel 0 connected and o.k

101111

-> channel 4 connected and o.k

Input

u_int8 PortNr

SM-Port to be accessed

u_int8 pStatus

Pointer to the location where the status is

stored:

0 -> line connected and o.k

1 -> line below 4mA

Output

error_code

SUCCESS

E_SEEK

if module was not initialised

E-BMODE

if the module is unknown

or standard OS-9 error code (refer to the OS-9

Technical Manual Error Codes Section).

Example

RetVal = SDAC1OpenLoop(0, &Status);

Note

If this function is called and requested for use with a voltage version of

the SM-DAC1 module then an error will be returned. Likewise, if a

channel is requested that is out of range then an error is returned.

Advertising
This manual is related to the following products: