Chapter 5 Analog Modules
5.5.8.3 SMDAC1OpenLoop
Syntax
error_code SMDAC1OpenLoop(u_int8 PortNr, u_int8
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
Input
u_int8 PortNr
u_int8 pStatus
Output
error_code
Example
RetVal = SDAC1OpenLoop(0, &Status);
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.
October 01, 1996
pStatus);
-> channel 0 connected and o.k
101111
-> channel 4 connected and o.k
SM-Port to be accessed
Pointer to the location where the status is
stored:
SUCCESS
E_SEEK
E-BMODE
or standard OS-9 error code (refer to the OS-9
Technical Manual Error Codes Section).
Note
©1996 PEP Modular Computers GmbH
SMART I/O User's Manual
0 -> line connected and o.k
1 -> line below 4mA
if module was not initialised
if the module is unknown
5
Page 5 - 115
Need help?
Do you have a question about the Modular Computers RS485 and is the answer not in the manual?