Edit the following input parameters:
Name Data type Address
(DB)
Default Comment
JOB_REQ BOOL 8.0 FALSE Initiates the job (edges 0-1)
JOB_ID WORD 10.0 0 Job ID:
00h Job without function
01h write period duration
02h write on-delay
04h write minimum pulse duration
81h read period duration
82h read on-delay
84h read minimum pulse duration
JOB_VAL DINT 8.0 0 Value for write jobs.
-2147483648 (-2
31
) to
+2147483647 (2
31
-1)
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
VIPA System 300S Deployment I/O periphery
Pulse width modulation - PWM > SFB 49 - PULSE - Pulse width modulation
HB140 | CPU-SC | 312-5BE13 | GB | 15-50 131