MC_ReadActualVelocity (FB)

FUNCTION_BLOCK MC_ReadActualVelocity

This function block returns the value of the actual velocity as long as Enable is set.

../../../../../../_images/plcopen.png

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

Enable

BOOL

Read continuously on “TRUE”

Output

Valid

BOOL

Value is available

Error

BOOL

Signals that error has occurred within function block

ErrorID

ERROR_ID

Error identification. For error details refer to Enumeration ERROR_ID

ActualVelocity

LREAL

The value of Actual velocity

Inout

Axis

Axis_Ref

Reference to axis