Mmc_Syncencoder::enablesyncencoder - Mitsubishi MR-EM340GF User Manual

Simple motion board
Table of Contents

Advertisement

MMC_SyncEncoder::EnableSyncEncoder

Enables input from the synchronous encoder axis.
unsigned long EnableSyncEncoder(
unsigned short startType
);
Detailed description
■Parameter
Argument
startType [in]
*1 Specify the following values for start method.
Value
MMC_SYNC_ENC_START
MMC_SYNC_ENC_LINKDEV_START
■Return value
Value
MMC_OK
MMERR_DEV_UNOPEN
MMERR_ARGUMENT_0
=1 to 9: Argument location
MMERR_CONDITION_SYNC_ENCODER_INVALID
MMERR_TIMEOUT_01
■Point
The operation for this method differs depending on the value set for synchronous encoder axis control start.
Value
MMC_SYNC_ENC_START
MMC_SYNC_ENC_LINKDEV_START
■Supported version
API version
1.00
■Reference
DisableSyncEncoder (Page 142 MMC_SyncEncoder::DisableSyncEncoder)
Description
*1
Start method
Description
Starts synchronous encoder axis control.
Wait to receive start request from link device.
Description
Function succeeded
The Open method of the device driver class has not been called.
The argument is outside the set range.
The settings valid flag ("[Md.325] Synchronous encoder axis status": b0) is OFF.
The timeout time (1 second) has elapsed.
Description
For synchronous encoder axis control start, the synchronous encoder axis is counter enabled by calling the function.
During this time, this method waits inside the method until input from the synchronous encoder axis is enabled.
For synchronous encoder axis start request (link device), after calling the function, synchronous encoder axis is
counter enabled by link device input. During this time, this method returns control once in a state of waiting to receive
input.
Software version
01
4 API LIBRARY DETAILS (ADVANCED SYNCHRONOUS CONTROL)
4.3 MMC_SyncEncoder Class
4
143

Advertisement

Table of Contents
loading

Table of Contents