LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI OPC collects PLC data, data is lost in rare cases,Why?

Solved!
Go to solution
I used NI OPC to collect Siemens S7-1500 data and displayed it in the vi program. The acquisition rate is 50 milliseconds, but after observation, it is found that data is lost in rare cases. Is this a problem with the NI OPC Server or a PLC, or what causes it? Is there any solution?
0 Kudos
Message 1 of 7
(1,415 Views)

Hi zdz,

 

once you can observe a pattern in those "rare cases" then you might be able find a cause.

 

How can/should we help with so little information?

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 2 of 7
(1,401 Views)
What is "pattern in those rare cases"? I use "shared variable value change notification: user registration event" to detect PLC variable changes. Will there be data loss under normal circumstances? Is it because the data is updated too often?
0 Kudos
Message 3 of 7
(1,309 Views)

Date rates of 200Hz are a bit high for typical OPC server.

 

You may want to poke around with the OPC server settings to see if you can bump up the update rate but you are definitely pushing it.

 

100 Hz is the highest I would depend on an OPC interface.

 

An aside...

 

LabVIEW Channel wires come in multiple flavors including a Tag type. The Tag flavor offers the most recent update and are lossy. It is no accident NI chose the name "Tag" since that is what OPC servers and PLCs expose.

 

Take care,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 7
(1,277 Views)
Do you mean that NI OPC tags cannot guarantee all data?
0 Kudos
Message 5 of 7
(1,237 Views)

@Ben  ha scritto:

Date rates of 200Hz are a bit high for typical OPC server.

 

Actually it's 20 Hz. Not a rate I'm experienced about, anyway.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019
Message 6 of 7
(1,231 Views)
Solution
Accepted by topic author zdz

You are correct Paolo!

 

My bad.

 

I can not say what the top update rate can be.

 

OPC is generally used for slow changing values and checking what the value is NOW.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 7 of 7
(1,229 Views)