Proceeding; Sfb 48 - Frequenc - Frequency Measurement - YASKAWA CPU 013C Manual

For vipa system slio
Table of Contents

Advertisement

VIPA System SLIO

5.7.3 Proceeding

Hardware configuration
User program

5.7.4 SFB 48 - FREQUENC - Frequency measurement

Description
Parameters
Name
Declaration
LADDR
INPUT
CHANNEL
INPUT
SW_GATE
INPUT
HB300 | CPU | 013-CCF0R00 | en | 16-40
Frequency measurement > SFB 48 - FREQUENC - Frequency measurement
In the Siemens SIMATIC Manager the following steps should be executed:
1.
Perform a hardware configuration for the CPU.
tion - CPU' on page 61
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 115
4.
Perform the required parameter settings.
5.
Safe your project with 'Station è Safe and compile'.
6.
Transfer your project to your CPU.
Ä Chapter 5.7.4 'SFB 48 - FREQUENC - Frequency measurement' on page 131
n
The
should cyclically be called (e.g. OB 1) for controlling the frequency measurement.
n
The SFB is to be called with the corresponding instance DB. Here the parameters of
the SFB are stored.
The SFB 48 is a specially developed block for compact CPUs for frequence measure-
ment.
The SFB FREQUENC should cyclically be called (e.g. OB 1) for controlling the fre-
n
quency measurement.
n
The SFB is to be called with the corresponding instance DB. Here the parameters of
the SFB are stored.
n
Among others the SFB 48 contains a request interface. Hereby you get read and
write access to the registers of the frequency meter.
n
So that a new job may be executed, the previous job must have be finished with
JOB_DONE = TRUE.
Per channel you may call the SFB in each case with the same instance DB, since the
n
data necessary for the internal operational are stored here. Writing accesses to out-
puts of the instance DB is not permissible.
n
With the SFB FREQUENC (SFB 48) you have following functional options:
Start/Stop the frequency meter via software gate SW_GATE
Read the status bit
Read the evaluated frequency
Request to read/write internal registers of the frequency meter.
Data type
Address
(Inst.-DB)
WORD
0.0
INT
2.0
BOOL
4.0
Deployment I/O periphery
Ä Chapter 4.4 'Hardware configura-
Default value
Comment
300h
This parameter is not evaluated.
Always the internal I/O periphery
is addressed.
0
Channel number
FALSE
Enables the Software gate
Ä Chapter 5.6.6
131

Advertisement

Table of Contents
loading

This manual is also suitable for:

013-ccf0r00

Table of Contents