Timestemp in Milliseconds
Hello,
I have an application in which I capture analog values at 20 Hz and transmit them via OPC UA to an InfluxDB (on an external computer) to visualize the values with Grafana.
For the temporal visualization, I want to use a timestamp generated by the PLC at the time of the analog-to-digital conversion.
How can I capture a millisecond-accurate timestamp on the AXF?
Best regards,
Fabian
Comments
Hello!
Please, take a look at PLCnext Base library https://www.plcnextstore.com/world/app/1294
DateAndTime subfolder. Function block PBCL_DateTimeGet_1 can be good candidate for initial time capture variable.
BR
Thanks, this worked!