Reading And Clearing The Error Status - ICP DAS USA I-8092F User Manual

2-axis motion control module
Hide thumbs Also See for I-8092F:
Table of Contents

Advertisement

3.6 Reading and Clearing the ERROR Status

BYTE i8092MF_GET_ERROR(BYTE
Description:
This function checks whether an error occurs or not.
Parameters:
cardNo:
Return:
YES:
NO:
EXAMPLE:
If
(i8092MF_GET_ERROR(1) == YES)
{
//read module 1 and ERROR is found
WORD ErrorCode_X = i8092MF_GET_ERROR_CODE(1, AXIS_X);
WORD ErrorCode_Y = i8092MF_GET_ERROR_CODE(1, AXIS_Y);
if
((ErrorCode_X || ErrorCode_Y) == 256)
{
//It means that motion was stopped due to the stop command was
issued, not because any error happened. Please take some actions to
clear the malfunction; then clear the STOP status.
i8092MF_CLEAR_STOP(1);
}
}
WORD i8092MF_GET_ERROR_CODE(BYTE
Description:
This function reads the ERROR status.
Parameters:
cardNo:
axis:
ICPDAS
cardNo)
Module number
Some errors happened.
Please use i8092MF_GET_ERROR_CODE () to get more
information. If GET_ERROR_CODE =256, it means that the
motion stop was due to the "STOP" command, not because
an error happened. Please refer to
example
to clear ERROR.
No error.
Module number
Axis (Please refer to Table 2-1)
The axis can be either X and Y
6.5.5
WORD
cardNo,
34
I-8092F Software User Manual
and following
axis)

Advertisement

Table of Contents
loading

Table of Contents