Mmc_Syncencoder::changesyncencoderposition - Mitsubishi MR-EM340GF User Manual

Simple motion board
Table of Contents

Advertisement

MMC_SyncEncoder::ChangeSyncEncoderPosition

Changes the synchronous encoder axis current value and synchronous encoder axis current value per cycle.
unsigned long ChangeSyncEncoderPosition(
unsigned short startType,
long newPosition
);
Detailed description
■Parameter
Argument
startType [in]
newPosition [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
• Refer to the following for setting values (unit, setting range) of "[Cd.322] Synchronous encoder axis current value setting
address".
Simple Motion Board User's Manual (Advanced Synchronous Control)
■Supported version
API version
1.00
■Reference
None.
Description
*1
Start method
[Cd.322] Synchronous encoder axis current value setting address
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 current value change is executed by
calling the function. During this time, this method waits inside the method until the current value change is complete.
For synchronous encoder axis start request (link device), after calling the function, synchronous encoder axis control
is started 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
141

Advertisement

Table of Contents
loading

Table of Contents