diff options
Diffstat (limited to 'OpenPLC_version_1/Experiments/2_Motor-PLC/switch-motor.ld')
-rwxr-xr-x | OpenPLC_version_1/Experiments/2_Motor-PLC/switch-motor.ld | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenPLC_version_1/Experiments/2_Motor-PLC/switch-motor.ld b/OpenPLC_version_1/Experiments/2_Motor-PLC/switch-motor.ld new file mode 100755 index 0000000..6a4c894 --- /dev/null +++ b/OpenPLC_version_1/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
|