Sign in to follow this  
Followers 0
roger10

Time stamping

6 posts in this topic

Hi folks, In the MX OPC Server I have a time stamp, this is generated by the OPC. But I would like to receive the time stamp from the PLC CPU. How can I realize that? Thanks in advance. Roger

Share this post


Link to post
Share on other sites
The PLC has a realtime clock. Simply add those registers to the data you are receiving. If you say which CPU I can tell you which addresses are the clock.

Share this post


Link to post
Share on other sites
Most time we use Q12 or Q25 CPU's

Share this post


Link to post
Share on other sites
Each byte of SD210 thru SD213 contains a bit of the clock information. SD210 lower byte is month, higher byte is year SD211 lower byte is hour, upper byte is day SD212 lower byte is seconds, upper byte is minutes SD213 lower byte is day of week. upper byte is 34d and 4th digits of year (IE 20 for 2006) Your best bet is to use the DATERD command every scan in your program to drop that information into sequential words, and then set up your OPC to log those words with your existing data.

Share this post


Link to post
Share on other sites
Thanks Crossbow, so therefore it is not possible to have the timestamp in the same variable?

Share this post


Link to post
Share on other sites
Not sure what you mean by have the time stamp in the same variable.

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
Sign in to follow this  
Followers 0