TwinCAT PLC Library Hydraulics - Version 1.4 — 4.1.5 MC_ReadAxisError_BkPlcMc (from V3.0)

PLCopen Motion Control 4.1.4 MC_ReadActualVelocity_BkPlcMc (from V3.0) The function block determines the current velocity of an axis. VAR_INPUT Enable: BOOL; END_VAR VAR_OUTPUT Valid: BOOL; Busy: BOOL; Error: BOOL; ErrorID: UDINT; Velocity: LREAL; END_VAR VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR Enable : A positive edge at this input triggers an update of the velocity value. Valid : This indicates successful determination of the velocity. Busy : This output is TRUE while the command is being processed. Error : The occurrence of an error is indicated here. ErrorID : An encoded indication of the cause of the error is provided here. Velocity : [mm/s] The actual velocity. Axis :

Here, the address of a variable of type Axis_Ref_BkPlcMc [ } 67] should be transferred. Behavior of the function block The function block is activated by a positive edge at Enable , and investigates the axis interface that has been passed to it. A number of problems can be detected and reported during this process: If the axis is already in a fault state, and if the cause lies with an encoder problem, it responds with Error and ErrorID :=the encoder's error code. The velocity is determined and reported with Valid if these checks can be carried out without problems. A negative edge at Enable clears all the pending output signals. NOTE!

This function block requires no time for executing its tasks. The output Busy will never assume the value TRUE and only exists for compatibility reasons. 4.1.5 MC_ReadAxisError_BkPlcMc (from V3.0) PLC Library Hydraulics 30 Version: 1.4