beckhoff TS4100 — 5.8.5 FB_CTRL_PWM_OUT_EXT

PLC-API Description of the output behavior (2): VAR_INPUT VAR_INPUT fPwmInput : FLOAT; (* NEW: controller output = PMW input [-100.0 ... 100.0] *) eMode : E_CTRL_MODE; END_VAR fPwmInput : Input value for the function block. 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 bWaitTimeActive : A TRUE at this output indicates that the waiting time between the switching actions of the output signals is active.

This output can be used to hold an I component that may be present in the prior controller constant during this time. 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_EXT_PARAMS; END_VAR TS4100 130 Version: 1.1