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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Is there a way to know when Kepware reads from a PLC?

Behrooz
4-Participant

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:

 

  1. The instantaneous value of the tag every 100 ms,
  2. The minimum of the twenty-five 4 ms samples between each 100 ms sample read by Kepware,
  3. the maximum of the twenty-five 4 ms samples between each 100 ms sample read by Kepware and
  4. the average of the twenty-five 4 ms samples between each 100 ms sample read by Kepware.

 

ACCEPTED SOLUTION

Accepted Solutions
cmorehead
12-Amethyst
(To:Behrooz)

@Behrooz,

 

You could use the KEPServerEX built-in Communication Diagnostics where all read and write operations can be viewed in the Diagnostics Viewer. Here is a link to the page in the manual hat covers the use of the communication diagnostics: 

 

https://www.ptc.com/-/media/kepware-store/en/manuals/kepserverex-manual.pdf#page=260

 

Thanks,

*Chris

View solution in original post

4 REPLIES 4
cmorehead
12-Amethyst
(To:Behrooz)

@Behrooz,

 

You could use the KEPServerEX built-in Communication Diagnostics where all read and write operations can be viewed in the Diagnostics Viewer. Here is a link to the page in the manual hat covers the use of the communication diagnostics: 

 

https://www.ptc.com/-/media/kepware-store/en/manuals/kepserverex-manual.pdf#page=260

 

Thanks,

*Chris

there is a system tag called _statistics._successful reads.  You could watch that for change indicating a read has taken place. 

Hi,

Thanks. I'll see if I can read "_statistics._successful" in PLC and use it as a trigger to know when Kepware is reading from PLC.

Cheers,

Behrooz

Behrooz
4-Participant
(To:Behrooz)

Hi Chris,

Thank you for the reply and providing the reference.

I'll check if there is an OPC diagnostic tag that I could use in PLC as a trigger to determine when Kepware is reading from the PLC.

Cheers,

Behrooz

Announcements


Top Tags