MC_ReadActualVelocity (FB)
FUNCTION_BLOCK MC_ReadActualVelocity
This function block returns the value of the actual velocity as long as Enable is set.
Output Valid is true when the data-output “Velocity” is valid. If Enable is reset, the data loses its validity, and all outputs are reset, no matter if new data is available.
Note
The output ActualVelocity is a signed value.
- InOut:
Scope
Name
Type
Comment
Input
EnableBOOLRead continuously on “TRUE”
Output
ValidBOOLValue is available
ErrorBOOLSignals that error has occurred within function block
ErrorIDError identification. For error details refer to Enumeration ERROR_ID
ActualVelocityLREALThe value of Actual velocity
Inout
AxisReference to axis