ICPDAS
I-8092F Software User Manual
77
Return:
None
Example:
Please refer to 6.4.1
6.4.3 Read the Interrupt Occurrence
WORD
i8092MF_GET_RR3(
BYTE
cardNo,
WORD
axis
)
Description:
Read the RR3 register that reflects the occurrence of Interrupt.
Parameters:
cardNo
:
Module number
axis
:
Axis or axes (Please refer to Table 2-1)
Return:
The content of RR3 register.
RR3 Value
說明
0x002 P>=C-
Once the value o flogic / real position counter
is larger than that of COMP- register
0x004 P<C-
Once the value o flogic / real position counter
is smaller than that of COMP- register
0x008 P<C+
Once the value o flogic / real position counter
is smaller than that of COMP+ register
0x010 P>=C+
Once the value o flogic / real position counter
is larger than that of COMP+ register
0x020 C-END
Interrupt occurs at the end of the constant
speed drive or completion of Acceleration
Offset Pulse output.
0x040 C-STA
Interrupt occurs at the start of the constant
speed drive or begin of Acceleration Offset
Pulse output.
0x080
D-END Interrupt occurs when the driving is finished
Example:
i8092MF_GET_RR3
(cardNo, AXIS_X);
//read the Interrupt status of AXIS_X