beckhoff TF4100 — 4.2.1.7.5 FB_CTRL_PWM_OUT_EXT

PLC API Outputs VAR_OUTPUT bPwmOutBitPos : BOOL; bPwmOutBitNeg : BOOL; eState : E_CTRL_STATE; bError : BOOL; eErrorId : E_CTRL_ERRORCODES; END_VAR Inputs/ outputs VAR_IN_OUT stParams : ST_CTRL_PWM_OUT_PARAMS; END_VAR stParams consists of the following elements: TYPE ST_CTRL_PWM_OUT_PARAMS: STRUCT tTaskCycleTime : TIME tPWMPeriod : TIME; bInstantPWMUpdate : BOOL; END_STRUCT END_TYPE 4.2.1.7.5 FB_CTRL_PWM_OUT_EXT This function block creates a PWM modulated signal on the basis of the input signal. Both the minimum switch-on time and the minimum switch-off time can be parameterized, in addition to the mark-to-space ratio, in this extended function block. TF4100 141 Version:

2.2.4 Name Type Description bPwmOutBitPos BOOL PWM signal, when fPwmInput > 0.0. bPwmOutBitNeg BOOL PWM signal, when fPwmInput eState E CTRL STATE _ _ State of the function block bError BOOL Supplies the error number [} 173] when the output bError is set. eErrorId E CTRL ERROR _ _ CODES Becomes TRUE, as soon as an error occurs. Name Type Description stParams ST CTRL PWM _ _ _ OUT PARAMS _ Parameter structure of the PWM element Name Type Description 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.

tPWMPeriod TIME Period of the PWM signal bInstantPWMUpd ate BOOL If this flag is TRUE, then a new input value is immediately adopted, even in the present PWM cycle.