Provides the library of functions compatible with SCADA Complex1 of the firm SIC "DIYA".
License:
GPL
Introduction
Special module FLibComplex1 provides the OpenSCADA system with the static library of functions compatible with SCADA Complex1 of firm SIC "DIYA". These functions are used in the SCADA system Complex1 in the form of algoblocks to create inner-computings on the virtual controller. Provision of the library of these functions lets to do the transfer of computational algorithms from the system Complex1.
To address the functions of the library you can use static call address "Special.FLibComplex1.{Func}()" or dynamic "SYS.Special.FLibComplex1["{Func}"].call()", "SYS.Special.FLibComplex1.{Func}()". Where {Func} — function identifier in the library.
Below is the description of each function of the library. For each function it was evaluated the execution time. Measurements were made on the system with the following parameters: Athlon 64 3000 + (ALTLinux 4.0 (32bit)) by measuring the total execution time of the function when you call it 1000 times. Sampling was carried out of the five calculations, rounded to integer. Time is in angle brackets and is measured in microseconds.
1. Alarm (alarm) <111>
Description: Set alarm sign in the case of going out of the variable for the specified boundary. Formula:
out = if(val>max || val<min) true; else false;
2. Condition '<' (cond_lt) <239>
Description: Operation of branching in accordance with the condition "<". Formula:
Description: Full check of the conditions, including more, less and equal. Formula:
out = if(in1<(in2_1*in2_2*in2_3*in2_4)) in3_1*in3_2*in3_3*in3_4; else if( in1>(in4_1*in4_2*in4_3*in4_4) in5_1*in5_2*in5_3*in5_4; else in6_1*in6_2*in6_3*in6_4;
5. Digital block (digitBlock) <252>
Description: Function contains the control algorithm of digital signals acquisition for valves and pumps that contain: signs of "Open", "Close" and the command "Open", "Close", "Stop". Supports work with pulse commands, i.e. can read the signal through the specified period of time. Parameters:
ID
Parameter
Type
Mode
cmdOpen
Command "Open"
Bool
Out
cmdClose
Command "Close"
Bool
Out
cmdStop
Command "Stop"
Bool
Out
stOpen
Position "Opened"
Bool
In
stClose
Position "Closed"
Bool
In
tCmd
Command hold time (s)
Integer
In
frq
Frequency of calculation (milliseconds)
Integer
In
6. Division (div) <526>
Description: Makes division of the set of variables. Formula: