Chapter 7 Integrated OBs, SFBs and SFCs
CPU ADAM 821x
7-16
ADAM 8000 Manual CPU 821x – Rev 1.1
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
1000
500
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
11
x
21
x
51
x