
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 indi-
cated 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
0411h Period duration time too low
0412h Period duration time too high
0421h On-delay too low
0422h On-delay too high
0431h Minimum pulse duration too low
0432h Minimum pulse duration too high
04FFh 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.
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 pulse width modulation 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_EN
of SFB 49
close (deactivate): In the user program by resetting
SW_EN
of SFB
49
If values during the PWM output are changed, the new
values will be issued until the beginning of a new period. A
just started period runs always to the end!
Channel no. not valid
(8009h) and Parameter
error (8001h)
Controlling PWM
VIPA System 300S
Deployment I/O periphery
Pulse width modulation - PWM > SFB 49 - PULSE - Pulse width modulation
HB140 | CPU-SC | 313-6CF13 | GB | 15-50
138