Name Declaration Data type Address
(Inst.-DB)
Default value Comment
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 SPEED7
Integrated Standard
System Function Blocks > SFB 48 - FREQUENC - Frequency measurement
HB00 | OPL_SP7 | Operation list | en | 18-30 766