Technical data

Table Of Contents
SFBs for Compact CPUs
System Software for S7-300/400 System and Standard Functions - Volume 2/2
A5E00739858-01
28-37
28.5 Controlling Pulse Width Modulation with SFB 49
"PULSE"
Description
To control pulse width modulation via the user program, use SFB ANALOG
(SFB 49).
The following operations are available:
Starting/stopping via software gate SW_EN
Enabling/controlling the output DO
Retrieving the status bits STS_EN, STS_STRT and STS_DO
Input of the output value
Jobs for reading/writing the registers
Parameter
Parameter Declaration Data
type
Address
(Instance
DB)
Range of values Default Meaning
LADDR
INPUT WORD 0 CPU specific W#16#0300 The I/O address
of your
submodule,
specified by you
in "HW Config".
If the E and A
addresses are
not equal, the
lower one of the
two must be
specified.
CHANNEL
INPUT INT 2
CPU 312C:
0 to 1
CPU 313C:
0 to 2
CPU 314C:
0 to 3
0 Channel
number:
SW_EN
INPUT BOOL 4.0 TRUE/FALSE FALSE Software gate
for starting/
stopping the
output
MAN_DO
INPUT BOOL 4.1 TRUE/FALSE FALSE Enable manual
output control
SET_DO
INPUT BOOL 4.2 TRUE/FALSE FALSE Control output