TwinCAT PLC Library Hydraulics - Version 1.4 — 4.4.9.2.4 MC_AxUtiSlewRateLimitter_BkPlcMc (from V3.0)

PLCopen Motion Control 4.4.9.2.3 MC_AxUtiPT2_BkPlcMc (from V3.0) The function block calculates a second-order low-pass. VAR_INPUT fInput: LREAL:=0.0; fCycletime: LREAL:=0.001; fTheta: LREAL:=1.0; fT0: LREAL:=1.0; END_VAR VAR_OUTPUT fOutput: LREAL; bError: BOOL; nErrorId: UDINT; END_VAR fInput : The raw value of the parameter to be filtered. fCycletime : [s] The cycle time of the calling PLC task. fTheta : The attenuation. fT0 : The filter time constant. fOutput : The filtered value. bError : This output indicates problems with the transferred parameters. nErrorId : In the event of an error, coded information about the type of problem is reported here.

Behavior of the function block With each call the function block checks the transferred parameters. If an invalid value is detected, the function block responds with bError and a corresponding value in nErrorId . Otherwise, the internal variables are updated with fInput, and the filtered value is returned as fOutput . 4.4.9.2.4 MC_AxUtiSlewRateLimitter_BkPlcMc (from V3.0) The function block generates a rise-limited ramp. VAR_INPUT fInput: LREAL:=0.0; fCycletime: DINT:=0; fMaxRate: DINT:=0; END_VAR VAR_OUTPUT fOutput: LREAL:=0.0; bError: BOOL:=FALSE; nErrorId: UDINT:=0; END_VAR fInput : The raw value of the parameter to be filtered. fCycletime :

[s] The cycle time of the calling PLC task in seconds. PLC Library Hydraulics 190 Version: 1.4