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
.
Name
Data type
Address
(DB)
Default
Comment
JOB_DONE
BOOL
22.0
TRUE
New job can be started
JOB_ERR
BOOL
22.1
FALSE
Job error
JOB_STAT
WORD
24.0
0000h
Job error ID
0000h No error
0221h Integration time too low
0222h Integration time too high
02FFh Invalid job ID
8001h Parameter error
8009h Channel no. not valid
1.
A new job may be started with
JOB_DONE
= TRUE.
2.
A value to be read of a read job may be found in
JOB_OVAL
in the instance DB at
address 28.
(8009h and Parameter error 8001h)
If you have preset a CHANNEL number greater than 3, the error "Channel no. not valid
" (8009h) is reported. if you have preset a CHANNEL number greater than the maximum
channel number of the CPU, "Parameter error" (8001h) is reported.
The frequency meter is controlled by the internal gate (I gate). The I gate is identical to
the software gate (SW gate).
SW gate:
open (activate): In the user program by setting
SW_GATE
of SFB 48
close (deactivate): In the user program by resetting
SW_GATE
of SFB 48
5.7.5 Parametrization
5.7.5.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
Channel no. not valid
Controlling frequency
meter
VIPA System SLIO
Deployment I/O periphery
Frequency measurement > Parametrization
HB300 | CPU | 013-CCF0R00 | en | 16-40
133