PLC-API eMode : Input that specifies the block's operating mode. VAR_OUTPUT VAR_OUTPUT bPwmOutBitPos : BOOL; (* PWM output bit *) bPwmOutBitNeg : BOOL; (* PWM output bit *) eState : E_CTRL_STATE; bError : BOOL; eErrorId : E_CTRL_ERRORCODES; END_VAR bPwmOutBitPos : PWM signal, when fPwmInput > 0.0. bPwmOutBitNeg : PWM signal, when fPwmInput 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. VAR_IN_OUT VAR_IN_OUT stParams : ST_CTRL_PWM_OUT_PARAMS; END_VAR stParams : Parameter structure of the PWM element. This consists of the following elements: TYPE ST_CTRL_PWM_OUT_PARAMS:
STRUCT tTaskCycleTime : TIME (* task cycle time [TIME] *) tPWMPeriod : TIME; (* PWM period duration [TIME] *) bInstantPWMUpdate : BOOL; 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. bInstantPWMUpdate : If this flag is TRUE, then a new input value is immediately adopted, even in the present PWM cycle. Requirements 5.8.5 FB_CTRL_PWM_OUT_EXT TS4100 128 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