Name
Declaration
Data type
Address
(Inst.-DB)
Default value
Comment
JOB_REQ
INPUT
BOOL
4.3
FALSE
Initiates the job (edge 0-1)
JOB_ID
INPUT
WORD
6.0
0
Job ID
JOB_VAL
INPUT
DINT
8.0
0
Value for write jobs
STS_GATE
OUTPUT
BOOL
12.0
FALSE
Status of the internal gate
MEAS_VAL
OUTPUT
DINT
14.0
0
Evaluated frequency
JOB_DONE
OUTPUT
BOOL
22.0
TRUE
New job can be started.
JOB_ERR
OUTPUT
BOOL
22.1
FALSE
Job error
JOB_STAT
OUTPUT
WORD
24.0
0
Job error ID
Local data only in instance DB
Name
Data type
Address
(Instance DB)
Default
Comment
JOB_OVAL
DINT
28.0
-
Output value for read request.
Per channel you may call the SFB in each case with the same instance
DB, since the data necessary for the internal operational are stored here.
Writing accesses to outputs of the instance DB is not permissible.
To read/write the registers of the frequency meter the request interface of the SFB 48
may be used.
So that a new job may be executed, the previous job must have be finished with
JOB_DONE
= TRUE.
The deployment of the request interface takes place at the following sequence:
Edit the following input parameters:
Name
Data type
Address
(DB)
Default
Comment
JOB_REQ
BOOL
4.3
FALSE
Initiates the job (edges 0-1)
JOB_ID
WORD
6.0
0
Job ID:
00h Job without function
04h Writes the integration time
84h Read the integration time
JOB_VAL
DINT
8.0
0
Value for write jobs.
Permitted value for integration time:
10 ... 10000ms
Frequency meter request
interface
Proceeding
VIPA System SLIO
Deployment I/O periphery
Frequency measurement > SFB 48 - FREQUENC - Frequency measurement
HB300 | CPU | 013-CCF0R00 | en | 16-40
132