PLC API TYPE ST_CTRL_MULTIPLE_PWM_OUT_DATA : STRUCT Internal structure. This must not be written to. END_STRUCT END_TYPE 4.2.1.7.4 FB_CTRL_PWM_OUT This function block creates a PWM modulated signal on the basis of the input signal. Description of the output behavior This function block creates a PWM signal at the outputs with a mark-to-space ratio corresponding to the fPwmInput input. The mark-to-space ratio is specified at the input in %; the range from -100% to 100% is available. If a positive value is specified, the pulse width modulated signal is made available at the bPwmOutBitPos output. If the specified mark-to-space ratio is negative, the signal is output at bPwmOutBitNeg .
These two signals therefore make it possible to control two different actuators, depending on the arithmetic sign. If the bInstantPWMUpdate is set to TRUE it is possible to adopt a new input value instantly. The new input value, in other words, is effective even in the current PWM cycle. If this parameter is FALSE, then a new input value is only adopted at the start of a new PWM cycle. VAR_INPUT fPwmInput : FLOAT; eMode : E_CTRL_MODE; END_VAR Inputs TF4100 140 Version: 2.2.4 Name Type Description fPwmInput FLOAT Input value eMode E CTRL MODE _ _ Input that specifies the operation mode of the function block.