|
<< Click to Display Table of Contents >>
Driver Configuration |
The configuration of this Driver must be performed on the properties window. Also, users must manually define the files MetasysState0.txt and MetasysState1.txt containing several names of statuses that correspond to values 0 (zero) and 1 (one), respectively, so that this Driver can translate these statuses to number values 0 (zero) and 1 (one).
These files must contain a list of words with the several statuses, one word for each row. A word in a file for the status 0 (zero) cannot be in the file for the status 1 (one) and vice versa.
All words are converted to lowercase and rows that start with the symbol # are considered comments, according to the next examples.
#File MetasysState0.txt
Stopped
Off
Local
Close
Inactive
FALSE
Deactivate
Normal
#File MetasysState1.txt
Start
Reset
On
Remote
Open
Active
TRUE
Activate
Alarm
Users can also create a file MetasysReadAhead.txt, which informs a part of the name of a command linked to a status Tag for reading right after a waiting time configured in the Read Ahead after Cmd - Wait Time option. This file is read when starting this Driver, with the content indicated in the next example.
# Add to this file the keywords to link
# a command to a status that must be read as fast as possible
# in the format keyword_command;keyword_status
# The objects must belong to the same NAE concentrator
QDL-S;QDL-C
SF-COM;SF-STS
SYSENA;SF-STS
SF-CVF;SF-SVF
The search procedure is performed by checking whether a command that was successfully executed contains the first keyword, then replacing that keyword by the second keyword and checking if there is any Tag with that name. If true, then this Tag is placed on a special queue, waiting the time specified in the Read Ahead After Cmd - Wait Time option to be read.