FUNCTION_BLOCK MC_ReadActualVelocity
As long as Enable** remains ``TRUE, the function block will return the value of the current velocity. Valid will be set to TRUE, as soon as data output Velocity becomes valid. If Enable is reset, the data will loose its validity and Valid will also be reset regardless of new data available.
InOut:
Scope |
Name |
Type |
Initial |
Comment |
Inout |
Axis |
Reference to axis |
||
Input |
Enable |
BOOL |
FALSE |
While TRUE, the parameter values are read out continuously. |
Output |
Valid |
BOOL |
FALSE |
TRUE: Valid outputs are available. |
Busy |
BOOL |
FALSE |
TRUE: Execution of function block has not been finished yet. |
|
Error |
BOOL |
FALSE |
TRUE: Error has occurred within the function block. |
|
ErrorID |
SMC_ERROR |
0 |
Error identification |
|
Velocity |
LREAL |
0 |
Value of current velocity (in axis’ unit [u/s]) |