|
<< Click to Display Table of Contents >>
Driver's Operation |
For a proper use of this Driver in an application, it is important to understand how it works with different execution loops, also called threads.
When started, this Driver executes the main thread, according to the scan time of reading and writing Tags, just like any other Elipse Software Driver.
In addition to the main thread, this Driver also starts another thread in parallel, which is in charge of communicating with a device, obeying a scan time. This scan time is configured on the AlstomP12x tab. This communication thread obeys the next steps:
1.If the scan time has not expired yet, this thread remains inactive until that scan time expires.
2.This thread then queries a device for new records.
3.If there are any records still not updated, a new transfer routine starts.
4.Otherwise, this thread returns to the scan time, that is, returns to step 1 (one).
The Status Tag is designed to display status values of this communication thread.
The transfer routine mentioned on step 3 (three) of the communication thread obeys the next steps:
1.Pages with information and data, as well as record times, are collected.
2.Processing of files in COMTRADE format is performed, and these files are saved on disk.
In tests performed with a communication speed of 19200 bps, this routine's duration lasts for about 10 seconds.