diff options
author | rtniveditait | 2016-04-19 15:28:23 +0530 |
---|---|---|
committer | rtniveditait | 2016-04-19 15:28:23 +0530 |
commit | d96a7011084e8021e2c7ccf3b48fe3fc2483baa2 (patch) | |
tree | 0600bcad25248ef752be13ff5f23acf9884b0e9b /1_LED-PLC/LED.rst | |
parent | 1a6e87731c160613f2b4303209e9ab80df343879 (diff) | |
download | OpenPLC-d96a7011084e8021e2c7ccf3b48fe3fc2483baa2.tar.gz OpenPLC-d96a7011084e8021e2c7ccf3b48fe3fc2483baa2.tar.bz2 OpenPLC-d96a7011084e8021e2c7ccf3b48fe3fc2483baa2.zip |
added new file for LED
Diffstat (limited to '1_LED-PLC/LED.rst')
-rw-r--r-- | 1_LED-PLC/LED.rst | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/1_LED-PLC/LED.rst b/1_LED-PLC/LED.rst new file mode 100644 index 0000000..c67d4e5 --- /dev/null +++ b/1_LED-PLC/LED.rst @@ -0,0 +1,32 @@ +Light Emitting Diode +==================== + +Overview +-------- + +LEDs (light emitting diodes) are used in all sorts of +clever things which is why we have induced them in the kit. +We will start off with something very simple, turning one +ON and OFF, repeatedly,producing a pleasant blinking effect. +In the ld micro insert coil and insert contacts and also +insert Ton and Toff and give particular timings for both. +Burn the code to OpenPLC and watch the output + + +Components required +------------------- + +OpenPLC board + + +blinking of LED +--------------- + +For blinking of LED we use timers in ldmicro, On timer(Ton) and Off timer(Toff). The LED is connected to pin 35 on the board. +The code blinkin.ld illustrates above logic. + +switch on LED +------------- + +We can control on/off LED by using an input to the PLC. The input switch is connnected to pin 1 and LED is connedted to the same pin 35. +The code for this experiment is switch-led.ld |