1 <?xml version='1.0' encoding='utf-8'?> |
1 <?xml version='1.0' encoding='utf-8'?> |
2 <project xmlns="http://www.plcopen.org/xml/tc6_0201" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xhtml="http://www.w3.org/1999/xhtml" xsi:schemaLocation="http://www.plcopen.org/xml/tc6_0201"> |
2 <project xmlns="http://www.plcopen.org/xml/tc6_0201" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xhtml="http://www.w3.org/1999/xhtml" xsi:schemaLocation="http://www.plcopen.org/xml/tc6_0201"> |
3 <fileHeader companyName="Unknown" productName="Generic PLC" productVersion="1" creationDateTime="2013-01-29T14:01:00" contentDescription="This example shows logging functionality in Beremiz. Here are shown two ways of logging: - from IEC PLC program; - from python extension. "/> |
3 <fileHeader companyName="Unknown" productName="Generic PLC" productVersion="1" creationDateTime="2013-01-29T14:01:00" contentDescription="This example shows logging functionality in Beremiz. Here are shown two ways of logging: - from IEC PLC program; - from python extension. "/> |
4 <contentHeader name="Logging example" modificationDateTime="2018-08-24T13:12:45"> |
4 <contentHeader name="Logging example" modificationDateTime="2018-09-26T13:10:14"> |
5 <coordinateInfo> |
5 <coordinateInfo> |
6 <fbd> |
6 <fbd> |
7 <scaling x="0" y="0"/> |
7 <scaling x="0" y="0"/> |
8 </fbd> |
8 </fbd> |
9 <ld> |
9 <ld> |
50 </variable> |
50 </variable> |
51 </localVars> |
51 </localVars> |
52 </interface> |
52 </interface> |
53 <body> |
53 <body> |
54 <FBD> |
54 <FBD> |
55 <inVariable localId="2" height="30" width="170" executionOrderId="0" negated="false"> |
55 <inVariable localId="2" height="30" width="218" executionOrderId="0" negated="false"> |
56 <position x="507" y="365"/> |
56 <position x="459" y="365"/> |
57 <connectionPointOut> |
57 <connectionPointOut> |
58 <relPosition x="170" y="15"/> |
58 <relPosition x="218" y="15"/> |
59 </connectionPointOut> |
59 </connectionPointOut> |
60 <expression>'IEC side logging: beat #'</expression> |
60 <expression>'IEC side logging: beat #'</expression> |
61 </inVariable> |
61 </inVariable> |
62 <block localId="3" width="59" height="40" typeName="NOT" executionOrderId="0"> |
62 <block localId="3" width="59" height="40" typeName="NOT" executionOrderId="0"> |
63 <position x="241" y="287"/> |
63 <position x="241" y="287"/> |
79 <relPosition x="59" y="30"/> |
79 <relPosition x="59" y="30"/> |
80 </connectionPointOut> |
80 </connectionPointOut> |
81 </variable> |
81 </variable> |
82 </outputVariables> |
82 </outputVariables> |
83 </block> |
83 </block> |
84 <inOutVariable localId="4" height="30" width="51" executionOrderId="0" negatedOut="false" negatedIn="false"> |
84 <inOutVariable localId="4" height="30" width="60" executionOrderId="0" negatedOut="false" negatedIn="false"> |
85 <position x="66" y="304"/> |
85 <position x="57" y="302"/> |
86 <connectionPointIn> |
86 <connectionPointIn> |
87 <relPosition x="0" y="15"/> |
87 <relPosition x="0" y="15"/> |
88 <connection refLocalId="3" formalParameter="OUT"> |
88 <connection refLocalId="3" formalParameter="OUT"> |
89 <position x="66" y="319"/> |
89 <position x="57" y="317"/> |
90 <position x="37" y="319"/> |
90 <position x="37" y="317"/> |
91 <position x="37" y="390"/> |
91 <position x="37" y="390"/> |
92 <position x="314" y="390"/> |
92 <position x="314" y="390"/> |
93 <position x="314" y="317"/> |
93 <position x="314" y="317"/> |
94 <position x="300" y="317"/> |
94 <position x="300" y="317"/> |
95 </connection> |
95 </connection> |
96 </connectionPointIn> |
96 </connectionPointIn> |
97 <connectionPointOut> |
97 <connectionPointOut> |
98 <relPosition x="51" y="15"/> |
98 <relPosition x="60" y="15"/> |
99 </connectionPointOut> |
99 </connectionPointOut> |
100 <expression>beat</expression> |
100 <expression>beat</expression> |
101 </inOutVariable> |
101 </inOutVariable> |
102 <block localId="5" width="68" height="98" typeName="ADD" executionOrderId="0"> |
102 <block localId="5" width="68" height="98" typeName="ADD" executionOrderId="0"> |
103 <position x="463" y="403"/> |
103 <position x="463" y="403"/> |
109 <position x="463" y="442"/> |
109 <position x="463" y="442"/> |
110 <position x="452" y="442"/> |
110 <position x="452" y="442"/> |
111 <position x="452" y="442"/> |
111 <position x="452" y="442"/> |
112 <position x="455" y="442"/> |
112 <position x="455" y="442"/> |
113 <position x="455" y="442"/> |
113 <position x="455" y="442"/> |
114 <position x="445" y="442"/> |
114 <position x="439" y="442"/> |
115 </connection> |
115 </connection> |
116 </connectionPointIn> |
116 </connectionPointIn> |
117 </variable> |
117 </variable> |
118 <variable formalParameter="IN2"> |
118 <variable formalParameter="IN2"> |
119 <connectionPointIn> |
119 <connectionPointIn> |
120 <relPosition x="0" y="78"/> |
120 <relPosition x="0" y="78"/> |
121 <connection refLocalId="6"> |
121 <connection refLocalId="6"> |
122 <position x="463" y="481"/> |
122 <position x="463" y="481"/> |
123 <position x="453" y="481"/> |
123 <position x="438" y="481"/> |
124 <position x="453" y="482"/> |
|
125 <position x="454" y="482"/> |
|
126 <position x="454" y="483"/> |
|
127 <position x="444" y="483"/> |
|
128 </connection> |
124 </connection> |
129 </connectionPointIn> |
125 </connectionPointIn> |
130 </variable> |
126 </variable> |
131 </inputVariables> |
127 </inputVariables> |
132 <inOutVariables/> |
128 <inOutVariables/> |
137 </connectionPointOut> |
133 </connectionPointOut> |
138 </variable> |
134 </variable> |
139 </outputVariables> |
135 </outputVariables> |
140 </block> |
136 </block> |
141 <inOutVariable localId="6" height="30" width="103" executionOrderId="0" negatedOut="false" negatedIn="false"> |
137 <inOutVariable localId="6" height="30" width="103" executionOrderId="0" negatedOut="false" negatedIn="false"> |
142 <position x="341" y="468"/> |
138 <position x="335" y="466"/> |
143 <connectionPointIn> |
139 <connectionPointIn> |
144 <relPosition x="0" y="15"/> |
140 <relPosition x="0" y="15"/> |
145 <connection refLocalId="5" formalParameter="OUT"> |
141 <connection refLocalId="5" formalParameter="OUT"> |
146 <position x="341" y="483"/> |
142 <position x="335" y="481"/> |
147 <position x="320" y="483"/> |
143 <position x="320" y="481"/> |
148 <position x="320" y="518"/> |
144 <position x="320" y="518"/> |
149 <position x="544" y="518"/> |
145 <position x="544" y="518"/> |
150 <position x="544" y="442"/> |
146 <position x="544" y="442"/> |
151 <position x="531" y="442"/> |
147 <position x="531" y="442"/> |
152 </connection> |
148 </connection> |
162 <variable formalParameter="IN1"> |
158 <variable formalParameter="IN1"> |
163 <connectionPointIn> |
159 <connectionPointIn> |
164 <relPosition x="0" y="51"/> |
160 <relPosition x="0" y="51"/> |
165 <connection refLocalId="2"> |
161 <connection refLocalId="2"> |
166 <position x="727" y="380"/> |
162 <position x="727" y="380"/> |
|
163 <position x="717" y="380"/> |
|
164 <position x="717" y="380"/> |
167 <position x="677" y="380"/> |
165 <position x="677" y="380"/> |
168 </connection> |
166 </connection> |
169 </connectionPointIn> |
167 </connectionPointIn> |
170 </variable> |
168 </variable> |
171 <variable formalParameter="IN2"> |
169 <variable formalParameter="IN2"> |
208 </connectionPointOut> |
206 </connectionPointOut> |
209 </variable> |
207 </variable> |
210 </outputVariables> |
208 </outputVariables> |
211 </block> |
209 </block> |
212 <block localId="10" width="106" height="40" typeName="BOOL_TO_INT" executionOrderId="0"> |
210 <block localId="10" width="106" height="40" typeName="BOOL_TO_INT" executionOrderId="0"> |
213 <position x="339" y="412"/> |
211 <position x="333" y="412"/> |
214 <inputVariables> |
212 <inputVariables> |
215 <variable formalParameter="IN" edge="rising"> |
213 <variable formalParameter="IN" edge="rising"> |
216 <connectionPointIn> |
214 <connectionPointIn> |
217 <relPosition x="0" y="30"/> |
215 <relPosition x="0" y="30"/> |
218 <connection refLocalId="3" formalParameter="OUT"> |
216 <connection refLocalId="3" formalParameter="OUT"> |
219 <position x="339" y="442"/> |
217 <position x="333" y="442"/> |
220 <position x="314" y="442"/> |
218 <position x="314" y="442"/> |
221 <position x="314" y="317"/> |
219 <position x="314" y="317"/> |
222 <position x="300" y="317"/> |
220 <position x="300" y="317"/> |
223 </connection> |
221 </connection> |
224 </connectionPointIn> |
222 </connectionPointIn> |
257 <variable formalParameter="LEVEL"> |
255 <variable formalParameter="LEVEL"> |
258 <connectionPointIn> |
256 <connectionPointIn> |
259 <relPosition x="0" y="177"/> |
257 <relPosition x="0" y="177"/> |
260 <connection refLocalId="12"> |
258 <connection refLocalId="12"> |
261 <position x="907" y="443"/> |
259 <position x="907" y="443"/> |
262 <position x="893" y="443"/> |
260 <position x="880" y="443"/> |
263 <position x="893" y="445"/> |
|
264 <position x="879" y="445"/> |
|
265 </connection> |
261 </connection> |
266 </connectionPointIn> |
262 </connectionPointIn> |
267 </variable> |
263 </variable> |
268 </inputVariables> |
264 </inputVariables> |
269 <inOutVariables/> |
265 <inOutVariables/> |
270 <outputVariables/> |
266 <outputVariables/> |
271 </block> |
267 </block> |
272 <inVariable localId="12" height="30" width="79" executionOrderId="0" negated="false"> |
268 <inVariable localId="12" height="30" width="79" executionOrderId="0" negated="false"> |
273 <position x="800" y="430"/> |
269 <position x="801" y="428"/> |
274 <connectionPointOut> |
270 <connectionPointOut> |
275 <relPosition x="79" y="15"/> |
271 <relPosition x="79" y="15"/> |
276 </connectionPointOut> |
272 </connectionPointOut> |
277 <expression>lvl</expression> |
273 <expression>lvl</expression> |
278 </inVariable> |
274 </inVariable> |
282 <variable formalParameter="IN"> |
278 <variable formalParameter="IN"> |
283 <connectionPointIn> |
279 <connectionPointIn> |
284 <relPosition x="0" y="39"/> |
280 <relPosition x="0" y="39"/> |
285 <connection refLocalId="4"> |
281 <connection refLocalId="4"> |
286 <position x="150" y="317"/> |
282 <position x="150" y="317"/> |
287 <position x="133" y="317"/> |
283 <position x="117" y="317"/> |
288 <position x="133" y="319"/> |
|
289 <position x="117" y="319"/> |
|
290 </connection> |
284 </connection> |
291 </connectionPointIn> |
285 </connectionPointIn> |
292 </variable> |
286 </variable> |
293 <variable formalParameter="PT"> |
287 <variable formalParameter="PT"> |
294 <connectionPointIn> |
288 <connectionPointIn> |
295 <relPosition x="0" y="78"/> |
289 <relPosition x="0" y="78"/> |
296 <connection refLocalId="1"> |
290 <connection refLocalId="1"> |
297 <position x="150" y="356"/> |
291 <position x="150" y="356"/> |
298 <position x="133" y="356"/> |
292 <position x="117" y="356"/> |
299 <position x="133" y="359"/> |
|
300 <position x="117" y="359"/> |
|
301 </connection> |
293 </connection> |
302 </connectionPointIn> |
294 </connectionPointIn> |
303 </variable> |
295 </variable> |
304 </inputVariables> |
296 </inputVariables> |
305 <inOutVariables/> |
297 <inOutVariables/> |
314 <relPosition x="47" y="78"/> |
306 <relPosition x="47" y="78"/> |
315 </connectionPointOut> |
307 </connectionPointOut> |
316 </variable> |
308 </variable> |
317 </outputVariables> |
309 </outputVariables> |
318 </block> |
310 </block> |
319 <inVariable localId="1" executionOrderId="0" height="30" width="52" negated="false"> |
311 <inVariable localId="1" executionOrderId="0" height="30" width="61" negated="false"> |
320 <position x="65" y="344"/> |
312 <position x="56" y="341"/> |
321 <connectionPointOut> |
313 <connectionPointOut> |
322 <relPosition x="52" y="15"/> |
314 <relPosition x="61" y="15"/> |
323 </connectionPointOut> |
315 </connectionPointOut> |
324 <expression>T#3s</expression> |
316 <expression>T#3s</expression> |
325 </inVariable> |
317 </inVariable> |
326 <comment localId="15" height="238" width="675"> |
318 <comment localId="15" height="249" width="682"> |
327 <position x="27" y="16"/> |
319 <position x="19" y="8"/> |
328 <content> |
320 <content> |
329 <xhtml:p><![CDATA[This example shows logging functionality in Beremiz. |
321 <xhtml:p><![CDATA[This example shows logging functionality in Beremiz. |
330 Here are shown two ways of logging: |
322 Here are shown two ways of logging: |
331 - from IEC PLC program; |
323 - from IEC PLC program; |
332 - from python extension. |
324 - from python extension. |