Pepper-computer Modular Computers RS485 Bedienungsanleitung Seite 271

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 320
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 270
SMART I/O Users Manual
©1996 PEP Modular Computers GmbHOctober 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.
Seitenansicht 270
1 2 ... 266 267 268 269 270 271 272 273 274 275 276 ... 319 320

Kommentare zu diesen Handbüchern

Keine Kommentare