Академический Документы
Профессиональный Документы
Культура Документы
Introduction:
The Program works as an OPC, ODBC and CSV server, serving resources of Telemetry (MT)
modules, as well for reading and writing, as for unsolicited messaging.
The program works as an application as well as a system service.
Diagram of server functionality:
Installation procedure:
Before installing a new version one has to be sure that program is not running.
The Program is delivered as an executable file that installs it and registers in the operating
systems register database. Uninstalling of the program is a standard Windows routine.
One can place the program in any directory and register it manually in the system by issuing
the command:
mt_opc.exe /regserver
or as a system service:
mt_opc.exe /regservice
or unregister it:
mt_opc.exe /unregserver
mt_opc.exe /unregservice
The program requires the NDIServer.dll file in order to run (installed with the program as
standard).
Configuration:
The Configuration of the server is written in the XML file.
An example of the configuration:
<?xml version="1.0"?>
<opc>
<configure net_mode="static" udp_port="7110" timestamp="system"
csv_log="true" csv_path="C:\" odbc_log="false"
odbc_source="myodbc" odbc_user="" odbc_password=""
odbc_write="1" log_filter="false" aliases="false"
debug_file_type="one_log" restore="false" backup_time="5"
updateable="false" debug="false"/>
<network name="device" ip_receiver="10.10.32.4"
udp_port="7110" ip_header_receiver="10.10.32.4"
ip_header_sender="10.10.32.1" timeout="12" retries="3"
module_type="mt101" update="false" add_crc="true"
csv_msg_log="true" odbc_msg_log="true" dreg_order="hi_lo"
expire_time="0" debug="false" enable="true">
<modbus name="slave" id="1" type="binary_inputs" address="0"
size="16" interval="120" csv_data_log="false"
odbc_data_log="false" debug="false" enable="true"/>
<modbus name="slave" id="1" type="binary_outputs" address="0"
size="60" interval="60" start="7:20:00" stop="19:45:00"
debug="false" enable="true"/>
<modbus name="slave" id="1" type="registers" address="0"
size="4" interval="180" start="6:35:00" stop="14:40:30"
day_of_week="1010100" debug="false" enable="true"/>
<modbus name="slave" id="1" type="registers" address="0"
size="64" format="bool" interval="180" debug="false"
enable="true"/>
The parameter <csv_path> - defines the path to the catalog where CSV files shall be stored
(default- "C:\")
The <csv_log> parameter decides whether any data is going to be written into the CSV files.
The (default value) true - permits writing data into the CSV files; event triggered data from
devices not defined in this configuration file will be written together with their IP address.
false no data arriving to the server, regardless of any other settings, will be written into
CSV files.
<udp_port> - the port the server is listening (default "7110")
<timestamp> - date time stamp for current data:
"system" = system time at the moment of data reception,
"data" = date stamped on the data (currently applicable to event data)
For data from datalogger, system setting convert UTC timestamp to local time.
<debug> - "true" record of all communication with the server, "false" (default value)
<debug_path> - defines the path to the folder where log files shall be stored ( - current)
<debug_file_type> - "one_log" (default), the log is recorded in one growing file. With value
"daily_log" the file name comprises current date so the log keeps daily records.
<config_path> - defines the path to the folder where configuration files (mt_aliases,
mt_log_filter) shall be stored ( - current)
<dreg_order> - defines register sequence In 2 register values. Accepted values are "hi_lo"
(default) and "lo_hi". It's global value, valid if not locally defined in <network> section.
<odbc_log> - cooperation with database via ODBC connection, "true"(default) or "false"
<db_type> - defines database type. Available settings are mssql (default), postgresql,
mysql.
<odbc_source> -system ODBC connection name
<odbc_user> - database username (optional, where required)
<odbc_password> - password (optional, where required)
<decimal_symbol> - defines sign which separates fracture part of floating point value from
integer part. Default setting is . (dot).
<scientific_notation> - parameter allows user to select notation of floating point values
between decimal and scientific. Default setting is false floating point values are written in
decimal notation.
<csv_separator> - defines sign which separates columns in CSV files. Default setting is ;
(semicolon).
<csv_millisec> - true makes timestamp accurate to milliseconds (default is to seconds)
<tag_separator> - defines sign (or signs), separates master's name from slave's name within
tag. Default setting is --.
<odbc_msg_log> - logs all events into database via ODBC - "true", logger only events
with logger, "false" (default)- no logging performed.
<odbc_read_table> - name of the table for read values (optional, where different from default
mt_read)
<odbc_logger_table> - name of the table recording events from the logger (optional, where
different from default mt_logger)
<update> - true defines a variable available both from the OPC server and from the
database used to communicate with the server in order to carry out an action on the device or
Requirements:
- A computer with installed MS Windows XP/ Server 2003 or 2008/ Vista/ 7/ 8 (the latest
service packs are required).
- The access to Internet or to an APN.