Mc_Setposition Class - Mitsubishi MR-EM340GF User Manual

Simple motion board
Table of Contents

Advertisement

MC_SetPosition class

Changes the current position (command position and feedback position) of the specified axis.
class MC_SetPosition : public MC_FunctionBlock
Member
■Input
Name
Variable name
Axis information
Axis
Execute command
Execute
Target position
Position
Relative position
Relative
selection
*1 Refer to function block units. (Page 149 Function block units)
■Output
Name
Variable name
Execution complete
Done
Executing
Busy
Error
Error
Error code
ErrorID
Timing chart
■Normal completion
Execute
Busy
Done
Error
ErrorID
■Abnormal completion
Execute
Busy
Done
Error
ErrorID
Error code
Value
MMERR_FB_AXIS_ERROR
MMERR_FB_START_NOT_POSSIBLE
MMERR_FB_AXIS_STOPPED
MMERR_FB_AXIS_NUMBER
MMERR_FB_POSITION
Data type
Fetch
Valid range Description
AXIS_REF*
bool
Startup only
ON/OFF
*1
double
bool
ON/OFF
Data type
Initial value
bool
OFF
bool
OFF
bool
OFF
unsigned short
0
0
Error code
Description
An error occurred.
Positioning can not be started.
The axis is in a Stopping state, or the stop command for the axis is ON.
A value outside the range is set to the axis No.
A value outside the range is set to the target position, and movement amount.
Specifies the pointer to the axis information class object.
Executes the function block when ON.
Sets the target position.
Sets relative distance when Relative=ON, and absolute position
with Relative=OFF.
Description
Indicates the current value change is complete.
Indicates the function block is in operation.
When ON, this indicates an error occurrence in the function
block.
Returns the error code of the error that occurred in the function
block.
5 API LIBRARY DETAILS (FUNCTION BLOCK)
5.1 MC_FunctionBlock Class
5
173

Advertisement

Table of Contents
loading

Table of Contents