PLC-API stParams : Parameter structure of the PWM element. This consists of the following elements: TYPE ST_CTRL_PWM_OUT_EXT_PARAMS : STRUCT tTaskCycleTime : TIME; (* PLC/PWM cycle time in seconds *) tPWMPeriod : TIME; (* controller cycle time in seconds *) tMinOnTime : TIME; (* min. switch on time *) tMinOffTime : TIME; (* min. switch off time *) tMinWaitTime : TIME; (* min. waiting time when switching from pos to neg or vv*) END_STRUCT END_TYPE tTaskCycleTime : 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 : Period of the PWM signal. tMinOnTime :
Minimum switch-on time. tMinOffTime : Minimum switch-off time. tMinWaitTime : Waiting time between switching between a positive and negative output signal. Requirements 5.8.6 FB_CTRL_SCALE This function block makes it possible to adjust the signal in a linear manner between two value ranges. VAR_INPUT VAR_INPUT fIn : FLOAT; END_VAR fIn : Input value for the function block. VAR_OUTPUT VAR_OUTPUT fOut : FLOAT; eErrorId : E_CTRL_ERRORCODES; bError : BOOL; END_VAR fOut : Scaled output value. eErrorId : Supplies the error number [ } 16] when the bError output is set. bError : Becomes TRUE, as soon as an error occurs. TS4100 131 Version:
1.1 Development Environment Target System PLC libraries to include TwinCAT v2.8 PC (i386) TcControllerToolbox.lib TwinCAT v2.9 from Build 947 BC [} 10] TcControllerToolbox.lb6 TwinCAT v2.9 from Build 956 BX [} 10] TcControllerToolbox.lbx