author | Edouard Tisserant |
Wed, 26 Mar 2014 13:15:50 +0100 | |
changeset 59 | bdea62c1f32f |
parent 4 | e8a0af6b89d9 |
permissions | -rw-r--r-- |
4
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
2 |
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
3 |
xmlns="http://www.plcopen.org/xml/tc6.xsd" |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
4 |
xmlns:xhtml="http://www.w3.org/1999/xhtml" |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
5 |
xsi:schemaLocation="http://www.plcopen.org/xml/tc6.xsd"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
6 |
<fileHeader companyName="Beremiz" |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
7 |
productName="Beremiz" |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
8 |
productVersion="0.0" |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
9 |
creationDateTime="2008-12-14T16:53:26"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
10 |
<contentHeader name="LPC POUs" |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
11 |
modificationDateTime="2012-01-20T13:35:46"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
12 |
<coordinateInfo> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
13 |
<fbd> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
14 |
<scaling x="0" y="0"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
15 |
</fbd> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
16 |
<ld> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
17 |
<scaling x="0" y="0"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
18 |
</ld> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
19 |
<sfc> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
20 |
<scaling x="0" y="0"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
21 |
</sfc> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
22 |
</coordinateInfo> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
23 |
</contentHeader> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
24 |
<types> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
25 |
<dataTypes/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
26 |
<pous> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
27 |
<pou name="DEW_POINT" pouType="functionBlock"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
28 |
<interface> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
29 |
<inputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
30 |
<variable name="RH"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
31 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
32 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
33 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
34 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
35 |
<variable name="TEMP"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
36 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
37 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
38 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
39 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
40 |
</inputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
41 |
<outputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
42 |
<variable name="DEW_POINT"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
43 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
44 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
45 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
46 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
47 |
</outputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
48 |
</interface> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
49 |
<body> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
50 |
<ST> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
51 |
<![CDATA[if RH < 0.0 then |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
52 |
RH := 0.0; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
53 |
end_if; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
54 |
if RH > 100.0 then |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
55 |
RH := 100.0; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
56 |
end_if; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
57 |
DEW_POINT:=sqrt(sqrt(sqrt(RH/100.0)))*(112.0+(0.9*TEMP))+(0.1*TEMP)-112.0;]]> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
58 |
</ST> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
59 |
</body> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
60 |
</pou> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
61 |
<pou name="GET_RETAIN_DATA" pouType="functionBlock"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
62 |
<interface> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
63 |
<inputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
64 |
<variable name="INDEX"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
65 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
66 |
<UINT/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
67 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
68 |
<initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
69 |
<simpleValue value="0"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
70 |
</initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
71 |
<documentation> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
72 |
<![CDATA[Index (row) of the retain array.]]> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
73 |
</documentation> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
74 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
75 |
<variable name="READ"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
76 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
77 |
<BOOL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
78 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
79 |
<initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
80 |
<simpleValue value="FALSE"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
81 |
</initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
82 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
83 |
</inputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
84 |
<outputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
85 |
<variable name="WORD1"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
86 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
87 |
<UINT/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
88 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
89 |
<documentation> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
90 |
<![CDATA[Data - first column.]]> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
91 |
</documentation> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
92 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
93 |
<variable name="WORD2"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
94 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
95 |
<UINT/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
96 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
97 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
98 |
<variable name="WORD3"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
99 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
100 |
<UINT/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
101 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
102 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
103 |
<variable name="RD_OK"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
104 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
105 |
<BOOL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
106 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
107 |
<initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
108 |
<simpleValue value="FALSE"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
109 |
</initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
110 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
111 |
</outputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
112 |
</interface> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
113 |
<body> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
114 |
<ST> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
115 |
<![CDATA[{ |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
116 |
extern IEC_UINT __GetRetainData(BOOL, IEC_UINT, IEC_UINT); |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
117 |
extern BOOL __GetReadStatus(BOOL); |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
118 |
__SET_VAR(data__->,WORD1,__GetRetainData(__GET_VAR(data__->READ),__GET_VAR(data__->INDEX),0)); |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
119 |
__SET_VAR(data__->,WORD2,__GetRetainData(__GET_VAR(data__->READ),__GET_VAR(data__->INDEX),1)); |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
120 |
__SET_VAR(data__->,WORD3,__GetRetainData(__GET_VAR(data__->READ),__GET_VAR(data__->INDEX),2)); |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
121 |
__SET_VAR(data__->,RD_OK,__GetReadStatus(0)); |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
122 |
}]]> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
123 |
</ST> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
124 |
</body> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
125 |
</pou> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
126 |
<pou name="SET_RETAIN_DATA" pouType="functionBlock"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
127 |
<interface> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
128 |
<inputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
129 |
<variable name="INDEX"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
130 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
131 |
<UINT/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
132 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
133 |
<initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
134 |
<simpleValue value="0"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
135 |
</initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
136 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
137 |
<variable name="WRITE"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
138 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
139 |
<BOOL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
140 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
141 |
<initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
142 |
<simpleValue value="FALSE"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
143 |
</initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
144 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
145 |
<variable name="WORD1"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
146 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
147 |
<UINT/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
148 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
149 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
150 |
<variable name="WORD2"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
151 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
152 |
<UINT/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
153 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
154 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
155 |
<variable name="WORD3"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
156 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
157 |
<UINT/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
158 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
159 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
160 |
</inputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
161 |
<outputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
162 |
<variable name="WR_OK"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
163 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
164 |
<BOOL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
165 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
166 |
<initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
167 |
<simpleValue value="FALSE"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
168 |
</initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
169 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
170 |
</outputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
171 |
</interface> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
172 |
<body> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
173 |
<ST> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
174 |
<![CDATA[{ |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
175 |
extern BOOL __SetRetainData(BOOL, IEC_UINT, IEC_UINT, IEC_UINT, IEC_UINT); |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
176 |
__SET_VAR(data__->,WR_OK,__SetRetainData(__GET_VAR(data__->WRITE),__GET_VAR(data__->INDEX),__GET_VAR(data__->WORD1),__GET_VAR(data__->WORD2),__GET_VAR(data__->WORD3))); |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
177 |
}]]> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
178 |
</ST> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
179 |
</body> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
180 |
</pou> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
181 |
<pou name="FIND_RETAIN_DATA" pouType="functionBlock"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
182 |
<interface> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
183 |
<outputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
184 |
<variable name="FOUND"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
185 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
186 |
<BOOL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
187 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
188 |
<initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
189 |
<simpleValue value="False"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
190 |
</initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
191 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
192 |
<variable name="INDEX"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
193 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
194 |
<UINT/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
195 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
196 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
197 |
</outputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
198 |
<inputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
199 |
<variable name="START_IDX"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
200 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
201 |
<UINT/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
202 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
203 |
<initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
204 |
<simpleValue value="0"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
205 |
</initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
206 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
207 |
<variable name="END_IDX"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
208 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
209 |
<UINT/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
210 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
211 |
<initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
212 |
<simpleValue value="0"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
213 |
</initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
214 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
215 |
<variable name="SEARCH"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
216 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
217 |
<BOOL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
218 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
219 |
<initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
220 |
<simpleValue value="False"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
221 |
</initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
222 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
223 |
<variable name="WORD1"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
224 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
225 |
<UINT/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
226 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
227 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
228 |
<variable name="WORD2"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
229 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
230 |
<UINT/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
231 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
232 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
233 |
<variable name="WORD3"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
234 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
235 |
<UINT/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
236 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
237 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
238 |
</inputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
239 |
</interface> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
240 |
<body> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
241 |
<ST> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
242 |
<![CDATA[{ |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
243 |
extern BOOL __FindRetainData(BOOL, IEC_UINT, IEC_UINT, IEC_UINT, IEC_UINT, IEC_UINT); |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
244 |
extern IEC_UINT __GetFoundIndex(BOOL); |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
245 |
__SET_VAR(data__->,FOUND,__FindRetainData(__GET_VAR(data__->SEARCH),__GET_VAR(data__->START_IDX),__GET_VAR(data__->END_IDX),__GET_VAR(data__->WORD1),__GET_VAR(data__->WORD2),__GET_VAR(data__->WORD3))); |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
246 |
__SET_VAR(data__->,INDEX,__GetFoundIndex(0)); |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
247 |
}]]> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
248 |
</ST> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
249 |
</body> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
250 |
</pou> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
251 |
<pou name="PID_A" pouType="functionBlock"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
252 |
<interface> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
253 |
<inputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
254 |
<variable name="SET_POINT"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
255 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
256 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
257 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
258 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
259 |
</inputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
260 |
<localVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
261 |
<variable name="ena"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
262 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
263 |
<INT/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
264 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
265 |
<initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
266 |
<simpleValue value="1"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
267 |
</initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
268 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
269 |
</localVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
270 |
<inputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
271 |
<variable name="ACTUAL_VALUE"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
272 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
273 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
274 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
275 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
276 |
<variable name="REVERSE"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
277 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
278 |
<BOOL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
279 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
280 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
281 |
<variable name="HOLD"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
282 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
283 |
<BOOL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
284 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
285 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
286 |
<variable name="MANUAL"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
287 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
288 |
<BOOL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
289 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
290 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
291 |
<variable name="MANUAL_REF"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
292 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
293 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
294 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
295 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
296 |
<variable name="Kp_GAIN"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
297 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
298 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
299 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
300 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
301 |
<variable name="Ki_GAIN"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
302 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
303 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
304 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
305 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
306 |
<variable name="Kd_GAIN"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
307 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
308 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
309 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
310 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
311 |
<variable name="Td_FADEOUT"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
312 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
313 |
<TIME/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
314 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
315 |
<initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
316 |
<simpleValue value="t#1s"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
317 |
</initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
318 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
319 |
<variable name="DEAD_BAND"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
320 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
321 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
322 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
323 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
324 |
<variable name="OUT_MAX"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
325 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
326 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
327 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
328 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
329 |
<variable name="OUT_MIN"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
330 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
331 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
332 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
333 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
334 |
<variable name="CYCLE_TIME"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
335 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
336 |
<TIME/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
337 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
338 |
<initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
339 |
<simpleValue value="t#0.1s"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
340 |
</initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
341 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
342 |
</inputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
343 |
<outputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
344 |
<variable name="OUT"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
345 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
346 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
347 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
348 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
349 |
</outputVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
350 |
<localVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
351 |
<variable name="D_fadeout"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
352 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
353 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
354 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
355 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
356 |
<variable name="Error_n"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
357 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
358 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
359 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
360 |
<initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
361 |
<simpleValue value="0.0"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
362 |
</initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
363 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
364 |
<variable name="Error_n1"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
365 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
366 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
367 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
368 |
<initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
369 |
<simpleValue value="0.0"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
370 |
</initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
371 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
372 |
<variable name="Error_n2"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
373 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
374 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
375 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
376 |
<initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
377 |
<simpleValue value="0.0"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
378 |
</initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
379 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
380 |
<variable name="Dout_n"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
381 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
382 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
383 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
384 |
<initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
385 |
<simpleValue value="0.0"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
386 |
</initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
387 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
388 |
<variable name="Dout"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
389 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
390 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
391 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
392 |
<initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
393 |
<simpleValue value="0.0"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
394 |
</initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
395 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
396 |
<variable name="Dout_1"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
397 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
398 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
399 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
400 |
<initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
401 |
<simpleValue value="0.0"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
402 |
</initialValue> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
403 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
404 |
<variable name="TON_1"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
405 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
406 |
<derived name="TON"/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
407 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
408 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
409 |
<variable name="TON_1_Q"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
410 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
411 |
<BOOL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
412 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
413 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
414 |
<variable name="ET1"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
415 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
416 |
<TIME/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
417 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
418 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
419 |
<variable name="CTr"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
420 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
421 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
422 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
423 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
424 |
<variable name="FTr"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
425 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
426 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
427 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
428 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
429 |
<variable name="power"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
430 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
431 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
432 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
433 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
434 |
<variable name="OUTchk"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
435 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
436 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
437 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
438 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
439 |
<variable name="Dout_int"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
440 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
441 |
<REAL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
442 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
443 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
444 |
<variable name="Reverse_1"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
445 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
446 |
<BOOL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
447 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
448 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
449 |
<variable name="Soft_t"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
450 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
451 |
<BOOL/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
452 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
453 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
454 |
<variable name="R_chk"> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
455 |
<type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
456 |
<INT/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
457 |
</type> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
458 |
</variable> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
459 |
</localVars> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
460 |
</interface> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
461 |
<body> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
462 |
<ST> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
463 |
<![CDATA[TON_1( |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
464 |
IN := NOT TON_1_Q, |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
465 |
PT := CYCLE_TIME, |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
466 |
Q => TON_1_Q, |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
467 |
ET => ET1 |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
468 |
); |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
469 |
if TON_1_Q then |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
470 |
if REVERSE then |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
471 |
Error_n := SET_POINT - ACTUAL_VALUE; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
472 |
else |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
473 |
Error_n := ACTUAL_VALUE - SET_POINT; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
474 |
end_if; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
475 |
if Td_FADEOUT <= T#0.05s then |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
476 |
Td_FADEOUT := t#0.05s; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
477 |
end_if; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
478 |
CTr := TIME_TO_REAL (CYCLE_TIME); |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
479 |
FTr := TIME_TO_REAL (Td_FADEOUT); |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
480 |
power := CTr / FTr; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
481 |
D_Fadeout := EXPT( 0.04979 , power ); (*time to reach 5% = e^(-3) *) |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
482 |
Dout := Kd_GAIN * (Error_n - 2.0 * Error_n1 + Error_n2); |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
483 |
Dout_n := Dout + Dout_1 * D_Fadeout; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
484 |
Dout_int := Dout_int + Dout_n; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
485 |
OUTchk := OUTchk + Kp_GAIN * (Error_n - Error_n1) + Ki_GAIN * Error_n * CTr; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
486 |
R_chk:= bool_to_int(REVERSE) + bool_to_int(Reverse_1); |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
487 |
if (Soft_t or R_chk=1) then |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
488 |
Dout_int := 0.0; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
489 |
Dout_n := 0.0; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
490 |
Dout_1:= 0.0; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
491 |
Dout:= 0.0; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
492 |
OUTchk:= OUT; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
493 |
Error_n1:=Error_n; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
494 |
Error_n2:=Error_n; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
495 |
Soft_t := 0; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
496 |
end_if; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
497 |
if R_chk =1 then |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
498 |
Error_n:=0.0; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
499 |
Soft_t := True; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
500 |
end_if; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
501 |
|
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
502 |
if OUTchk > OUT_MAX then |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
503 |
OUTchk := OUT_MAX; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
504 |
end_if; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
505 |
|
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
506 |
if OUTchk < OUT_MIN then |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
507 |
OUTchk := OUT_MIN; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
508 |
end_if; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
509 |
|
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
510 |
if MANUAL then |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
511 |
OUT := MANUAL_REF; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
512 |
OUTchk:= OUT; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
513 |
Dout_int := 0.0; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
514 |
Dout_n := 0.0; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
515 |
Dout_1:= 0.0; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
516 |
else |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
517 |
if abs(Error_n) < DEAD_BAND or HOLD then |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
518 |
OUT := OUT; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
519 |
OUTchk:= OUT; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
520 |
Dout_int := 0.0; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
521 |
Dout_n := 0.0; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
522 |
Dout_1:= 0.0; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
523 |
else |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
524 |
OUT := OUTchk + Dout_int; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
525 |
end_if; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
526 |
end_if; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
527 |
|
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
528 |
if OUT > OUT_MAX then |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
529 |
OUT := OUT_MAX; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
530 |
end_if; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
531 |
|
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
532 |
if OUT < OUT_MIN then |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
533 |
OUT := OUT_MIN; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
534 |
end_if; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
535 |
|
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
536 |
Error_n2 := Error_n1; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
537 |
Error_n1 := Error_n; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
538 |
Dout_1:=Dout_n; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
539 |
Reverse_1 := REVERSE; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
540 |
else |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
541 |
OUT:=OUT; |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
542 |
end_if;]]> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
543 |
</ST> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
544 |
</body> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
545 |
</pou> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
546 |
</pous> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
547 |
</types> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
548 |
<instances> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
549 |
<configurations/> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
550 |
</instances> |
e8a0af6b89d9
Adding support for LPC pous library using new Beremiz extension paradigm
Laurent Bessard
parents:
diff
changeset
|
551 |
</project> |