PLC API stParams consists of the following elements: TYPE ST_CTRL_NOISE_GENERATOR_PARAMS: STRUCT tCtrlCycleTime : TIME := T#0ms; tTaskCycleTime : TIME := T#0ms; fAmplitude : FLOAT := 0; END_TYPE 4.2.1.4.8 FB_CTRL_NOTCH_FILTER The function block represents a digital notch filter. Transfer instruction 2 2 0 2 2 0 0 ( ) s w G s s ew s w + = + + TF4100 98 Version: 2.2.4 Name Type Description stParams ST CTRL NOISE _ _ _ GENERATOR _ PARAMS Parameter structure of the noise generator Name Type Description tCtrlCycleTime TIME Cycle time with which the control loop is processed. This must be greater than or equal to the TaskCycleTime.
The function block uses this input value to calculate internally whether the state and the output values have to be updated in the current cycle. tTaskCycleTime TIME Cycle time with which the function block is called. If the function block is called in every cycle this corresponds to the task cycle time of the calling task. fAmplitude FLOAT Amplitude of the output signal: A noise signal extending over the range [-fAmplitude/2.0 ... fAmplitude/2.0] is created at the function block's output.