cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

How to use the time parsed by soft sampling for log storage instead of the default timestamp

ZK_14459562
2-Explorer

How to use the time parsed by soft sampling for log storage instead of the default timestamp

Current Status: There are currently two methods for data collection in our project: PLC-based collection and soft collection (files/databases/protocols, etc.). For soft collection, the data is pushed to the OPC UA Server via the OPC UA protocol. Both PLC and soft collection devices are configured in Kepware, which ultimately integrates with ThingWorx.

.
Issue Description: The collected data parsed by the soft-sampling device all records the post-event time. How can the timestamps be stored when logging data for points bound to the modeled device in ThingWorx?  Use the time parsed by soft sampling instead of the default timestamp from the sampling points?

1 REPLY 1
slangley
23-Emerald III
(To:ZK_14459562)

Hi @ZK_14459562 

 

To store timestamps from the soft-sampling device in ThingWorx instead of using the default timestamps from the sampling points, you will need to configure the data ingestion process to utilize the parsed timestamps from your soft collection method.

 

Data Ingestion Configuration: Ensure that your soft collection method is set up to push the correct timestamps to the OPC UA Server. This may involve modifying the data structure being sent to include the timestamp as a separate field.

 

ThingWorx Properties: You can create a property in your ThingWorx model that will hold the timestamp from the soft collection. This property should be updated whenever new data is ingested.

 

Custom Logic: Implement custom logic in ThingWorx to handle the incoming data. You may need to write a service that processes the incoming data and assigns the parsed timestamp to the corresponding property in your ThingWorx model.

 

These resources may also be helpful:

 

Regards.

 

--Sharon

Announcements


Top Tags