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