EasyManua.ls Logo

VIPA SPEED7 CPU 313SCDPM - SFB 49 - PULSE - Pulse Width Modulation

VIPA SPEED7 CPU 313SCDPM
205 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6.7.3 SFB 49 - PULSE - Pulse width modulation
The SFB 49 is a specially developed block for the CPU 31xSC for
pulse width modulation
n The SFB PULSE should cyclically be called (e.g. OB 1) for con-
trolling the frequency measurement.
n The SFB is to be called with the corresponding instance DB. Here
the parameters of the SFB are stored.
n Among others the SFB 49 contains a request interface. Hereby
you get read and write access to the registers of the pulse width
modulation.
n So that a new job may be executed, the previous job must have
be finished with JOB_DONE = TRUE.
n 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.
n With the SFB PULSE (SFB 49) you have following functional
options:
Start/Stop the pulse width modulation via software gate
SW_GATE
Enabling/controlling of the PWM output
Read status bits
Request to read/write internal registers of the pulse width mod-
ulation
Name Declara-
tion
Data type Address
(Inst.-DB)
Default
value
Comment
LADDR INPUT WORD 0.0 300h This parameter is not evalu-
ated. Always the internal I/O
periphery is addressed.
CHANNEL INPUT INT 2.0 0 Channel number
SW_EN INPUT BOOL 4.0 FALSE Enables the Software gate
OUTP_VAL INPUT INT 6.0 0 Output value
JOB_REQ INPUT BOOL 8.0 FALSE Initiates the job (edge 0-1)
JOB_ID INPUT WORD 10.0 0 Job ID
JOB_VAL INPUT DINT 12.0 0 Value for write jobs
STS_EN OUTPUT BOOL 16.0 FALSE Status of the internal gate
JOB_DONE OUTPUT BOOL 16.3 TRUE New job can be started.
JOB_ERR OUTPUT BOOL 16.4 FALSE Job error
JOB_STAT OUTPUT WORD 18.0 0 Job error ID
Description
Parameters
VIPA System 300SDeployment I/O periphery
Pulse width modulation - PWM > SFB 49 - PULSE - Pulse width modulation
HB140 | CPU-SC | 313-6CF13 | GB | 15-50 136

Table of Contents

Related product manuals