|
1 <?xml version='1.0' encoding='utf-8'?> |
|
2 <project xmlns:ns1="http://www.plcopen.org/xml/tc6.xsd" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.plcopen.org/xml/tc6_0201"> |
|
3 <fileHeader companyName="Unknown" productName="Unnamed" productVersion="1" creationDateTime="2022-05-06T11:12:02"/> |
|
4 <contentHeader name="Unnamed" modificationDateTime="2022-05-09T09:09:01"> |
|
5 <coordinateInfo> |
|
6 <fbd> |
|
7 <scaling x="5" y="5"/> |
|
8 </fbd> |
|
9 <ld> |
|
10 <scaling x="0" y="0"/> |
|
11 </ld> |
|
12 <sfc> |
|
13 <scaling x="0" y="0"/> |
|
14 </sfc> |
|
15 </coordinateInfo> |
|
16 </contentHeader> |
|
17 <types> |
|
18 <dataTypes/> |
|
19 <pous> |
|
20 <pou name="program0" pouType="program"> |
|
21 <interface> |
|
22 <localVars> |
|
23 <variable name="trendval0"> |
|
24 <type> |
|
25 <derived name="HMI_REAL"/> |
|
26 </type> |
|
27 </variable> |
|
28 <variable name="trendval1"> |
|
29 <type> |
|
30 <derived name="HMI_REAL"/> |
|
31 </type> |
|
32 </variable> |
|
33 <variable name="counter"> |
|
34 <type> |
|
35 <INT/> |
|
36 </type> |
|
37 </variable> |
|
38 </localVars> |
|
39 </interface> |
|
40 <body> |
|
41 <FBD> |
|
42 <outVariable localId="2" executionOrderId="0" height="25" width="95" negated="false"> |
|
43 <position x="910" y="195"/> |
|
44 <connectionPointIn> |
|
45 <relPosition x="0" y="10"/> |
|
46 <connection refLocalId="10" formalParameter="OUT"> |
|
47 <position x="910" y="205"/> |
|
48 <position x="885" y="205"/> |
|
49 </connection> |
|
50 </connectionPointIn> |
|
51 <expression>trendval0</expression> |
|
52 </outVariable> |
|
53 <outVariable localId="3" executionOrderId="0" height="25" width="95" negated="false"> |
|
54 <position x="910" y="255"/> |
|
55 <connectionPointIn> |
|
56 <relPosition x="0" y="10"/> |
|
57 <connection refLocalId="12" formalParameter="OUT"> |
|
58 <position x="910" y="265"/> |
|
59 <position x="885" y="265"/> |
|
60 </connection> |
|
61 </connectionPointIn> |
|
62 <expression>trendval1</expression> |
|
63 </outVariable> |
|
64 <block localId="4" typeName="ADD" executionOrderId="0" height="75" width="63"> |
|
65 <position x="210" y="190"/> |
|
66 <inputVariables> |
|
67 <variable formalParameter="IN1"> |
|
68 <connectionPointIn> |
|
69 <relPosition x="0" y="35"/> |
|
70 <connection refLocalId="1"> |
|
71 <position x="210" y="225"/> |
|
72 <position x="140" y="225"/> |
|
73 </connection> |
|
74 </connectionPointIn> |
|
75 </variable> |
|
76 <variable formalParameter="IN2"> |
|
77 <connectionPointIn> |
|
78 <relPosition x="0" y="60"/> |
|
79 <connection refLocalId="7"> |
|
80 <position x="210" y="250"/> |
|
81 <position x="170" y="250"/> |
|
82 </connection> |
|
83 </connectionPointIn> |
|
84 </variable> |
|
85 </inputVariables> |
|
86 <inOutVariables/> |
|
87 <outputVariables> |
|
88 <variable formalParameter="OUT"> |
|
89 <connectionPointOut> |
|
90 <relPosition x="63" y="35"/> |
|
91 </connectionPointOut> |
|
92 </variable> |
|
93 </outputVariables> |
|
94 </block> |
|
95 <block localId="5" typeName="SEL" executionOrderId="0" height="80" width="65"> |
|
96 <position x="485" y="175"/> |
|
97 <inputVariables> |
|
98 <variable formalParameter="G"> |
|
99 <connectionPointIn> |
|
100 <relPosition x="0" y="30"/> |
|
101 <connection refLocalId="6" formalParameter="OUT"> |
|
102 <position x="485" y="205"/> |
|
103 <position x="460" y="205"/> |
|
104 <position x="460" y="185"/> |
|
105 <position x="435" y="185"/> |
|
106 </connection> |
|
107 </connectionPointIn> |
|
108 </variable> |
|
109 <variable formalParameter="IN0"> |
|
110 <connectionPointIn> |
|
111 <relPosition x="0" y="50"/> |
|
112 <connection refLocalId="4" formalParameter="OUT"> |
|
113 <position x="485" y="225"/> |
|
114 <position x="273" y="225"/> |
|
115 </connection> |
|
116 </connectionPointIn> |
|
117 </variable> |
|
118 <variable formalParameter="IN1"> |
|
119 <connectionPointIn> |
|
120 <relPosition x="0" y="70"/> |
|
121 <connection refLocalId="8"> |
|
122 <position x="485" y="245"/> |
|
123 <position x="445" y="245"/> |
|
124 </connection> |
|
125 </connectionPointIn> |
|
126 </variable> |
|
127 </inputVariables> |
|
128 <inOutVariables/> |
|
129 <outputVariables> |
|
130 <variable formalParameter="OUT"> |
|
131 <connectionPointOut> |
|
132 <relPosition x="65" y="30"/> |
|
133 </connectionPointOut> |
|
134 </variable> |
|
135 </outputVariables> |
|
136 </block> |
|
137 <block localId="6" typeName="GE" executionOrderId="0" height="60" width="65"> |
|
138 <position x="370" y="155"/> |
|
139 <inputVariables> |
|
140 <variable formalParameter="IN1"> |
|
141 <connectionPointIn> |
|
142 <relPosition x="0" y="30"/> |
|
143 <connection refLocalId="4" formalParameter="OUT"> |
|
144 <position x="370" y="185"/> |
|
145 <position x="306" y="185"/> |
|
146 <position x="306" y="225"/> |
|
147 <position x="273" y="225"/> |
|
148 </connection> |
|
149 </connectionPointIn> |
|
150 </variable> |
|
151 <variable formalParameter="IN2"> |
|
152 <connectionPointIn> |
|
153 <relPosition x="0" y="50"/> |
|
154 <connection refLocalId="9"> |
|
155 <position x="370" y="205"/> |
|
156 <position x="350" y="205"/> |
|
157 </connection> |
|
158 </connectionPointIn> |
|
159 </variable> |
|
160 </inputVariables> |
|
161 <inOutVariables/> |
|
162 <outputVariables> |
|
163 <variable formalParameter="OUT"> |
|
164 <connectionPointOut> |
|
165 <relPosition x="65" y="30"/> |
|
166 </connectionPointOut> |
|
167 </variable> |
|
168 </outputVariables> |
|
169 </block> |
|
170 <inVariable localId="7" executionOrderId="0" height="25" width="20" negated="false"> |
|
171 <position x="150" y="240"/> |
|
172 <connectionPointOut> |
|
173 <relPosition x="20" y="10"/> |
|
174 </connectionPointOut> |
|
175 <expression>1</expression> |
|
176 </inVariable> |
|
177 <inVariable localId="8" executionOrderId="0" height="25" width="20" negated="false"> |
|
178 <position x="425" y="235"/> |
|
179 <connectionPointOut> |
|
180 <relPosition x="20" y="10"/> |
|
181 </connectionPointOut> |
|
182 <expression>0</expression> |
|
183 </inVariable> |
|
184 <inVariable localId="9" executionOrderId="0" height="25" width="35" negated="false"> |
|
185 <position x="315" y="195"/> |
|
186 <connectionPointOut> |
|
187 <relPosition x="35" y="10"/> |
|
188 </connectionPointOut> |
|
189 <expression>360</expression> |
|
190 </inVariable> |
|
191 <block localId="10" typeName="COS" executionOrderId="0" height="40" width="60"> |
|
192 <position x="825" y="175"/> |
|
193 <inputVariables> |
|
194 <variable formalParameter="IN"> |
|
195 <connectionPointIn> |
|
196 <relPosition x="0" y="30"/> |
|
197 <connection refLocalId="14" formalParameter="OUT"> |
|
198 <position x="825" y="205"/> |
|
199 <position x="785" y="205"/> |
|
200 </connection> |
|
201 </connectionPointIn> |
|
202 </variable> |
|
203 </inputVariables> |
|
204 <inOutVariables/> |
|
205 <outputVariables> |
|
206 <variable formalParameter="OUT"> |
|
207 <connectionPointOut> |
|
208 <relPosition x="60" y="30"/> |
|
209 </connectionPointOut> |
|
210 </variable> |
|
211 </outputVariables> |
|
212 </block> |
|
213 <block localId="11" typeName="INT_TO_REAL" executionOrderId="0" height="40" width="100"> |
|
214 <position x="585" y="175"/> |
|
215 <inputVariables> |
|
216 <variable formalParameter="IN"> |
|
217 <connectionPointIn> |
|
218 <relPosition x="0" y="30"/> |
|
219 <connection refLocalId="5" formalParameter="OUT"> |
|
220 <position x="585" y="205"/> |
|
221 <position x="550" y="205"/> |
|
222 </connection> |
|
223 </connectionPointIn> |
|
224 </variable> |
|
225 </inputVariables> |
|
226 <inOutVariables/> |
|
227 <outputVariables> |
|
228 <variable formalParameter="OUT"> |
|
229 <connectionPointOut> |
|
230 <relPosition x="100" y="30"/> |
|
231 </connectionPointOut> |
|
232 </variable> |
|
233 </outputVariables> |
|
234 </block> |
|
235 <block localId="12" typeName="SIN" executionOrderId="0" height="40" width="60"> |
|
236 <position x="825" y="235"/> |
|
237 <inputVariables> |
|
238 <variable formalParameter="IN"> |
|
239 <connectionPointIn> |
|
240 <relPosition x="0" y="30"/> |
|
241 <connection refLocalId="14" formalParameter="OUT"> |
|
242 <position x="825" y="265"/> |
|
243 <position x="805" y="265"/> |
|
244 <position x="805" y="205"/> |
|
245 <position x="785" y="205"/> |
|
246 </connection> |
|
247 </connectionPointIn> |
|
248 </variable> |
|
249 </inputVariables> |
|
250 <inOutVariables/> |
|
251 <outputVariables> |
|
252 <variable formalParameter="OUT"> |
|
253 <connectionPointOut> |
|
254 <relPosition x="60" y="30"/> |
|
255 </connectionPointOut> |
|
256 </variable> |
|
257 </outputVariables> |
|
258 </block> |
|
259 <inOutVariable localId="1" executionOrderId="0" height="25" width="70" negatedOut="false" negatedIn="false"> |
|
260 <position x="70" y="215"/> |
|
261 <connectionPointIn> |
|
262 <relPosition x="0" y="10"/> |
|
263 <connection refLocalId="5" formalParameter="OUT"> |
|
264 <position x="70" y="225"/> |
|
265 <position x="60" y="225"/> |
|
266 <position x="60" y="285"/> |
|
267 <position x="560" y="285"/> |
|
268 <position x="560" y="205"/> |
|
269 <position x="550" y="205"/> |
|
270 </connection> |
|
271 </connectionPointIn> |
|
272 <connectionPointOut> |
|
273 <relPosition x="70" y="10"/> |
|
274 </connectionPointOut> |
|
275 <expression>counter</expression> |
|
276 </inOutVariable> |
|
277 <comment localId="13" height="110" width="285"> |
|
278 <position x="40" y="25"/> |
|
279 <content> |
|
280 <xhtml:p><![CDATA[Generate values for curves]]></xhtml:p> |
|
281 </content> |
|
282 </comment> |
|
283 <block localId="14" typeName="DIV" executionOrderId="0" height="60" width="65"> |
|
284 <position x="720" y="175"/> |
|
285 <inputVariables> |
|
286 <variable formalParameter="IN1"> |
|
287 <connectionPointIn> |
|
288 <relPosition x="0" y="30"/> |
|
289 <connection refLocalId="11" formalParameter="OUT"> |
|
290 <position x="720" y="205"/> |
|
291 <position x="685" y="205"/> |
|
292 </connection> |
|
293 </connectionPointIn> |
|
294 </variable> |
|
295 <variable formalParameter="IN2"> |
|
296 <connectionPointIn> |
|
297 <relPosition x="0" y="50"/> |
|
298 <connection refLocalId="15"> |
|
299 <position x="720" y="225"/> |
|
300 <position x="685" y="225"/> |
|
301 </connection> |
|
302 </connectionPointIn> |
|
303 </variable> |
|
304 </inputVariables> |
|
305 <inOutVariables/> |
|
306 <outputVariables> |
|
307 <variable formalParameter="OUT"> |
|
308 <connectionPointOut> |
|
309 <relPosition x="65" y="30"/> |
|
310 </connectionPointOut> |
|
311 </variable> |
|
312 </outputVariables> |
|
313 </block> |
|
314 <inVariable localId="15" executionOrderId="0" height="25" width="70" negated="false"> |
|
315 <position x="615" y="215"/> |
|
316 <connectionPointOut> |
|
317 <relPosition x="70" y="10"/> |
|
318 </connectionPointOut> |
|
319 <expression>57.2958</expression> |
|
320 </inVariable> |
|
321 </FBD> |
|
322 </body> |
|
323 </pou> |
|
324 </pous> |
|
325 </types> |
|
326 <instances> |
|
327 <configurations> |
|
328 <configuration name="config"> |
|
329 <resource name="resource1"> |
|
330 <task name="task0" priority="0" interval="T#20ms"> |
|
331 <pouInstance name="instance0" typeName="program0"/> |
|
332 </task> |
|
333 </resource> |
|
334 </configuration> |
|
335 </configurations> |
|
336 </instances> |
|
337 </project> |