Is there a way to know when Kepware reads from a PLC?
Hi,
I have installed KepwareEx6 (v6.14) with GE Ethernet Suite option on a VM and set it up to read from an Emerson (old GE) PLC that has a CPE330 CPU. On the same VM that Kepware is installed, I have also installed a GE Historian Collector that is set up to collect data from Kepware using OPC DA and send the data to our native GE Historian. This way I can log data from the PLC to our GE Historian every 100 ms.
My PLC scan time, however, is between 4 to 5 ms. So, for every sample logged by the Historian I am missing potentially 24 samples from the PLC. If I know when Kepware reads from the PLC then in the PLC I can use that signal as a trigger to find the Minimum, Maximum and Average of the 25 PLC samples of data that correspond to the one sample that Kepware reads every 100 ms and log these statistical values as a separate tag to get a feel about the missing samples. So, this way for each signal of interest from PLC I will have 4 tags:
- The instantaneous value of the tag every 100 ms,
- The minimum of the twenty-five 4 ms samples between each 100 ms sample read by Kepware,
- the maximum of the twenty-five 4 ms samples between each 100 ms sample read by Kepware and
- the average of the twenty-five 4 ms samples between each 100 ms sample read by Kepware.

