Moxa M-1401 Manuál Strana 91

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 129
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 90
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-54
AO_WriteRaw
This function code is used to write the raw data value of a specific
analog output channel.
C/C++
Arguments
Return Value
int AO_WriteRaw ( int hConnection,
BYTE bytSlot,
BYTE bytChannel,
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.
bytChannel: The specific channel to be written.
wValue: Stores the raw data value for the desired analog
output channel.
Succeed MXIO_OK.
Fail Refer
t
oRe
t
u
r
nCodes.
AO_GetSafeValues
This function code is used to get the safe values of contiguous
analog output channels.
C/C++
Arguments
Return Value
int AO_GetSafeValues ( int hConnection,
BYTE bytSlot,
BYTE bytStartChannel,
BYTE bytCount,
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.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to read.
dValue: An array that stores the safe values for the
contiguous A/O channels. dValue[0]
represents the value of the starting 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.
Zobrazit stránku 90
1 2 ... 86 87 88 89 90 91 92 93 94 95 96 ... 128 129

Komentáře k této Příručce

Žádné komentáře