You define a time base, a period, the pulse duty ratio and min. pulse length. The
CPU determines a 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 mes-
sages in the table at the following page. The PWM parameters have the fol-
lowing relationship:
Period length = time base x period
Pulse length = (period length / 1000) x pulse duty ratio
Pulse break = period length - pulse length
The parameters have the following meaning:
n Define the output channel that you want to address.
– Value range: 0 ... 1
n Via this parameter you may activate the PWM function (true) res. deactivate it (false).
– Value range: true, false
n TIMEBASE defines the resolution and the value range of the pulse, period and min-
imum pulse length per channel.
n You may choose the values 0 for 0.1ms and 1 for 1ms.
– Value range: 0 ... 1
n Through multiplication of the value defined at period with the TIMEBASE you get the
period length.
– Value range: 0 ... 60000
CHANNEL
ENABLE
TIMEBASE
PERIOD
VIPA SPEED7
Device Specific
Onboard I/O System 100V > SFC 223 - PWM - Pulse duration modulation
HB00 | OPL_SP7 | Operation list | en | 18-30 282