Pepper-computer Modular Computers RS485 Bedienungsanleitung Seite 115

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 320
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 114
SMART I/O Users Manual
©1996 PEP Modular Computers GmbHMarch 12, 1996 Page 4 - 27
4
Chapter 4 Digital Modules
4.2.8.4 SMDOUT1Get
Syntax
error_code SMDOUT1Get(u_int8 PortNr, u_int8 *buffer);
Description
This function fetches the output status of the port PortNr and writes it to the
memory location pointed to by buffer. This buffer shows the status of all 8
outputs with bit 0 representing output 0 of the module.
Input
u_int8 PortNr
SM-Port number to fetch data
u_int8 *buffer
Pointer to a buffer where data is to be
stored.
Output
error_code SUCCESS
or standard OS-9 error code (refer to the OS-9
Technical Manual Error Codes Section).
Example
RetVal = SMDOUT1Get(0, buffer);
Buffer Explanation:
D7 D0
Ch.7 Ch.6 Ch.5 Ch.4 Ch.3 Ch.2 Ch.1 Ch.0
Bit Value : 0 = Output is ON
1 = Output is OFF
Seitenansicht 114
1 2 ... 110 111 112 113 114 115 116 117 118 119 120 ... 319 320

Kommentare zu diesen Handbüchern

Keine Kommentare