|
<< Click to Display Table of Contents >>
Sequencing of Events (SOE) |
This method allows reading a timestamp provided by a PLC by reading events. With it, users can store sequentially in a PLC's circular buffer a list of events, each one containing information about its type, the input that generated it, and the moment it occurred (timestamp) relative to a defined time base, as mentioned before.
The Special Tag for Downloading Events, with the N2 parameter equal to 999 and the N3 parameter equal to 0 (zero), must be read periodically. Whenever there are events in a PLC and this Driver's internal memory is empty, performing a reading from this Tag allows these events to be read to the Driver's internal memory.
A periodic polling must be performed in the Special Block for Reading a Table of Events, with the B3 parameter equal to 1 (one), to check whether there are events in this Driver's memory. If this Driver's memory is empty, all Elements of that Block Tag return the value -1 (minus one). Otherwise, the returned Block Tag contains the first event in that internal memory. If there are events, then the Special Tag for Reading Events, with the N2 parameter equal to 999 and the N3 parameter equal to 2 (two), can be read. This reading then removes the first event from this internal memory.