Requirements

<< Click to Display Table of Contents >>

 

Requirements

The PLC program must by responsible for executing the following tasks:

When turning a PLC on: Reset memories from variables W04 to W09

After adding an event to the memory buffer: Check if any overflow occurred, that is, if variable W03 is equal to variable W04. If an overflow is detected, then increments variable W05

 

The reading pointer allows a PLC to detect and notify the application about an overflow in the circular buffer, which is a crucial information when validating data.

A PLC registers the database for the application along with syncing events. This allows an application that is turned off to interpret correctly the counter of hundredths of seconds of buffer events.

Storing the last time base by the PLC, variables W06 or W07, allows this application to be shut down and restarted at any moment. This way, events are not lost and time registers are completely reliable. A data loss only occurs if there is an overflow in PLC's buffer.

The indication of memory overflow allows an application to try to recover a large number of events, because when this happens, the reading counter is not considered and the whole buffer is read. This indication also validates or not the last time base used by this Driver, on variables W06 or W07.

When more than one application is used simultaneously, users must create a mechanism of communicating these PLCs, so that when one of the applications syncs their clock, it can pass to one of the PLCs the new time base, and this PLC informs other PLCs in the network the new time base, by copying the content of variable W08 or W09. This allows an application to update the time base of all PLCs, even if they are not active at that time.

Was this page useful?