Mmc_Axis::waitpositioningdoneintevent - Mitsubishi MR-EM340GF User Manual

Simple motion board
Table of Contents

Advertisement

MMC_Axis::WaitPositioningDoneIntEvent

Waits until the positioning complete 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 WaitPositioningDoneIntEvent(
unsigned long checkMethod,
unsigned long timeout
);
Detailed description
■Parameter
Argument
checkMethod [in]
timeout [in]
*1 Specify the following values for positioning control complete judge condition.
Value
MMC_POSITIONING_DONE_BUSY
MMC_POSITIONING_DONE_INP
■Return value
Value
MMC_OK
MMERR_DEV_UNOPEN
MMERR_ARGUMENT_0
=1 to 9: Argument location
MMERR_AXIS_ERROR
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.
■Supported version
API version
1.00
■Reference
ResetPositioningDoneIntEvent (Page 70 MMC_Axis::ResetPositioningDoneIntEvent)
SetPositioningDoneIntEvent (Page 71 MMC_Axis::SetPositioningDoneIntEvent)
3 API LIBRARY DETAILS (BASIC FUNCTIONS)
72
3.3 MMC_Axis Class
Description
Positioning control complete judge condition
Timeout time [ms] (0 to 65535)
Description
Positioning complete when BUSY signal [X10 to X1F] turns OFF.
Positioning complete when BUSY signal [X10 to X1F] turns OFF and "[Md.1190] Controller in-
position flag" turns ON.
Description
Function succeeded
The Open method of the device driver class has not been called.
The argument is outside the set range.
An axis error occurred. Check "[Md.23] Axis error No.".
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
*1

Advertisement

Table of Contents
loading

Table of Contents