PLC API 4.2.1.4.7 FB_CTRL_NOISE_GENERATOR This function block generates a noise signal on the basis of the pseudo-random number in the range [- fAmplitude ... fAmplitude]. Output signal Output signal with an amplitude of 5.0. Inputs VAR_INPUT fManSyncValue : FLOAT; eMode : E_CTRL_MODE; END_VAR Outputs VAR_OUTPUT fOut : FLOAT; eState : E_CTRL_STATE; eErrorId : E_CTRL_ERRORCODES; bError : BOOL; END_VAR Inputs/ outputs VAR_IN_OUT stParams : ST_CTRL_NOISE_GENERATOR_PARAMS; END_VAR TF4100 97 Version: 2.2.4 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. tT1 TIME T1, see G(s). tT2 TIME T2, see G(s). Name Type Description fManSyncValue FLOAT Input value that is output at the output in manual mode. eMode E CTRL MODE _ _ Input that specifies the operation mode [} 173] of the function block.
Name Type Description fOut FLOAT Output of the noise generator eState E CTRL STATE _ _ State of the function block eErrorId E CTRL ERROR _ _ CODES Supplies the error number [} 173] when the output bError is set. bError BOOL Becomes TRUE, as soon as an error occurs.