PLC API VAR_IN_OUT stParams : ST_CTRL_PWM_OUT_EXT_PARAMS; END_VAR Inputs/ outputs stParams consists of the following elements: TYPE ST_CTRL_PWM_OUT_EXT_PARAMS : STRUCT tTaskCycleTime : TIME; tPWMPeriod : TIME; tMinOnTime : TIME; tMinOffTime : TIME; tMinWaitTime : TIME; END_STRUCT END_TYPE 4.2.1.7.6 FB_CTRL_SCALE This function block makes it possible to adjust the signal in a linear manner between two value ranges. Inputs VAR_INPUT fIn : FLOAT; END_VAR TF4100 144 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 EXT _ _ 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 tMinOnTime TIME Minimum switch-on time tMinOffTime TIME Minimum switch-off time tMinWaitTime TIME Waiting time between the switching actions between a positive and negative output signal Name Type Description fIn FLOAT Input value for the function block