IDEC MicroSmart User Manual
Page 339
![background image](/manuals/350368/339/background.png)
20: P
ULSE
I
NSTRUCTIONS
« FC4A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
»
20-11
Timing Chart for Disable Pulse Counting
This program demonstrates a timing chart of the PWM2 instruction without pulse counting.
D1
M20
I1
PWM
2
S1
D100
D102 = 0 (disable pulse counting)
Output Pulse Q1
Pulse Width Ratio D101
PWR1
Star t Input I1
• When input I1 is turned on, PWM2 star ts to generate output pulses at the frequency designated by the value
stored in data register D100. The pulse width is determined by the value stored in data register D101. While the
output pulses are sent out from output Q1, internal relay M20 remains on.
• When input I1 is turned off, PWM2 stops generating output pulses immediately, then internal relay M20 turns off
and internal relay M21 turns on.
• If the pulse width ratio value in D101 is changed while generating output pulses, the change takes effect in the
next scan. When changing the pulse width ratio, make sure that the timing of the change is much slower than the
output pulse frequency, so that the pulse width ratio is changed successfully.
PWR2
PWR3
Pulse Output ON M20
Pulse Output Complete M21
PWR1
PWR2