Xinje XD Series User Manual page 332

Hide thumbs Also See for XD Series:
Table of Contents

Advertisement

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
X0
X1
X2
X3
X4
X5
HD0
HD2
Program:
Explanation
Start button, X0 is ON when pressed.
Stop button, X1 is ON when pressed.
25% brightness button, X2 is ON when
pressed.
50% brightness button, X3 is ON when
pressed.
75% brightness button, X4 is ON when
pressed.
100% brightness button, X5 is ON when
pressed.
PWM duty ratio register
PWM frequency register
331
Mark
Defaulted
100Hz

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xl seriesXd3Xd5

Table of Contents