5.7.3 Proceeding
In the Siemens SIMATIC Manager the following steps should be executed:
1.
Perform a hardware configuration for the CPU.
Chapter 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. Select for the
corresponding channel the operating mode
‘Frequency counting’
.
‘Counter operating modes’ on page 104
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 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
Содержание VIPA System MICRO M13-CCF0000
Страница 35: ...3 2 2 Interfaces VIPA System MICRO Hardware description Structure Interfaces HB400 CPU M13 CCF0000 en 16 47 35 ...
Страница 211: ...Appendix VIPA System MICRO Appendix HB400 CPU M13 CCF0000 en 16 47 211 ...
Страница 212: ...Content A System specific event IDs B Integrated blocks VIPA System MICRO Appendix HB400 CPU M13 CCF0000 en 16 47 212 ...