TwinCAT PLC Library Hydraulics - Version 1.4 — 4.4.9.2.1 MC_AxUtiAverageDerivative_BkPlcMc (from V3.0)

PLCopen Motion Control VAR_INPUT nStateDWord: DWORD:=0; bProtect: BOOL:=FALSE; END_VAR nStateDWord : The current state of the status double word. bProtect : The required state of the protective function. Behaviour of the function The function shows the status bit of the protective function in the transferred status double word, depending on bProtect . NOTE! The application must assign the result of the function to the status double word of the axis. An https://infosys.beckhoff.com/content/1033/tcplcLibhydraulics30/Resources/pro/1599851275.pro is available.

4.4.9.2 Filters 4.4.9.2.1 MC_AxUtiAverageDerivative_BkPlcMc (from V3.0) The function block determines the derivative of a value through numeric differentiation over more than one cycle. VAR_INPUT Input: LREAL:=0.0; MinIdx: DINT:=0; MaxIdx: DINT:=0; pBuffer: POINTER TO LREAL:=0; END_VAR VAR_OUTPUT Output: LREAL:=0.0; Error: BOOL:=FALSE; ErrorID: UDINT:=0; END_VAR VAR_INOUT Axis: Axis_Ref_BkPlcMc; END_VAR Input : The raw value of the parameter to be filtered. MinIdx : The index of the first filter buffer element to be used. MaxIdx : The index of the last filter buffer element to be used. pBuffer : The address of the first filter buffer element. Axis :

Here, the address of a variable of type Axis_Ref_BkPlcMc [ } 67] should be transferred. Output : The filtered value. Error : This output indicates problems with the transferred parameters. ErrorID : In the event of an error, coded information about the type of problem is reported here. PLC Library Hydraulics 188 Version: 1.4