Manual VIPA CPU 21x Chapter 11 Integrated OBs SFBs SFCs
HB103E - Rev. 05/45 11-23
SFC 225 HF_PWM
This block serves the parameterization of the pulse duration modulation
for the last two output channels. This block is function identical to SFC 223.
Instead of timebase and period, the SFC 225 works with a predefined
frequency (up to 50kHz).
You define a frequency, the pulse duty ratio and min. pulse length. The
CPU determines an pulse series with an according pulse/break relation and
issues this via the according output channel.
The SFC returns a certain error code. You can see the concerning error
messages in the table at the following page.
The PWM parameters have the following relationship:
Pulse length Pulse
break
Period length
Pulse duty ratio
1000500 700
Output
DO
Time
Period length = 1 / frequency
Pulse length = (period length / 1000) x pulse duty ratio
Pulse break = period length - pulse length
Description
Parameters
DO 8xDC24V 1A
L+
.0
.1
.2
.3
.4
.5
.6
.7
F
1
2
3
4
5
6
7
8
9
I0
PWM
Ch. 0
Ch. 1
11x 21x 31x 51x
✓