Name Data type Address
(Instance DB)
Default Comment
JOB_OVAL DINT 20.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 pulse width modulation the request
interface of the SFB 49 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 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)
Local data only in
Instance DB
PWM Request interface
Proceeding
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 137