3.
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 the 1. pulse train job.
n
JOB_REQ
= TRUE (edge 0-1)
ð
n
From
JOB_VAL
the
period duration
for the 1. pulse train job is transmitted.
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
4.
To reset JOB_REQ, call SFB 49 again with the same parameters and JOB_REQ =
FALSE.
5.
Optional for the 2. pulse train job: Call the SFB 49:
n
SW_EN
= FALSE
n
JOB_VAL
= Enter a value for the
number of pulses
here.
n
JOB_ID
= 09h: Write
number of pulses
for the 2. pulse train job.
n
JOB_REQ
= TRUE (edge 0-1)
ð
n
The
number of pulses
for the 2. pulse train job is transmitted.
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
6.
To reset JOB_REQ, call SFB 49 again with the same parameters and JOB_REQ =
FALSE.
7.
Optional for the 2. pulse train job: Call the SFB 49:
n
SW_EN
= FALSE
n
JOB_VAL
= Enter a value for the
period duration
here.
n
JOB_ID
= 0Ah: Write
period duration
for the 2. pulse train job.
n
JOB_REQ
= TRUE (edge 0-1)
ð
n
From
JOB_VAL
the
period duration
for the 2. pulse train job is transferred.
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
8.
To reset JOB_REQ, call SFB 49 again with the same parameters and JOB_REQ =
FALSE.
9.
Call the SFB 49:
n
SW_EN
= TRUE (edge 0-1)
n
JOB_REQ
= TRUE (edge 0-1)
n
OUTP_VAL
: Enter the duty factor such as 50%.
ð
n
The 1. pulse train job is started and then if present the 2. pulse train job.
n
Via
STS_EN
you get the current status of the pulse train output. As long as
the required number of pulses is output,
STS_EN
returns TRUE.
STS_EN
returns FALSE if either the requested number of pulses has been output or
output with
SW_EN
= FALSE was terminated early.
n
On error
JOB_ERR
= TRUE and the cause of the error is returned in
JOB_STAT
10.
To reset JOB_REQ, call SFB 49 again with the same parameters and JOB_REQ =
FALSE.
11.
Call the SFB 49 cyclically:
n
SW_EN
= FALSE
n
Via
STS_EN
you get the current status of the pulse train output.
VIPA System 300S
+
Deployment I/O periphery
Pulse width modulation - PWM > SFB 49 - PULSE - Pulse width modulation
HB140 | CPU-SC | 313-5BF23 | en | 19-01
143