12/14/2011 9:34 AM | |
Joined: 1/28/2009 Last visit: 8/8/2023 Posts: 6818 Rating:
|
Dear F1Kimi , Why don't you try using standard archiving programs? Log internal variables of S7 CPUs Best regards, Hamid hosseini |
12/16/2011 11:24 AM | |
Joined: 11/25/2011 Last visit: 6/11/2022 Posts: 16 Rating:
|
Hi F1Kimi, I would prepare a DB if I were you then and I would put two parts in it: The first I would make as a header - where to put the offset for the second part,number for entries,length of the struct and an int which you could use as a pointer. The second part I would do either as an UDT where to define day(byte),month(byte),min(byte),sec(byte), whatever data there what you might be also interested in and then put that UDT in the DB and specify how many entries you want. The second step shall be to detect the event and write the times in it (please refer to writing times from this link:https://support.automation.siemens.com/WW/llisapi.dll?func=cslib.csinfo&lang=en&objid=21222026&caller=view), as well the additional data you need. There are two questions which come then: when to erase the DB contents and what should happen if the DB is full - I haven't tried it yet but I think you could enlarge the DB by changing the UDT's entries in the DB and also correct the header data. Once again - this must be tested. I think it should be no problem and it should not affect the data in the DB. Hope you might clear out the idea. If not please post back Best Regards, izi
|
Follow us on