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