Mmc_Axis::waitintevent - Mitsubishi MR-EM340GF User Manual

Simple motion board
Table of Contents

Advertisement

MMC_Axis::WaitIntEvent

Waits until the interrupt event is in a signaled state. This function is used to wait for the interrupt from the Simple Motion board
for the designated interrupt factor.
unsigned long WaitIntEvent(
unsigned long intNumber,
unsigned long timeout
);
Detailed description
■Parameter
Argument
intNumber [in]
timeout [in]
*1 Specify the following values for interrupt factor No.
Value
MMC_INTFACTOR_ERROR
MMC_INTFACTOR_WARNING
9 to 64
■Return value
Value
MMC_OK
MMERR_DEV_UNOPEN
MMERR_ARGUMENT_0
=1 to 9: Argument location
MMERR_INT_NOT_START_DRIVER
MMERR_WIN_WAIT_FOR_SINGLE_OBJECT
MMERR_INT_TERMINATE_DRIVER
MMERR_INT_TERMINATE_NOTIFY_EVENT
MMERR_TIMEOUT_01
MMERR_INT_SET_HOST_APPLICATION_EVENT
■Point
• When MMC_INFINITE is designated as the timeout time, timeout is not checked. Instead, this function infinitely waits until
the interrupt event occurs.
• The interrupt factor No. (1 to 8) is used inside the API library therefore it cannot be used by the user program.
• When using interrupt factor No. (9 to 64), the interrupt parameter must be set by the SetInterruptParameter method
beforehand.
• When waiting for positioning complete interrupt events (BUSY signal [X10 to X1F] OFF edge, "[Md.1190] Controller in-
position flag" ON edge), use the WaitPositioningDoneIntEvent method instead of this method.
• The operation of the controller class WaitIntEvent method is the same as the operation of this method.
■Supported version
API version
1.00
■Reference
ResetIntEvent (Page 84 MMC_Axis::ResetIntEvent)
SetIntEvent (Page 85 MMC_Axis::SetIntEvent)
3 API LIBRARY DETAILS (BASIC FUNCTIONS)
86
3.3 MMC_Axis Class
Description
*1
Interrupt factor No.
Timeout time [ms] (0 to 65535)
Description
Axis error occurrence
Axis warning occurrence
Interrupt factor
Description
Function succeeded
The Open method of the device driver class has not been called.
The argument is outside the set range.
The interrupt driver is stopped. Call the StartInterrupt method.
An error occurred in the WaitForSingleObject function (Win32API). Call the GetLastError
function of Win32API and confirm the error details.
The EndInterrupt method was called while the interrupt for the designated event factor was
being confirmed.
An error occurred in the interrupt event notification thread while the interrupt for the designated
event factor was being confirmed.
While the interrupt for the designated event factor was being waited, the set timeout time
elapsed.
While the interrupt for the designated event factor was being waited, a method which releases
the standby status was called from the user program.
Software version
01

Advertisement

Table of Contents
loading

Table of Contents