summaryrefslogtreecommitdiff
path: root/2_Motor-PLC/switch-motor.ld
diff options
context:
space:
mode:
authorrtniveditait2016-04-19 15:30:12 +0530
committerrtniveditait2016-04-19 15:30:12 +0530
commit40424836a9996c2c456da3ae3f423077c173f7d4 (patch)
treee31b39f43ff61b5c43899961c62d1f696c831035 /2_Motor-PLC/switch-motor.ld
parentd96a7011084e8021e2c7ccf3b48fe3fc2483baa2 (diff)
downloadOpenPLC-40424836a9996c2c456da3ae3f423077c173f7d4.tar.gz
OpenPLC-40424836a9996c2c456da3ae3f423077c173f7d4.tar.bz2
OpenPLC-40424836a9996c2c456da3ae3f423077c173f7d4.zip
added chapter for motor
Diffstat (limited to '2_Motor-PLC/switch-motor.ld')
-rw-r--r--2_Motor-PLC/switch-motor.ld20
1 files changed, 20 insertions, 0 deletions
diff --git a/2_Motor-PLC/switch-motor.ld b/2_Motor-PLC/switch-motor.ld
new file mode 100644
index 0000000..6a4c894
--- /dev/null
+++ b/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