rock0

data logging

2 posts in this topic

Hey guys! What is best way to save cycle statistic? I want to save last 500 cycles, each cycle data is 16 word length. I have CJ2M-Cpu32 and NB10 HMI. Best Regards

Share this post


Link to post
Share on other sites
Using an arbitrary memory location that looks like this: Each of the last 500 cycles is reserved 16 words each from D10000 to D17999 (8000 words). A simple program to do this might look like this: This drawing illustrates what the program does: At the end of a cycle, the first transfer shifts the previous 499 cycles down by 16 words (overwriting the data for the 500th previous cycle). Then the second transfer moves the current data into the first slot as depicted.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now