Mc_Movevelocity Class - Mitsubishi MR-EM340GF User Manual

Simple motion board
Table of Contents

Advertisement

MC_MoveVelocity class

Executes speed control for the specified axis at the specified speed.
class MC_MoveVelocity : public MC_FunctionBlock
Member
■Input
Name
Variable name
Axis information
Axis
Execute command
Execute
Target speed
Velocity
Acceleration time
Acceleration
Deceleration time
Deceleration
Rotation direction
Direction
*1 Refer to function block units. (Page 149 Function block units)
■Output
Name
Variable name
Target speed
InVelocity
reached
Executing
Busy
Controlling
Active
Execution cancel
CommandAborted
Error
Error
Error code
ErrorID
Timing chart
■Normal completion
Execute
Busy
Active
InVelocity
CommandAborted
Error
ErrorID
Velocity
Data type
Fetch
Valid range Description
AXIS_REF*
bool
Startup only
ON/OFF
*1
double
unsigned short
0 to 65535
[ms]
unsigned short
short
1: Forward
2: Reverse
Data type
Initial value
bool
OFF
bool
OFF
bool
OFF
bool
OFF
bool
OFF
unsigned short
0
0
Specifies the pointer to the axis information class object.
Executes the function block when ON.
Sets the command speed.
Sets the time to reach the speed limit value from speed 0.
Sets the time to speed 0 from the speed limit value.
Specifies rotation direction.
Description
Indicates the specified speed has been reached.
Indicates the function block is in operation.
Indicates the function block is controlling the axis.
Indicates the execution is cancelled by another function block.
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
169

Advertisement

Table of Contents
loading

Table of Contents