X2
Function
Type
LED
green
red
Description
7
DO 0.1
O
PWM 1
8
DO 0.0
O
PWM 0
9
0 V
I
4M: GND for PWM
LED (red) is on at short circuit respectively overload
10
DC 24V
I
4L+: DC 24V power section supply for PWM
5.8.3 Proceeding
PWM
and
pulse train
output use the same hardware configuration. Switching between
these modes is done within the SFB 49. In the Siemens SIMATIC Manager the following
steps should be executed:
1.
Perform a hardware configuration for the CPU.
Chap. 4.4 ‘Hardware configura-
2.
Double-click the counter sub module of the CPU 314C-2 PN/DP.
ð
The dialog
‘Properties’
is opened.
3.
As soon as you select the operating mode for the corresponding channel, a dialog
box with default values for this counter mode is created and shown. For
PWM
respectively
pulse train
output select for the corresponding channel the operating
mode
‘Pulse width modulation - PWM’
.
4.
Perform the required parameter settings.
5.
Safe your project with
‘Station
è
Safe and compile’
.
6.
Transfer your project to your CPU.
n
The SFB 49 should cyclically be called (e.g. OB 1) for controlling the pulse width
modulation.
–
The SFB 49 is used for
PWM
and
pulse train
output.
–
The switching between the modes takes place by the presetting of the
pulse
number
(JOB_ID = 08h/09h). As soon as you specify a
pulse number
> 0, you
switch to the
pulse train
mode, otherwise
PWM
is active.
n
The SFB is to be called with the corresponding instance DB. Here the parameters of
the SFB are stored.
5.8.4 Parametrization
5.8.4.1
Address assignment
Sub module
Input
address
Access
Description
Counter
816
DINT
reserved
820
DINT
reserved
824
DINT
reserved
828
DINT
reserved
Hardware configuration
User program
VIPA System MICRO
Deployment I/O periphery
Pulse width modulation - PWM > Parametrization
HB400 | CPU | M13-CCF0000 | en | 18-50
147