lustrec / test / src / kind_fmcad08 / large / microwave24.lus @ 22fe1c93
History | View | Annotate | Download (46.1 KB)
1 |
node top(KP_START: bool; |
---|---|
2 |
KP_CLEAR: bool; |
3 |
KP_0: bool; |
4 |
KP_1: bool; |
5 |
KP_2: bool; |
6 |
KP_3: bool; |
7 |
KP_4: bool; |
8 |
KP_5: bool; |
9 |
KP_6: bool; |
10 |
KP_7: bool; |
11 |
KP_8: bool; |
12 |
KP_9: bool; |
13 |
DOOR_CLOSED: bool |
14 |
) returns (OK:bool); |
15 |
|
16 |
|
17 |
var |
18 |
LEFT_DIGIT: int; |
19 |
SETUP: bool; |
20 |
COOKING: bool; |
21 |
SUSPENDED: bool; |
22 |
START_PRESSED: bool; |
23 |
CLEAR_PRESSED: bool; |
24 |
MIDDLE_DIGIT: int; |
25 |
RIGHT_DIGIT: int; |
26 |
enable: bool; |
27 |
STEPS_TO_COOK: int; |
28 |
|
29 |
rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock: bool; |
30 |
KP_01: bool; |
31 |
KP_11: bool; |
32 |
KP_21: bool; |
33 |
KP_31: bool; |
34 |
KP_41: bool; |
35 |
KP_51: bool; |
36 |
KP_61: bool; |
37 |
KP_71: bool; |
38 |
KP_81: bool; |
39 |
KP_91: bool; |
40 |
rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step: bool; |
41 |
microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY: int; |
42 |
microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY: int; |
43 |
microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY: int; |
44 |
rlt__Arrow5: int; |
45 |
rlt__Arrow4: int; |
46 |
rlt__Arrow3: int; |
47 |
rlt__Arrow2: int; |
48 |
rlt__Arrow1: int; |
49 |
rlt__Arrow: int; |
50 |
chart_microwave_mode_logic_start: int; |
51 |
chart_microwave_mode_logic_clear_off: int; |
52 |
chart_microwave_mode_logic_door_closed: int; |
53 |
chart_microwave_mode_logic____wakeup___: bool; |
54 |
rlt_eval_microwave_mode_logic_ON_rlt_fired_1: bool; |
55 |
rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root: int; |
56 |
rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root: int; |
57 |
rlt_eval_microwave_mode_logic_ON_rlt_fired_2: bool; |
58 |
rlt_eval_microwave_mode_logic_ON_rlt_complete_1: bool; |
59 |
rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root: int; |
60 |
rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode: int; |
61 |
rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root: int; |
62 |
rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode: int; |
63 |
rlt_eval_microwave_mode_logic_ON_rlt_fired_4: bool; |
64 |
rlt_eval_microwave_mode_logic_ON_rlt_complete_2: bool; |
65 |
rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root: int; |
66 |
rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining: int; |
67 |
rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root: int; |
68 |
rlt_eval_microwave_mode_logic_ON_rlt_fired_5: bool; |
69 |
rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode: int; |
70 |
rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root: int; |
71 |
rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root: int; |
72 |
rlt_eval_microwave_mode_logic_ON_rlt_fired_6: bool; |
73 |
rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root: int; |
74 |
rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode: int; |
75 |
rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root: int; |
76 |
rlt_enter_microwave_mode_logic_ON_rlt_fired_0: bool; |
77 |
rlt_enter_microwave_mode_logic_ON_rlt_fired_1: bool; |
78 |
rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root: int; |
79 |
rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode: int; |
80 |
rlt_enter_microwave_mode_logic_ON_rlt_fired_2: bool; |
81 |
rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root: int; |
82 |
rlt_eval_microwave_mode_logic_rlt_fired_0: bool; |
83 |
rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining: int; |
84 |
rlt_eval_microwave_mode_logic_rlt_fired_1: bool; |
85 |
rlt_eval_microwave_mode_logic_rlt_state_2_states___root: int; |
86 |
rlt_eval_microwave_mode_logic_rlt_state_3_states___root: int; |
87 |
rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode: int; |
88 |
rlt_enter_microwave_mode_logic_rlt_state_2_states___root: int; |
89 |
chart_microwave_mode_logic_rlt_evtInitStep: bool; |
90 |
chart_microwave_mode_logic_begin_state_states___root: int; |
91 |
chart_microwave_mode_logic_begin_state_outports_mode: int; |
92 |
chart_microwave_mode_logic_begin_state_outports_steps_remaining: int; |
93 |
chart_microwave_mode_logic_final_state_states___root: int; |
94 |
chart_microwave_mode_logic_mode: int; |
95 |
chart_microwave_mode_logic_steps_remaining: int; |
96 |
microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT: int; |
97 |
microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT: int; |
98 |
microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER: int; |
99 |
microwave_microwave_mode_logic_mode: int; |
100 |
MWI_FcnMaxI_In16: int; |
101 |
MWI_FcnMaxI_In15: int; |
102 |
MWI_FcnMaxI_In13: int; |
103 |
MWI_FcnMaxI_In12: int; |
104 |
MWI_FcnMaxI_In11: int; |
105 |
MWI_FcnMaxI_In1: int; |
106 |
p22: bool; |
107 |
p23: bool; |
108 |
p24: bool; |
109 |
p25: bool; |
110 |
p26: bool; |
111 |
p27: bool; |
112 |
p28: bool; |
113 |
p29: bool; |
114 |
p30: bool; |
115 |
p31: bool; |
116 |
p32: bool; |
117 |
p33: bool; |
118 |
p34: bool; |
119 |
p35: bool; |
120 |
p36: bool; |
121 |
p37: bool; |
122 |
let |
123 |
rlt__Arrow5 = (639 -> |
124 |
(if (not (not SETUP)) |
125 |
then |
126 |
(if (MWI_FcnMaxI_In13 > 0) |
127 |
then MWI_FcnMaxI_In13 |
128 |
else 0) |
129 |
else 639)); |
130 |
|
131 |
rlt__Arrow4 = (639 -> |
132 |
(if (not SUSPENDED) |
133 |
then |
134 |
(if (MWI_FcnMaxI_In12 > 0) |
135 |
then MWI_FcnMaxI_In12 |
136 |
else 0) |
137 |
else 639)); |
138 |
|
139 |
rlt__Arrow3 = (639 -> |
140 |
(if (not (not COOKING)) |
141 |
then |
142 |
(if (MWI_FcnMaxI_In16 > 0) |
143 |
then MWI_FcnMaxI_In16 |
144 |
else 0) |
145 |
else 639)); |
146 |
|
147 |
rlt__Arrow2 = (639 -> |
148 |
(if (not (not SUSPENDED)) |
149 |
then |
150 |
(if (MWI_FcnMaxI_In15 > 0) |
151 |
then MWI_FcnMaxI_In15 |
152 |
else 0) |
153 |
else 639)); |
154 |
|
155 |
rlt__Arrow1 = (639 -> |
156 |
(if (not COOKING) |
157 |
then |
158 |
(if (MWI_FcnMaxI_In11 > 0) |
159 |
then MWI_FcnMaxI_In11 |
160 |
else 0) |
161 |
else 639)); |
162 |
|
163 |
rlt__Arrow = (639 -> |
164 |
(if (not SETUP) |
165 |
then |
166 |
(if (MWI_FcnMaxI_In1 > 0) |
167 |
then MWI_FcnMaxI_In1 |
168 |
else 0) |
169 |
else 639)); |
170 |
|
171 |
|
172 |
p23 = (true -> (((not (enable and |
173 |
(not KP_CLEAR))) or |
174 |
(not ((((((((((KP_1 and |
175 |
(not (pre KP_1))) or |
176 |
(KP_2 and |
177 |
(not (pre KP_2)))) or |
178 |
(KP_3 and |
179 |
(not (pre KP_3)))) or |
180 |
(KP_4 and |
181 |
(not (pre KP_4)))) or |
182 |
(KP_5 and |
183 |
(not (pre KP_5)))) or |
184 |
(KP_6 and |
185 |
(not (pre KP_6)))) or |
186 |
(KP_7 and |
187 |
(not (pre KP_7)))) or |
188 |
(KP_8 and |
189 |
(not (pre KP_8)))) or |
190 |
(KP_9 and |
191 |
(not (pre KP_9)))) or |
192 |
(KP_0 and |
193 |
(not (pre KP_0)))))) or |
194 |
(MIDDLE_DIGIT = ((STEPS_TO_COOK - (STEPS_TO_COOK div 60)*60) div 10)))); |
195 |
|
196 |
p35 = (true -> ((not (enable and |
197 |
(not KP_CLEAR))) or |
198 |
((not ((KP_8 and |
199 |
(not (pre KP_8))) and |
200 |
((not (KP_7 and |
201 |
(not (pre KP_7)))) and |
202 |
((not (KP_6 and |
203 |
(not (pre KP_6)))) and |
204 |
((not (KP_5 and |
205 |
(not (pre KP_5)))) and |
206 |
((not (KP_4 and |
207 |
(not (pre KP_4)))) and |
208 |
((not (KP_3 and |
209 |
(not (pre KP_3)))) and |
210 |
((not (KP_2 and |
211 |
(not (pre KP_2)))) and |
212 |
((not (KP_1 and |
213 |
(not (pre KP_1)))) and |
214 |
(not (KP_0 and |
215 |
(not (pre KP_0))))))))))))) or |
216 |
(RIGHT_DIGIT = 8)))); |
217 |
|
218 |
p33 = (true -> ((not (enable and |
219 |
(not KP_CLEAR))) or |
220 |
((not ((KP_6 and |
221 |
(not (pre KP_6))) and |
222 |
((not (KP_5 and |
223 |
(not (pre KP_5)))) and |
224 |
((not (KP_4 and |
225 |
(not (pre KP_4)))) and |
226 |
((not (KP_3 and |
227 |
(not (pre KP_3)))) and |
228 |
((not (KP_2 and |
229 |
(not (pre KP_2)))) and |
230 |
((not (KP_1 and |
231 |
(not (pre KP_1)))) and |
232 |
(not (KP_0 and |
233 |
(not (pre KP_0))))))))))) or |
234 |
(RIGHT_DIGIT = 6)))); |
235 |
|
236 |
MIDDLE_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT; |
237 |
|
238 |
RIGHT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER; |
239 |
|
240 |
p25 = (enable or |
241 |
(RIGHT_DIGIT = 0)); |
242 |
|
243 |
p22 = (true -> (((not (enable and |
244 |
(not KP_CLEAR))) or |
245 |
(not ((((((((((KP_1 and |
246 |
(not (pre KP_1))) or |
247 |
(KP_2 and |
248 |
(not (pre KP_2)))) or |
249 |
(KP_3 and |
250 |
(not (pre KP_3)))) or |
251 |
(KP_4 and |
252 |
(not (pre KP_4)))) or |
253 |
(KP_5 and |
254 |
(not (pre KP_5)))) or |
255 |
(KP_6 and |
256 |
(not (pre KP_6)))) or |
257 |
(KP_7 and |
258 |
(not (pre KP_7)))) or |
259 |
(KP_8 and |
260 |
(not (pre KP_8)))) or |
261 |
(KP_9 and |
262 |
(not (pre KP_9)))) or |
263 |
(KP_0 and |
264 |
(not (pre KP_0)))))) or |
265 |
(MIDDLE_DIGIT = (pre RIGHT_DIGIT)))); |
266 |
|
267 |
p36 = (true -> ((not (enable and |
268 |
(not KP_CLEAR))) or |
269 |
((not ((KP_9 and |
270 |
(not (pre KP_9))) and |
271 |
((not (KP_8 and |
272 |
(not (pre KP_8)))) and |
273 |
((not (KP_7 and |
274 |
(not (pre KP_7)))) and |
275 |
((not (KP_6 and |
276 |
(not (pre KP_6)))) and |
277 |
((not (KP_5 and |
278 |
(not (pre KP_5)))) and |
279 |
((not (KP_4 and |
280 |
(not (pre KP_4)))) and |
281 |
((not (KP_3 and |
282 |
(not (pre KP_3)))) and |
283 |
((not (KP_2 and |
284 |
(not (pre KP_2)))) and |
285 |
((not (KP_1 and |
286 |
(not (pre KP_1)))) and |
287 |
(not (KP_0 and |
288 |
(not (pre KP_0)))))))))))))) or |
289 |
(RIGHT_DIGIT = 9)))); |
290 |
|
291 |
MWI_FcnMaxI_In1 = ((pre rlt__Arrow) - 1); |
292 |
|
293 |
CLEAR_PRESSED = (KP_CLEAR -> (KP_CLEAR and |
294 |
(not (pre KP_CLEAR)))); |
295 |
|
296 |
microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT = ((chart_microwave_mode_logic_steps_remaining div 1) div 60); |
297 |
|
298 |
microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__REMAINDER = (((chart_microwave_mode_logic_steps_remaining div 1) - (((chart_microwave_mode_logic_steps_remaining div 1) div 60) * 60)) - ((((chart_microwave_mode_logic_steps_remaining div 1) - (((chart_microwave_mode_logic_steps_remaining div 1) div 60) * 60)) div 10) * 10)); |
299 |
|
300 |
SUSPENDED = |
301 |
(if (3 = microwave_microwave_mode_logic_mode) |
302 |
then true |
303 |
else false); |
304 |
|
305 |
p31 = (true -> ((not (enable and |
306 |
(not KP_CLEAR))) or |
307 |
((not ((KP_4 and |
308 |
(not (pre KP_4))) and |
309 |
((not (KP_3 and |
310 |
(not (pre KP_3)))) and |
311 |
((not (KP_2 and |
312 |
(not (pre KP_2)))) and |
313 |
((not (KP_1 and |
314 |
(not (pre KP_1)))) and |
315 |
(not (KP_0 and |
316 |
(not (pre KP_0))))))))) or |
317 |
(RIGHT_DIGIT = 4)))); |
318 |
|
319 |
p37 = (true -> ((not (enable and |
320 |
(not KP_CLEAR))) or |
321 |
(((((((((((KP_1 and |
322 |
(not (pre KP_1))) or |
323 |
(KP_2 and |
324 |
(not (pre KP_2)))) or |
325 |
(KP_3 and |
326 |
(not (pre KP_3)))) or |
327 |
(KP_4 and |
328 |
(not (pre KP_4)))) or |
329 |
(KP_5 and |
330 |
(not (pre KP_5)))) or |
331 |
(KP_6 and |
332 |
(not (pre KP_6)))) or |
333 |
(KP_7 and |
334 |
(not (pre KP_7)))) or |
335 |
(KP_8 and |
336 |
(not (pre KP_8)))) or |
337 |
(KP_9 and |
338 |
(not (pre KP_9)))) or |
339 |
(KP_0 and |
340 |
(not (pre KP_0)))) or |
341 |
(RIGHT_DIGIT = (pre RIGHT_DIGIT))))); |
342 |
|
343 |
MWI_FcnMaxI_In11 = ((pre rlt__Arrow1) - 1); |
344 |
|
345 |
MWI_FcnMaxI_In15 = ((pre rlt__Arrow2) - 1); |
346 |
|
347 |
p24 = (true -> (((not (enable and |
348 |
(not KP_CLEAR))) or |
349 |
((((((((((KP_1 and |
350 |
(not (pre KP_1))) or |
351 |
(KP_2 and |
352 |
(not (pre KP_2)))) or |
353 |
(KP_3 and |
354 |
(not (pre KP_3)))) or |
355 |
(KP_4 and |
356 |
(not (pre KP_4)))) or |
357 |
(KP_5 and |
358 |
(not (pre KP_5)))) or |
359 |
(KP_6 and |
360 |
(not (pre KP_6)))) or |
361 |
(KP_7 and |
362 |
(not (pre KP_7)))) or |
363 |
(KP_8 and |
364 |
(not (pre KP_8)))) or |
365 |
(KP_9 and |
366 |
(not (pre KP_9)))) or |
367 |
(KP_0 and |
368 |
(not (pre KP_0))))) or |
369 |
(MIDDLE_DIGIT = (pre MIDDLE_DIGIT)))); |
370 |
|
371 |
|
372 |
p26 = ((not (enable and |
373 |
KP_CLEAR)) or |
374 |
(RIGHT_DIGIT = 0)); |
375 |
|
376 |
microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_TENS__QUOTIENT = (((chart_microwave_mode_logic_steps_remaining div 1) - (((chart_microwave_mode_logic_steps_remaining div 1) div 60) * 60)) div 10); |
377 |
|
378 |
MWI_FcnMaxI_In16 = ((pre rlt__Arrow3) - 1); |
379 |
|
380 |
|
381 |
MWI_FcnMaxI_In12 = ((pre rlt__Arrow4) - 1); |
382 |
|
383 |
|
384 |
p30 = (true -> ((not (enable and |
385 |
(not KP_CLEAR))) or |
386 |
((not ((KP_3 and |
387 |
(not (pre KP_3))) and |
388 |
((not (KP_2 and |
389 |
(not (pre KP_2)))) and |
390 |
((not (KP_1 and |
391 |
(not (pre KP_1)))) and |
392 |
(not (KP_0 and |
393 |
(not (pre KP_0)))))))) or |
394 |
(RIGHT_DIGIT = 3)))); |
395 |
|
396 |
COOKING = |
397 |
(if (2 = microwave_microwave_mode_logic_mode) |
398 |
then true |
399 |
else false); |
400 |
|
401 |
LEFT_DIGIT = microwave_microwave_TIME_ON_DISPLAY_SECONDS_TO_MINUTES__QUOTIENT; |
402 |
|
403 |
START_PRESSED = (KP_START -> (KP_START and |
404 |
(not (pre KP_START)))); |
405 |
|
406 |
chart_microwave_mode_logic_start = |
407 |
(if (START_PRESSED = false) |
408 |
then 0 |
409 |
else 1); |
410 |
|
411 |
chart_microwave_mode_logic_clear_off = |
412 |
(if (CLEAR_PRESSED = false) |
413 |
then 0 |
414 |
else 1); |
415 |
|
416 |
chart_microwave_mode_logic_door_closed = |
417 |
(if (DOOR_CLOSED = false) |
418 |
then 0 |
419 |
else 1); |
420 |
|
421 |
chart_microwave_mode_logic____wakeup___ = true; |
422 |
|
423 |
chart_microwave_mode_logic_rlt_evtInitStep = (true -> |
424 |
(if (pre chart_microwave_mode_logic____wakeup___) |
425 |
then false |
426 |
else (pre chart_microwave_mode_logic_rlt_evtInitStep))); |
427 |
|
428 |
chart_microwave_mode_logic_begin_state_states___root = (0 -> (pre chart_microwave_mode_logic_final_state_states___root)); |
429 |
|
430 |
chart_microwave_mode_logic_begin_state_outports_mode = (0 -> (pre chart_microwave_mode_logic_mode)); |
431 |
|
432 |
chart_microwave_mode_logic_begin_state_outports_steps_remaining = (0 -> (pre chart_microwave_mode_logic_steps_remaining)); |
433 |
|
434 |
chart_microwave_mode_logic_final_state_states___root = |
435 |
(if chart_microwave_mode_logic____wakeup___ |
436 |
then |
437 |
(if chart_microwave_mode_logic_rlt_evtInitStep |
438 |
then rlt_enter_microwave_mode_logic_rlt_state_2_states___root |
439 |
else |
440 |
(if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and |
441 |
|
442 |
|
443 |
((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and |
444 |
(rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))) |
445 |
then |
446 |
(if rlt_eval_microwave_mode_logic_ON_rlt_fired_6 |
447 |
then |
448 |
(if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3)) |
449 |
then |
450 |
|
451 |
3 |
452 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root) |
453 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root) |
454 |
else rlt_eval_microwave_mode_logic_rlt_state_3_states___root)) |
455 |
else chart_microwave_mode_logic_begin_state_states___root); |
456 |
|
457 |
chart_microwave_mode_logic_mode = |
458 |
(if chart_microwave_mode_logic____wakeup___ |
459 |
then |
460 |
(if chart_microwave_mode_logic_rlt_evtInitStep |
461 |
then |
462 |
(if (not (chart_microwave_mode_logic_begin_state_states___root = 4)) |
463 |
then 1 |
464 |
else chart_microwave_mode_logic_begin_state_outports_mode) |
465 |
else |
466 |
(if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and |
467 |
|
468 |
|
469 |
((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and |
470 |
(rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))) |
471 |
then |
472 |
(if rlt_eval_microwave_mode_logic_ON_rlt_fired_6 |
473 |
then |
474 |
(if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = 3)) |
475 |
then 3 |
476 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode) |
477 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode) |
478 |
else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode)) |
479 |
else chart_microwave_mode_logic_begin_state_outports_mode); |
480 |
|
481 |
chart_microwave_mode_logic_steps_remaining = |
482 |
(if chart_microwave_mode_logic____wakeup___ |
483 |
then |
484 |
(if chart_microwave_mode_logic_rlt_evtInitStep |
485 |
then chart_microwave_mode_logic_begin_state_outports_steps_remaining |
486 |
else |
487 |
(if ((not rlt_eval_microwave_mode_logic_rlt_fired_1) and |
488 |
|
489 |
|
490 |
((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and |
491 |
(rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3))) |
492 |
then |
493 |
(if rlt_eval_microwave_mode_logic_ON_rlt_fired_5 |
494 |
then (rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining - 1) |
495 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining) |
496 |
else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining)) |
497 |
else chart_microwave_mode_logic_begin_state_outports_steps_remaining); |
498 |
|
499 |
|
500 |
|
501 |
rlt_eval_microwave_mode_logic_rlt_fired_0 = (chart_microwave_mode_logic_begin_state_states___root = 4); |
502 |
|
503 |
|
504 |
|
505 |
rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining = |
506 |
(if rlt_eval_microwave_mode_logic_rlt_fired_0 |
507 |
then STEPS_TO_COOK |
508 |
else chart_microwave_mode_logic_begin_state_outports_steps_remaining); |
509 |
|
510 |
|
511 |
|
512 |
rlt_eval_microwave_mode_logic_rlt_fired_1 = (rlt_eval_microwave_mode_logic_rlt_fired_0 and |
513 |
((chart_microwave_mode_logic_begin_state_states___root = 4) and |
514 |
( |
515 |
(if (chart_microwave_mode_logic_start <> 0) |
516 |
then true |
517 |
else false) and |
518 |
|
519 |
(if ( |
520 |
(if ((STEPS_TO_COOK > 0) = false) |
521 |
then 0 |
522 |
else 1) <> 0) |
523 |
then true |
524 |
else false)))); |
525 |
|
526 |
|
527 |
|
528 |
rlt_eval_microwave_mode_logic_rlt_state_2_states___root = |
529 |
(if rlt_eval_microwave_mode_logic_rlt_fired_1 |
530 |
then |
531 |
(if (chart_microwave_mode_logic_begin_state_states___root = 4) |
532 |
then |
533 |
|
534 |
0 |
535 |
else chart_microwave_mode_logic_begin_state_states___root) |
536 |
else chart_microwave_mode_logic_begin_state_states___root); |
537 |
|
538 |
|
539 |
|
540 |
rlt_eval_microwave_mode_logic_rlt_state_3_states___root = |
541 |
(if rlt_eval_microwave_mode_logic_rlt_fired_1 |
542 |
then rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root |
543 |
else rlt_eval_microwave_mode_logic_rlt_state_2_states___root); |
544 |
|
545 |
|
546 |
|
547 |
|
548 |
|
549 |
rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode = |
550 |
(if rlt_eval_microwave_mode_logic_rlt_fired_1 |
551 |
then |
552 |
(if rlt_enter_microwave_mode_logic_ON_rlt_fired_2 |
553 |
then |
554 |
(if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3)) |
555 |
then 3 |
556 |
else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode) |
557 |
else rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode) |
558 |
else chart_microwave_mode_logic_begin_state_outports_mode); |
559 |
|
560 |
|
561 |
|
562 |
|
563 |
|
564 |
rlt_eval_microwave_mode_logic_ON_rlt_fired_1 = (((rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2) and |
565 |
(rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining <= 0)) and |
566 |
(rlt_eval_microwave_mode_logic_rlt_state_3_states___root = 2)); |
567 |
|
568 |
|
569 |
|
570 |
rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = |
571 |
(if rlt_eval_microwave_mode_logic_ON_rlt_fired_1 |
572 |
then |
573 |
(if |
574 |
|
575 |
((rlt_eval_microwave_mode_logic_rlt_state_3_states___root >= 1) and |
576 |
(rlt_eval_microwave_mode_logic_rlt_state_3_states___root <= 3)) |
577 |
then |
578 |
|
579 |
0 |
580 |
else rlt_eval_microwave_mode_logic_rlt_state_3_states___root) |
581 |
else rlt_eval_microwave_mode_logic_rlt_state_3_states___root); |
582 |
|
583 |
|
584 |
|
585 |
rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = |
586 |
(if rlt_eval_microwave_mode_logic_ON_rlt_fired_1 |
587 |
then |
588 |
(if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4)) |
589 |
then |
590 |
|
591 |
4 |
592 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root) |
593 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root); |
594 |
|
595 |
|
596 |
|
597 |
|
598 |
|
599 |
rlt_eval_microwave_mode_logic_ON_rlt_fired_2 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) and |
600 |
(( |
601 |
(if (chart_microwave_mode_logic_start <> 0) |
602 |
then true |
603 |
else false) and |
604 |
|
605 |
(if (chart_microwave_mode_logic_door_closed <> 0) |
606 |
then true |
607 |
else false)) and |
608 |
(not rlt_eval_microwave_mode_logic_ON_rlt_fired_1))); |
609 |
|
610 |
|
611 |
|
612 |
rlt_eval_microwave_mode_logic_ON_rlt_complete_1 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_2 or |
613 |
rlt_eval_microwave_mode_logic_ON_rlt_fired_1); |
614 |
|
615 |
|
616 |
|
617 |
rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = |
618 |
(if rlt_eval_microwave_mode_logic_ON_rlt_fired_2 |
619 |
then |
620 |
(if (rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root = 3) |
621 |
then |
622 |
|
623 |
1 |
624 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root) |
625 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_2_states___root); |
626 |
|
627 |
|
628 |
|
629 |
rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode = |
630 |
(if rlt_eval_microwave_mode_logic_ON_rlt_fired_1 |
631 |
then |
632 |
(if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_1_states___root = 4)) |
633 |
then 1 |
634 |
else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode) |
635 |
else rlt_eval_microwave_mode_logic_rlt_state_3_outports_mode); |
636 |
|
637 |
|
638 |
|
639 |
rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = |
640 |
(if rlt_eval_microwave_mode_logic_ON_rlt_fired_2 |
641 |
then |
642 |
(if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2)) |
643 |
then |
644 |
|
645 |
2 |
646 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root) |
647 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root); |
648 |
|
649 |
|
650 |
|
651 |
|
652 |
|
653 |
rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode = |
654 |
(if rlt_eval_microwave_mode_logic_ON_rlt_fired_2 |
655 |
then |
656 |
(if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_3_states___root = 2)) |
657 |
then 2 |
658 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode) |
659 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_3_outports_mode); |
660 |
|
661 |
|
662 |
|
663 |
|
664 |
|
665 |
rlt_eval_microwave_mode_logic_ON_rlt_fired_4 = (((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and |
666 |
( |
667 |
(if (chart_microwave_mode_logic_clear_off <> 0) |
668 |
then true |
669 |
else false) and |
670 |
(not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))) and |
671 |
((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root = 3) and |
672 |
(not rlt_eval_microwave_mode_logic_ON_rlt_complete_1))); |
673 |
|
674 |
|
675 |
|
676 |
rlt_eval_microwave_mode_logic_ON_rlt_complete_2 = (rlt_eval_microwave_mode_logic_ON_rlt_fired_4 or |
677 |
rlt_eval_microwave_mode_logic_ON_rlt_complete_1); |
678 |
|
679 |
|
680 |
|
681 |
rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = |
682 |
(if rlt_eval_microwave_mode_logic_ON_rlt_fired_4 |
683 |
then |
684 |
(if |
685 |
|
686 |
((rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root >= 1) and |
687 |
(rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root <= 3)) |
688 |
then |
689 |
|
690 |
0 |
691 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root) |
692 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_4_states___root); |
693 |
|
694 |
|
695 |
|
696 |
rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining = |
697 |
(if rlt_eval_microwave_mode_logic_ON_rlt_fired_4 |
698 |
then 0 |
699 |
else rlt_eval_microwave_mode_logic_rlt_state_1_outports_steps_remaining); |
700 |
|
701 |
|
702 |
|
703 |
rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = |
704 |
(if rlt_eval_microwave_mode_logic_ON_rlt_fired_4 |
705 |
then |
706 |
(if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4)) |
707 |
then |
708 |
|
709 |
4 |
710 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root) |
711 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root); |
712 |
|
713 |
|
714 |
|
715 |
|
716 |
|
717 |
rlt_eval_microwave_mode_logic_ON_rlt_fired_5 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) and |
718 |
((rlt_eval_microwave_mode_logic_ON_rlt_state_6_outports_steps_remaining > 0) and |
719 |
(not rlt_eval_microwave_mode_logic_ON_rlt_complete_2))); |
720 |
|
721 |
|
722 |
|
723 |
rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode = |
724 |
(if rlt_eval_microwave_mode_logic_ON_rlt_fired_4 |
725 |
then |
726 |
(if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_6_states___root = 4)) |
727 |
then 1 |
728 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode) |
729 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_4_outports_mode); |
730 |
|
731 |
|
732 |
|
733 |
rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = |
734 |
(if rlt_eval_microwave_mode_logic_ON_rlt_fired_5 |
735 |
then |
736 |
(if (rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root = 2) |
737 |
then |
738 |
|
739 |
1 |
740 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root) |
741 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_7_states___root); |
742 |
|
743 |
|
744 |
|
745 |
rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = |
746 |
(if rlt_eval_microwave_mode_logic_ON_rlt_fired_5 |
747 |
then |
748 |
(if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2)) |
749 |
then |
750 |
|
751 |
2 |
752 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root) |
753 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root); |
754 |
|
755 |
|
756 |
|
757 |
|
758 |
|
759 |
rlt_eval_microwave_mode_logic_ON_rlt_fired_6 = ((rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) and |
760 |
(( |
761 |
(if (chart_microwave_mode_logic_clear_off <> 0) |
762 |
then true |
763 |
else false) or |
764 |
(not |
765 |
(if (chart_microwave_mode_logic_door_closed <> 0) |
766 |
then true |
767 |
else false))) and |
768 |
(not (rlt_eval_microwave_mode_logic_ON_rlt_fired_5 or |
769 |
rlt_eval_microwave_mode_logic_ON_rlt_complete_2)))); |
770 |
|
771 |
|
772 |
|
773 |
rlt_eval_microwave_mode_logic_ON_rlt_state_11_states___root = |
774 |
(if rlt_eval_microwave_mode_logic_ON_rlt_fired_6 |
775 |
then |
776 |
(if (rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root = 2) |
777 |
then |
778 |
|
779 |
1 |
780 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root) |
781 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_10_states___root); |
782 |
|
783 |
|
784 |
|
785 |
rlt_eval_microwave_mode_logic_ON_rlt_state_11_outports_mode = |
786 |
(if rlt_eval_microwave_mode_logic_ON_rlt_fired_5 |
787 |
then |
788 |
(if (not (rlt_eval_microwave_mode_logic_ON_rlt_state_9_states___root = 2)) |
789 |
then 2 |
790 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode) |
791 |
else rlt_eval_microwave_mode_logic_ON_rlt_state_8_outports_mode); |
792 |
|
793 |
rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = |
794 |
(if (not |
795 |
|
796 |
((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and |
797 |
(rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) |
798 |
then |
799 |
|
800 |
1 |
801 |
else rlt_eval_microwave_mode_logic_rlt_state_2_states___root); |
802 |
|
803 |
|
804 |
|
805 |
rlt_enter_microwave_mode_logic_ON_rlt_fired_0 = ((not |
806 |
|
807 |
((rlt_eval_microwave_mode_logic_rlt_state_2_states___root >= 1) and |
808 |
(rlt_eval_microwave_mode_logic_rlt_state_2_states___root <= 3))) and |
809 |
|
810 |
|
811 |
((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and |
812 |
(rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3))); |
813 |
|
814 |
|
815 |
|
816 |
rlt_enter_microwave_mode_logic_ON_rlt_fired_1 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and |
817 |
( |
818 |
|
819 |
((rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root >= 1) and |
820 |
(rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root <= 3)) and |
821 |
|
822 |
(if (chart_microwave_mode_logic_door_closed <> 0) |
823 |
then true |
824 |
else false))); |
825 |
|
826 |
|
827 |
|
828 |
rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = |
829 |
(if rlt_enter_microwave_mode_logic_ON_rlt_fired_1 |
830 |
then |
831 |
(if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2)) |
832 |
then |
833 |
|
834 |
2 |
835 |
else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root) |
836 |
else rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root); |
837 |
|
838 |
|
839 |
|
840 |
|
841 |
|
842 |
rlt_enter_microwave_mode_logic_ON_rlt_state_2_outports_mode = |
843 |
(if rlt_enter_microwave_mode_logic_ON_rlt_fired_1 |
844 |
then |
845 |
(if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_1_states___root = 2)) |
846 |
then 2 |
847 |
else chart_microwave_mode_logic_begin_state_outports_mode) |
848 |
else chart_microwave_mode_logic_begin_state_outports_mode); |
849 |
|
850 |
|
851 |
|
852 |
|
853 |
|
854 |
rlt_enter_microwave_mode_logic_ON_rlt_fired_2 = (rlt_enter_microwave_mode_logic_ON_rlt_fired_0 and |
855 |
( |
856 |
|
857 |
((rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root >= 1) and |
858 |
(rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root <= 3)) and |
859 |
(not rlt_enter_microwave_mode_logic_ON_rlt_fired_1))); |
860 |
|
861 |
|
862 |
|
863 |
rlt_enter_microwave_mode_logic_ON_rlt_state_4_states___root = |
864 |
(if rlt_enter_microwave_mode_logic_ON_rlt_fired_2 |
865 |
then |
866 |
(if (not (rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root = 3)) |
867 |
then |
868 |
|
869 |
3 |
870 |
else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root) |
871 |
else rlt_enter_microwave_mode_logic_ON_rlt_state_2_states___root); |
872 |
|
873 |
|
874 |
|
875 |
|
876 |
|
877 |
rlt_enter_microwave_mode_logic_rlt_state_2_states___root = |
878 |
(if (not (chart_microwave_mode_logic_begin_state_states___root = 4)) |
879 |
then |
880 |
|
881 |
4 |
882 |
else chart_microwave_mode_logic_begin_state_states___root); |
883 |
|
884 |
|
885 |
|
886 |
microwave_microwave_mode_logic_mode = chart_microwave_mode_logic_mode; |
887 |
|
888 |
|
889 |
MWI_FcnMaxI_In13 = ((pre rlt__Arrow5) - 1); |
890 |
|
891 |
p27 = (((not (enable and |
892 |
(not KP_CLEAR))) or |
893 |
((not KP_0) or |
894 |
(RIGHT_DIGIT = 0))) -> ((not (enable and |
895 |
(not KP_CLEAR))) or |
896 |
((not (KP_0 and |
897 |
(not (pre KP_0)))) or |
898 |
(RIGHT_DIGIT = 0)))); |
899 |
|
900 |
rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock = enable; |
901 |
|
902 |
KP_01 = KP_0; |
903 |
|
904 |
KP_11 = KP_1; |
905 |
|
906 |
KP_21 = KP_2; |
907 |
|
908 |
KP_31 = KP_3; |
909 |
|
910 |
KP_41 = KP_4; |
911 |
|
912 |
KP_51 = KP_5; |
913 |
|
914 |
KP_61 = KP_6; |
915 |
|
916 |
KP_71 = KP_7; |
917 |
|
918 |
KP_81 = KP_8; |
919 |
|
920 |
KP_91 = KP_9; |
921 |
|
922 |
microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY = (0 -> |
923 |
(if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock |
924 |
then |
925 |
(if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step |
926 |
then 0 |
927 |
else |
928 |
(if KP_CLEAR |
929 |
then 0 |
930 |
else |
931 |
(if |
932 |
(if ( |
933 |
(if (KP_01 and |
934 |
(not (pre KP_01))) |
935 |
then 0 |
936 |
else |
937 |
(if (KP_11 and |
938 |
(not (pre KP_11))) |
939 |
then 1 |
940 |
else |
941 |
(if (KP_21 and |
942 |
(not (pre KP_21))) |
943 |
then 2 |
944 |
else |
945 |
(if (KP_31 and |
946 |
(not (pre KP_31))) |
947 |
then 3 |
948 |
else |
949 |
(if (KP_41 and |
950 |
(not (pre KP_41))) |
951 |
then 4 |
952 |
else |
953 |
(if (KP_51 and |
954 |
(not (pre KP_51))) |
955 |
then 5 |
956 |
else |
957 |
(if (KP_61 and |
958 |
(not (pre KP_61))) |
959 |
then 6 |
960 |
else |
961 |
(if (KP_71 and |
962 |
(not (pre KP_71))) |
963 |
then 7 |
964 |
else |
965 |
(if (KP_81 and |
966 |
(not (pre KP_81))) |
967 |
then 8 |
968 |
else |
969 |
(if (KP_91 and |
970 |
(not (pre KP_91))) |
971 |
then 9 |
972 |
else 10)))))))))) <= 9) |
973 |
then true |
974 |
else false) |
975 |
then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY) |
976 |
else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY)))) |
977 |
else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY))); |
978 |
|
979 |
microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY = (0 -> |
980 |
(if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock |
981 |
then |
982 |
(if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step |
983 |
then 0 |
984 |
else |
985 |
(if KP_CLEAR |
986 |
then 0 |
987 |
else |
988 |
(if |
989 |
(if ( |
990 |
(if (KP_01 and |
991 |
(not (pre KP_01))) |
992 |
then 0 |
993 |
else |
994 |
(if (KP_11 and |
995 |
(not (pre KP_11))) |
996 |
then 1 |
997 |
else |
998 |
(if (KP_21 and |
999 |
(not (pre KP_21))) |
1000 |
then 2 |
1001 |
else |
1002 |
(if (KP_31 and |
1003 |
(not (pre KP_31))) |
1004 |
then 3 |
1005 |
else |
1006 |
(if (KP_41 and |
1007 |
(not (pre KP_41))) |
1008 |
then 4 |
1009 |
else |
1010 |
(if (KP_51 and |
1011 |
(not (pre KP_51))) |
1012 |
then 5 |
1013 |
else |
1014 |
(if (KP_61 and |
1015 |
(not (pre KP_61))) |
1016 |
then 6 |
1017 |
else |
1018 |
(if (KP_71 and |
1019 |
(not (pre KP_71))) |
1020 |
then 7 |
1021 |
else |
1022 |
(if (KP_81 and |
1023 |
(not (pre KP_81))) |
1024 |
then 8 |
1025 |
else |
1026 |
(if (KP_91 and |
1027 |
(not (pre KP_91))) |
1028 |
then 9 |
1029 |
else 10)))))))))) <= 9) |
1030 |
then true |
1031 |
else false) |
1032 |
then (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY) |
1033 |
else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY)))) |
1034 |
else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY))); |
1035 |
|
1036 |
microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY = ( |
1037 |
(if KP_CLEAR |
1038 |
then 0 |
1039 |
else |
1040 |
(if |
1041 |
(if ( |
1042 |
(if KP_01 |
1043 |
then 0 |
1044 |
else |
1045 |
(if KP_11 |
1046 |
then 1 |
1047 |
else |
1048 |
(if KP_21 |
1049 |
then 2 |
1050 |
else |
1051 |
(if KP_31 |
1052 |
then 3 |
1053 |
else |
1054 |
(if KP_41 |
1055 |
then 4 |
1056 |
else |
1057 |
(if KP_51 |
1058 |
then 5 |
1059 |
else |
1060 |
(if KP_61 |
1061 |
then 6 |
1062 |
else |
1063 |
(if KP_71 |
1064 |
then 7 |
1065 |
else |
1066 |
(if KP_81 |
1067 |
then 8 |
1068 |
else |
1069 |
(if KP_91 |
1070 |
then 9 |
1071 |
else 10)))))))))) <= 9) |
1072 |
then true |
1073 |
else false) |
1074 |
then |
1075 |
(if KP_01 |
1076 |
then 0 |
1077 |
else |
1078 |
(if KP_11 |
1079 |
then 1 |
1080 |
else |
1081 |
(if KP_21 |
1082 |
then 2 |
1083 |
else |
1084 |
(if KP_31 |
1085 |
then 3 |
1086 |
else |
1087 |
(if KP_41 |
1088 |
then 4 |
1089 |
else |
1090 |
(if KP_51 |
1091 |
then 5 |
1092 |
else |
1093 |
(if KP_61 |
1094 |
then 6 |
1095 |
else |
1096 |
(if KP_71 |
1097 |
then 7 |
1098 |
else |
1099 |
(if KP_81 |
1100 |
then 8 |
1101 |
else |
1102 |
(if KP_91 |
1103 |
then 9 |
1104 |
else 10)))))))))) |
1105 |
else 0)) -> |
1106 |
(if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock |
1107 |
then |
1108 |
(if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step |
1109 |
then |
1110 |
(if KP_CLEAR |
1111 |
then 0 |
1112 |
else |
1113 |
(if |
1114 |
(if ( |
1115 |
(if KP_01 |
1116 |
then 0 |
1117 |
else |
1118 |
(if KP_11 |
1119 |
then 1 |
1120 |
else |
1121 |
(if KP_21 |
1122 |
then 2 |
1123 |
else |
1124 |
(if KP_31 |
1125 |
then 3 |
1126 |
else |
1127 |
(if KP_41 |
1128 |
then 4 |
1129 |
else |
1130 |
(if KP_51 |
1131 |
then 5 |
1132 |
else |
1133 |
(if KP_61 |
1134 |
then 6 |
1135 |
else |
1136 |
(if KP_71 |
1137 |
then 7 |
1138 |
else |
1139 |
(if KP_81 |
1140 |
then 8 |
1141 |
else |
1142 |
(if KP_91 |
1143 |
then 9 |
1144 |
else 10)))))))))) <= 9) |
1145 |
then true |
1146 |
else false) |
1147 |
then |
1148 |
(if KP_01 |
1149 |
then 0 |
1150 |
else |
1151 |
(if KP_11 |
1152 |
then 1 |
1153 |
else |
1154 |
(if KP_21 |
1155 |
then 2 |
1156 |
else |
1157 |
(if KP_31 |
1158 |
then 3 |
1159 |
else |
1160 |
(if KP_41 |
1161 |
then 4 |
1162 |
else |
1163 |
(if KP_51 |
1164 |
then 5 |
1165 |
else |
1166 |
(if KP_61 |
1167 |
then 6 |
1168 |
else |
1169 |
(if KP_71 |
1170 |
then 7 |
1171 |
else |
1172 |
(if KP_81 |
1173 |
then 8 |
1174 |
else |
1175 |
(if KP_91 |
1176 |
then 9 |
1177 |
else 10)))))))))) |
1178 |
else 0)) |
1179 |
else |
1180 |
(if KP_CLEAR |
1181 |
then 0 |
1182 |
else |
1183 |
(if |
1184 |
(if ( |
1185 |
(if (KP_01 and |
1186 |
(not (pre KP_01))) |
1187 |
then 0 |
1188 |
else |
1189 |
(if (KP_11 and |
1190 |
(not (pre KP_11))) |
1191 |
then 1 |
1192 |
else |
1193 |
(if (KP_21 and |
1194 |
(not (pre KP_21))) |
1195 |
then 2 |
1196 |
else |
1197 |
(if (KP_31 and |
1198 |
(not (pre KP_31))) |
1199 |
then 3 |
1200 |
else |
1201 |
(if (KP_41 and |
1202 |
(not (pre KP_41))) |
1203 |
then 4 |
1204 |
else |
1205 |
(if (KP_51 and |
1206 |
(not (pre KP_51))) |
1207 |
then 5 |
1208 |
else |
1209 |
(if (KP_61 and |
1210 |
(not (pre KP_61))) |
1211 |
then 6 |
1212 |
else |
1213 |
(if (KP_71 and |
1214 |
(not (pre KP_71))) |
1215 |
then 7 |
1216 |
else |
1217 |
(if (KP_81 and |
1218 |
(not (pre KP_81))) |
1219 |
then 8 |
1220 |
else |
1221 |
(if (KP_91 and |
1222 |
(not (pre KP_91))) |
1223 |
then 9 |
1224 |
else 10)))))))))) <= 9) |
1225 |
then true |
1226 |
else false) |
1227 |
then |
1228 |
(if (KP_01 and |
1229 |
(not (pre KP_01))) |
1230 |
then 0 |
1231 |
else |
1232 |
(if (KP_11 and |
1233 |
(not (pre KP_11))) |
1234 |
then 1 |
1235 |
else |
1236 |
(if (KP_21 and |
1237 |
(not (pre KP_21))) |
1238 |
then 2 |
1239 |
else |
1240 |
(if (KP_31 and |
1241 |
(not (pre KP_31))) |
1242 |
then 3 |
1243 |
else |
1244 |
(if (KP_41 and |
1245 |
(not (pre KP_41))) |
1246 |
then 4 |
1247 |
else |
1248 |
(if (KP_51 and |
1249 |
(not (pre KP_51))) |
1250 |
then 5 |
1251 |
else |
1252 |
(if (KP_61 and |
1253 |
(not (pre KP_61))) |
1254 |
then 6 |
1255 |
else |
1256 |
(if (KP_71 and |
1257 |
(not (pre KP_71))) |
1258 |
then 7 |
1259 |
else |
1260 |
(if (KP_81 and |
1261 |
(not (pre KP_81))) |
1262 |
then 8 |
1263 |
else |
1264 |
(if (KP_91 and |
1265 |
(not (pre KP_91))) |
1266 |
then 9 |
1267 |
else 10)))))))))) |
1268 |
else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY)))) |
1269 |
else (pre microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY))); |
1270 |
|
1271 |
STEPS_TO_COOK = ( |
1272 |
(if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and |
1273 |
(not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)) |
1274 |
then 0 |
1275 |
else ((((microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY * 1) + (microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY * 10)) + (microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY * 60)) * 1)) -> |
1276 |
(if (rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step and |
1277 |
(not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock)) |
1278 |
then 0 |
1279 |
else |
1280 |
(if rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock |
1281 |
then ((((microwave_microwave_KEYPAD_PROCESSING_DISPLAY_RIGHT_DIGIT_DIGIT_TO_DISPLAY * 1) + (microwave_microwave_KEYPAD_PROCESSING_DISPLAY_MIDDLE_DIGIT_DIGIT_TO_DISPLAY * 10)) + (microwave_microwave_KEYPAD_PROCESSING_DISPLAY_LEFT_DIGIT_DIGIT_TO_DISPLAY * 60)) * 1) |
1282 |
else (pre STEPS_TO_COOK)))); |
1283 |
|
1284 |
rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step = (true -> |
1285 |
(if (not rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock) |
1286 |
then true |
1287 |
else |
1288 |
(if (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_clock) |
1289 |
then false |
1290 |
else (pre rlt_condact_resetmicrowave_microwave_KEYPAD_PROCESSING_rlt_init_step)))); |
1291 |
|
1292 |
SETUP = |
1293 |
(if (1 = microwave_microwave_mode_logic_mode) |
1294 |
then true |
1295 |
else false); |
1296 |
|
1297 |
p32 = (true -> ((not (enable and |
1298 |
(not KP_CLEAR))) or |
1299 |
((not ((KP_5 and |
1300 |
(not (pre KP_5))) and |
1301 |
((not (KP_4 and |
1302 |
(not (pre KP_4)))) and |
1303 |
((not (KP_3 and |
1304 |
(not (pre KP_3)))) and |
1305 |
((not (KP_2 and |
1306 |
(not (pre KP_2)))) and |
1307 |
((not (KP_1 and |
1308 |
(not (pre KP_1)))) and |
1309 |
(not (KP_0 and |
1310 |
(not (pre KP_0)))))))))) or |
1311 |
(RIGHT_DIGIT = 5)))); |
1312 |
|
1313 |
enable = (true -> |
1314 |
(if (1 = (pre microwave_microwave_mode_logic_mode)) |
1315 |
then true |
1316 |
else false)); |
1317 |
|
1318 |
p28 = (true -> ((not (enable and |
1319 |
(not KP_CLEAR))) or |
1320 |
((not ((KP_1 and |
1321 |
(not (pre KP_1))) and |
1322 |
(not (KP_0 and |
1323 |
(not (pre KP_0)))))) or |
1324 |
(RIGHT_DIGIT = 1)))); |
1325 |
|
1326 |
|
1327 |
p29 = (true -> ((not (enable and |
1328 |
(not KP_CLEAR))) or |
1329 |
((not ((KP_2 and |
1330 |
(not (pre KP_2))) and |
1331 |
((not (KP_1 and |
1332 |
(not (pre KP_1)))) and |
1333 |
(not (KP_0 and |
1334 |
(not (pre KP_0))))))) or |
1335 |
(RIGHT_DIGIT = 2)))); |
1336 |
|
1337 |
p34 = (true -> ((not (enable and |
1338 |
(not KP_CLEAR))) or |
1339 |
((not ((KP_7 and |
1340 |
(not (pre KP_7))) and |
1341 |
((not (KP_6 and |
1342 |
(not (pre KP_6)))) and |
1343 |
((not (KP_5 and |
1344 |
(not (pre KP_5)))) and |
1345 |
((not (KP_4 and |
1346 |
(not (pre KP_4)))) and |
1347 |
((not (KP_3 and |
1348 |
(not (pre KP_3)))) and |
1349 |
((not (KP_2 and |
1350 |
(not (pre KP_2)))) and |
1351 |
((not (KP_1 and |
1352 |
(not (pre KP_1)))) and |
1353 |
(not (KP_0 and |
1354 |
(not (pre KP_0)))))))))))) or |
1355 |
(RIGHT_DIGIT = 7)))); |
1356 |
|
1357 |
OK = ((not (enable and |
1358 |
KP_CLEAR)) or |
1359 |
(MIDDLE_DIGIT = 0)); |
1360 |
|
1361 |
--%PROPERTY OK=true; |
1362 |
--%MAIN; |
1363 |
|
1364 |
tel |
1365 |
|