Enable LASTKRUNCHTIMEFROMPACKED
- Last UpdatedNov 02, 2023
- 1 minute read
Note: For information on overriding default configuration settings, refer to Modify configuration settings.
The lastKrunchTime field is part of packedRt, and is only updated with packedRt. This means that, if you subscribe to the lastKrunchTime field, it only updates when the analog point's curval field changes.
When you enable LASTKRUNCHTIMEFROMPACKED, then the lastKrunchtime field follows the real lastKrunchTime updates.
The lastKrunchTime field associated with packedRt is called lastKrunchTimeRt. You can subscribe to lastKrunchTimeRt using lastKrunchTimeRt.
To enable LASTKRUNCHTIMEFROMPACKED
-
In the %DNADataRoot%\RealTime\config\Settings directory, either create or open the OPCDAServerConfig.json file.
-
In the file, change the following value to true:
"OPCDAServer" > "ServerName" > "LASTKRUNCHTIMEFROMPACKED": false
For example:
{
"RealTime":{
"OPCDAServer":{
"OASySDNA.OPCDAServer.1":{
"HPDB": false,
"LASTKRUNCHTIMEFROMPACKED": true,
"MAPDATAQUALITY": false,
"MAPTIMESTAMP": false,
"NOSYSTEMNAME": false,
"ACCESSPERMISSION": "READONLY",
"SECURITYOVERRIDE": false,
"VERBOSE": false,
"SUBSCRIPTIONS": []
}
}
}
}
-
Save the file.
-
Restart the RealTime service.