source: vis_dev/vis-2.1/examples/elevator/elevator.enc @ 12

Last change on this file since 12 was 11, checked in by cecile, 13 years ago

Add vis

File size: 4.4 KB
Line 
1.model elevator[0]
2.inputs init<0> init<1> stop_next continue
3.outputs dec inc
4.table init<0> ->init<0>0
50 0
61 1
7.table init<1> ->init<1>0
80 0
91 1
10.table stop_next ->stop_next0
110 0
121 1
13.table continue ->continue0
140 0
151 1
16.table dec0 ->dec
170 0
181 1
19.table inc0 ->inc
200 0
211 1
22.mv _n245 2 STOPPED MOVING
23.mv movement 2 STOPPED MOVING
24.table _n2450 ->_n245
250 STOPPED
261 MOVING
27.table movement ->movement0
28STOPPED 0
29MOVING 1
30.mv movement$raw_n1a 2 STOPPED MOVING
31.table movement$raw_n1a0 ->movement$raw_n1a
320 STOPPED
331 MOVING
34.mv _n25c<*2*> 2 ON OFF
35.mv buttons<*2*> 2 ON OFF
36.table _n25c<*2*>0 ->_n25c<*2*>
370 ON
381 OFF
39.table buttons<*2*> ->buttons<*2*>0
40ON 0
41OFF 1
42.mv buttons$raw_n1b<*2*> 2 ON OFF
43.table buttons$raw_n1b<*2*>0 ->buttons$raw_n1b<*2*>
440 ON
451 OFF
46.mv buttons$raw_n2d<*2*> 2 ON OFF
47.table buttons$raw_n2d<*2*>0 ->buttons$raw_n2d<*2*>
480 ON
491 OFF
50.mv buttons$raw_n3f<*2*> 2 ON OFF
51.table buttons$raw_n3f<*2*>0 ->buttons$raw_n3f<*2*>
520 ON
531 OFF
54.mv _n25c<*0*> 2 ON OFF
55.mv buttons<*0*> 2 ON OFF
56.table _n25c<*0*>0 ->_n25c<*0*>
570 ON
581 OFF
59.table buttons<*0*> ->buttons<*0*>0
60ON 0
61OFF 1
62.mv buttons$raw_n1b<*0*> 2 ON OFF
63.table buttons$raw_n1b<*0*>0 ->buttons$raw_n1b<*0*>
640 ON
651 OFF
66.mv buttons$raw_n2d<*0*> 2 ON OFF
67.table buttons$raw_n2d<*0*>0 ->buttons$raw_n2d<*0*>
680 ON
691 OFF
70.mv buttons$raw_n3f<*0*> 2 ON OFF
71.table buttons$raw_n3f<*0*>0 ->buttons$raw_n3f<*0*>
720 ON
731 OFF
74.mv _n29d 4 OPEN OPENING CLOSED CLOSING
75.mv door 4 OPEN OPENING CLOSED CLOSING
76.table _n29d0 _n29d1 ->_n29d
770 0 OPEN
781 0 OPENING
790 1 CLOSED
801 1 CLOSING
81.table door ->door0 door1
82OPEN 0 0
83OPENING 1 0
84CLOSED 0 1
85CLOSING 1 1
86.mv door$raw_n19 4 OPEN OPENING CLOSED CLOSING
87.table door$raw_n190 door$raw_n191 ->door$raw_n19
880 0 OPEN
891 0 OPENING
900 1 CLOSED
911 1 CLOSING
92.table _n2b4<0>0 ->_n2b4<0>
930 0
941 1
95.table location<0> ->location<0>0
960 0
971 1
98.table location$raw_n17<0>0 ->location$raw_n17<0>
990 0
1001 1
101.mv _n25c<*1*> 2 ON OFF
102.mv buttons<*1*> 2 ON OFF
103.table _n25c<*1*>0 ->_n25c<*1*>
1040 ON
1051 OFF
106.table buttons<*1*> ->buttons<*1*>0
107ON 0
108OFF 1
109.mv buttons$raw_n1b<*1*> 2 ON OFF
110.table buttons$raw_n1b<*1*>0 ->buttons$raw_n1b<*1*>
1110 ON
1121 OFF
113.mv buttons$raw_n2d<*1*> 2 ON OFF
114.table buttons$raw_n2d<*1*>0 ->buttons$raw_n2d<*1*>
1150 ON
1161 OFF
117.mv buttons$raw_n3f<*1*> 2 ON OFF
118.table buttons$raw_n3f<*1*>0 ->buttons$raw_n3f<*1*>
1190 ON
1201 OFF
121.mv _n2b6 2 UP DOWN
122.mv direction 2 UP DOWN
123.table _n2b60 ->_n2b6
1240 UP
1251 DOWN
126.table direction ->direction0
127UP 0
128DOWN 1
129.mv direction$raw_n18 2 UP DOWN
130.table direction$raw_n180 ->direction$raw_n18
1310 UP
1321 DOWN
133.table _n2cd0 ->_n2cd
1340 0
1351 1
136.table open_next ->open_next0
1370 0
1381 1
139.table open_next$raw_n160 ->open_next$raw_n16
1400 0
1411 1
142.table _n2b4<1>0 ->_n2b4<1>
1430 0
1441 1
145.table location<1> ->location<1>0
1460 0
1471 1
148.table location$raw_n17<1>0 ->location$raw_n17<1>
1490 0
1501 1
151.latch _n245 movement
152.reset movement$raw_n1a ->movement
153-   =movement$raw_n1a 
154.latch _n25c<*2*> buttons<*2*>
155.reset buttons$raw_n1b<*2*> buttons$raw_n2d<*2*> buttons$raw_n3f<*2*> ->buttons<*2*>
156.default ON
157OFF -  -   =buttons$raw_n1b<*2*> 
158ON OFF -   =buttons$raw_n2d<*2*> 
159ON ON OFF  =buttons$raw_n3f<*2*> 
160.latch _n25c<*0*> buttons<*0*>
161.reset buttons$raw_n1b<*0*> buttons$raw_n2d<*0*> buttons$raw_n3f<*0*> ->buttons<*0*>
162.default ON
163OFF -  -   =buttons$raw_n1b<*0*> 
164ON OFF -   =buttons$raw_n2d<*0*> 
165ON ON OFF  =buttons$raw_n3f<*0*> 
166.latch _n29d door
167.reset door$raw_n19 ->door
168-   =door$raw_n19 
169.latch _n2b4<0> location<0>
170.reset location$raw_n17<0> ->location<0>
171.default 0
1721 1
173.latch _n25c<*1*> buttons<*1*>
174.reset buttons$raw_n1b<*1*> buttons$raw_n2d<*1*> buttons$raw_n3f<*1*> ->buttons<*1*>
175.default ON
176OFF -  -   =buttons$raw_n1b<*1*> 
177ON OFF -   =buttons$raw_n2d<*1*> 
178ON ON OFF  =buttons$raw_n3f<*1*> 
179.latch _n2b6 direction
180.reset direction$raw_n18 ->direction
181-   =direction$raw_n18 
182.latch _n2cd open_next
183.reset open_next$raw_n16 ->open_next
1840 0
1851 1
186.latch _n2b4<1> location<1>
187.reset location$raw_n17<1> ->location<1>
188.default 0
1891 1
190.table ->random_push<0>
191
192.table random_push<0> ->[0]0
193.default 0
1940 0
1951 1
196.table ->random_push<1>
197
198.table random_push<1> ->[1]0
199.default 0
2000 0
2011 1
202.table ->random_push<2>
203
204.table random_push<2> ->[2]0
205.default 0
2060 0
2071 1
208.table ->random
2090
2101
211.table random ->[3]0
212.default 0
2130 0
2141 1
215.table ->r_stop
2160
2171
218.table r_stop ->[4]0
219.default 0
2200 0
2211 1
Note: See TracBrowser for help on using the repository browser.