<< Click to Display Table of Contents >>
Driver Configuration |
All configurations are performed on Driver's configuration dialog box.
Aditionally, shall be defined manually the files MetasysState0.txt and MetasysState1.txt containing the state names corresponding to the values 0 e 1 respectively, so the driver can translate these states for numerical values 0 and 1.
The files shall contain a list of words, one at each line. A word placed at the state 0 file shall not be placed at the state 1 file, and vice-versa.
All words are converted to lowercase internally, so the words are not case-sensitive.
Rows starting with the symbol # will be considered comments.
Example:
MetasysState0.txt
Stopped
Local
Close
Off
Inactive
FALSE
Deactivate
Normal
MetasysState1.txt
Started
Start
Reset
On
Remote
Open
Active
TRUE
Activate
Alarm
It is also possible to create a file called MetasysReadAhead.txt which informs a part of a command name which is associated with a status tag, which can be read immediately after.
The file will be read at driver startup, with the following content :
#comments starts with #
#put here the keywords to associate the command to a state
#keyword_command;keyword_state
#objects shall belong to the same controller
QDL-S;QDL-C
SF-COM;SF-STS
SYSENA;SF-STS
SF-CVF;SF-SVF
The procedure starts after a successful command. If the command tag contains the first keyword, the keyword is replaced by the second keyword and the driver checks if a status tag exists with that name. If positive, this tag is inserted into a special queue waiting for the wait time (Read Ahead After Cmd – Wait Time) to be read.