roger10 Posted July 28, 2006 Report Posted July 28, 2006 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 Quote
Crossbow Posted July 29, 2006 Report Posted July 29, 2006 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. Quote
roger10 Posted July 31, 2006 Author Report Posted July 31, 2006 Most time we use Q12 or Q25 CPU's Quote
Crossbow Posted July 31, 2006 Report Posted July 31, 2006 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. Quote
roger10 Posted August 3, 2006 Author Report Posted August 3, 2006 Thanks Crossbow, so therefore it is not possible to have the timestamp in the same variable? Quote
Crossbow Posted August 9, 2006 Report Posted August 9, 2006 Not sure what you mean by have the time stamp in the same variable. Quote
Recommended Posts
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.