2 Replies Latest reply on Apr 16, 2012 7:09 PM by Ahmad Fattahi

    Can a Natural Scheduled ACE Tag used as both input and output?


      Hello Experts,


      In our application we need to do ACE Calculation Natural Triggered based on Digital Tag.
      Is it piossible to Natural Schedule the ACE Module context based on Digital Tag configured for both Input / Output Tag?


      Also, may I have any sample logic to write Digital Tag = 0 (Zero)?


      I appreciate all your help in advance !

        • Re: Can a Natural Scheduled ACE Tag used as both input and output?
          Ahmad Fattahi

          Here is an excerpt from PI ACE user manual on natural scheduling stating that you cannot use the same tag for both input and output; it is simply because any output would then trigger a new calculation and therefore, infinite loop:


          "Natural scheduling means that an ACE Context is evaluated whenever one of its trigger PI tags has received a new snapshot event. The trigger tags must be a subset of input tags/aliases used in the ACE Module. Tags/aliases used as both input and output cannot be used as trigger tags as this may easily result in an infinite loop if not handled properly. By default, the calculation result has the same timestamp as the trigger tag event. Natural scheduling is highly accurate; it has the same effect as if the calculation were performed continuously."


          It may also be useful for you to read this KB article on the PIACEPoint object and how the whole scheduling and input/output tags work in PI ACE.