I am only recording changes about every 800 milliseconds.
I have a DINT tag on a Logix controller that should be updating every cycle for 1-3 seconds. I am expecting thousands of changes. The on change script logs this tag value and three other tags at the time of the event.
Tag group:
I have tried Sub and Polling. Sampling of 1ms
Tag:
Deadband is Absolute.
Auto and Discrete.
Sample mode of On Change and Tag Group....
PLC Cycle time has no bearing on the answer. What rate is the subscription for the OPC tag in Ignition (typically set via the rate in the tag group)? Ignition is not even going to try to get samples faster than that.
If you set the poll rate (interval, really) to a very small number, it will actually run at the fastest pace the PLC's request-response comms processor can handle (aka "Class 3" comms). Typical response times for the latest processors (L8x family) with a light load is mid-single-digit milliseconds. With much load, low tens of milliseconds.
If you really need to capture events that occur hundreds per second, you will certainly need a ring buffer in the PLC to hold them so an external client (like Ignition) can bulk read from the buffer. Or switch to class 1 communications (aka I/O packets). Or both. (Cough...)
Did you go look at the settings described? Did you go look at the driver diagnostics?
Getting thousands of values per second is non-trivial for request-response drivers. Your desire is utterly unreasonable for "out-of-the-box" operation.
Thank you all. I would like to log every 20ms. I didn't know what type of polling limits to expect. I didn't know what setup I should used to get the best response time.
You need a ring buffer in your PLC to hold several seconds worth of your (multi-value) samples. Include a precision timestamp with each sample to place in the DB. You need some rather tricky code in a fast tag change event in Ignition to slurp up the new values in the ring when your index register changes. You need to use multi-row inserts to your DB so that its own round-trip response time doesn't hold you back.
Again thank you for your help. This is always the most helpful and responsive product forum that I have ever experienced. Another reason I always recommend this product. Take care ...