![background image](http://html2.mh-extra.com/html/icp-das-usa/i-8092f/i-8092f_user-manual_3531635032.webp)
ICPDAS
I-8092F Software User Manual
32
3.5 Reading the DI Status
BYTE
i8092MF_GET_DI(
BYTE
cardNo
,
WORD
axis
,
WORD
nType
)
Description:
This function reads the digital input (DI) status.
Parameters:
cardNo
:
Module number
axis
:
Axis (Please refer to Table 2-1)
The axis can be either X and Y
nType
:
0 DRIVING
(Check whether the axis is driving or not.)
1 LIMIT+
(Check whether the limit+ is engaged or not.)
2
LIMIT-
(Check
whether
the limit- is engaged or not.)
3 EMERGENCY (Check whether EMG signal is on or not.)
4 ALARM
(Check the ALARM input signal.)
5 HOME
(Check the HOME input signal)
6 NHOME
(Check the Near HOME input signal)
7 IN3
(Check the IN3 input signal)
8 INPOS
(Check the INPOS input signal)
9 INDEX
(Check the encoder Z-phase input signal)
Return:
YES on
NO
off
Example:
if
(i8092MF_GET_DI(1, AXIS_X, 1) == YES)
{
//get the status of limit+ sensor of X axis on module 1
}
WORD
i8092MF_GET_DI_ALL(
BYTE
cardNo
,
WORD
axis
)
Description:
This function reads All digital inputs (DI) status.
Parameters:
cardNo
:
Module number
axis
:
Axis (Please refer to Table 2-1)
The axis can be either X and Y