PLC API TYPE ST_CTRL_MULTIPLE_PWM_OUT_TIMES : STRUCT tMinOnTime : TIME; tMinOffTime : TIME; tMinWaitTime : TIME; END_STRUCT END_TYPE TYPE ST_CTRL_MULTIPLE_PWM_OUT_OUTPUTS : STRUCT bPwmOutBitPos : BOOL; bPwmOutBitNeg : BOOL; bWaitTimeActive : BOOL; END_STRUCT END_TYPE TF4100 139 Version: 2.2.4 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 nNumberOfPwm Outputs USINT Number of PWM outputs.
[1...n] pPwmInputArray ADR _ POINTER TO FLOAT Address of the PWM input array nPwmInputArray SIZEOF _ UINT Size of the PWM input array in bytes pPwmTimesConfi g ADR _ POINTER TO ST CTRL _ _ MULTIPLE PWM _ OUT TIMES _ _ Address of the PWM times array nPwmTimesConfi g SIZEOF _ UINT Size of the PWM times array in bytes pPwmOutputArra y ADR _ POINTER TO ST CTRL _ _ MULTIPLE PWM _ OUT OUTPUTS _ _ Address of the PWM output array nPwmOutputArra y SIZEOF _ UINT Size of the PWM output array in bytes pPwmData ADR _ POINTER TO ST CTRL _ _ MULTIPLE PWM _ OUT DATA _ _ Address of the internal PWM data array nPwmData SIZE _ OF UINT Size of the internal PWM data array in bytes Name Type Description tMinOnTime TIME Minimum switch-on time of the PWM output tMinOffTime TIME Minimum switch-off time of the PWM output tMinWaitTime TIME Waiting time between the switching actions between a positive and negative output signal Name Type Description bPwmOutBit Pos BOOL PWM signal, when fPwmInput > 0.0 bPwmOutBit Neg BOOL PWM signal, when fPwmInput bWaitTime Active BOOL 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.