MWD Posted January 21, 2016 Report Share Posted January 21, 2016 I wanted to make a accumulated hour meter. Seemed simple enough by just using the 1 sec pulse to trigger multiple count up accumulators, SEC, MIN, Hours. It appears that there is a limit for the number of function blocks that can be nested. In the attached example the first increment counter (sec) counts to 59 then resets MI20 to 0. The store command enables the second INC function M21 (MIN). This all works properly except for the last compare and store to reset the minute counter to 0. When the MI21 INC function ENO goes high, the compare block does not do the AB compare nor does the STORE function reset MI21 to 0. A trace does show the blocks are enabled but the function themselves do not work. Is there a limitation for the number of functions that can be chained? Theoretically I should be able to add another chain for hours. Other suggestions for a simple run time timer? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.