Mmc_Controller::waitintevent - Mitsubishi MR-EM340GF User Manual

Simple motion board
Table of Contents

Advertisement

MMC_Controller::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]
■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.
• The operation of the axis class WaitIntEvent method is the same as the operation of this method.
■Supported version
API library
1.00
■Reference
ResetIntEvent (Page 50 MMC_Controller::ResetIntEvent)
SetIntEvent (Page 51 MMC_Controller::SetIntEvent)
3 API LIBRARY DETAILS (BASIC FUNCTIONS)
52
3.2 MMC_Controller Class
Description
Interrupt factor No. (9 to 64)
Timeout time [ms](0 to 65535)
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