MCA_MoveVelocityContinuous (FB)
FUNCTION_BLOCK MCA_MoveVelocityContinuous
This function block commands a never ending controlled motion at a specified velocity.
The difference to function block MC_MoveVelocity is that the values for Velocity, Acceleration and Deceleration can be modified continuously. If there is a change of the velocity, the reaction on the signal InVelocity will be delayed for 1 cycle.
To stop the motion, the function block has to be interrupted by another function block issuing a new command.
The signal “InVelocity” is set when the commanded velocity equals the velocity input.
Velocity, Acceleration, Deceleration and Jerk might be changed and will be used continuously
In combination with MC_MoveSuperimposed, the output “InVelocity” stays TRUE once the velocity setpoint of the axis has reached the commanded velocity
Note
If there is no configuration done at the input Direction or Axis_Parameter.paraReverseDirection, by default movement will start in the counter clockwise direction.
- InOut:
Scope
Name
Type
Comment
Input
ExecuteBOOLStarts the function block at rising edge
VelocityLREAL[u/s] Value of the maximum velocity (not necessarily reached). Range: >0
AccelerationLREAL[u/s°°2] Value of the acceleration (increasing energy of the motor). Range: >0. If value = 0, Acceleration will be equal to parameter paraMaxAccelerationAppl.If value > 0 and <= 1,Acceleration will be limited to 1.
DecelerationLREAL[u/s°°2] Value of the deceleration (decreasing energy of the motor). Range: >0. If value = 0, Deceleration will be equal to parameter paraMaxDecelerationAppl.If value > 0 and <= 1,Deceleration will be limited to 1.
JerkLREAL[u/s°°3] Value of the jerk. Range: >=0
Direction- Direction input: Positive, Negative, otherwise use Current as default
If there is no configuration done at input Direction or Axis_Parameter.paraReverseDirection, by default movement will start in counter clockwise direction
BufferModeNot supported, default mcABORTING used
Output
InVelocityBOOLCommanded velocity is reached
BusyBOOLThe function block is not finished
ActiveBOOLIndicates that the function block has control on the axis
CommandAbortedBOOLCommand is aborted by another command from other PLCopen function block
ErrorBOOLSignals that error has occurred within function block
ErrorIDError identification. For error details refer to Enumeration ERROR_ID
Inout
AxisReference to axis