PLC API 4.2.1.2.6 FB_CTRL_TRANSFERFUNCTION_1 This function block calculates a discrete transfer function with the first standard form shown below. The transfer function here can be of any order, n. The coefficients for the following transfer functions are stored in the parameter arrays: b z b z b z b G z z a z a z a ... ( ) ... + + + + = + + + + n n n n n n n ( 1) ( 1) 1 0 ( 1) ( 1) 1 0 - - - - Description of the transfer behavior The above transfer function is calculated with the first standard form after some transformations in each scanning step. The programmer must create the following arrays in the PLC if this function block is to be used: aNumArray :
ARRAY[0..nNumOrder] OF FLOAT; aDenArray : ARRAY[0..nDenOrder] OF FLOAT; aStructTfData : ARRAY[0..nTfOrder] OF ST_CTRL_TRANSFERFUNCTION_1_DATA; The coefficients "b 0 " to "b n " are stored in the array aNumArray . This must be organized as follows: aNumArray[0] := b0; aNumArray[1] := b1; ... aNumArray[n-1] := bn-1; aNumArray[n] := bn; The coefficients "a 0 " to "a n " are stored in the array ar_DenominatorArray . This must be organized as follows: aDenArray[0] := a0; aDenArray[1] := a1; ... aDenArray[n-1] := an-1; aDenArray[n] := an; TF4100 35 Version: 2.2.4