n 8Ah: Read period duration of the 2. pulse train job
n 8Bh Read time base
– 00h: 0.1ms
– 01h: 1ms
– 02h: 1µs:
– 03h: 10µs
Value for write jobs, which range of values depends on the according job:
-2147483648 (-2
31
) ... +2147483647 (2
31
-1)
Local data only in instance DB
Name Data type Address
(Instance DB)
Default Comment
JOB_OVAL DINT 20.0 - Output values for read jobs
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.
Write accesses to outputs of the instance DB is not permissible.
n To read/write the registers the request interface of the SFB 49 may be used.
n So that a new job may be executed, the previous job must have be finished with
JOB_DONE = TRUE.
n With an edge 0-1 at JOB_REQ, you can always transfer a job, regardless of the state
of SW_EN and STS_EN.
n Changes of the period duration and the minimum pulse duration will immediately take
effect.
n Changes of the on-delay take effect with the next edge 0-1 of SW_EN.
n A running PWM output is not affected by setting pulse train specific values such as
pulse number and period duration for the 2. pulse train job.
The request interface is used according to the following sequence:
1. Call the SFB 49:
n SW_EN = FALSE
n JOB_VAL = Enter a value for the period duration here
n JOB_ID = 01h: Write period duration for PWM output.
n JOB_REQ = TRUE (edge 0-1)
ð
n FromJOB_VAL the period duration is transmitted to the PWM output.
n JOB_DONE is FALSE during the SFB run.
n On error JOB_ERR = TRUE and the cause of the error is returned in
JOB_STAT
2. To reset JOB_REQ, call SFB 49 again with the same parameters and JOB_REQ =
FALSE.
JOB_VAL
Request interface
Controlling the output
Controlling the PWM
output
VIPA SPEED7
Integrated Standard
System Function Blocks > SFB 49 - PULSE - Pulse width modulation
HB00 | OPL_SP7 | Operation list | en | 18-30 770