Mmc_Axis::waitpositioningdone - Mitsubishi MR-EM340GF User Manual

Simple motion board
Table of Contents

Advertisement

MMC_Axis::WaitPositioningDone

Waits until completion of positioning control.
unsigned long WaitPositioningDone(
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_TIMEOUT_01
MMERR_AXIS_ERROR
■Point
• This method waits inside the method until positioning control is complete.
• When "0" is set to the timeout time, the method determines positioning control to be complete, and control is returned
immediately. When positioning control is not complete, it returns MMERR_TIMEOUT_01.
• When MMC_INFINITE is designated as the timeout time, timeout is not checked. Instead, this function infinitely waits for
positioning completion.
■Supported version
API version
1.00
■Reference
StartPositioning (Page 65 MMC_Axis::StartPositioning)
StartBlockPositioning (Page 66 MMC_Axis::StartBlockPositioning)
RestartPositioning (Page 68 MMC_Axis::RestartPositioning)
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.
The set timeout time has elapsed.
An axis error occurred. Check "[Md.23] Axis error No.".
Software version
01
3 API LIBRARY DETAILS (BASIC FUNCTIONS)
*1
3.3 MMC_Axis Class
3
69

Advertisement

Table of Contents
loading

Table of Contents