nurhazx Posted October 19 Share Posted October 19 Hi All, I want to calculate total duration of running machine between strainer replacement. I am trying with formula below but getting error. $series.setMaximumDuration(500day).aggregate(totalDuration("h"), $capsules.setMaximumDuration(500day), startKey(), 500day).toStep() Note: Purple capsule is a running condition Yellow capsule is a time range between strainer replacement Red capsule is a strainer replacement period Link to comment Share on other sites More sharing options...
Seeq Team John Brezovec Posted October 19 Seeq Team Share Posted October 19 Since you already have identified: When the equipment is running (Purple Condition) Time periods that you want to aggregate within (Yellow Condition) We should be able to accomplish this with a single Signal from Condition, using the 'Equipment Running' condition as the selected condition, total duration as the statistic, and the 'Time Between Replacement' condition as your bounding condition. The setup should look something like this: If you prefer to do it in formula, the equivalent would be: $equipmentRunning.setMaximumDuration(500day).aggregate(totalDuration("h"), $timeBetweenReplacement.setMaximumDuration(500day), durationKey()) If you still get an error from that let me know what it is. Link to comment Share on other sites More sharing options...
nurhazx Posted October 23 Author Share Posted October 23 (edited) Hi John, I still got an error in (pic below). If I reduce the time duration it still the same Edited October 23 by nurhazx Link to comment Share on other sites More sharing options...
Seeq Team Nuraisyah Rosli Posted October 23 Seeq Team Share Posted October 23 Hi Nur, As discussed during the call, the yellow icon is not an error, it's just a warning message since you set the maximum capsule duration to be 1000d. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now