Skip to content

Commit f710673

Browse files
einarsigithub-actions[bot]
authored andcommitted
Autogenerated from Septic repository
1 parent 6db8f27 commit f710673

12 files changed

Lines changed: 220 additions & 84 deletions

File tree

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// The Xvrs listed are placed in a new column to the right of the corresponding XvrList
2-
The heading text is used as heading for the new column<br>
3-
ColumnList: ColumnListName
4-
Heading= ""
5-
Tooltip= ""
6-
Xvrs= 1
7-
""
8-
StatusXvrs= 1
9-
""
1+
// The Xvrs listed are placed in a new column to the right of the corresponding XvrList
2+
The heading text is used as heading for the new column<br>
3+
ColumnList: ColumnListName
4+
Heading= ""
5+
Tooltip= ""
6+
Xvrs= 1
7+
""
8+
StatusXvrs= 1
9+
""

packages/extension/skills/writing-septic-config/objects/cvr.cnfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
Fulf= 1
2626
HighPnlty= 1
2727
LowPnlty= 1
28-
RelxParam= 3 1 30 90
28+
RelxParam= 3 1 30 80
2929
FulfReScale= 0.001
3030
FulfUniScale= 1
3131
FulfDynScale= 1
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// Filedata process, playback or basecase comparison of data file, *.dta
2-
If configured, the filename is taken from Path, else the id is used for filename
3-
FdtaProc: FdtaProcName
4-
Text1= ""
5-
Text2= ""
6-
Mode= Playback
7-
SkipEvr= OFF
8-
Nstep= 1
1+
// Filedata process, playback or basecase comparison of data file, *.dta
2+
If configured, the filename is taken from Path, else the id is used for filename
3+
FdtaProc: FdtaProcName
4+
Text1= ""
5+
Text2= ""
6+
Mode= Playback
7+
SkipEvr= OFF
8+
Nstep= 1

packages/extension/skills/writing-septic-config/objects/mpcappl.cnfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
FeasTol= 1e-10
88
FailMax= 0
99
DesMode= STOPPED
10+
LmPrio= 100
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
// MultiXvrPlot, plot Meas from multiple Xvr in same plot. Cnfg wih optional position and size if the group is
2-
gridded
3-
MultiXvrPlot: MultiXvrPlotName
4-
Row= -1
5-
Col= -1
6-
RowSize= 1
7-
ColSize= 1
8-
Title= ""
9-
PlotMax= 100
10-
PlotMin= 0
11-
Xvrs= 1
12-
""
13-
Colors= 1
14-
""
1+
// MultiXvrPlot, plot Meas from multiple Xvr in same plot. Cnfg wih optional position and size if the group is
2+
gridded
3+
MultiXvrPlot: MultiXvrPlotName
4+
Row= -1
5+
Col= -1
6+
RowSize= 1
7+
ColSize= 1
8+
Title= ""
9+
PlotMax= 100
10+
PlotMin= 0
11+
Xvrs= 1
12+
""
13+
Colors= 1
14+
""
Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
// Trend Variable for lab and online sampling values
2-
Has parameters that are used by
3-
SampleTvr: SampleTvrName
4-
Text1= ""
5-
Text2= ""
6-
PlotMax= 100
7-
PlotMin= 0
8-
PlotSpan= -1
9-
Nfix= 1
10-
Unit= ""
11-
Meas= 0
12-
GrpMask= 0000000000000000000000000000001
13-
GrpType= 0000000000000000000000000000000
14-
Span= 10
15-
MeasValidation= OFF
16-
MeasHighLimit= 1e+10
17-
MeasLowLimit= -1e+10
18-
HighLimit= 0
19-
LowLimit= 0
20-
MaxDiff= 0
21-
MaxSdev= 0
22-
UpdateFrac= 1
23-
RampTime= 1
24-
Transform= NONE
1+
// Trend Variable for lab and online sampling values
2+
Has parameters that are used by
3+
SampleTvr: SampleTvrName
4+
Text1= ""
5+
Text2= ""
6+
PlotMax= 100
7+
PlotMin= 0
8+
PlotSpan= -1
9+
Nfix= 1
10+
Unit= ""
11+
Meas= 0
12+
GrpMask= 0000000000000000000000000000001
13+
GrpType= 0000000000000000000000000000000
14+
Span= 10
15+
MeasValidation= OFF
16+
MeasHighLimit= 1e+10
17+
MeasLowLimit= -1e+10
18+
HighLimit= 0
19+
LowLimit= 0
20+
MaxDiff= 0
21+
MaxSdev= 0
22+
UpdateFrac= 1
23+
RampTime= 1
24+
Transform= NONE
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
// State Variable
2-
Use with subroutine model (SubrModl) for a variable with nominal response calulated by the model. Transport
3-
mechanism to/from model is identical to a Cvr
4-
Svr: SvrName
5-
Text1= ""
6-
Text2= ""
7-
PlotMax= 100
8-
PlotMin= 0
9-
PlotSpan= -1
10-
Nfix= 1
11-
Unit= ""
12-
Meas= 0
13-
Span= 10
14-
MeasValidation= OFF
15-
MeasHighLimit= 1e+10
16-
MeasLowLimit= -1e+10
1+
// State Variable
2+
Use with subroutine model (SubrModl) for a variable with nominal response calulated by the model. Transport
3+
mechanism to/from model is identical to a Cvr
4+
Svr: SvrName
5+
Text1= ""
6+
Text2= ""
7+
PlotMax= 100
8+
PlotMin= 0
9+
PlotSpan= -1
10+
Nfix= 1
11+
Unit= ""
12+
Meas= 0
13+
Span= 10
14+
MeasValidation= OFF
15+
MeasHighLimit= 1e+10
16+
MeasLowLimit= -1e+10
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
// UAProc handles the connection and interaction with the OPC UA server.
22
UAProc: UAProcName
3-
ServerURL= "opc.tcp://localhost:4840"
4-
yPulse= ""
3+
ServerURL= "opc.tcp://localhost:48404"
4+
DefaultNameSpaceURI= ""
5+
Timeout= 8000
56
UserName= ""
67
Password= ""
7-
SecurityMode= UA_MESSAGESECURITYMODE_SIGN
8-
DefaultNameSpaceURI= ""
98
credentialsPath= ""
9+
SecurityMode= NONE
1010
useSubscription= OFF
11-
monitorItemFilterTrigger= UA_DATACHANGETRIGGER_STATUSVALUE
1211
RunMenu= OFF
1312
xSchedule= ""
13+
yPulse= ""
1414
ySimTime= ""
15-
writeOnChangeOnly= OFF

packages/septic/public/latest/calcs.yaml

Lines changed: 139 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@
692692
detailedDescription: "Construct the experimental model for use in ExprProc simulator\
693693
\ from parameters. Cvr and Mvr/Dvr needs to be\r\n contained in same SmpcAppl/MPCAppl/NMPCAppl.\r\
694694
\n The Laplace transform model is y/u = (1 + lead1*s)*exp(-delay*s)/(1 + lag1*s)(1\
695-
\ + lag2*s) where lead1, delay, lag1 and\r\n lag2 are given in minutes."
695+
\ + lag2*s) where lead1, delay, lag1\r\n and lag2 are given in minutes."
696696
quality: GOOD if valid model between cvr and xvr, and all inputs are GOOD, else
697697
BAD
698698
- name: exprprocmodset
@@ -724,7 +724,7 @@
724724
- value
725725
arity: '1'
726726
retr: "steady state gain, of the scaled Amodl if CV and IV belongs to same SmpcAppl/MPCAppl/NMPCAppl\
727-
\ with an ExprModl\r\n and Amodl exists, else 0"
727+
\ with an\r\n ExprModl and Amodl exists, else 0"
728728
detailedDescription: Set the gain modifier in the active experimental model (ExprIvr.Scale)
729729
of ExprProc
730730
quality: GOOD if CV and IV belongs to same SmpcAppl/MPCAppl/NMPCAppl with an ExprModl
@@ -1580,6 +1580,29 @@
15801580
retr: Calculated quality of mix, 0 if sum of volumes = 0
15811581
detailedDescription: Calculate flash of a mix
15821582
quality: GOOD if all supplied parameters are GOOD
1583+
- name: idiv
1584+
signature: idiv(a, b)
1585+
parameters:
1586+
- name: a
1587+
description: Dividend
1588+
direction: in
1589+
datatype:
1590+
- value
1591+
arity: '1'
1592+
- name: b
1593+
description: Divisor (must be non-zero)
1594+
direction: in
1595+
datatype:
1596+
- value
1597+
arity: '1'
1598+
retr: Integer quotient trunc(a) / trunc(b)
1599+
detailedDescription: "Computes the integer quotient of a divided by b, following\
1600+
\ the C++\r\n built-in integer division semantics (truncation toward zero), as\
1601+
\ described in\r\n https://en.cppreference.com/w/cpp/language/operator_arithmetic.html\
1602+
\ and\r\n https://en.cppreference.com/w/cpp/numeric/math/div.html. The inputs\
1603+
\ are\r\n first truncated toward zero to int, and the integer quotient is\r\n\
1604+
\ returned as a double."
1605+
quality: GOOD only if both a and b are GOOD and b != 0
15831606
- name: if
15841607
signature: if(condition, trueexpr, falseexpr, notinuse)
15851608
parameters:
@@ -1639,6 +1662,29 @@
16391662
quality: "GOOD if number of arguments is odd and >= 3 and all cond's and selected\
16401663
\ expressions up to and including the\r\n last (returned) evaluated expression\
16411664
\ are GOOD, else BAD."
1665+
- name: imod
1666+
signature: imod(a, b)
1667+
parameters:
1668+
- name: a
1669+
description: Dividend
1670+
direction: in
1671+
datatype:
1672+
- value
1673+
arity: '1'
1674+
- name: b
1675+
description: Divisor (must be non-zero)
1676+
direction: in
1677+
datatype:
1678+
- value
1679+
arity: '1'
1680+
retr: Integer remainder trunc(a) % trunc(b)
1681+
detailedDescription: "Computes the integer remainder of a divided by b, following\
1682+
\ the C++\r\n built-in integer remainder semantics (sign of result follows the\
1683+
\ dividend),\r\n as described in\r\n https://en.cppreference.com/w/cpp/language/operator_arithmetic.html\
1684+
\ and\r\n https://en.cppreference.com/w/cpp/numeric/math/div.html. The inputs\
1685+
\ are\r\n first truncated toward zero to int, then a % b is returned as a\r\n\
1686+
\ double. The identity (a/b)*b + a%b == a holds."
1687+
quality: GOOD only if both a and b are GOOD and b != 0
16421688
- name: intpoltype1
16431689
signature: intpoltype1(x, X1, Y1, X2, Y2, ..., XN, YN)
16441690
parameters:
@@ -2106,7 +2152,7 @@
21062152
retr: Steady state gain from xvr towards cvr if valid model, else 0
21072153
detailedDescription: "Get the steady state gain from the active experimental model,\
21082154
\ including the scaling by\r\n the gain modifier (Scale) set by CalcModSet. Cvr\
2109-
\ and Mvr/Dvr needs to be contained in same SmpcAppl/MPCAppl/NMPCAppl."
2155+
\ and Mvr/Dvr needs to be contained in same\r\n SmpcAppl/MPCAppl/NMPCAppl."
21102156
quality: GOOD if valid model between cvr and xvr
21112157
- name: modsched
21122158
signature: modsched(cvr, xvr, gain, lag1, lag2, lead1, delay, apply)
@@ -2786,6 +2832,96 @@
27862832
retr: Set value
27872833
detailedDescription: Set deas for dvr
27882834
quality: state if valid dvr otherwise BAD
2835+
- name: setdvdeltapred
2836+
signature: setdvdeltapred(dvr, N, X1, Y1, X2, Y2, ..., XN, YN)
2837+
parameters:
2838+
- name: dvr
2839+
description: Dvr Tag
2840+
direction: in
2841+
datatype:
2842+
- value
2843+
arity: '1'
2844+
- name: N
2845+
description: Number of deltas (>= 0)
2846+
direction: in
2847+
datatype:
2848+
- value
2849+
arity: '1'
2850+
- name: Xn
2851+
description: X - values (sample number). Assumed to be monotonically increasing
2852+
direction: in
2853+
datatype:
2854+
- value
2855+
arity: N
2856+
- name: Yn
2857+
description: Y - values corresponding to X - values
2858+
direction: in
2859+
datatype:
2860+
- value
2861+
arity: N
2862+
retr: Resulting sum of deltas Yn
2863+
detailedDescription: "Sets the DeltaPred member of a Dvr object. X1 is the number\
2864+
\ of samples until the first change (delta) in\r\n DV in the prediction and Y1\
2865+
\ is the corresponding delta. Assumes that the sequence of X1, X2, ..., XN values\
2866+
\ are\r\n monotonically increasing"
2867+
quality: GOOD only if ALL arguments are GOOD and valid dvr and else BAD
2868+
- name: setdvdeltapredfromcv
2869+
signature: setdvdeltapredfromcv(dvr, cvr[, scale])
2870+
parameters:
2871+
- name: dvr
2872+
description: Dvr Tag
2873+
direction: in
2874+
datatype:
2875+
- value
2876+
arity: '1'
2877+
- name: cvr
2878+
description: Cvr Tag whose predictions are copied as step deltas
2879+
direction: in
2880+
datatype:
2881+
- value
2882+
arity: '1'
2883+
- name: scale
2884+
description: "Optional scaling factor applied to each step delta before storing\
2885+
\ in the\r\n DV. Defaults to 1.0 when omitted."
2886+
direction: in
2887+
datatype:
2888+
- value
2889+
arity: '1'
2890+
retr: Sum of the copied (scaled) deltas
2891+
detailedDescription: "Copies the Cvr predictions into the DeltaPred member of a\
2892+
\ Dvr as steps at the\r\n Cvr's evaluation points, optionally scaled by the given\
2893+
\ factor. For each evaluation point\r\n EvalPnt[i] of the Cvr, the delta written\
2894+
\ into the Dvr is the change in the Cvr prediction\r\n between consecutive evaluation\
2895+
\ points (the first eval point is referenced against the\r\n current Cvr measurement),\
2896+
\ multiplied by scale."
2897+
quality: GOOD if all arguments resolve correctly, otherwise BAD
2898+
- name: setdvdeltapredfrommv
2899+
signature: setdvdeltapredfrommv(dvr, mvr[, scale])
2900+
parameters:
2901+
- name: dvr
2902+
description: Dvr Tag
2903+
direction: in
2904+
datatype:
2905+
- value
2906+
arity: '1'
2907+
- name: mvr
2908+
description: Mvr Tag whose predicted deltas are copied
2909+
direction: in
2910+
datatype:
2911+
- value
2912+
arity: '1'
2913+
- name: scale
2914+
description: "Optional scaling factor applied to each MV delta before storing\
2915+
\ in the\r\n DV. Defaults to 1.0 when omitted."
2916+
direction: in
2917+
datatype:
2918+
- value
2919+
arity: '1'
2920+
retr: Sum of the copied (scaled) deltas
2921+
detailedDescription: "Copies the predicted future moves of an Mvr into the DeltaPred\
2922+
\ member of a Dvr,\r\n optionally scaled by the given factor. For each prediction\
2923+
\ step i in 1..Npred, sets\r\n dvr->setDeltaPred(i, scale * mvr->mgetdv(N + i))."
2924+
quality: GOOD if all arguments resolve correctly, otherwise BAD
27892925
- name: setfulf
27902926
signature: setfulf(xvr, value)
27912927
parameters:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
commit: 12ff79b
1+
commit: 393fb7b
22
version: latest

0 commit comments

Comments
 (0)