5.7.3 Proceeding
In the Siemens SIMA
TIC Manager the following steps should be executed:
1.
Perform a hardware configuration for the CPU.
Ä
Chapter 4.4 ‘Hardware configura-
tion - CPU’ on page 58
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. Select for the
corresponding channel the operating mode ‘Frequency counting’ .
Ä
Chapter 5.6.5
‘Counter operating modes’ on page 104
4. Perform the required parameter settings.
5.
Safe your project with ‘Station è Safe and compile’.
6. T
ransfer your project to your CPU.
n The SFB 48 should cyclically be called (e.g. OB 1) for controlling the frequency meas-
urement.
n The SFB is to be called with the corresponding instance DB. Here the parameters of
the SFB are stored.
5.7.4 Parametrization
5.7.4.1
Address assignment
Sub module Input address Access Assignment
Counter 816 DINT Channel 0: Counter value / Frequency value
820 DINT Channel 1: Counter value / Frequency value
824 DINT Channel 2: Counter value / Frequency value
828 DINT Channel 3: Counter value / Frequency value
Sub module Output address Access Assignment
Counter 816 DWORD reserved
820 DWORD reserved
824 DWORD reserved
828 DWORD reserved
5.7.4.2 Interrupt selection
Via ‘Basic parameters’
you can reach ‘Select interrupt’ . Here you can define the inter-
rupts the CPU will trigger. The following parameters are supported:
n None: The interrupt function is de-activated.
n Process: The following events of the frequency measurement can trigger a hardware
interrupt (selectable via ‘Frequency counting’ ):
– End of measurement
n Diagnostics and process: A diagnostics interrupt is only triggered when a hardware
interrupt was lost.
Hardware configuration
User program
VIPA System MICRO
Deployment I/O periphery
Frequency measurement > Parametrization
HB400 | CPU | M13-CCF0000 | en | 16-47 120