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
14.2.19 SFB 49 - PULSE - Pulse width modulation
The SFB 49 is a specially developed block for compact CPUs for PWM and pulse train
output. With the SFB PULSE (SFB 49) the following functionalities are available:
n PWM (Pulswidthmodulation)
– Start/Stop via software gate SW_EN
– Enabling/controlling of the PWM output
– Read status bits
– Request to read/write the internal PWM registers
n Configurable pulse train output with a maximum of 2 drive jobs
– Start/Stop via software gate SW_EN
– Enabling/controlling of the pulse train output
– Read status bits
– Request to read/write the internal pulse train registers
n Configurable time base (1µs ... 1ms)
When using the block, the following must be observed:
n The SFB is cyclically to be called with the corresponding instance DB e.g. in OB 1.
n You have read and write access to the corresponding registers via the SFB 49 job
interface.
Channel no. not valid
Controlling frequency
meter
Description
VIPA SPEED7
Integrated Standard
System Function Blocks > SFB 49 - PULSE - Pulse width modulation
HB00 | OPL_SP7 | Operation list | en | 18-30 767