Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/24/11 21:30
Read: times


 
#184348 - Just create array of regular rules
Responding to: ???'s previous message
So let each recipe store either a fixed maximum number of rules, or a dynamic number of rules.

And let each rule have a fixed format:

- which element it operates on (cook element, smoke element, pump, vent, fan, ...)
- action (on, off, regulate (temp sensor), pulse, ...)
- start condition (absolute, or relative to start or stop of previous rule)
- start time
- stop time
- regulation parameter (temp sensor value for on and off, or pulse-on, pulse-off time, ...)
- amount value (amount of energy for cooking, if not just pulsed at 100%, rpm for fan if not just pulsed on/off)

Then have the main loop run through all these rules and have in RAM a flag if the rule is active or not, and in RAM keep track of the timer values for pulsed rules.

Some rules will run in sequence. This happens when rule starts based on end condition of a previous rule.
Some rules will run concurrently. This happens when rule starts at absolute time or based on start condition of a previous rule.


List of 23 messages in thread
TopicAuthorDate
User entered recipes ???            01/01/70 00:00      
   Just create array of regular rules            01/01/70 00:00      
      Thanks - that's great            01/01/70 00:00      
         programming language            01/01/70 00:00      
            programming language - not really            01/01/70 00:00      
               consider enum            01/01/70 00:00      
                  thanks - implemented.            01/01/70 00:00      
                     Intelligence            01/01/70 00:00      
                        I must have a stupid compiler            01/01/70 00:00      
                           Not all compilers are as good at generate warnings            01/01/70 00:00      
                              no warning/error on the compiler            01/01/70 00:00      
                                 response from Raisonance            01/01/70 00:00      
                  enumerations on 8051            01/01/70 00:00      
                     enums are 8bit by default on Raisonance            01/01/70 00:00      
                        NULL            01/01/70 00:00      
                           Could you show me the code            01/01/70 00:00      
                              compatibility et al            01/01/70 00:00      
                                 why change pointer to CODE?            01/01/70 00:00      
                                    enum advantage            01/01/70 00:00      
                                    user page does not work (at least for me)            01/01/70 00:00      
                                       try it now            01/01/70 00:00      
                     re: enumerations on 8051            01/01/70 00:00      
   Article on Hierarchical Menu Structure            01/01/70 00:00      

Back to Subject List