
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-58
AO_SetSafeRaw
This function code is used to set the safe value for a specific A/O
channel in raw data format.
C/C++
Arguments
Return Value
int AO_SetSafeRaw ( 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 desired channel.
wValue: Stores the safe value for the desired channel in
raw data format.
Succeed MXIO_OK.
Fail Refer
oRe
u
nCodes.
Analog Output Commands for ioLogik E2000, R2000
AO2K_GetRanges
This function code is used to get the ranges of contiguous A/O
channels.
C/C++
Arguments
Return Value
int AO2K_GetRanges ( int hConnection,
BYTE bytStartChannel,
BYTE bytCount,
WORD wRange[ ]);
hConnection: The handle for an I/O connection.
bytStartChannel: Specifies the starting channel.
bytCount: The number of channels to read.
wRange: An array that stores theranges of the
contiguous A/O channels. wRange[0]
represents the value of the starting channel. The
values are:
0: 0-10 VDC
1: 4-20 mA
0xff: disable
Others : return Illegal Data Value
Succeed MXIO_OK.
Fail Refer
oRe
u
nCodes.
Comentarios a estos manuales