Name
Declaration
Data type
Address
(Inst.-DB)
Default value
Comment
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
Call the SFB. The job is processed immediately.
JOB_DONE
only applies to SFB
run with the result FALSE.
JOB_ERR
= TRUE if an error occurred. Details on the
error cause are indicated at
JOB_STAT
.
Frequency meter request
interface
Proceeding
VIPA System 300S
+
Deployment I/O periphery
Frequency measurement > SFB 48 - FREQUENC - Frequency measurement
HB140 | CPU-SC | 313-5BF23 | en | 19-01
132