TwinCAT PLC Library Hydraulics - Version 1.4 — 4.1.3 MC_ReadActualTorque_BkPlcMc (from V3.0)

PLCopen Motion Control 4.1.3 MC_ReadActualTorque_BkPlcMc (from V3.0) The function block determines the current actual force or actual pressure of an axis. VAR_INPUT Enable: BOOL; END_VAR VAR_OUTPUT Valid: BOOL; Busy: BOOL; Error: BOOL; ErrorID: UDINT; Torque: LREAL; END_VAR VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR Enable : A rising edge at this input triggers an update of the actual value. Valid : This indicates successful determination of the actual value. Busy : This output 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. Torque : The actual force or actual pressure.

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 rising 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. If these checks were completed without problem, the actual force or the actual pressure is determined, and Valid is reported. A falling 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. PLC Library Hydraulics 29 Version: 1.4