In this Video I want to show you how to use the systemfunction WriteManualValue (SchreibeWertManuell). With this function it is possibile to assign new values to a specified logging tag.
The associated time stamp is transferred to the logging archive. I also show how it is possible to create a log based on the selection of an DateTime data type.
JS code
let MyTime = new Date(Date.now());
//WriteManualValue(yourTagName:YourLoggedTagName, value to write, Time Stamp in ISO-8601 time format: YYYY-MM-DDTHH:mm:ss.sssZ)
HMIRuntime.TagLogging.SysFct.WriteManualValue("MyString:LoggingTag_MyString", HMIRuntime.Tags.SysFct.GetTagValue("text"), MyTime.toISOString());
00:00 Intro
00:08 configuration systemfunction
01:18 configuration ISO time stamp
02:26 create database entries
02:56 check quality code
04:15 check time stamp
05:22 add a dynamic time stamp
08:25 configuration dynamic time stamp
What is the pk_timestamp in the SQ Lite database, and how can you read it
• WinCC Unified V16: What is the pk_tim...
JavaScript toISOString() Method
https://www.w3schools.com/jsref/jsref...
SQLight Browser
https://sqlitebrowser.org/
#DerHecht #WinCC #Unified #TIAPortal