summaryrefslogtreecommitdiff
path: root/ldmicro/sample/traffic.ld
diff options
context:
space:
mode:
authorNatsuDrag92018-06-06 11:51:20 +0530
committerGitHub2018-06-06 11:51:20 +0530
commit003741ef327ab000986e6c5a3bc8ff058c171efc (patch)
tree860b10e7f01fdfc25be90aa0f6228fd6672cb333 /ldmicro/sample/traffic.ld
parent8deab843fa6d616086955702c77751f631badc0d (diff)
parent42f0b6abf37b6afc278a218b8301b7d4f1f6b2cc (diff)
downloadLDMicroGtk-003741ef327ab000986e6c5a3bc8ff058c171efc.tar.gz
LDMicroGtk-003741ef327ab000986e6c5a3bc8ff058c171efc.tar.bz2
LDMicroGtk-003741ef327ab000986e6c5a3bc8ff058c171efc.zip
Merge pull request #3 from NatsuDrag9/GUI_port
Gui port 2
Diffstat (limited to 'ldmicro/sample/traffic.ld')
-rw-r--r--ldmicro/sample/traffic.ld73
1 files changed, 73 insertions, 0 deletions
diff --git a/ldmicro/sample/traffic.ld b/ldmicro/sample/traffic.ld
new file mode 100644
index 0000000..cc716d6
--- /dev/null
+++ b/ldmicro/sample/traffic.ld
@@ -0,0 +1,73 @@
+LDmicro0.1
+MICRO=Atmel AVR ATmega128 64-TQFP
+CYCLE=10000
+CRYSTAL=4000000
+COMPILED=C:\depot\ldmicro\out.hex
+
+IO LIST
+ Xbutton1 at 46
+ Xbutton2 at 45
+ Ygreen at 49
+ Yred at 51
+ Ywait at 48
+ Yyellow at 50
+END
+
+PROGRAM
+RUNG
+ CONTACTS Rclock 1
+ TOF Ton 500000
+ TON Toff 500000
+ COIL Rclock 0 0 0
+END
+RUNG
+ CONTACTS Rclock 0
+ CTC Ccycle 19
+END
+RUNG
+ GEQ Ccycle 0
+ LES Ccycle 8
+ COIL Yred 0 0 0
+END
+RUNG
+ GEQ Ccycle 8
+ LES Ccycle 12
+ COIL Yyellow 0 0 0
+END
+RUNG
+ GEQ Ccycle 12
+ LES Ccycle 20
+ PARALLEL
+ COIL Ygreen 0 0 0
+ COIL Rwait 0 0 1
+ END
+END
+RUNG
+ PARALLEL
+ CONTACTS Xbutton1 1
+ CONTACTS Xbutton2 1
+ END
+ PARALLEL
+ SERIES
+ GEQ Ccycle 0
+ LES Ccycle 6
+ MOVE cycle 6
+ END
+ COIL Rwait 0 1 0
+ END
+END
+RUNG
+ CONTACTS Rwait 0
+ PARALLEL
+ SERIES
+ GEQ Ccycle 8
+ LES Ccycle 12
+ CONTACTS Rclock 0
+ END
+ SERIES
+ GEQ Ccycle 0
+ LES Ccycle 8
+ END
+ END
+ COIL Ywait 0 0 0
+END