I have a project based in the IEC-60870-5-104 driver. I have several datapoints configured as ASDU type 30 (single point with CP56 Time tag).
Can I have both of the following timestamps?:
1.-the timestamp included in the cp56 ASDU
2.-The timestamp when the driver receives the ASDU
Thank you.
IEC-104 TimeStamps
- Gertjan van Schijndel
- Posts:634
- Joined: Mon Aug 02, 2010 10:37 am
Re: IEC-104 TimeStamps
1. This timestamp is normally used by the driver as timestamp of the value.
2. The driver cannot add this extra information to the value (it can only send a single timestamp with the value).
However when the value triggers an alert then '_alert_hdl.._system_time' contains the timestamp of when the event manager has received the value and raised the alert.
Otherwise a solution could be to use a driver plugin. Which adds the value again, but with the current timestamp. One of the values should be marked with the 'histDataBits', so this value is written as a correction value and does not break the chronological order of the values.
2. The driver cannot add this extra information to the value (it can only send a single timestamp with the value).
However when the value triggers an alert then '_alert_hdl.._system_time' contains the timestamp of when the event manager has received the value and raised the alert.
Otherwise a solution could be to use a driver plugin. Which adds the value again, but with the current timestamp. One of the values should be marked with the 'histDataBits', so this value is written as a correction value and does not break the chronological order of the values.