This function block starts the operating mode Profile Velocity. In the operating mode Profile Velocity, a movement is made with a target velocity. The reference value for the target velocity is supplied via the input Velocity. When the target velocity is reached, the output InVelocity is set to TRUE.
Input |
Data type |
Description |
---|---|---|
Execute |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. A rising edge of the input Execute starts the function block. The function block continues execution and the output Busy is set to TRUE. This function block can be restarted while it is executed. The target values are overwritten by the new values at the point in time the rising edge occurs. |
Velocity |
DINT |
Value range: -2147483648...2147483647 Default value: 0 Target velocity in user-defined units.
NOTE: For Altivar, the values for LowFrequency and HighFrequency are set in the function block SetFrequencyRange_ATV.
If the value for the target velocity Velocity is less than the value for LowFrequency, the movement is made with the velocity value for LowFrequency. No error is detected. If the value for the target velocity Velocity is greater than the value for HighFrequency, the movement is made with the velocity value for HighFrequency. No error is detected. |
Output |
Data type |
Description |
---|---|---|
InVelocity |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE.
|
Busy |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE.
NOTE: The output Busy remains TRUE even when the target velocity has been reached or Execute becomes FALSE. The output Busy is set to FALSE as soon as another function block such as MC_Stop is executed.
|
CommandAborted |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE.
|
Error |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE.
|
ErrorID |
WORD |
Returns the value of a diagnostic code. Refer to Library Diagnostic Codes. If the value is 0 and if the output Error of this function block is set to TRUE, then the diagnostic code can be read with the output AxisErrorID of the function block MC_ReadAxisError. |
Input/Output |
Data type |
Description |
---|---|---|
Axis |
Axis_Ref |
Reference to the axis (instance) for which the function block is to be executed (corresponds to the name of the axis). The name of the axis must be defined in the EcoStruxure Machine Expert . |
If you have activated this function block, simultaneous use of the Control_ATV function block may lead to unintended behavior.
WARNING | |
---|---|
The output Busy remains TRUE even if the target velocity has been reached or the input Execute is set to FALSE. The output Busy is set to FALSE as soon as another function block such as MC_Stop is executed.
In the operating mode Profile Velocity, a movement beyond the movement range is possible. In the case of a movement beyond the movement range, the reference point established by homing becomes invalid.
This function block uses library-specific acceleration and deceleration values for LXM32M (EtherNet/IP and Modbus TCP) and for Lexium ILA, ILE and ILS integrated drives (EtherNet/IP only). This means that pre-configured values for these parameters (for example, via the commissioning tool) are overwritten when this function block is executed.
The default acceleration and deceleration values written by this function block are as follows:
The default values for acceleration are:
600 user-defined units for LXM32M
600 user-defined units for Lexium ILA, ILE and ILS integrated drives
The default values for deceleration are:
600 user-defined units for LXM32M
750 user-defined units for Lexium ILA, ILE and ILS integrated drives
If you require other acceleration and/or deceleration values, you must use the vendor-specific function blocks to do so. Use the function blocks SetDriveRamp_LXM32 or SetDriveRamp_ILX to define the acceleration and deceleration. The function block has to be executed only once if a change of the ramp values is required.