Setting The General Dinigtal Output - ICP DAS USA I-8092F User Manual

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

Advertisement

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
occurs at the same time.
Error Code
Cause of stop
1
SOFT LIMIT+
2
SOFT LIMIT-
4
LIMIT+
8
LIMIT-
16
ALARM
32
EMERGENCY
64
Reserved
128
HOME
refer to
256
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:
axis:
nLevel
:
Return:
no
Example:
i8092MF_SET_OUT0 (1, AXIS_XY, 1);
//set the DO of X and Y to ON。
ICPDAS
48
Occurs when the forward software limit is asserted
Occurs when the reverse software limit is asserted
Occurs when the forward hardware limit is asserted
Occurs when the reverse hardware limit is asserted
Occurs when the ALARM is asserted
Occurs when the EMG is asserted
Reserved
Occurs when both Z phase and HOME are asserted
6.5.4
Occurs when the EMG(software) is asserted
Module number
Axis (Please refer to Table 2-1)
The axis can be either X and Y
DO output: 0=OFF,1=ON
means that ALARM and EMGERENCY
Explanation
35
I-8092F Software User Manual

Advertisement

Table of Contents
loading

Table of Contents