Moxa M-1401 Handbuch Seite 93

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 129
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 92
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-56
AO_SetSafeValue
This function code is used to set the safe value for a specific A/O
channel.
C/C++
Arguments
Return Value
int AO_SetSafeValue ( int hConnection,
BYTE bytSlot,
BYTE bytChannel,
double dValue);
hConnection: The handle for an I/O connection.
bytSlot: Slot number of the I/O module, from 1 to 32.
This parameter is inactive for the ioLogik
E2000 and R2000.
bytChannel: The desired channel.
dValue: Stores the safe value of the desired A/O
channel. The unit is Vdc for the voltage
channel and mA for the current channel.
Succeed MXIO_OK.
Fail Refer
t
oRe
t
u
r
nCodes.
AO_GetSafeRaws
This function code is used to get the raw safe values of contiguous
analog output channels.
C/C++
Arguments
Return Value
int AO_GetSafeRaws ( int hConnection,
BYTE bytSlot,
BYTE bytStartChannel,
BYTE bytCount,
WORD wValue[ ]);
hConnection: The handle for an I/O connection.
bytSlot: Slot number of the I/O module, from 1 to 32.
This parameter is inactive for the ioLogik
E2000 and R2000.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to read.
wValue: An array that stores the raw safe values of the
contiguous A/O channels. wValue[0] represents
the value of the starting channel.
Succeed MXIO_OK.
Fail Refer to Return Codes.
Seitenansicht 92
1 2 ... 88 89 90 91 92 93 94 95 96 97 98 ... 128 129

Kommentare zu diesen Handbüchern

Keine Kommentare