|
1 <?xml version='1.0' encoding='utf-8'?> |
|
2 <project xmlns:ns1="http://www.plcopen.org/xml/tc6_0201" 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="2019-08-06T14:23:42"/> |
|
4 <contentHeader name="Unnamed" modificationDateTime="2024-11-18T09:37:56"> |
|
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="MainStuff" pouType="program"> |
|
21 <interface> |
|
22 <localVars> |
|
23 <variable name="csv_read_by_int0"> |
|
24 <type> |
|
25 <derived name="csv_read_by_int"/> |
|
26 </type> |
|
27 </variable> |
|
28 <variable name="CSV_ROWIDX"> |
|
29 <type> |
|
30 <derived name="HMI_INT"/> |
|
31 </type> |
|
32 <initialValue> |
|
33 <simpleValue value="1"/> |
|
34 </initialValue> |
|
35 </variable> |
|
36 <variable name="CSV_COLIDX"> |
|
37 <type> |
|
38 <derived name="HMI_INT"/> |
|
39 </type> |
|
40 <initialValue> |
|
41 <simpleValue value="1"/> |
|
42 </initialValue> |
|
43 </variable> |
|
44 <variable name="SAVE"> |
|
45 <type> |
|
46 <derived name="HMI_INT"/> |
|
47 </type> |
|
48 <initialValue> |
|
49 <simpleValue value="0"/> |
|
50 </initialValue> |
|
51 </variable> |
|
52 <variable name="CSV_ACK"> |
|
53 <type> |
|
54 <derived name="HMI_BOOL"/> |
|
55 </type> |
|
56 </variable> |
|
57 <variable name="SEC_ACK"> |
|
58 <type> |
|
59 <derived name="HMI_BOOL"/> |
|
60 </type> |
|
61 </variable> |
|
62 <variable name="CSV_RES"> |
|
63 <type> |
|
64 <derived name="HMI_STRING"/> |
|
65 </type> |
|
66 </variable> |
|
67 <variable name="SEC_RES"> |
|
68 <type> |
|
69 <derived name="HMI_STRING"/> |
|
70 </type> |
|
71 </variable> |
|
72 </localVars> |
|
73 <externalVars> |
|
74 <variable name="FILENAME"> |
|
75 <type> |
|
76 <derived name="HMI_STRING"/> |
|
77 </type> |
|
78 </variable> |
|
79 </externalVars> |
|
80 <localVars> |
|
81 <variable name="CONTENT"> |
|
82 <type> |
|
83 <derived name="HMI_STRING"/> |
|
84 </type> |
|
85 </variable> |
|
86 <variable name="csv_write_by_int0"> |
|
87 <type> |
|
88 <derived name="csv_write_by_int"/> |
|
89 </type> |
|
90 </variable> |
|
91 </localVars> |
|
92 </interface> |
|
93 <body> |
|
94 <FBD> |
|
95 <inVariable localId="4" executionOrderId="0" height="30" width="110" negated="false"> |
|
96 <position x="35" y="55"/> |
|
97 <connectionPointOut> |
|
98 <relPosition x="110" y="15"/> |
|
99 </connectionPointOut> |
|
100 <expression>FILENAME</expression> |
|
101 </inVariable> |
|
102 <inVariable localId="5" executionOrderId="0" height="27" width="110" negated="false"> |
|
103 <position x="35" y="85"/> |
|
104 <connectionPointOut> |
|
105 <relPosition x="110" y="15"/> |
|
106 </connectionPointOut> |
|
107 <expression>CSV_ROWIDX</expression> |
|
108 </inVariable> |
|
109 <inVariable localId="6" executionOrderId="0" height="27" width="110" negated="false"> |
|
110 <position x="35" y="110"/> |
|
111 <connectionPointOut> |
|
112 <relPosition x="110" y="15"/> |
|
113 </connectionPointOut> |
|
114 <expression>CSV_COLIDX</expression> |
|
115 </inVariable> |
|
116 <block localId="2" typeName="csv_read_by_int" instanceName="csv_read_by_int0" executionOrderId="0" height="100" width="155"> |
|
117 <position x="205" y="35"/> |
|
118 <inputVariables> |
|
119 <variable formalParameter="FILE_NAME"> |
|
120 <connectionPointIn> |
|
121 <relPosition x="0" y="35"/> |
|
122 <connection refLocalId="4"> |
|
123 <position x="205" y="70"/> |
|
124 <position x="145" y="70"/> |
|
125 </connection> |
|
126 </connectionPointIn> |
|
127 </variable> |
|
128 <variable formalParameter="ROW"> |
|
129 <connectionPointIn> |
|
130 <relPosition x="0" y="60"/> |
|
131 <connection refLocalId="5"> |
|
132 <position x="205" y="95"/> |
|
133 <position x="175" y="95"/> |
|
134 <position x="175" y="100"/> |
|
135 <position x="145" y="100"/> |
|
136 </connection> |
|
137 </connectionPointIn> |
|
138 </variable> |
|
139 <variable formalParameter="COLUMN"> |
|
140 <connectionPointIn> |
|
141 <relPosition x="0" y="85"/> |
|
142 <connection refLocalId="6"> |
|
143 <position x="205" y="120"/> |
|
144 <position x="175" y="120"/> |
|
145 <position x="175" y="125"/> |
|
146 <position x="145" y="125"/> |
|
147 </connection> |
|
148 </connectionPointIn> |
|
149 </variable> |
|
150 </inputVariables> |
|
151 <inOutVariables/> |
|
152 <outputVariables> |
|
153 <variable formalParameter="ACK"> |
|
154 <connectionPointOut> |
|
155 <relPosition x="155" y="35"/> |
|
156 </connectionPointOut> |
|
157 </variable> |
|
158 <variable formalParameter="RESULT"> |
|
159 <connectionPointOut> |
|
160 <relPosition x="155" y="60"/> |
|
161 </connectionPointOut> |
|
162 </variable> |
|
163 </outputVariables> |
|
164 </block> |
|
165 <outVariable localId="11" executionOrderId="0" height="27" width="82" negated="false"> |
|
166 <position x="400" y="60"/> |
|
167 <connectionPointIn> |
|
168 <relPosition x="0" y="15"/> |
|
169 <connection refLocalId="2" formalParameter="ACK"> |
|
170 <position x="400" y="75"/> |
|
171 <position x="380" y="75"/> |
|
172 <position x="380" y="70"/> |
|
173 <position x="360" y="70"/> |
|
174 </connection> |
|
175 </connectionPointIn> |
|
176 <expression>CSV_ACK</expression> |
|
177 </outVariable> |
|
178 <outVariable localId="10" executionOrderId="0" height="27" width="82" negated="false"> |
|
179 <position x="400" y="85"/> |
|
180 <connectionPointIn> |
|
181 <relPosition x="0" y="15"/> |
|
182 <connection refLocalId="2" formalParameter="RESULT"> |
|
183 <position x="400" y="100"/> |
|
184 <position x="380" y="100"/> |
|
185 <position x="380" y="95"/> |
|
186 <position x="360" y="95"/> |
|
187 </connection> |
|
188 </connectionPointIn> |
|
189 <expression>CSV_RES</expression> |
|
190 </outVariable> |
|
191 <block localId="12" typeName="csv_write_by_int" instanceName="csv_write_by_int0" executionOrderId="0" width="140" height="120"> |
|
192 <position x="240" y="195"/> |
|
193 <inputVariables> |
|
194 <variable formalParameter="FILE_NAME"> |
|
195 <connectionPointIn> |
|
196 <relPosition x="0" y="30"/> |
|
197 <connection refLocalId="13"> |
|
198 <position x="240" y="225"/> |
|
199 <position x="185" y="225"/> |
|
200 <position x="185" y="175"/> |
|
201 <position x="150" y="175"/> |
|
202 </connection> |
|
203 </connectionPointIn> |
|
204 </variable> |
|
205 <variable formalParameter="ROW"> |
|
206 <connectionPointIn> |
|
207 <relPosition x="0" y="50"/> |
|
208 <connection refLocalId="14"> |
|
209 <position x="240" y="245"/> |
|
210 <position x="177" y="245"/> |
|
211 <position x="177" y="225"/> |
|
212 <position x="115" y="225"/> |
|
213 </connection> |
|
214 </connectionPointIn> |
|
215 </variable> |
|
216 <variable formalParameter="COLUMN"> |
|
217 <connectionPointIn> |
|
218 <relPosition x="0" y="70"/> |
|
219 <connection refLocalId="15"> |
|
220 <position x="240" y="265"/> |
|
221 <position x="115" y="265"/> |
|
222 </connection> |
|
223 </connectionPointIn> |
|
224 </variable> |
|
225 <variable formalParameter="CONTENT"> |
|
226 <connectionPointIn> |
|
227 <relPosition x="0" y="90"/> |
|
228 <connection refLocalId="16"> |
|
229 <position x="240" y="285"/> |
|
230 <position x="190" y="285"/> |
|
231 <position x="190" y="305"/> |
|
232 <position x="115" y="305"/> |
|
233 </connection> |
|
234 </connectionPointIn> |
|
235 </variable> |
|
236 <variable formalParameter="SAVE"> |
|
237 <connectionPointIn> |
|
238 <relPosition x="0" y="110"/> |
|
239 <connection refLocalId="17"> |
|
240 <position x="240" y="305"/> |
|
241 <position x="215" y="305"/> |
|
242 <position x="215" y="335"/> |
|
243 <position x="185" y="335"/> |
|
244 </connection> |
|
245 </connectionPointIn> |
|
246 </variable> |
|
247 </inputVariables> |
|
248 <inOutVariables/> |
|
249 <outputVariables> |
|
250 <variable formalParameter="ACK"> |
|
251 <connectionPointOut> |
|
252 <relPosition x="140" y="30"/> |
|
253 </connectionPointOut> |
|
254 </variable> |
|
255 <variable formalParameter="RESULT"> |
|
256 <connectionPointOut> |
|
257 <relPosition x="140" y="50"/> |
|
258 </connectionPointOut> |
|
259 </variable> |
|
260 </outputVariables> |
|
261 </block> |
|
262 <inVariable localId="13" executionOrderId="0" width="75" height="30" negated="false"> |
|
263 <position x="75" y="160"/> |
|
264 <connectionPointOut> |
|
265 <relPosition x="75" y="15"/> |
|
266 </connectionPointOut> |
|
267 <expression>FILENAME</expression> |
|
268 </inVariable> |
|
269 <inVariable localId="14" executionOrderId="0" width="90" height="30" negated="false"> |
|
270 <position x="25" y="210"/> |
|
271 <connectionPointOut> |
|
272 <relPosition x="90" y="15"/> |
|
273 </connectionPointOut> |
|
274 <expression>CSV_ROWIDX</expression> |
|
275 </inVariable> |
|
276 <inVariable localId="15" executionOrderId="0" width="90" height="30" negated="false"> |
|
277 <position x="25" y="250"/> |
|
278 <connectionPointOut> |
|
279 <relPosition x="90" y="15"/> |
|
280 </connectionPointOut> |
|
281 <expression>CSV_COLIDX</expression> |
|
282 </inVariable> |
|
283 <inVariable localId="16" executionOrderId="0" width="70" height="30" negated="false"> |
|
284 <position x="45" y="290"/> |
|
285 <connectionPointOut> |
|
286 <relPosition x="70" y="15"/> |
|
287 </connectionPointOut> |
|
288 <expression>CONTENT</expression> |
|
289 </inVariable> |
|
290 <inVariable localId="17" executionOrderId="0" width="45" height="30" negated="false"> |
|
291 <position x="140" y="320"/> |
|
292 <connectionPointOut> |
|
293 <relPosition x="45" y="15"/> |
|
294 </connectionPointOut> |
|
295 <expression>SAVE</expression> |
|
296 </inVariable> |
|
297 <outVariable localId="18" executionOrderId="0" width="70" height="30" negated="false"> |
|
298 <position x="435" y="210"/> |
|
299 <connectionPointIn> |
|
300 <relPosition x="0" y="15"/> |
|
301 <connection refLocalId="12" formalParameter="ACK"> |
|
302 <position x="435" y="225"/> |
|
303 <position x="380" y="225"/> |
|
304 </connection> |
|
305 </connectionPointIn> |
|
306 <expression>SEC_ACK</expression> |
|
307 </outVariable> |
|
308 <outVariable localId="19" executionOrderId="0" width="70" height="30" negated="false"> |
|
309 <position x="435" y="240"/> |
|
310 <connectionPointIn> |
|
311 <relPosition x="0" y="15"/> |
|
312 <connection refLocalId="12" formalParameter="RESULT"> |
|
313 <position x="435" y="255"/> |
|
314 <position x="407" y="255"/> |
|
315 <position x="407" y="245"/> |
|
316 <position x="380" y="245"/> |
|
317 </connection> |
|
318 </connectionPointIn> |
|
319 <expression>SEC_RES</expression> |
|
320 </outVariable> |
|
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="MainStuff"/> |
|
332 </task> |
|
333 </resource> |
|
334 </configuration> |
|
335 </configurations> |
|
336 </instances> |
|
337 </project> |