Timestamp_Start Property
General info
Label |
Start Time |
Description |
The time the OPC server was started. This is constant for the server instance and is not reset when the server changes states |
Data type |
DateTime |
Type |
Regular |
Code |
546 |
Symbolic name |
MODEL_PROP_TIMESTAMP_START |
Lua access code |
inmation.model.properties.Timestamp_Start |
Available since |
1.8.1.1450 |
- Parent properties
Attributes
Name | Tooltip |
---|---|
PROP_VISIBLE | The property is visible in DataStudio and can be read by the inmation APIs |
PROP_VOLATILE | The property exists during runtime of the service only and is not saved to the image |
PROP_DETECTABLE | Property is detectable by system-driven server endpoint investigation |
Examples
Read from or write to the Timestamp_Start
property.
-- Read from the Timestamp_Start
inmation.getvalue("<OBJECT FULL PATH>.AeConnection.ComConnection.ComConnection.OPCComCRuntimeInformation.OpcComCStateInformation.Timestamp_Start")
-- Write to the Timestamp_Start
inmation.setvalue("<OBJECT FULL PATH>.AeConnection.ComConnection.ComConnection.OPCComCRuntimeInformation.OpcComCStateInformation.Timestamp_Start", inmation.currenttime())
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "so", Password = "inmation" };
StatelessInterface sli = new StatelessInterface(tcpcfg);
// Read from the Timestamp_Start
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.AeConnection.ComConnection.ComConnection.OPCComCRuntimeInformation.OpcComCStateInformation.Timestamp_Start"));
// Write to the Timestamp_Start
Result result = sli.WriteValue(sc, new WriteItem(DateTime.Now, "<OBJECT FULL PATH>.AeConnection.ComConnection.ComConnection.OPCComCRuntimeInformation.OpcComCStateInformation.Timestamp_Start"));