
ioLogik MXIO DLL API Reference Direct I/O Command Sets
6-65
AO4K_SetSafeAction
This function code is used to set the safe action for a specific
channel.
C/C++
Arguments
Return Value
int AO4K_GetSafeAction ( int hConnection,
BYTE bytSlot,
BYTE bytChannel,
WORD wAction);
hConnection: The handle for an I/O connection. bytSlot:
Slot number of the I/O module, from 1 to 32.
bytChannel: The desired channel.
wAction: Stores the safe action of the desired A/O
channel. The values are:
0: Safe value
1: Hold last state
2: Low Limit
3: High Limit
Succeed MXIO_OK.
Fail Refer
oRe
u
nCodes.
RTD Commands
RTD_Reads
This function code is used to read the temperature values for
contiguous channels.
C/C++
Arguments
Return Value
int RTD_Reads ( 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 temperature values
of the contiguous channels. dValue[0]
represents the start channel.
When dValue is 0x8000, it means the sensor is
not wired correctly, or the measured value is
out of range. When using the RTD module for
Resistance Input, the unit is Ohm. When the
operating mode is temperature sensor, the unit
is C or F, depending on the setting. Use the
ioAdmin utility to check the current settings fo
the desired channels.
Succeed MXIO_OK.
Fail Refer to Return Codes.
Comentarios a estos manuales