Posted 28 Jul 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 Share this post Link to post Share on other sites
Posted 29 Jul 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. Share this post Link to post Share on other sites
Posted 31 Jul 2006 Most time we use Q12 or Q25 CPU's Share this post Link to post Share on other sites
Posted 31 Jul 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. Share this post Link to post Share on other sites
Posted 3 Aug 2006 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
Posted 9 Aug 2006 Not sure what you mean by have the time stamp in the same variable. Share this post Link to post Share on other sites