summaryrefslogtreecommitdiff
path: root/Experiments/2_Motor-PLC
diff options
context:
space:
mode:
Diffstat (limited to 'Experiments/2_Motor-PLC')
-rw-r--r--Experiments/2_Motor-PLC/motor-on-off.ld29
-rw-r--r--Experiments/2_Motor-PLC/motor.rst30
-rw-r--r--Experiments/2_Motor-PLC/motor.rst~29
-rw-r--r--Experiments/2_Motor-PLC/switch-motor.ld20
4 files changed, 108 insertions, 0 deletions
diff --git a/Experiments/2_Motor-PLC/motor-on-off.ld b/Experiments/2_Motor-PLC/motor-on-off.ld
new file mode 100644
index 0000000..2ee739d
--- /dev/null
+++ b/Experiments/2_Motor-PLC/motor-on-off.ld
@@ -0,0 +1,29 @@
+LDmicro0.1
+MICRO=Atmel AVR ATmega16 40-PDIP
+CYCLE=10000
+CRYSTAL=16000000
+BAUD=2400
+COMPILED=Z:\home\nivedita\Documents\OpenPLC\ladder-files\motor-on-off.hex
+
+IO LIST
+ XOFF at 2
+ XON at 1
+ Ym1 at 19
+ Ym2 at 20
+END
+
+PROGRAM
+RUNG
+ CONTACTS XON 1
+ PARALLEL
+ COIL Ym1 0 1 0
+ COIL Ym2 0 0 1
+ END
+END
+RUNG
+ CONTACTS XOFF 1
+ PARALLEL
+ COIL Ym1 0 0 1
+ COIL Ym2 0 0 1
+ END
+END
diff --git a/Experiments/2_Motor-PLC/motor.rst b/Experiments/2_Motor-PLC/motor.rst
new file mode 100644
index 0000000..bcb5ba4
--- /dev/null
+++ b/Experiments/2_Motor-PLC/motor.rst
@@ -0,0 +1,30 @@
+DC motor
+========
+
+Overview
+--------
+
+DC Motor, like the general purpose motors, are used in providing high RPM for rotation purposes, like for a pulley or in lifting action. Motors, are generally heavy duty, which means, connecting it directly to the controller pins may end up frying it up! So, to source higher
+current, transistors or motor driver ICs are used. These are great as they can be easily used to turn your motor in either direction, just by giving digital high or low to the input pins of L293D Motor Driver IC. The easy part is, controlling the speed can be done by just changing the voltage bias given to the driver IC.
+
+Components required
+-------------------
+
+OpenPLC board
+
+DC motor
+
+Switch ON motor
+---------------
+
+In this experiment using an input switch, PLC turns on the motor connected to it. Motor is driven by l293d as explained above. L293d inputs are conncted to controller pin number 19 and 20. The switch is connected to pin number 1.
+
+To run motor we always need two coils on ldmicro and one should be 'set' and other 'reset'. If we swap the coil status motor will run in opposite direction.
+
+Motor-on-off
+------------
+
+We now know how to turn on a motor, Similarly we can turn it Off by giving another input. To stop motor, status of both the coils should be Reset, So in new rung we can give a switch and reset both the coils.
+Anothr switch is connected to pin number 2.
+
+
diff --git a/Experiments/2_Motor-PLC/motor.rst~ b/Experiments/2_Motor-PLC/motor.rst~
new file mode 100644
index 0000000..d0deb8e
--- /dev/null
+++ b/Experiments/2_Motor-PLC/motor.rst~
@@ -0,0 +1,29 @@
+DC motor
+========
+
+Overview
+--------
+
+DC Motor, like the general purpose motors, are used in providing high RPM for rotation purposes, like for a pulley or in lifting action. Motors, are generally heavy duty, which means, connecting it directly to the controller pins may end up frying it up! So, to source higher
+current, transistors or motor driver ICs are used. These are great as they can be easily used to turn your motor in either direction, just by giving digital high or low to the input pins of L293D Motor Driver IC. The easy part is, controlling the speed can be done by just changing the voltage bias given to the driver IC.
+
+Components required
+-------------------
+
+OpenPLC board
+DC motor
+
+Switch ON motor
+---------------
+
+In this experiment using an input switch, PLC turns on the motor connected to it. Motor is driven by l293d as explained above. L293d inputs are conncted to controller pin number 19 and 20. The switch is connected to pin number 1.
+
+To run motor we always need two coils on ldmicro and one should be 'set' and other 'reset'. If we swap the coil status motor will run in opposite direction.
+
+Motor-on-off
+------------
+
+We now know how to turn on a motor, Similarly we can turn it Off by giving another input. To stop motor, status of both the coils should be Reset, So in new rung we can give a switch and reset both the coils.
+Anothr switch is connected to pin number 2.
+
+
diff --git a/Experiments/2_Motor-PLC/switch-motor.ld b/Experiments/2_Motor-PLC/switch-motor.ld
new file mode 100644
index 0000000..6a4c894
--- /dev/null
+++ b/Experiments/2_Motor-PLC/switch-motor.ld
@@ -0,0 +1,20 @@
+LDmicro0.1
+MICRO=Atmel AVR ATmega16 40-PDIP
+CYCLE=10000
+CRYSTAL=16000000
+BAUD=2400
+
+IO LIST
+ Xswitch at 1
+ Ym1 at 19
+ Ym2 at 20
+END
+
+PROGRAM
+RUNG
+ CONTACTS Xswitch 1
+ PARALLEL
+ COIL Ym1 0 1 0
+ COIL Ym2 0 0 1
+ END
+END