
ICPDAS
I-8092F Software User Manual
35
Return:
0 no error
For non-zero return values, please refer to the following table. If there are
not only one errors, the return value becomes the sum of these error code
values.
For example, a return code
48
means that ALARM and EMGERENCY
occurs at the same time.
Error Code Cause of stop
Explanation
1
SOFT LIMIT+
Occurs when the forward software limit is asserted
2
SOFT LIMIT-
Occurs when the reverse software limit is asserted
4
LIMIT+
Occurs when the forward hardware limit is asserted
8
LIMIT-
Occurs when the reverse hardware limit is asserted
16
ALARM
Occurs when the ALARM is asserted
32
EMERGENCY
Occurs when the EMG is asserted
64 Reserved
Reserved
128 HOME
Occurs when both Z phase and HOME are asserted
256
refer to
6.5.4
Occurs when the EMG(software) is asserted
Example:
if
(i8092MF_GET_ ERROR_CODE(1, AXIS_X) & 10 )
{
//Check if either the software limit or hardware limit (2+8)
//in the reverse direction is asserted.
}
3.7 Setting the general Dinigtal output
void
i8092MF_SET_OUT0(BYTE cardNo, WORD axis, WORD nLevel)
Description:
This Function sets the Digital Output status.
Paramenter:
cardNo
:
Module number
axis
:
Axis (Please refer to Table 2-1)
The axis can be either X and Y
nLevel
:
DO output: 0=OFF,1=ON
Return:
no
Example:
i8092MF_SET_OUT0 (1, AXIS_XY, 1);
//set the DO of X and Y to ON
。