4/19/2018 6:58 AM | |
Joined: 5/16/2014 Last visit: 9/12/2022 Posts: 7298 Rating:
|
Hello sherk1312, ODK-functions like "TLGInsertArchivData" are documentet in the Option "WinCC/ODK (Open Development Kit)" https://w3.siemens.com/mcms/human-machine-interface/en/visualization-software/scada/wincc-options/wincc-odk/Pages/Default.aspx You should have it, for working with ODK-functions. In the attachment the description from the function "TLGInsertArchivData". Regards Georg Berghof AttachmentTLGInsertArchivData.pdf (422 Downloads) |
PS: If this post did really help you, you may use the Rate-button |
|
11/5/2024 12:41 PM | |
Joined: 10/11/2024 Last visit: 4/10/2025 Posts: 1 Rating:
|
This works great in WinCC C-script. Does anyone know how to do this in C# with external application? I am writing an application for transferring a lot of archive data from a previous DCS to WinCC. When inserting 1 tag value it works just fine. When I try to insert multiple tag values it only inserts the first one and returns error code 0x80 for all the rest. Example error message when inserting 3 values with 3 different time stamps: "TLG-API: an error occurred, line 883; Pos:1=0x80,2=0x80" First value is in position 0 and it is written fine (I can see it in the trend), but all other positions return error (in programming reference document 0x80="Record already exists"). When I try to read out records directly from the memory, they appear to be in order. Find attached the C# code I am using Attachmentbatch insert.txt (155 Downloads) |
Follow us on