5 Functions of the PWM outputs (PWM1 and PWM2)
5.1 Functions of the PWM outputs (PWM1 and PWM2)
XI/ON: XNE-2CNT-2PWM
04/2011 MN05002035Z-EN
www.eaton.com
67
5.1.4
Periodical signal output
Process output / control interface (page 32):
PWMx_SINGLE = 1
The signal output is defined as single. The signal form is changeable during the signal output
by changing the corresponding register entries.
The signal output can be started or stopped using the SW gate (or, if parameterized, using the
HW gate). The value of the 32 bit counters is preserved.
If PWMx_GENERAL_DISABLE is set to "1", the PWM functions are disabled. The register
contents are preserved.
Setting PWMx_GENERAL_DISABLE to "0" generally re-enables the PWM. It continues to
work with existing register contents.
Existing messages (MSG) should be reset when setting the PWM (
→
tion of the function outputs D1 and D2 (page 75)).
Procedure of the periodical signal output:
1
Set register contents to define the signal form:
1.1
REG_PWMx_CNTSV
Number of pulses to be given out
1.2
REG_PWMx_DC,
REG_PWMx_PD
or
for operation mode: Period Duration / Duty Cycle Definition (page 61)
1.3
REG_PWMx_DLOW,
REG_PWMx_DHIGH
for operation mode: High Time / Low Time Definition (page 63)
2
PWMx_SW_LR 0
→
1
The latch retrigger causes that the start value is copied from
REG_PWMx_CNTSV into REG_PWMx_CNTDC.
3
REG_PWMx_CNTSV
→
REG_PWMx_CNTDC
4
PWMx_ENABLE 0
→
1
Setting the enable-bit, the signal output begins STS_PWMx_RUN = 1
5
REG_PWMx_CNTDC
The count value in the register is decremented with every signal change
1
→
0 of the output signal until REG_PWMx_CNTDC = 0.
6
REG_PWMx_CNTDC = 0.
Number of pulses to be given out REG_PWMx_CNTDC = 0.
7
MSG_PWMx_NDDC = 1
Message "zero crossing occurred" (
→
see Process input / check-back
8
PWMx_LOGMSG
→
0
The message has to be reset!
To do so, PWMx_LOGMSG is first set from 0
→
1 and then from 1
→
0
(
→
see Process output / control interface (page 32) or Storage of
9
STS_PWMx_RUN = 0
The signal output is stopped, because REG_PWMx_CNTDC = 0.
10
PWMx_SW_LR 0
→
1
With another latch retrigger the procedure restarts and the signal output
restarts, as long as PWMx_ENABLE = 1.
Содержание XNE-2CNT-2PWM
Страница 1: ...04 2011 MN05002035Z EN User Manual XI ON XNE 2CNT 2PWM Technology Module...
Страница 10: ...1 About this manual 1 3 Overview 10 XI ON XNE 2CNT 2PWM 04 2011 MN05002035Z EN www eaton com...
Страница 84: ...7 Report of configuration errors 7 1 Error register 84 XI ON XNE 2CNT 2PWM 04 2011 MN05002035Z EN www eaton com...