OpenSCADAWiki: Home Page En/Using/API Function Libs/ Lib Serv Proc
 
 (2 Kb) This page is frozen, actual one here.


Service procedures library

Name: LibServProc
Version: 1.0.0
State: Free (GPL)
Author: Roman Savochenko
Description: Library of service procedures for different using.
Address: DB in file: SQLite.LibDB.servProc (oscadalibs.db.gz)
Compatibility: OpenSCADA >= 0.9



Contents

About the library

The library created to different using and it is wrote on JavaLikeCalc language.

To addressing the functions of the library you can use static call address "DAQ.JavaLikeCalc.lib_techApp.{Func}()" or dynamic "SYS.DAQ.JavaLikeCalc["lib_techApp"]["{Func}"].call()", "SYS.DAQ.JavaLikeCalc["lib_techApp"].{Func}()". Where {Func} — function identifier in the library.

To connect the library to the project of the OpenSCADA station it is possible by downloading the attached file of the database, placing it in in the database directory of the station's project and creating the database object for the DB module "SQLite", indicating the database file in the configuration.

1. TEST: FS archiver pack (archPackFStests)

Description: Archiving to File System tests pack, for check the optimization algorithm. The stages supported:
Author: Roman Savochenko
Version: 1.0.0
Parameters:
tm Start time (14.03.2015 21:37) Integer Input false 1426361839
per Period, seconds Integer Input false 60
addr Archive address String Input false test123
archiver Archiver address String Input false FSArch.1m
step Step (0-8), -1 for all Integer Input false -1

2. TEST: Release (releaseTests)

Description: OpenSCADA releases formal sets pack in list:
Author: Roman Savochenko
Version: 1.0.0
Parameters:
sub Subsystem (-1:All;0:SYS;1:Security;2:Transport;3:A Integer Input false -1
rez Result String Output false

3. CRC 16 (crc16)

Description: Standard Cyclic Redundancy Check (CRC) with free polynomial set, by default it is 0x8005. It isn't actual more by the common CRC implementing.
Author: Roman Savochenko
Version: 1.0.0
Parameters:
in Input String Input false
out Result Integer Output false
poly Polynomial (reversion) Integer Input false 40961

4. Archives recalc (procArh)

Description: Value archives recalculation.
Author: Roman Savochenko
Version: 1.0.0
Parameters:
fromarch From archive String Input false Archive.va_ai3_code
toarch To archive String Input false Archive.va_ai3_dP
begs Begin time String Input false 2006-08-08 9:21:56
ends End time String Input false 2006-08-08 11:21:55