The library created to provide controller's procedures for including as a procedure of direct execution of the JavaLikeCalc module, then it's wrote on the JavaLikeCalc language.
To direct 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. Prescriptions manager (prescr)
Description: Prescriptions manager and controller. Used in addition with user interface's cadre "Prescription: editing" and "Prescription: runtime" for which into a parameter of the controller you must pass that parameters: "mode", "prog", "startTm", "curCom", "comLs", "work". Author:Roman Savochenko Sponsor: Vasiliy Grigoriev from "Vacuum technologies laboratory". Version: 1.0.0 Parameters:
dbDB
DB:DB with tables name
String
Output
false
dbComs
DB:Table with commands
String
Output
false
dbProgs
DB:Table with programs
String
Output
false
comsCntr
Commands controller
String
Input
false
mode
Mode: Finish(-2); Error(-1); Stop(0); Run (1); Pause (2)
Integer
Output
false
curMode
Current mode
Integer
Input
false
prog
Name of selected program
String
Output
false
startTm
Start time (seconds)
Integer
Input
false
curCom
Current command-step
String
Input
false
work
Work program
Object
Input
false
comLs
Commands list
Object
Input
false
clcCnt
Cycles counter
Integer
Input
false
f_frq
Function calculate frequency (Hz)
Real
Input
false
1000
f_start
Function start flag
Boolean
Input
false
0
f_stop
Function stop flag
Boolean
Input
false
0
this
This controller object link
Object
Input
false
0
2. Notifications dispatcher (ntfDispatch)
Description: Notifications dispatcher by EMail and SMS for pointed messages of OpenSCADA messages buffer. Author:Roman Savochenko Sponsor:Oleksandr Knestyapin Version: 1.3.1 Parameters:
tmOut
Maximum notification timeout, seconds
Integer
Input
false
5
messLev
Messages level, negative for alarms
Integer
Input
false
1
messCat
Messages category, template or regular expression
String
Input
false
al*:*
emailState
Email notification current state
String
Output
false
emailServer
Output transport for SMTP connection, empty for disable
String
Input
false
Sockets.out_SMTP
emailAuth
Auth, empty for disable
String
Input
false
user:pass
emailSender
Sender
String
Input
false
noreply@oscada.org
emailReceiver
Destination receiver address
String
Input
false
test@oscada.org
emailTopic
EMail topic
String
Input
false
Notification
emailMess
EMail message
String
Input
false
SMSState
SMS notification current state
String
Output
false
SMSTrId
SMS serial transport, empty for disable
String
Input
false
SMS
SMSPin
SMS pin, empty for disable
String
Input
false
1111
SMSTel
SMS destination receiver, tel. number
String
Input
false
+380XXXXXXXXX
SMSTextMd
SMS in text mode, else PDU
Boolean
Input
false
0
f_start
Function start flag
Boolean
Input
false
f_stop
Function stop flag
Boolean
Input
false
0
f_frq
Function calculate frequency (Hz)
Real
Input
false
1000
this
This controller object link
Object
Input
false
0
3. test, test1
Description: Different tests of the JavaLikeCalc language for execution into the controller mode. Author:Roman Savochenko Version: 1.0.0, 1.0.0