beckhoff TS4100 — 5.5.6 FB_CTRL_NOISE_GENERATOR (only on a PC system)

PLC-API 5.5.6 FB_CTRL_NOISE_GENERATOR (only on a PC system) This function block generates a noise signal on the basis of the pseudo-random number in the range [ - fAmplitude/2 ... fAmplitude/2 ] . Output signal: Fig. 3: FB_CTRL_NOISE_GENERATOR_OUT Output signal with an amplitude of 5.0. VAR_INPUT VAR_INPUT fManSyncValue : FLOAT; eMode : E_CTRL_MODE; END_VAR fManSyncValue : Input magnitude whose value is sent to the output in manual mode. eMode : Input that specifies the block's operating mode [ } 16] . VAR_OUTPUT VAR_OUTPUT fOut : FLOAT; eState : E_CTRL_STATE; eErrorId : E_CTRL_ERRORCODES; bError : BOOL; END_VAR fOut : Output of the noise generator. eState : State of the function block.

eErrorId : Supplies the error number [ } 16] when the bError output is set. bError : Becomes TRUE, as soon as an error occurs. TS4100 87 Version: 1.1