EasyManua.ls Logo

Xinje XD5 - Page 332

Xinje XD5
389 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...
331
Note: it needs to connect 1K ohm amplification resistor between output terminal and common
terminal when using PWM instruction.
Example
There is a LED drived by DC24V. It needs to control the brightness of the LED. In order to
decrease the power loss of wave collector, turn ON the switch at the moment it is OFF, then
turn it OFF. This process will cycle. Connet a transistor between the power supply and LED.
The pulse signal will input from the transistor base terminal. The current between base and
emitter is pulse. The LED input voltage is proportional to the duty ratio. The LED input
voltage will be changed by changing the duty ratio. There are many methods to change the
value. The normal way is pulse width modulation (PWM) which means only changing the ON
holding time but not changing the ON frequency.
This example applies the PWM technology to the LED brightness adjustment. The controller
can accpet 24V PWM control signal. The brightness range includes 25%, 50%, 75%, 100%.
The brightness is controlled by the PWM duty ratio.
Element explanation:
PLC
component
Explanation
Mark
X0
Start button, X0 is ON when pressed.
X1
Stop button, X1 is ON when pressed.
X2
25% brightness button, X2 is ON when
pressed.
X3
50% brightness button, X3 is ON when
pressed.
X4
75% brightness button, X4 is ON when
pressed.
X5
100% brightness button, X5 is ON when
pressed.
HD0
PWM duty ratio register
HD2
PWM frequency register
Defaulted
100Hz
Program:

Table of Contents

Related product manuals