1383
|
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">
|
|
3 |
<fileHeader companyName="Unknown" productName="Unnamed" productVersion="1" creationDateTime="2012-09-04T16:16:33"/>
|
|
4 |
<contentHeader name="traffic_lights" modificationDateTime="2013-12-06T12:19:16">
|
|
5 |
<coordinateInfo>
|
|
6 |
<fbd>
|
|
7 |
<scaling x="0" y="0"/>
|
|
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="traffic_light_sequence" pouType="functionBlock">
|
|
21 |
<interface>
|
|
22 |
<inputVars>
|
|
23 |
<variable name="SWITCH_BUTTON">
|
|
24 |
<type>
|
|
25 |
<BOOL/>
|
|
26 |
</type>
|
|
27 |
</variable>
|
|
28 |
<variable name="PEDESTRIAN_BUTTON">
|
|
29 |
<type>
|
|
30 |
<BOOL/>
|
|
31 |
</type>
|
|
32 |
</variable>
|
|
33 |
</inputVars>
|
|
34 |
<outputVars>
|
|
35 |
<variable name="RED_LIGHT">
|
|
36 |
<type>
|
|
37 |
<BOOL/>
|
|
38 |
</type>
|
|
39 |
</variable>
|
|
40 |
<variable name="ORANGE_LIGHT">
|
|
41 |
<type>
|
|
42 |
<BOOL/>
|
|
43 |
</type>
|
|
44 |
</variable>
|
|
45 |
<variable name="GREEN_LIGHT">
|
|
46 |
<type>
|
|
47 |
<BOOL/>
|
|
48 |
</type>
|
|
49 |
</variable>
|
|
50 |
<variable name="PEDESTRIAN_RED_LIGHT">
|
|
51 |
<type>
|
|
52 |
<BOOL/>
|
|
53 |
</type>
|
|
54 |
</variable>
|
|
55 |
<variable name="PEDESTRIAN_GREEN_LIGHT">
|
|
56 |
<type>
|
|
57 |
<BOOL/>
|
|
58 |
</type>
|
|
59 |
</variable>
|
|
60 |
</outputVars>
|
|
61 |
<localVars>
|
|
62 |
<variable name="TON1">
|
|
63 |
<type>
|
|
64 |
<derived name="TON"/>
|
|
65 |
</type>
|
|
66 |
</variable>
|
|
67 |
<variable name="TON2">
|
|
68 |
<type>
|
|
69 |
<derived name="TON"/>
|
|
70 |
</type>
|
|
71 |
</variable>
|
|
72 |
<variable name="ALLOW_CARS">
|
|
73 |
<type>
|
|
74 |
<BOOL/>
|
|
75 |
</type>
|
|
76 |
</variable>
|
|
77 |
<variable name="WARN_CARS">
|
|
78 |
<type>
|
|
79 |
<BOOL/>
|
|
80 |
</type>
|
|
81 |
</variable>
|
|
82 |
<variable name="STOP_CARS">
|
|
83 |
<type>
|
|
84 |
<BOOL/>
|
|
85 |
</type>
|
|
86 |
</variable>
|
|
87 |
<variable name="ALLOW_PEDESTRIANS">
|
|
88 |
<type>
|
|
89 |
<BOOL/>
|
|
90 |
</type>
|
|
91 |
</variable>
|
|
92 |
<variable name="STOP_PEDESTRIANS">
|
|
93 |
<type>
|
|
94 |
<BOOL/>
|
|
95 |
</type>
|
|
96 |
</variable>
|
|
97 |
<variable name="TON3">
|
|
98 |
<type>
|
|
99 |
<derived name="TON"/>
|
|
100 |
</type>
|
|
101 |
</variable>
|
|
102 |
<variable name="R_TRIG0">
|
|
103 |
<type>
|
|
104 |
<derived name="R_TRIG"/>
|
|
105 |
</type>
|
|
106 |
</variable>
|
|
107 |
<variable name="R_TRIG1">
|
|
108 |
<type>
|
|
109 |
<derived name="R_TRIG"/>
|
|
110 |
</type>
|
|
111 |
</variable>
|
|
112 |
<variable name="SR0">
|
|
113 |
<type>
|
|
114 |
<derived name="SR"/>
|
|
115 |
</type>
|
|
116 |
</variable>
|
|
117 |
</localVars>
|
|
118 |
</interface>
|
|
119 |
<actions>
|
|
120 |
<action name="BLINK_ORANGE_LIGHT">
|
|
121 |
<body>
|
|
122 |
<LD>
|
|
123 |
<leftPowerRail localId="1" height="40" width="2">
|
|
124 |
<position x="54" y="123"/>
|
|
125 |
<connectionPointOut formalParameter="">
|
|
126 |
<relPosition x="2" y="20"/>
|
|
127 |
</connectionPointOut>
|
|
128 |
</leftPowerRail>
|
|
129 |
<contact localId="2" height="15" width="21" negated="true">
|
|
130 |
<position x="121" y="135"/>
|
|
131 |
<connectionPointIn>
|
|
132 |
<relPosition x="0" y="8"/>
|
|
133 |
<connection refLocalId="1">
|
|
134 |
<position x="121" y="143"/>
|
|
135 |
<position x="56" y="143"/>
|
|
136 |
</connection>
|
|
137 |
</connectionPointIn>
|
|
138 |
<connectionPointOut>
|
|
139 |
<relPosition x="21" y="8"/>
|
|
140 |
</connectionPointOut>
|
|
141 |
<variable>ORANGE_LIGHT</variable>
|
|
142 |
</contact>
|
|
143 |
<block localId="3" width="97" height="102" typeName="TON" instanceName="TON1">
|
|
144 |
<position x="216" y="103"/>
|
|
145 |
<inputVariables>
|
|
146 |
<variable formalParameter="IN">
|
|
147 |
<connectionPointIn>
|
|
148 |
<relPosition x="0" y="40"/>
|
|
149 |
<connection refLocalId="2">
|
|
150 |
<position x="216" y="143"/>
|
|
151 |
<position x="142" y="143"/>
|
|
152 |
</connection>
|
|
153 |
</connectionPointIn>
|
|
154 |
</variable>
|
|
155 |
<variable formalParameter="PT">
|
|
156 |
<connectionPointIn>
|
|
157 |
<relPosition x="0" y="81"/>
|
|
158 |
<connection refLocalId="4">
|
|
159 |
<position x="216" y="184"/>
|
|
160 |
<position x="151" y="184"/>
|
|
161 |
</connection>
|
|
162 |
</connectionPointIn>
|
|
163 |
</variable>
|
|
164 |
</inputVariables>
|
|
165 |
<inOutVariables/>
|
|
166 |
<outputVariables>
|
|
167 |
<variable formalParameter="Q">
|
|
168 |
<connectionPointOut>
|
|
169 |
<relPosition x="97" y="40"/>
|
|
170 |
</connectionPointOut>
|
|
171 |
</variable>
|
|
172 |
<variable formalParameter="ET">
|
|
173 |
<connectionPointOut>
|
|
174 |
<relPosition x="97" y="81"/>
|
|
175 |
</connectionPointOut>
|
|
176 |
</variable>
|
|
177 |
</outputVariables>
|
|
178 |
</block>
|
|
179 |
<inVariable localId="4" height="27" width="72">
|
|
180 |
<position x="79" y="171"/>
|
|
181 |
<connectionPointOut>
|
|
182 |
<relPosition x="72" y="13"/>
|
|
183 |
</connectionPointOut>
|
|
184 |
<expression>T#500ms</expression>
|
|
185 |
</inVariable>
|
|
186 |
<block localId="5" width="97" height="106" typeName="TON" instanceName="TON2">
|
|
187 |
<position x="216" y="251"/>
|
|
188 |
<inputVariables>
|
|
189 |
<variable formalParameter="IN">
|
|
190 |
<connectionPointIn>
|
|
191 |
<relPosition x="0" y="41"/>
|
|
192 |
<connection refLocalId="14">
|
|
193 |
<position x="216" y="292"/>
|
|
194 |
<position x="155" y="292"/>
|
|
195 |
</connection>
|
|
196 |
</connectionPointIn>
|
|
197 |
</variable>
|
|
198 |
<variable formalParameter="PT">
|
|
199 |
<connectionPointIn>
|
|
200 |
<relPosition x="0" y="84"/>
|
|
201 |
<connection refLocalId="15">
|
|
202 |
<position x="216" y="335"/>
|
|
203 |
<position x="162" y="335"/>
|
|
204 |
</connection>
|
|
205 |
</connectionPointIn>
|
|
206 |
</variable>
|
|
207 |
</inputVariables>
|
|
208 |
<inOutVariables/>
|
|
209 |
<outputVariables>
|
|
210 |
<variable formalParameter="Q">
|
|
211 |
<connectionPointOut>
|
|
212 |
<relPosition x="97" y="41"/>
|
|
213 |
</connectionPointOut>
|
|
214 |
</variable>
|
|
215 |
<variable formalParameter="ET">
|
|
216 |
<connectionPointOut>
|
|
217 |
<relPosition x="97" y="84"/>
|
|
218 |
</connectionPointOut>
|
|
219 |
</variable>
|
|
220 |
</outputVariables>
|
|
221 |
</block>
|
|
222 |
<coil localId="6" height="15" width="21" storage="reset">
|
|
223 |
<position x="517" y="284"/>
|
|
224 |
<connectionPointIn>
|
|
225 |
<relPosition x="0" y="8"/>
|
|
226 |
<connection refLocalId="10" formalParameter="Q">
|
|
227 |
<position x="517" y="292"/>
|
|
228 |
<position x="427" y="292"/>
|
|
229 |
</connection>
|
|
230 |
</connectionPointIn>
|
|
231 |
<connectionPointOut>
|
|
232 |
<relPosition x="21" y="8"/>
|
|
233 |
</connectionPointOut>
|
|
234 |
<variable>ORANGE_LIGHT</variable>
|
|
235 |
</coil>
|
|
236 |
<rightPowerRail localId="7" height="40" width="2">
|
|
237 |
<position x="598" y="123"/>
|
|
238 |
<connectionPointIn>
|
|
239 |
<relPosition x="0" y="20"/>
|
|
240 |
<connection refLocalId="8">
|
|
241 |
<position x="598" y="143"/>
|
|
242 |
<position x="530" y="143"/>
|
|
243 |
</connection>
|
|
244 |
</connectionPointIn>
|
|
245 |
</rightPowerRail>
|
|
246 |
<coil localId="8" height="15" width="21" storage="set">
|
|
247 |
<position x="509" y="135"/>
|
|
248 |
<connectionPointIn>
|
|
249 |
<relPosition x="0" y="8"/>
|
|
250 |
<connection refLocalId="11" formalParameter="Q">
|
|
251 |
<position x="509" y="143"/>
|
|
252 |
<position x="428" y="143"/>
|
|
253 |
</connection>
|
|
254 |
</connectionPointIn>
|
|
255 |
<connectionPointOut>
|
|
256 |
<relPosition x="21" y="8"/>
|
|
257 |
</connectionPointOut>
|
|
258 |
<variable>ORANGE_LIGHT</variable>
|
|
259 |
</coil>
|
|
260 |
<comment localId="9" height="39" width="308">
|
|
261 |
<position x="54" y="26"/>
|
|
262 |
<content>
|
|
263 |
<xhtml:p><![CDATA[This action makes the orange light blink]]></xhtml:p>
|
|
264 |
</content>
|
|
265 |
</comment>
|
|
266 |
<block localId="10" width="57" height="40" typeName="R_TRIG" instanceName="R_TRIG0">
|
|
267 |
<position x="370" y="262"/>
|
|
268 |
<inputVariables>
|
|
269 |
<variable formalParameter="CLK">
|
|
270 |
<connectionPointIn>
|
|
271 |
<relPosition x="0" y="30"/>
|
|
272 |
<connection refLocalId="5" formalParameter="Q">
|
|
273 |
<position x="370" y="292"/>
|
|
274 |
<position x="313" y="292"/>
|
|
275 |
</connection>
|
|
276 |
</connectionPointIn>
|
|
277 |
</variable>
|
|
278 |
</inputVariables>
|
|
279 |
<inOutVariables/>
|
|
280 |
<outputVariables>
|
|
281 |
<variable formalParameter="Q">
|
|
282 |
<connectionPointOut>
|
|
283 |
<relPosition x="57" y="30"/>
|
|
284 |
</connectionPointOut>
|
|
285 |
</variable>
|
|
286 |
</outputVariables>
|
|
287 |
</block>
|
|
288 |
<block localId="11" width="57" height="40" typeName="R_TRIG" instanceName="R_TRIG1">
|
|
289 |
<position x="371" y="113"/>
|
|
290 |
<inputVariables>
|
|
291 |
<variable formalParameter="CLK">
|
|
292 |
<connectionPointIn>
|
|
293 |
<relPosition x="0" y="30"/>
|
|
294 |
<connection refLocalId="3" formalParameter="Q">
|
|
295 |
<position x="371" y="143"/>
|
|
296 |
<position x="313" y="143"/>
|
|
297 |
</connection>
|
|
298 |
</connectionPointIn>
|
|
299 |
</variable>
|
|
300 |
</inputVariables>
|
|
301 |
<inOutVariables/>
|
|
302 |
<outputVariables>
|
|
303 |
<variable formalParameter="Q">
|
|
304 |
<connectionPointOut>
|
|
305 |
<relPosition x="57" y="30"/>
|
|
306 |
</connectionPointOut>
|
|
307 |
</variable>
|
|
308 |
</outputVariables>
|
|
309 |
</block>
|
|
310 |
<rightPowerRail localId="12" height="40" width="2">
|
|
311 |
<position x="597" y="272"/>
|
|
312 |
<connectionPointIn>
|
|
313 |
<relPosition x="0" y="20"/>
|
|
314 |
<connection refLocalId="6">
|
|
315 |
<position x="597" y="292"/>
|
|
316 |
<position x="538" y="292"/>
|
|
317 |
</connection>
|
|
318 |
</connectionPointIn>
|
|
319 |
</rightPowerRail>
|
|
320 |
<leftPowerRail localId="13" height="40" width="2">
|
|
321 |
<position x="67" y="272"/>
|
|
322 |
<connectionPointOut formalParameter="">
|
|
323 |
<relPosition x="2" y="20"/>
|
|
324 |
</connectionPointOut>
|
|
325 |
</leftPowerRail>
|
|
326 |
<contact localId="14" height="15" width="21">
|
|
327 |
<position x="134" y="284"/>
|
|
328 |
<connectionPointIn>
|
|
329 |
<relPosition x="0" y="8"/>
|
|
330 |
<connection refLocalId="13">
|
|
331 |
<position x="134" y="292"/>
|
|
332 |
<position x="69" y="292"/>
|
|
333 |
</connection>
|
|
334 |
</connectionPointIn>
|
|
335 |
<connectionPointOut>
|
|
336 |
<relPosition x="21" y="8"/>
|
|
337 |
</connectionPointOut>
|
|
338 |
<variable>ORANGE_LIGHT</variable>
|
|
339 |
</contact>
|
|
340 |
<inVariable localId="15" height="27" width="72">
|
|
341 |
<position x="90" y="322"/>
|
|
342 |
<connectionPointOut>
|
|
343 |
<relPosition x="72" y="13"/>
|
|
344 |
</connectionPointOut>
|
|
345 |
<expression>T#500ms</expression>
|
|
346 |
</inVariable>
|
|
347 |
</LD>
|
|
348 |
</body>
|
|
349 |
</action>
|
|
350 |
</actions>
|
|
351 |
<transitions>
|
|
352 |
<transition name="STOP">
|
|
353 |
<body>
|
|
354 |
<FBD>
|
|
355 |
<block localId="42" width="59" height="40" typeName="NOT">
|
|
356 |
<position x="230" y="40"/>
|
|
357 |
<inputVariables>
|
|
358 |
<variable formalParameter="IN">
|
|
359 |
<connectionPointIn>
|
|
360 |
<relPosition x="0" y="30"/>
|
|
361 |
<connection refLocalId="43">
|
|
362 |
<position x="230" y="70"/>
|
|
363 |
<position x="202" y="70"/>
|
|
364 |
</connection>
|
|
365 |
</connectionPointIn>
|
|
366 |
</variable>
|
|
367 |
</inputVariables>
|
|
368 |
<inOutVariables/>
|
|
369 |
<outputVariables>
|
|
370 |
<variable formalParameter="OUT">
|
|
371 |
<connectionPointOut>
|
|
372 |
<relPosition x="59" y="30"/>
|
|
373 |
</connectionPointOut>
|
|
374 |
</variable>
|
|
375 |
</outputVariables>
|
|
376 |
</block>
|
|
377 |
<inVariable localId="43" height="27" width="156">
|
|
378 |
<position x="46" y="57"/>
|
|
379 |
<connectionPointOut>
|
|
380 |
<relPosition x="156" y="13"/>
|
|
381 |
</connectionPointOut>
|
|
382 |
<expression>SWITCH_BUTTON</expression>
|
|
383 |
</inVariable>
|
|
384 |
<outVariable localId="44" height="27" width="46">
|
|
385 |
<position x="351" y="57"/>
|
|
386 |
<connectionPointIn>
|
|
387 |
<relPosition x="0" y="13"/>
|
|
388 |
<connection refLocalId="42" formalParameter="OUT">
|
|
389 |
<position x="351" y="70"/>
|
|
390 |
<position x="289" y="70"/>
|
|
391 |
</connection>
|
|
392 |
</connectionPointIn>
|
|
393 |
<expression>STOP</expression>
|
|
394 |
</outVariable>
|
|
395 |
</FBD>
|
|
396 |
</body>
|
|
397 |
</transition>
|
|
398 |
</transitions>
|
|
399 |
<body>
|
|
400 |
<SFC>
|
|
401 |
<step localId="1" height="37" width="78" name="Standstill" initialStep="true">
|
|
402 |
<position x="530" y="31"/>
|
|
403 |
<connectionPointIn>
|
|
404 |
<relPosition x="39" y="0"/>
|
|
405 |
<connection refLocalId="39">
|
|
406 |
<position x="569" y="31"/>
|
|
407 |
<position x="569" y="11"/>
|
|
408 |
<position x="1016" y="11"/>
|
|
409 |
<position x="1016" y="1151"/>
|
|
410 |
<position x="776" y="1151"/>
|
|
411 |
<position x="776" y="1097"/>
|
|
412 |
</connection>
|
|
413 |
</connectionPointIn>
|
|
414 |
<connectionPointOut formalParameter="">
|
|
415 |
<relPosition x="39" y="37"/>
|
|
416 |
</connectionPointOut>
|
|
417 |
<connectionPointOutAction formalParameter="">
|
|
418 |
<relPosition x="78" y="18"/>
|
|
419 |
</connectionPointOutAction>
|
|
420 |
</step>
|
|
421 |
<transition localId="2" height="2" width="20">
|
|
422 |
<position x="559" y="225"/>
|
|
423 |
<connectionPointIn>
|
|
424 |
<relPosition x="10" y="0"/>
|
|
425 |
<connection refLocalId="1">
|
|
426 |
<position x="569" y="225"/>
|
|
427 |
<position x="569" y="68"/>
|
|
428 |
</connection>
|
|
429 |
</connectionPointIn>
|
|
430 |
<connectionPointOut>
|
|
431 |
<relPosition x="10" y="2"/>
|
|
432 |
</connectionPointOut>
|
|
433 |
<condition>
|
|
434 |
<inline name="">
|
|
435 |
<ST>
|
|
436 |
<xhtml:p><![CDATA[SWITCH_BUTTON]]></xhtml:p>
|
|
437 |
</ST>
|
|
438 |
</inline>
|
|
439 |
</condition>
|
|
440 |
</transition>
|
|
441 |
<step localId="3" height="27" width="69" name="ORANGE">
|
|
442 |
<position x="535" y="252"/>
|
|
443 |
<connectionPointIn>
|
|
444 |
<relPosition x="34" y="0"/>
|
|
445 |
<connection refLocalId="2">
|
|
446 |
<position x="569" y="252"/>
|
|
447 |
<position x="569" y="227"/>
|
|
448 |
</connection>
|
|
449 |
</connectionPointIn>
|
|
450 |
<connectionPointOut formalParameter="">
|
|
451 |
<relPosition x="34" y="27"/>
|
|
452 |
</connectionPointOut>
|
|
453 |
<connectionPointOutAction formalParameter="">
|
|
454 |
<relPosition x="69" y="13"/>
|
|
455 |
</connectionPointOutAction>
|
|
456 |
</step>
|
|
457 |
<transition localId="6" height="2" width="20">
|
|
458 |
<position x="559" y="376"/>
|
|
459 |
<connectionPointIn>
|
|
460 |
<relPosition x="10" y="0"/>
|
|
461 |
<connection refLocalId="15">
|
|
462 |
<position x="569" y="376"/>
|
|
463 |
<position x="569" y="336"/>
|
|
464 |
</connection>
|
|
465 |
</connectionPointIn>
|
|
466 |
<connectionPointOut>
|
|
467 |
<relPosition x="10" y="2"/>
|
|
468 |
</connectionPointOut>
|
|
469 |
<condition>
|
|
470 |
<inline name="">
|
|
471 |
<ST>
|
|
472 |
<xhtml:p><![CDATA[STOP_CARS]]></xhtml:p>
|
|
473 |
</ST>
|
|
474 |
</inline>
|
|
475 |
</condition>
|
|
476 |
</transition>
|
|
477 |
<actionBlock localId="8" width="231" height="162">
|
|
478 |
<position x="711" y="34"/>
|
|
479 |
<connectionPointIn>
|
|
480 |
<relPosition x="0" y="15"/>
|
|
481 |
<connection refLocalId="1">
|
|
482 |
<position x="711" y="49"/>
|
|
483 |
<position x="608" y="49"/>
|
|
484 |
</connection>
|
|
485 |
</connectionPointIn>
|
|
486 |
<action localId="0" qualifier="P">
|
|
487 |
<relPosition x="0" y="0"/>
|
|
488 |
<inline>
|
|
489 |
<ST>
|
|
490 |
<xhtml:p><![CDATA[ORANGE_LIGHT := 1;]]></xhtml:p>
|
|
491 |
</ST>
|
|
492 |
</inline>
|
|
493 |
</action>
|
|
494 |
<action localId="0">
|
|
495 |
<relPosition x="0" y="0"/>
|
|
496 |
<reference name="BLINK_ORANGE_LIGHT"/>
|
|
497 |
</action>
|
|
498 |
<action localId="0" qualifier="R">
|
|
499 |
<relPosition x="0" y="0"/>
|
|
500 |
<reference name="PEDESTRIAN_RED_LIGHT"/>
|
|
501 |
</action>
|
|
502 |
<action localId="0" qualifier="R">
|
|
503 |
<relPosition x="0" y="0"/>
|
|
504 |
<reference name="PEDESTRIAN_GREEN_LIGHT"/>
|
|
505 |
</action>
|
|
506 |
<action localId="0" qualifier="R">
|
|
507 |
<relPosition x="0" y="0"/>
|
|
508 |
<reference name="RED_LIGHT"/>
|
|
509 |
</action>
|
|
510 |
<action localId="0" qualifier="R">
|
|
511 |
<relPosition x="0" y="0"/>
|
|
512 |
<reference name="GREEN_LIGHT"/>
|
|
513 |
</action>
|
|
514 |
</actionBlock>
|
|
515 |
<actionBlock localId="9" width="219" height="125">
|
|
516 |
<position x="711" y="250"/>
|
|
517 |
<connectionPointIn>
|
|
518 |
<relPosition x="0" y="15"/>
|
|
519 |
<connection refLocalId="3">
|
|
520 |
<position x="711" y="265"/>
|
|
521 |
<position x="604" y="265"/>
|
|
522 |
</connection>
|
|
523 |
</connectionPointIn>
|
|
524 |
<action localId="0" qualifier="R">
|
|
525 |
<relPosition x="0" y="0"/>
|
|
526 |
<reference name="GREEN_LIGHT"/>
|
|
527 |
</action>
|
|
528 |
<action localId="0" qualifier="S">
|
|
529 |
<relPosition x="0" y="0"/>
|
|
530 |
<reference name="ORANGE_LIGHT"/>
|
|
531 |
</action>
|
|
532 |
<action localId="0" qualifier="S">
|
|
533 |
<relPosition x="0" y="0"/>
|
|
534 |
<reference name="PEDESTRIAN_RED_LIGHT"/>
|
|
535 |
</action>
|
|
536 |
<action localId="0" qualifier="D" duration="T#2s">
|
|
537 |
<relPosition x="0" y="0"/>
|
|
538 |
<reference name="STOP_CARS"/>
|
|
539 |
</action>
|
|
540 |
</actionBlock>
|
|
541 |
<step localId="10" height="34" width="37" name="RED">
|
|
542 |
<position x="551" y="411"/>
|
|
543 |
<connectionPointIn>
|
|
544 |
<relPosition x="18" y="0"/>
|
|
545 |
<connection refLocalId="6">
|
|
546 |
<position x="569" y="411"/>
|
|
547 |
<position x="569" y="378"/>
|
|
548 |
</connection>
|
|
549 |
</connectionPointIn>
|
|
550 |
<connectionPointOut formalParameter="">
|
|
551 |
<relPosition x="18" y="34"/>
|
|
552 |
</connectionPointOut>
|
|
553 |
<connectionPointOutAction formalParameter="">
|
|
554 |
<relPosition x="37" y="17"/>
|
|
555 |
</connectionPointOutAction>
|
|
556 |
</step>
|
|
557 |
<actionBlock localId="11" width="203" height="103">
|
|
558 |
<position x="710" y="413"/>
|
|
559 |
<connectionPointIn>
|
|
560 |
<relPosition x="0" y="15"/>
|
|
561 |
<connection refLocalId="10">
|
|
562 |
<position x="710" y="428"/>
|
|
563 |
<position x="588" y="428"/>
|
|
564 |
</connection>
|
|
565 |
</connectionPointIn>
|
|
566 |
<action localId="0" qualifier="R">
|
|
567 |
<relPosition x="0" y="0"/>
|
|
568 |
<reference name="ORANGE_LIGHT"/>
|
|
569 |
</action>
|
|
570 |
<action localId="0" qualifier="S">
|
|
571 |
<relPosition x="0" y="0"/>
|
|
572 |
<reference name="RED_LIGHT"/>
|
|
573 |
</action>
|
|
574 |
<action localId="0" qualifier="D" duration="T#2s">
|
|
575 |
<relPosition x="0" y="0"/>
|
|
576 |
<reference name="ALLOW_PEDESTRIANS"/>
|
|
577 |
</action>
|
|
578 |
</actionBlock>
|
|
579 |
<transition localId="12" height="2" width="20">
|
|
580 |
<position x="559" y="533"/>
|
|
581 |
<connectionPointIn>
|
|
582 |
<relPosition x="10" y="0"/>
|
|
583 |
<connection refLocalId="7">
|
|
584 |
<position x="569" y="533"/>
|
|
585 |
<position x="569" y="487"/>
|
|
586 |
</connection>
|
|
587 |
</connectionPointIn>
|
|
588 |
<connectionPointOut>
|
|
589 |
<relPosition x="10" y="2"/>
|
|
590 |
</connectionPointOut>
|
|
591 |
<condition>
|
|
592 |
<inline name="">
|
|
593 |
<ST>
|
|
594 |
<xhtml:p><![CDATA[ALLOW_PEDESTRIANS]]></xhtml:p>
|
|
595 |
</ST>
|
|
596 |
</inline>
|
|
597 |
</condition>
|
|
598 |
</transition>
|
|
599 |
<selectionDivergence localId="15" height="1" width="154">
|
|
600 |
<position x="415" y="335"/>
|
|
601 |
<connectionPointIn>
|
|
602 |
<relPosition x="154" y="0"/>
|
|
603 |
<connection refLocalId="3">
|
|
604 |
<position x="569" y="335"/>
|
|
605 |
<position x="569" y="279"/>
|
|
606 |
</connection>
|
|
607 |
</connectionPointIn>
|
|
608 |
<connectionPointOut formalParameter="">
|
|
609 |
<relPosition x="0" y="1"/>
|
|
610 |
</connectionPointOut>
|
|
611 |
<connectionPointOut formalParameter="">
|
|
612 |
<relPosition x="154" y="1"/>
|
|
613 |
</connectionPointOut>
|
|
614 |
</selectionDivergence>
|
|
615 |
<transition localId="16" height="2" width="20">
|
|
616 |
<position x="405" y="377"/>
|
|
617 |
<connectionPointIn>
|
|
618 |
<relPosition x="10" y="0"/>
|
|
619 |
<connection refLocalId="15">
|
|
620 |
<position x="415" y="377"/>
|
|
621 |
<position x="415" y="336"/>
|
|
622 |
</connection>
|
|
623 |
</connectionPointIn>
|
|
624 |
<connectionPointOut>
|
|
625 |
<relPosition x="10" y="2"/>
|
|
626 |
</connectionPointOut>
|
|
627 |
<condition>
|
|
628 |
<reference name="STOP"/>
|
|
629 |
</condition>
|
|
630 |
</transition>
|
|
631 |
<jumpStep localId="17" height="13" width="12" targetName="Standstill">
|
|
632 |
<position x="409" y="418"/>
|
|
633 |
<connectionPointIn>
|
|
634 |
<relPosition x="6" y="0"/>
|
|
635 |
<connection refLocalId="16">
|
|
636 |
<position x="415" y="418"/>
|
|
637 |
<position x="415" y="379"/>
|
|
638 |
</connection>
|
|
639 |
</connectionPointIn>
|
|
640 |
</jumpStep>
|
|
641 |
<transition localId="4" height="2" width="20">
|
|
642 |
<position x="400" y="528"/>
|
|
643 |
<connectionPointIn>
|
|
644 |
<relPosition x="10" y="0"/>
|
|
645 |
<connection refLocalId="7">
|
|
646 |
<position x="410" y="528"/>
|
|
647 |
<position x="410" y="487"/>
|
|
648 |
</connection>
|
|
649 |
</connectionPointIn>
|
|
650 |
<connectionPointOut>
|
|
651 |
<relPosition x="10" y="2"/>
|
|
652 |
</connectionPointOut>
|
|
653 |
<condition>
|
|
654 |
<reference name="STOP"/>
|
|
655 |
</condition>
|
|
656 |
</transition>
|
|
657 |
<jumpStep localId="5" height="13" width="12" targetName="Standstill">
|
|
658 |
<position x="404" y="569"/>
|
|
659 |
<connectionPointIn>
|
|
660 |
<relPosition x="6" y="0"/>
|
|
661 |
<connection refLocalId="4">
|
|
662 |
<position x="410" y="569"/>
|
|
663 |
<position x="410" y="530"/>
|
|
664 |
</connection>
|
|
665 |
</connectionPointIn>
|
|
666 |
</jumpStep>
|
|
667 |
<selectionDivergence localId="7" height="1" width="159">
|
|
668 |
<position x="410" y="486"/>
|
|
669 |
<connectionPointIn>
|
|
670 |
<relPosition x="159" y="0"/>
|
|
671 |
<connection refLocalId="10">
|
|
672 |
<position x="569" y="486"/>
|
|
673 |
<position x="569" y="445"/>
|
|
674 |
</connection>
|
|
675 |
</connectionPointIn>
|
|
676 |
<connectionPointOut formalParameter="">
|
|
677 |
<relPosition x="0" y="1"/>
|
|
678 |
</connectionPointOut>
|
|
679 |
<connectionPointOut formalParameter="">
|
|
680 |
<relPosition x="159" y="1"/>
|
|
681 |
</connectionPointOut>
|
|
682 |
</selectionDivergence>
|
|
683 |
<step localId="18" height="27" width="148" name="PEDESTRIAN_GREEN">
|
|
684 |
<position x="495" y="575"/>
|
|
685 |
<connectionPointIn>
|
|
686 |
<relPosition x="74" y="0"/>
|
|
687 |
<connection refLocalId="12">
|
|
688 |
<position x="569" y="575"/>
|
|
689 |
<position x="569" y="535"/>
|
|
690 |
</connection>
|
|
691 |
</connectionPointIn>
|
|
692 |
<connectionPointOut formalParameter="">
|
|
693 |
<relPosition x="74" y="27"/>
|
|
694 |
</connectionPointOut>
|
|
695 |
<connectionPointOutAction formalParameter="">
|
|
696 |
<relPosition x="148" y="13"/>
|
|
697 |
</connectionPointOutAction>
|
|
698 |
</step>
|
|
699 |
<actionBlock localId="19" width="246" height="110">
|
|
700 |
<position x="708" y="573"/>
|
|
701 |
<connectionPointIn>
|
|
702 |
<relPosition x="0" y="15"/>
|
|
703 |
<connection refLocalId="18">
|
|
704 |
<position x="708" y="588"/>
|
|
705 |
<position x="643" y="588"/>
|
|
706 |
</connection>
|
|
707 |
</connectionPointIn>
|
|
708 |
<action localId="0" qualifier="S">
|
|
709 |
<relPosition x="0" y="0"/>
|
|
710 |
<reference name="PEDESTRIAN_GREEN_LIGHT"/>
|
|
711 |
</action>
|
|
712 |
<action localId="0" qualifier="R">
|
|
713 |
<relPosition x="0" y="0"/>
|
|
714 |
<reference name="PEDESTRIAN_RED_LIGHT"/>
|
|
715 |
</action>
|
|
716 |
<action localId="0" qualifier="D" duration="T#10s">
|
|
717 |
<relPosition x="0" y="0"/>
|
|
718 |
<reference name="STOP_PEDESTRIANS"/>
|
|
719 |
</action>
|
|
720 |
</actionBlock>
|
|
721 |
<transition localId="20" height="2" width="20">
|
|
722 |
<position x="400" y="653"/>
|
|
723 |
<connectionPointIn>
|
|
724 |
<relPosition x="10" y="0"/>
|
|
725 |
<connection refLocalId="22">
|
|
726 |
<position x="410" y="653"/>
|
|
727 |
<position x="410" y="626"/>
|
|
728 |
</connection>
|
|
729 |
</connectionPointIn>
|
|
730 |
<connectionPointOut>
|
|
731 |
<relPosition x="10" y="2"/>
|
|
732 |
</connectionPointOut>
|
|
733 |
<condition>
|
|
734 |
<reference name="STOP"/>
|
|
735 |
</condition>
|
|
736 |
</transition>
|
|
737 |
<jumpStep localId="21" height="13" width="12" targetName="Standstill">
|
|
738 |
<position x="404" y="694"/>
|
|
739 |
<connectionPointIn>
|
|
740 |
<relPosition x="6" y="0"/>
|
|
741 |
<connection refLocalId="20">
|
|
742 |
<position x="410" y="694"/>
|
|
743 |
<position x="410" y="655"/>
|
|
744 |
</connection>
|
|
745 |
</connectionPointIn>
|
|
746 |
</jumpStep>
|
|
747 |
<selectionDivergence localId="22" height="1" width="159">
|
|
748 |
<position x="410" y="625"/>
|
|
749 |
<connectionPointIn>
|
|
750 |
<relPosition x="159" y="0"/>
|
|
751 |
<connection refLocalId="18">
|
|
752 |
<position x="569" y="625"/>
|
|
753 |
<position x="569" y="602"/>
|
|
754 |
</connection>
|
|
755 |
</connectionPointIn>
|
|
756 |
<connectionPointOut formalParameter="">
|
|
757 |
<relPosition x="0" y="1"/>
|
|
758 |
</connectionPointOut>
|
|
759 |
<connectionPointOut formalParameter="">
|
|
760 |
<relPosition x="159" y="1"/>
|
|
761 |
</connectionPointOut>
|
|
762 |
</selectionDivergence>
|
|
763 |
<transition localId="23" height="2" width="20">
|
|
764 |
<position x="559" y="709"/>
|
|
765 |
<connectionPointIn>
|
|
766 |
<relPosition x="10" y="0"/>
|
|
767 |
<connection refLocalId="22">
|
|
768 |
<position x="569" y="709"/>
|
|
769 |
<position x="569" y="626"/>
|
|
770 |
</connection>
|
|
771 |
</connectionPointIn>
|
|
772 |
<connectionPointOut>
|
|
773 |
<relPosition x="10" y="2"/>
|
|
774 |
</connectionPointOut>
|
|
775 |
<condition>
|
|
776 |
<inline name="">
|
|
777 |
<ST>
|
|
778 |
<xhtml:p><![CDATA[STOP_PEDESTRIANS]]></xhtml:p>
|
|
779 |
</ST>
|
|
780 |
</inline>
|
|
781 |
</condition>
|
|
782 |
</transition>
|
|
783 |
<step localId="24" height="27" width="148" name="PEDESTRIAN_RED">
|
|
784 |
<position x="495" y="750"/>
|
|
785 |
<connectionPointIn>
|
|
786 |
<relPosition x="74" y="0"/>
|
|
787 |
<connection refLocalId="23">
|
|
788 |
<position x="569" y="750"/>
|
|
789 |
<position x="569" y="711"/>
|
|
790 |
</connection>
|
|
791 |
</connectionPointIn>
|
|
792 |
<connectionPointOut formalParameter="">
|
|
793 |
<relPosition x="74" y="27"/>
|
|
794 |
</connectionPointOut>
|
|
795 |
<connectionPointOutAction formalParameter="">
|
|
796 |
<relPosition x="148" y="13"/>
|
|
797 |
</connectionPointOutAction>
|
|
798 |
</step>
|
|
799 |
<actionBlock localId="25" width="238" height="110">
|
|
800 |
<position x="708" y="748"/>
|
|
801 |
<connectionPointIn>
|
|
802 |
<relPosition x="0" y="15"/>
|
|
803 |
<connection refLocalId="24">
|
|
804 |
<position x="708" y="763"/>
|
|
805 |
<position x="643" y="763"/>
|
|
806 |
</connection>
|
|
807 |
</connectionPointIn>
|
|
808 |
<action localId="0" qualifier="S">
|
|
809 |
<relPosition x="0" y="0"/>
|
|
810 |
<reference name="PEDESTRIAN_RED_LIGHT"/>
|
|
811 |
</action>
|
|
812 |
<action localId="0" qualifier="R">
|
|
813 |
<relPosition x="0" y="0"/>
|
|
814 |
<reference name="PEDESTRIAN_GREEN_LIGHT"/>
|
|
815 |
</action>
|
|
816 |
<action localId="0" qualifier="D" duration="T#2s">
|
|
817 |
<relPosition x="0" y="0"/>
|
|
818 |
<reference name="ALLOW_CARS"/>
|
|
819 |
</action>
|
|
820 |
</actionBlock>
|
|
821 |
<transition localId="26" height="2" width="20">
|
|
822 |
<position x="400" y="857"/>
|
|
823 |
<connectionPointIn>
|
|
824 |
<relPosition x="10" y="0"/>
|
|
825 |
<connection refLocalId="28">
|
|
826 |
<position x="410" y="857"/>
|
|
827 |
<position x="410" y="816"/>
|
|
828 |
</connection>
|
|
829 |
</connectionPointIn>
|
|
830 |
<connectionPointOut>
|
|
831 |
<relPosition x="10" y="2"/>
|
|
832 |
</connectionPointOut>
|
|
833 |
<condition>
|
|
834 |
<reference name="STOP"/>
|
|
835 |
</condition>
|
|
836 |
</transition>
|
|
837 |
<jumpStep localId="27" height="13" width="12" targetName="Standstill">
|
|
838 |
<position x="404" y="898"/>
|
|
839 |
<connectionPointIn>
|
|
840 |
<relPosition x="6" y="0"/>
|
|
841 |
<connection refLocalId="26">
|
|
842 |
<position x="410" y="898"/>
|
|
843 |
<position x="410" y="859"/>
|
|
844 |
</connection>
|
|
845 |
</connectionPointIn>
|
|
846 |
</jumpStep>
|
|
847 |
<selectionDivergence localId="28" height="1" width="159">
|
|
848 |
<position x="410" y="815"/>
|
|
849 |
<connectionPointIn>
|
|
850 |
<relPosition x="159" y="0"/>
|
|
851 |
<connection refLocalId="24">
|
|
852 |
<position x="569" y="815"/>
|
|
853 |
<position x="569" y="777"/>
|
|
854 |
</connection>
|
|
855 |
</connectionPointIn>
|
|
856 |
<connectionPointOut formalParameter="">
|
|
857 |
<relPosition x="0" y="1"/>
|
|
858 |
</connectionPointOut>
|
|
859 |
<connectionPointOut formalParameter="">
|
|
860 |
<relPosition x="159" y="1"/>
|
|
861 |
</connectionPointOut>
|
|
862 |
</selectionDivergence>
|
|
863 |
<transition localId="29" height="2" width="20">
|
|
864 |
<position x="559" y="879"/>
|
|
865 |
<connectionPointIn>
|
|
866 |
<relPosition x="10" y="0"/>
|
|
867 |
<connection refLocalId="28">
|
|
868 |
<position x="569" y="879"/>
|
|
869 |
<position x="569" y="816"/>
|
|
870 |
</connection>
|
|
871 |
</connectionPointIn>
|
|
872 |
<connectionPointOut>
|
|
873 |
<relPosition x="10" y="2"/>
|
|
874 |
</connectionPointOut>
|
|
875 |
<condition>
|
|
876 |
<inline name="">
|
|
877 |
<ST>
|
|
878 |
<xhtml:p><![CDATA[ALLOW_CARS]]></xhtml:p>
|
|
879 |
</ST>
|
|
880 |
</inline>
|
|
881 |
</condition>
|
|
882 |
</transition>
|
|
883 |
<step localId="30" height="27" width="56" name="GREEN">
|
|
884 |
<position x="541" y="933"/>
|
|
885 |
<connectionPointIn>
|
|
886 |
<relPosition x="28" y="0"/>
|
|
887 |
<connection refLocalId="29">
|
|
888 |
<position x="569" y="933"/>
|
|
889 |
<position x="569" y="881"/>
|
|
890 |
</connection>
|
|
891 |
</connectionPointIn>
|
|
892 |
<connectionPointOut formalParameter="">
|
|
893 |
<relPosition x="28" y="27"/>
|
|
894 |
</connectionPointOut>
|
|
895 |
<connectionPointOutAction formalParameter="">
|
|
896 |
<relPosition x="56" y="13"/>
|
|
897 |
</connectionPointOutAction>
|
|
898 |
</step>
|
|
899 |
<actionBlock localId="31" width="154" height="110">
|
|
900 |
<position x="709" y="931"/>
|
|
901 |
<connectionPointIn>
|
|
902 |
<relPosition x="0" y="15"/>
|
|
903 |
<connection refLocalId="30">
|
|
904 |
<position x="709" y="946"/>
|
|
905 |
<position x="597" y="946"/>
|
|
906 |
</connection>
|
|
907 |
</connectionPointIn>
|
|
908 |
<action localId="0" qualifier="S">
|
|
909 |
<relPosition x="0" y="0"/>
|
|
910 |
<reference name="GREEN_LIGHT"/>
|
|
911 |
</action>
|
|
912 |
<action localId="0" qualifier="R">
|
|
913 |
<relPosition x="0" y="0"/>
|
|
914 |
<reference name="RED_LIGHT"/>
|
|
915 |
</action>
|
|
916 |
<action localId="0" qualifier="D" duration="T#20s">
|
|
917 |
<relPosition x="0" y="0"/>
|
|
918 |
<reference name="WARN_CARS"/>
|
|
919 |
</action>
|
|
920 |
</actionBlock>
|
|
921 |
<block localId="32" width="89" height="94" typeName="TON" instanceName="TON3">
|
|
922 |
<position x="308" y="1053"/>
|
|
923 |
<inputVariables>
|
|
924 |
<variable formalParameter="IN">
|
|
925 |
<connectionPointIn>
|
|
926 |
<relPosition x="0" y="38"/>
|
|
927 |
<connection refLocalId="44" formalParameter="Q1">
|
|
928 |
<position x="308" y="1091"/>
|
|
929 |
<position x="291" y="1091"/>
|
|
930 |
<position x="291" y="1065"/>
|
|
931 |
<position x="274" y="1065"/>
|
|
932 |
</connection>
|
|
933 |
</connectionPointIn>
|
|
934 |
</variable>
|
|
935 |
<variable formalParameter="PT">
|
|
936 |
<connectionPointIn>
|
|
937 |
<relPosition x="0" y="75"/>
|
|
938 |
<connection refLocalId="34">
|
|
939 |
<position x="308" y="1128"/>
|
|
940 |
<position x="270" y="1128"/>
|
|
941 |
</connection>
|
|
942 |
</connectionPointIn>
|
|
943 |
</variable>
|
|
944 |
</inputVariables>
|
|
945 |
<inOutVariables/>
|
|
946 |
<outputVariables>
|
|
947 |
<variable formalParameter="Q">
|
|
948 |
<connectionPointOut>
|
|
949 |
<relPosition x="89" y="38"/>
|
|
950 |
</connectionPointOut>
|
|
951 |
</variable>
|
|
952 |
<variable formalParameter="ET">
|
|
953 |
<connectionPointOut>
|
|
954 |
<relPosition x="89" y="75"/>
|
|
955 |
</connectionPointOut>
|
|
956 |
</variable>
|
|
957 |
</outputVariables>
|
|
958 |
</block>
|
|
959 |
<inVariable localId="33" height="27" width="159">
|
|
960 |
<position x="24" y="1052"/>
|
|
961 |
<connectionPointOut>
|
|
962 |
<relPosition x="159" y="13"/>
|
|
963 |
</connectionPointOut>
|
|
964 |
<expression>PEDESTRIAN_BUTTON</expression>
|
|
965 |
</inVariable>
|
|
966 |
<inVariable localId="34" height="27" width="43">
|
|
967 |
<position x="227" y="1115"/>
|
|
968 |
<connectionPointOut>
|
|
969 |
<relPosition x="43" y="13"/>
|
|
970 |
</connectionPointOut>
|
|
971 |
<expression>T#2s</expression>
|
|
972 |
</inVariable>
|
|
973 |
<block localId="35" width="67" height="60" typeName="OR">
|
|
974 |
<position x="459" y="1061"/>
|
|
975 |
<inputVariables>
|
|
976 |
<variable formalParameter="IN1">
|
|
977 |
<connectionPointIn>
|
|
978 |
<relPosition x="0" y="30"/>
|
|
979 |
<connection refLocalId="32" formalParameter="Q">
|
|
980 |
<position x="459" y="1091"/>
|
|
981 |
<position x="397" y="1091"/>
|
|
982 |
</connection>
|
|
983 |
</connectionPointIn>
|
|
984 |
</variable>
|
|
985 |
<variable formalParameter="IN2">
|
|
986 |
<connectionPointIn>
|
|
987 |
<relPosition x="0" y="50"/>
|
|
988 |
<connection refLocalId="36">
|
|
989 |
<position x="459" y="1111"/>
|
|
990 |
<position x="427" y="1111"/>
|
|
991 |
<position x="427" y="1195"/>
|
|
992 |
<position x="260" y="1195"/>
|
|
993 |
</connection>
|
|
994 |
</connectionPointIn>
|
|
995 |
</variable>
|
|
996 |
</inputVariables>
|
|
997 |
<inOutVariables/>
|
|
998 |
<outputVariables>
|
|
999 |
<variable formalParameter="OUT">
|
|
1000 |
<connectionPointOut>
|
|
1001 |
<relPosition x="67" y="30"/>
|
|
1002 |
</connectionPointOut>
|
|
1003 |
</variable>
|
|
1004 |
</outputVariables>
|
|
1005 |
</block>
|
|
1006 |
<inVariable localId="36" height="27" width="97">
|
|
1007 |
<position x="163" y="1182"/>
|
|
1008 |
<connectionPointOut>
|
|
1009 |
<relPosition x="97" y="13"/>
|
|
1010 |
</connectionPointOut>
|
|
1011 |
<expression>WARN_CARS</expression>
|
|
1012 |
</inVariable>
|
|
1013 |
<transition localId="37" height="2" width="20">
|
|
1014 |
<position x="559" y="1090"/>
|
|
1015 |
<connectionPointIn>
|
|
1016 |
<relPosition x="10" y="0"/>
|
|
1017 |
<connection refLocalId="38">
|
|
1018 |
<position x="569" y="1090"/>
|
|
1019 |
<position x="569" y="1060"/>
|
|
1020 |
</connection>
|
|
1021 |
</connectionPointIn>
|
|
1022 |
<connectionPointOut>
|
|
1023 |
<relPosition x="10" y="2"/>
|
|
1024 |
</connectionPointOut>
|
|
1025 |
<condition>
|
|
1026 |
<connectionPointIn>
|
|
1027 |
<connection refLocalId="35" formalParameter="OUT">
|
|
1028 |
<position x="559" y="1091"/>
|
|
1029 |
<position x="526" y="1091"/>
|
|
1030 |
</connection>
|
|
1031 |
</connectionPointIn>
|
|
1032 |
</condition>
|
|
1033 |
</transition>
|
|
1034 |
<selectionDivergence localId="38" height="1" width="207">
|
|
1035 |
<position x="569" y="1059"/>
|
|
1036 |
<connectionPointIn>
|
|
1037 |
<relPosition x="0" y="0"/>
|
|
1038 |
<connection refLocalId="30">
|
|
1039 |
<position x="569" y="1059"/>
|
|
1040 |
<position x="569" y="960"/>
|
|
1041 |
</connection>
|
|
1042 |
</connectionPointIn>
|
|
1043 |
<connectionPointOut formalParameter="">
|
|
1044 |
<relPosition x="0" y="1"/>
|
|
1045 |
</connectionPointOut>
|
|
1046 |
<connectionPointOut formalParameter="">
|
|
1047 |
<relPosition x="207" y="1"/>
|
|
1048 |
</connectionPointOut>
|
|
1049 |
</selectionDivergence>
|
|
1050 |
<transition localId="39" height="2" width="20">
|
|
1051 |
<position x="766" y="1095"/>
|
|
1052 |
<connectionPointIn>
|
|
1053 |
<relPosition x="10" y="0"/>
|
|
1054 |
<connection refLocalId="38">
|
|
1055 |
<position x="776" y="1095"/>
|
|
1056 |
<position x="776" y="1060"/>
|
|
1057 |
</connection>
|
|
1058 |
</connectionPointIn>
|
|
1059 |
<connectionPointOut>
|
|
1060 |
<relPosition x="10" y="2"/>
|
|
1061 |
</connectionPointOut>
|
|
1062 |
<condition>
|
|
1063 |
<inline name="">
|
|
1064 |
<ST>
|
|
1065 |
<xhtml:p><![CDATA[NOT SWITCH_BUTTON]]></xhtml:p>
|
|
1066 |
</ST>
|
|
1067 |
</inline>
|
|
1068 |
</condition>
|
|
1069 |
</transition>
|
|
1070 |
<jumpStep localId="41" height="13" width="12" targetName="ORANGE">
|
|
1071 |
<position x="563" y="1137"/>
|
|
1072 |
<connectionPointIn>
|
|
1073 |
<relPosition x="6" y="0"/>
|
|
1074 |
<connection refLocalId="37">
|
|
1075 |
<position x="569" y="1137"/>
|
|
1076 |
<position x="569" y="1092"/>
|
|
1077 |
</connection>
|
|
1078 |
</connectionPointIn>
|
|
1079 |
</jumpStep>
|
|
1080 |
<block localId="44" width="50" height="60" typeName="SR" instanceName="SR0">
|
|
1081 |
<position x="224" y="1035"/>
|
|
1082 |
<inputVariables>
|
|
1083 |
<variable formalParameter="S1">
|
|
1084 |
<connectionPointIn>
|
|
1085 |
<relPosition x="0" y="30"/>
|
|
1086 |
<connection refLocalId="33">
|
|
1087 |
<position x="224" y="1065"/>
|
|
1088 |
<position x="183" y="1065"/>
|
|
1089 |
</connection>
|
|
1090 |
</connectionPointIn>
|
|
1091 |
</variable>
|
|
1092 |
<variable formalParameter="R">
|
|
1093 |
<connectionPointIn>
|
|
1094 |
<relPosition x="0" y="50"/>
|
|
1095 |
<connection refLocalId="32" formalParameter="Q">
|
|
1096 |
<position x="224" y="1085"/>
|
|
1097 |
<position x="203" y="1085"/>
|
|
1098 |
<position x="203" y="1167"/>
|
|
1099 |
<position x="416" y="1167"/>
|
|
1100 |
<position x="416" y="1091"/>
|
|
1101 |
<position x="397" y="1091"/>
|
|
1102 |
</connection>
|
|
1103 |
</connectionPointIn>
|
|
1104 |
</variable>
|
|
1105 |
</inputVariables>
|
|
1106 |
<inOutVariables/>
|
|
1107 |
<outputVariables>
|
|
1108 |
<variable formalParameter="Q1">
|
|
1109 |
<connectionPointOut>
|
|
1110 |
<relPosition x="50" y="30"/>
|
|
1111 |
</connectionPointOut>
|
|
1112 |
</variable>
|
|
1113 |
</outputVariables>
|
|
1114 |
</block>
|
|
1115 |
</SFC>
|
|
1116 |
</body>
|
|
1117 |
</pou>
|
|
1118 |
<pou name="main_program" pouType="program">
|
|
1119 |
<interface>
|
|
1120 |
<localVars>
|
|
1121 |
<variable name="trafic_light_sequence0">
|
|
1122 |
<type>
|
|
1123 |
<derived name="traffic_light_sequence"/>
|
|
1124 |
</type>
|
|
1125 |
</variable>
|
|
1126 |
<variable name="SwitchButton">
|
|
1127 |
<type>
|
|
1128 |
<derived name="Button"/>
|
|
1129 |
</type>
|
|
1130 |
</variable>
|
|
1131 |
<variable name="PedestrianButton">
|
|
1132 |
<type>
|
|
1133 |
<derived name="Button"/>
|
|
1134 |
</type>
|
|
1135 |
</variable>
|
|
1136 |
<variable name="RedLight">
|
|
1137 |
<type>
|
|
1138 |
<derived name="Led"/>
|
|
1139 |
</type>
|
|
1140 |
</variable>
|
|
1141 |
<variable name="OrangeLight">
|
|
1142 |
<type>
|
|
1143 |
<derived name="Led"/>
|
|
1144 |
</type>
|
|
1145 |
</variable>
|
|
1146 |
<variable name="GreenLight">
|
|
1147 |
<type>
|
|
1148 |
<derived name="Led"/>
|
|
1149 |
</type>
|
|
1150 |
</variable>
|
|
1151 |
<variable name="PedestrianRedLight">
|
|
1152 |
<type>
|
|
1153 |
<derived name="Led"/>
|
|
1154 |
</type>
|
|
1155 |
</variable>
|
|
1156 |
<variable name="PedestrianGreenLight">
|
|
1157 |
<type>
|
|
1158 |
<derived name="Led"/>
|
|
1159 |
</type>
|
|
1160 |
</variable>
|
|
1161 |
<variable name="TEST_DATE">
|
|
1162 |
<type>
|
|
1163 |
<DATE/>
|
|
1164 |
</type>
|
|
1165 |
<initialValue>
|
|
1166 |
<simpleValue value="D#2012-12-03"/>
|
|
1167 |
</initialValue>
|
|
1168 |
</variable>
|
|
1169 |
<variable name="RESULT_STRING">
|
|
1170 |
<type>
|
|
1171 |
<string/>
|
|
1172 |
</type>
|
|
1173 |
</variable>
|
|
1174 |
<variable name="TEST_STRING">
|
|
1175 |
<type>
|
|
1176 |
<string/>
|
|
1177 |
</type>
|
|
1178 |
<initialValue>
|
|
1179 |
<simpleValue value="TOTO"/>
|
|
1180 |
</initialValue>
|
|
1181 |
</variable>
|
|
1182 |
<variable name="TEST_ULINT">
|
|
1183 |
<type>
|
|
1184 |
<ULINT/>
|
|
1185 |
</type>
|
|
1186 |
</variable>
|
|
1187 |
<variable name="RESULT_INT">
|
|
1188 |
<type>
|
|
1189 |
<INT/>
|
|
1190 |
</type>
|
|
1191 |
</variable>
|
|
1192 |
<variable name="RESULT_BYTE">
|
|
1193 |
<type>
|
|
1194 |
<BYTE/>
|
|
1195 |
</type>
|
|
1196 |
</variable>
|
|
1197 |
</localVars>
|
|
1198 |
</interface>
|
|
1199 |
<body>
|
|
1200 |
<FBD>
|
|
1201 |
<block localId="1" width="349" height="836" typeName="traffic_light_sequence" instanceName="trafic_light_sequence0">
|
|
1202 |
<position x="470" y="127"/>
|
|
1203 |
<inputVariables>
|
|
1204 |
<variable formalParameter="SWITCH_BUTTON">
|
|
1205 |
<connectionPointIn>
|
|
1206 |
<relPosition x="0" y="101"/>
|
|
1207 |
<connection refLocalId="2" formalParameter="state_out">
|
|
1208 |
<position x="470" y="228"/>
|
|
1209 |
<position x="401" y="228"/>
|
|
1210 |
<position x="401" y="177"/>
|
|
1211 |
<position x="333" y="177"/>
|
|
1212 |
</connection>
|
|
1213 |
</connectionPointIn>
|
|
1214 |
</variable>
|
|
1215 |
<variable formalParameter="PEDESTRIAN_BUTTON">
|
|
1216 |
<connectionPointIn>
|
|
1217 |
<relPosition x="0" y="264"/>
|
|
1218 |
<connection refLocalId="3" formalParameter="state_out">
|
|
1219 |
<position x="470" y="391"/>
|
|
1220 |
<position x="335" y="391"/>
|
|
1221 |
</connection>
|
|
1222 |
</connectionPointIn>
|
|
1223 |
</variable>
|
|
1224 |
</inputVariables>
|
|
1225 |
<inOutVariables/>
|
|
1226 |
<outputVariables>
|
|
1227 |
<variable formalParameter="RED_LIGHT">
|
|
1228 |
<connectionPointOut>
|
|
1229 |
<relPosition x="349" y="101"/>
|
|
1230 |
</connectionPointOut>
|
|
1231 |
</variable>
|
|
1232 |
<variable formalParameter="ORANGE_LIGHT">
|
|
1233 |
<connectionPointOut>
|
|
1234 |
<relPosition x="349" y="264"/>
|
|
1235 |
</connectionPointOut>
|
|
1236 |
</variable>
|
|
1237 |
<variable formalParameter="GREEN_LIGHT">
|
|
1238 |
<connectionPointOut>
|
|
1239 |
<relPosition x="349" y="427"/>
|
|
1240 |
</connectionPointOut>
|
|
1241 |
</variable>
|
|
1242 |
<variable formalParameter="PEDESTRIAN_RED_LIGHT">
|
|
1243 |
<connectionPointOut>
|
|
1244 |
<relPosition x="349" y="590"/>
|
|
1245 |
</connectionPointOut>
|
|
1246 |
</variable>
|
|
1247 |
<variable formalParameter="PEDESTRIAN_GREEN_LIGHT">
|
|
1248 |
<connectionPointOut>
|
|
1249 |
<relPosition x="349" y="753"/>
|
|
1250 |
</connectionPointOut>
|
|
1251 |
</variable>
|
|
1252 |
</outputVariables>
|
|
1253 |
</block>
|
|
1254 |
<block localId="2" width="143" height="183" typeName="Button" instanceName="SwitchButton">
|
|
1255 |
<position x="190" y="141"/>
|
|
1256 |
<inputVariables>
|
|
1257 |
<variable formalParameter="back_id">
|
|
1258 |
<connectionPointIn>
|
|
1259 |
<relPosition x="0" y="36"/>
|
|
1260 |
<connection refLocalId="5">
|
|
1261 |
<position x="190" y="177"/>
|
|
1262 |
<position x="136" y="177"/>
|
|
1263 |
</connection>
|
|
1264 |
</connectionPointIn>
|
|
1265 |
</variable>
|
|
1266 |
<variable formalParameter="sele_id">
|
|
1267 |
<connectionPointIn>
|
|
1268 |
<relPosition x="0" y="68"/>
|
|
1269 |
<connection refLocalId="6">
|
|
1270 |
<position x="190" y="209"/>
|
|
1271 |
<position x="136" y="209"/>
|
|
1272 |
</connection>
|
|
1273 |
</connectionPointIn>
|
|
1274 |
</variable>
|
|
1275 |
<variable formalParameter="toggle">
|
|
1276 |
<connectionPointIn>
|
|
1277 |
<relPosition x="0" y="100"/>
|
|
1278 |
<connection refLocalId="4">
|
|
1279 |
<position x="190" y="241"/>
|
|
1280 |
<position x="136" y="241"/>
|
|
1281 |
</connection>
|
|
1282 |
</connectionPointIn>
|
|
1283 |
</variable>
|
|
1284 |
<variable formalParameter="set_state">
|
|
1285 |
<connectionPointIn>
|
|
1286 |
<relPosition x="0" y="132"/>
|
|
1287 |
</connectionPointIn>
|
|
1288 |
</variable>
|
|
1289 |
<variable formalParameter="state_in">
|
|
1290 |
<connectionPointIn>
|
|
1291 |
<relPosition x="0" y="164"/>
|
|
1292 |
</connectionPointIn>
|
|
1293 |
</variable>
|
|
1294 |
</inputVariables>
|
|
1295 |
<inOutVariables/>
|
|
1296 |
<outputVariables>
|
|
1297 |
<variable formalParameter="state_out">
|
|
1298 |
<connectionPointOut>
|
|
1299 |
<relPosition x="143" y="36"/>
|
|
1300 |
</connectionPointOut>
|
|
1301 |
</variable>
|
|
1302 |
</outputVariables>
|
|
1303 |
</block>
|
|
1304 |
<block localId="3" width="143" height="198" typeName="Button" instanceName="PedestrianButton">
|
|
1305 |
<position x="192" y="354"/>
|
|
1306 |
<inputVariables>
|
|
1307 |
<variable formalParameter="back_id">
|
|
1308 |
<connectionPointIn>
|
|
1309 |
<relPosition x="0" y="37"/>
|
|
1310 |
<connection refLocalId="7">
|
|
1311 |
<position x="192" y="391"/>
|
|
1312 |
<position x="159" y="391"/>
|
|
1313 |
</connection>
|
|
1314 |
</connectionPointIn>
|
|
1315 |
</variable>
|
|
1316 |
<variable formalParameter="sele_id">
|
|
1317 |
<connectionPointIn>
|
|
1318 |
<relPosition x="0" y="72"/>
|
|
1319 |
<connection refLocalId="8">
|
|
1320 |
<position x="192" y="426"/>
|
|
1321 |
<position x="159" y="426"/>
|
|
1322 |
</connection>
|
|
1323 |
</connectionPointIn>
|
|
1324 |
</variable>
|
|
1325 |
<variable formalParameter="toggle">
|
|
1326 |
<connectionPointIn>
|
|
1327 |
<relPosition x="0" y="107"/>
|
|
1328 |
</connectionPointIn>
|
|
1329 |
</variable>
|
|
1330 |
<variable formalParameter="set_state">
|
|
1331 |
<connectionPointIn>
|
|
1332 |
<relPosition x="0" y="142"/>
|
|
1333 |
</connectionPointIn>
|
|
1334 |
</variable>
|
|
1335 |
<variable formalParameter="state_in">
|
|
1336 |
<connectionPointIn>
|
|
1337 |
<relPosition x="0" y="177"/>
|
|
1338 |
</connectionPointIn>
|
|
1339 |
</variable>
|
|
1340 |
</inputVariables>
|
|
1341 |
<inOutVariables/>
|
|
1342 |
<outputVariables>
|
|
1343 |
<variable formalParameter="state_out">
|
|
1344 |
<connectionPointOut>
|
|
1345 |
<relPosition x="143" y="37"/>
|
|
1346 |
</connectionPointOut>
|
|
1347 |
</variable>
|
|
1348 |
</outputVariables>
|
|
1349 |
</block>
|
|
1350 |
<inVariable localId="4" height="27" width="18">
|
|
1351 |
<position x="118" y="228"/>
|
|
1352 |
<connectionPointOut>
|
|
1353 |
<relPosition x="18" y="13"/>
|
|
1354 |
</connectionPointOut>
|
|
1355 |
<expression>1</expression>
|
|
1356 |
</inVariable>
|
|
1357 |
<inVariable localId="5" height="27" width="105">
|
|
1358 |
<position x="31" y="164"/>
|
|
1359 |
<connectionPointOut>
|
|
1360 |
<relPosition x="105" y="13"/>
|
|
1361 |
</connectionPointOut>
|
|
1362 |
<expression>'SWITCH_OFF'</expression>
|
|
1363 |
</inVariable>
|
|
1364 |
<inVariable localId="6" height="27" width="105">
|
|
1365 |
<position x="31" y="196"/>
|
|
1366 |
<connectionPointOut>
|
|
1367 |
<relPosition x="105" y="13"/>
|
|
1368 |
</connectionPointOut>
|
|
1369 |
<expression>'SWITCH_ON'</expression>
|
|
1370 |
</inVariable>
|
|
1371 |
<inVariable localId="7" height="27" width="137">
|
|
1372 |
<position x="22" y="378"/>
|
|
1373 |
<connectionPointOut>
|
|
1374 |
<relPosition x="137" y="13"/>
|
|
1375 |
</connectionPointOut>
|
|
1376 |
<expression>'PEDESTRIAN_OFF'</expression>
|
|
1377 |
</inVariable>
|
|
1378 |
<inVariable localId="8" height="27" width="137">
|
|
1379 |
<position x="22" y="413"/>
|
|
1380 |
<connectionPointOut>
|
|
1381 |
<relPosition x="137" y="13"/>
|
|
1382 |
</connectionPointOut>
|
|
1383 |
<expression>'PEDESTRIAN_ON'</expression>
|
|
1384 |
</inVariable>
|
|
1385 |
<block localId="9" width="115" height="133" typeName="Led" instanceName="RedLight">
|
|
1386 |
<position x="1057" y="116"/>
|
|
1387 |
<inputVariables>
|
|
1388 |
<variable formalParameter="back_id">
|
|
1389 |
<connectionPointIn>
|
|
1390 |
<relPosition x="0" y="38"/>
|
|
1391 |
<connection refLocalId="10">
|
|
1392 |
<position x="1057" y="154"/>
|
|
1393 |
<position x="1010" y="154"/>
|
|
1394 |
</connection>
|
|
1395 |
</connectionPointIn>
|
|
1396 |
</variable>
|
|
1397 |
<variable formalParameter="sele_id">
|
|
1398 |
<connectionPointIn>
|
|
1399 |
<relPosition x="0" y="75"/>
|
|
1400 |
<connection refLocalId="11">
|
|
1401 |
<position x="1057" y="191"/>
|
|
1402 |
<position x="1010" y="191"/>
|
|
1403 |
</connection>
|
|
1404 |
</connectionPointIn>
|
|
1405 |
</variable>
|
|
1406 |
<variable formalParameter="state_in">
|
|
1407 |
<connectionPointIn>
|
|
1408 |
<relPosition x="0" y="112"/>
|
|
1409 |
<connection refLocalId="1" formalParameter="RED_LIGHT">
|
|
1410 |
<position x="1057" y="228"/>
|
|
1411 |
<position x="819" y="228"/>
|
|
1412 |
</connection>
|
|
1413 |
</connectionPointIn>
|
|
1414 |
</variable>
|
|
1415 |
</inputVariables>
|
|
1416 |
<inOutVariables/>
|
|
1417 |
<outputVariables/>
|
|
1418 |
</block>
|
|
1419 |
<inVariable localId="10" height="27" width="79">
|
|
1420 |
<position x="931" y="141"/>
|
|
1421 |
<connectionPointOut>
|
|
1422 |
<relPosition x="79" y="13"/>
|
|
1423 |
</connectionPointOut>
|
|
1424 |
<expression>'RED_OFF'</expression>
|
|
1425 |
</inVariable>
|
|
1426 |
<inVariable localId="11" height="27" width="79">
|
|
1427 |
<position x="931" y="178"/>
|
|
1428 |
<connectionPointOut>
|
|
1429 |
<relPosition x="79" y="13"/>
|
|
1430 |
</connectionPointOut>
|
|
1431 |
<expression>'RED_ON'</expression>
|
|
1432 |
</inVariable>
|
|
1433 |
<block localId="12" width="115" height="133" typeName="Led" instanceName="OrangeLight">
|
|
1434 |
<position x="1058" y="279"/>
|
|
1435 |
<inputVariables>
|
|
1436 |
<variable formalParameter="back_id">
|
|
1437 |
<connectionPointIn>
|
|
1438 |
<relPosition x="0" y="38"/>
|
|
1439 |
<connection refLocalId="13">
|
|
1440 |
<position x="1058" y="317"/>
|
|
1441 |
<position x="1010" y="317"/>
|
|
1442 |
</connection>
|
|
1443 |
</connectionPointIn>
|
|
1444 |
</variable>
|
|
1445 |
<variable formalParameter="sele_id">
|
|
1446 |
<connectionPointIn>
|
|
1447 |
<relPosition x="0" y="75"/>
|
|
1448 |
<connection refLocalId="14">
|
|
1449 |
<position x="1058" y="354"/>
|
|
1450 |
<position x="1010" y="354"/>
|
|
1451 |
</connection>
|
|
1452 |
</connectionPointIn>
|
|
1453 |
</variable>
|
|
1454 |
<variable formalParameter="state_in">
|
|
1455 |
<connectionPointIn>
|
|
1456 |
<relPosition x="0" y="112"/>
|
|
1457 |
<connection refLocalId="1" formalParameter="ORANGE_LIGHT">
|
|
1458 |
<position x="1058" y="391"/>
|
|
1459 |
<position x="819" y="391"/>
|
|
1460 |
</connection>
|
|
1461 |
</connectionPointIn>
|
|
1462 |
</variable>
|
|
1463 |
</inputVariables>
|
|
1464 |
<inOutVariables/>
|
|
1465 |
<outputVariables/>
|
|
1466 |
</block>
|
|
1467 |
<inVariable localId="13" height="27" width="111">
|
|
1468 |
<position x="899" y="304"/>
|
|
1469 |
<connectionPointOut>
|
|
1470 |
<relPosition x="111" y="13"/>
|
|
1471 |
</connectionPointOut>
|
|
1472 |
<expression>'ORANGE_OFF'</expression>
|
|
1473 |
</inVariable>
|
|
1474 |
<inVariable localId="14" height="27" width="106">
|
|
1475 |
<position x="904" y="341"/>
|
|
1476 |
<connectionPointOut>
|
|
1477 |
<relPosition x="106" y="13"/>
|
|
1478 |
</connectionPointOut>
|
|
1479 |
<expression>'ORANGE_ON'</expression>
|
|
1480 |
</inVariable>
|
|
1481 |
<block localId="15" width="115" height="133" typeName="Led" instanceName="GreenLight">
|
|
1482 |
<position x="1058" y="442"/>
|
|
1483 |
<inputVariables>
|
|
1484 |
<variable formalParameter="back_id">
|
|
1485 |
<connectionPointIn>
|
|
1486 |
<relPosition x="0" y="38"/>
|
|
1487 |
<connection refLocalId="16">
|
|
1488 |
<position x="1058" y="480"/>
|
|
1489 |
<position x="1010" y="480"/>
|
|
1490 |
</connection>
|
|
1491 |
</connectionPointIn>
|
|
1492 |
</variable>
|
|
1493 |
<variable formalParameter="sele_id">
|
|
1494 |
<connectionPointIn>
|
|
1495 |
<relPosition x="0" y="75"/>
|
|
1496 |
<connection refLocalId="17">
|
|
1497 |
<position x="1058" y="517"/>
|
|
1498 |
<position x="1010" y="517"/>
|
|
1499 |
</connection>
|
|
1500 |
</connectionPointIn>
|
|
1501 |
</variable>
|
|
1502 |
<variable formalParameter="state_in">
|
|
1503 |
<connectionPointIn>
|
|
1504 |
<relPosition x="0" y="112"/>
|
|
1505 |
<connection refLocalId="1" formalParameter="GREEN_LIGHT">
|
|
1506 |
<position x="1058" y="554"/>
|
|
1507 |
<position x="819" y="554"/>
|
|
1508 |
</connection>
|
|
1509 |
</connectionPointIn>
|
|
1510 |
</variable>
|
|
1511 |
</inputVariables>
|
|
1512 |
<inOutVariables/>
|
|
1513 |
<outputVariables/>
|
|
1514 |
</block>
|
|
1515 |
<inVariable localId="16" height="27" width="111">
|
|
1516 |
<position x="899" y="467"/>
|
|
1517 |
<connectionPointOut>
|
|
1518 |
<relPosition x="111" y="13"/>
|
|
1519 |
</connectionPointOut>
|
|
1520 |
<expression>'GREEN_OFF'</expression>
|
|
1521 |
</inVariable>
|
|
1522 |
<inVariable localId="17" height="27" width="106">
|
|
1523 |
<position x="904" y="504"/>
|
|
1524 |
<connectionPointOut>
|
|
1525 |
<relPosition x="106" y="13"/>
|
|
1526 |
</connectionPointOut>
|
|
1527 |
<expression>'GREEN_ON'</expression>
|
|
1528 |
</inVariable>
|
|
1529 |
<block localId="18" width="115" height="133" typeName="Led" instanceName="PedestrianRedLight">
|
|
1530 |
<position x="1059" y="605"/>
|
|
1531 |
<inputVariables>
|
|
1532 |
<variable formalParameter="back_id">
|
|
1533 |
<connectionPointIn>
|
|
1534 |
<relPosition x="0" y="38"/>
|
|
1535 |
<connection refLocalId="19">
|
|
1536 |
<position x="1059" y="643"/>
|
|
1537 |
<position x="1020" y="643"/>
|
|
1538 |
</connection>
|
|
1539 |
</connectionPointIn>
|
|
1540 |
</variable>
|
|
1541 |
<variable formalParameter="sele_id">
|
|
1542 |
<connectionPointIn>
|
|
1543 |
<relPosition x="0" y="75"/>
|
|
1544 |
<connection refLocalId="20">
|
|
1545 |
<position x="1059" y="680"/>
|
|
1546 |
<position x="1020" y="680"/>
|
|
1547 |
</connection>
|
|
1548 |
</connectionPointIn>
|
|
1549 |
</variable>
|
|
1550 |
<variable formalParameter="state_in">
|
|
1551 |
<connectionPointIn>
|
|
1552 |
<relPosition x="0" y="112"/>
|
|
1553 |
<connection refLocalId="1" formalParameter="PEDESTRIAN_RED_LIGHT">
|
|
1554 |
<position x="1059" y="717"/>
|
|
1555 |
<position x="819" y="717"/>
|
|
1556 |
</connection>
|
|
1557 |
</connectionPointIn>
|
|
1558 |
</variable>
|
|
1559 |
</inputVariables>
|
|
1560 |
<inOutVariables/>
|
|
1561 |
<outputVariables/>
|
|
1562 |
</block>
|
|
1563 |
<inVariable localId="19" height="27" width="171">
|
|
1564 |
<position x="849" y="630"/>
|
|
1565 |
<connectionPointOut>
|
|
1566 |
<relPosition x="171" y="13"/>
|
|
1567 |
</connectionPointOut>
|
|
1568 |
<expression>'PEDESTRIAN_RED_OFF'</expression>
|
|
1569 |
</inVariable>
|
|
1570 |
<inVariable localId="20" height="27" width="166">
|
|
1571 |
<position x="854" y="667"/>
|
|
1572 |
<connectionPointOut>
|
|
1573 |
<relPosition x="166" y="13"/>
|
|
1574 |
</connectionPointOut>
|
|
1575 |
<expression>'PEDESTRIAN_RED_ON'</expression>
|
|
1576 |
</inVariable>
|
|
1577 |
<block localId="21" width="115" height="133" typeName="Led" instanceName="PedestrianGreenLight">
|
|
1578 |
<position x="1059" y="768"/>
|
|
1579 |
<inputVariables>
|
|
1580 |
<variable formalParameter="back_id">
|
|
1581 |
<connectionPointIn>
|
|
1582 |
<relPosition x="0" y="38"/>
|
|
1583 |
<connection refLocalId="22">
|
|
1584 |
<position x="1059" y="806"/>
|
|
1585 |
<position x="1035" y="806"/>
|
|
1586 |
</connection>
|
|
1587 |
</connectionPointIn>
|
|
1588 |
</variable>
|
|
1589 |
<variable formalParameter="sele_id">
|
|
1590 |
<connectionPointIn>
|
|
1591 |
<relPosition x="0" y="75"/>
|
|
1592 |
<connection refLocalId="23">
|
|
1593 |
<position x="1059" y="843"/>
|
|
1594 |
<position x="1035" y="843"/>
|
|
1595 |
</connection>
|
|
1596 |
</connectionPointIn>
|
|
1597 |
</variable>
|
|
1598 |
<variable formalParameter="state_in">
|
|
1599 |
<connectionPointIn>
|
|
1600 |
<relPosition x="0" y="112"/>
|
|
1601 |
<connection refLocalId="1" formalParameter="PEDESTRIAN_GREEN_LIGHT">
|
|
1602 |
<position x="1059" y="880"/>
|
|
1603 |
<position x="819" y="880"/>
|
|
1604 |
</connection>
|
|
1605 |
</connectionPointIn>
|
|
1606 |
</variable>
|
|
1607 |
</inputVariables>
|
|
1608 |
<inOutVariables/>
|
|
1609 |
<outputVariables/>
|
|
1610 |
</block>
|
|
1611 |
<inVariable localId="22" height="27" width="190">
|
|
1612 |
<position x="845" y="793"/>
|
|
1613 |
<connectionPointOut>
|
|
1614 |
<relPosition x="190" y="13"/>
|
|
1615 |
</connectionPointOut>
|
|
1616 |
<expression>'PEDESTRIAN_GREEN_OFF'</expression>
|
|
1617 |
</inVariable>
|
|
1618 |
<inVariable localId="23" height="27" width="185">
|
|
1619 |
<position x="850" y="830"/>
|
|
1620 |
<connectionPointOut>
|
|
1621 |
<relPosition x="185" y="13"/>
|
|
1622 |
</connectionPointOut>
|
|
1623 |
<expression>'PEDESTRIAN_GREEN_ON'</expression>
|
|
1624 |
</inVariable>
|
|
1625 |
<inVariable localId="24" height="27" width="84">
|
|
1626 |
<position x="289" y="1141"/>
|
|
1627 |
<connectionPointOut>
|
|
1628 |
<relPosition x="84" y="13"/>
|
|
1629 |
</connectionPointOut>
|
|
1630 |
<expression>TEST_DATE</expression>
|
|
1631 |
</inVariable>
|
|
1632 |
<block localId="25" width="128" height="40" typeName="DATE_TO_STRING">
|
|
1633 |
<position x="426" y="1124"/>
|
|
1634 |
<inputVariables>
|
|
1635 |
<variable formalParameter="IN">
|
|
1636 |
<connectionPointIn>
|
|
1637 |
<relPosition x="0" y="30"/>
|
|
1638 |
<connection refLocalId="24">
|
|
1639 |
<position x="426" y="1154"/>
|
|
1640 |
<position x="373" y="1154"/>
|
|
1641 |
</connection>
|
|
1642 |
</connectionPointIn>
|
|
1643 |
</variable>
|
|
1644 |
</inputVariables>
|
|
1645 |
<inOutVariables/>
|
|
1646 |
<outputVariables>
|
|
1647 |
<variable formalParameter="OUT">
|
|
1648 |
<connectionPointOut>
|
|
1649 |
<relPosition x="128" y="30"/>
|
|
1650 |
</connectionPointOut>
|
|
1651 |
</variable>
|
|
1652 |
</outputVariables>
|
|
1653 |
</block>
|
|
1654 |
<outVariable localId="26" height="27" width="116">
|
|
1655 |
<position x="640" y="1141"/>
|
|
1656 |
<connectionPointIn>
|
|
1657 |
<relPosition x="0" y="13"/>
|
|
1658 |
<connection refLocalId="25" formalParameter="OUT">
|
|
1659 |
<position x="640" y="1154"/>
|
|
1660 |
<position x="554" y="1154"/>
|
|
1661 |
</connection>
|
|
1662 |
</connectionPointIn>
|
|
1663 |
<expression>RESULT_STRING</expression>
|
|
1664 |
</outVariable>
|
|
1665 |
<inVariable localId="27" height="27" width="90">
|
|
1666 |
<position x="294" y="1271"/>
|
|
1667 |
<connectionPointOut>
|
|
1668 |
<relPosition x="90" y="13"/>
|
|
1669 |
</connectionPointOut>
|
|
1670 |
<expression>TEST_ULINT</expression>
|
|
1671 |
</inVariable>
|
|
1672 |
<outVariable localId="28" height="27" width="89">
|
|
1673 |
<position x="630" y="1271"/>
|
|
1674 |
<connectionPointIn>
|
|
1675 |
<relPosition x="0" y="13"/>
|
|
1676 |
<connection refLocalId="29" formalParameter="OUT">
|
|
1677 |
<position x="630" y="1284"/>
|
|
1678 |
<position x="551" y="1284"/>
|
|
1679 |
</connection>
|
|
1680 |
</connectionPointIn>
|
|
1681 |
<expression>RESULT_INT</expression>
|
|
1682 |
</outVariable>
|
|
1683 |
<block localId="29" width="107" height="40" typeName="ULINT_TO_INT">
|
|
1684 |
<position x="444" y="1254"/>
|
|
1685 |
<inputVariables>
|
|
1686 |
<variable formalParameter="IN">
|
|
1687 |
<connectionPointIn>
|
|
1688 |
<relPosition x="0" y="30"/>
|
|
1689 |
<connection refLocalId="27">
|
|
1690 |
<position x="444" y="1284"/>
|
|
1691 |
<position x="384" y="1284"/>
|
|
1692 |
</connection>
|
|
1693 |
</connectionPointIn>
|
|
1694 |
</variable>
|
|
1695 |
</inputVariables>
|
|
1696 |
<inOutVariables/>
|
|
1697 |
<outputVariables>
|
|
1698 |
<variable formalParameter="OUT">
|
|
1699 |
<connectionPointOut>
|
|
1700 |
<relPosition x="107" y="30"/>
|
|
1701 |
</connectionPointOut>
|
|
1702 |
</variable>
|
|
1703 |
</outputVariables>
|
|
1704 |
</block>
|
|
1705 |
<inVariable localId="30" height="27" width="89">
|
|
1706 |
<position x="139" y="1032"/>
|
|
1707 |
<connectionPointOut>
|
|
1708 |
<relPosition x="89" y="13"/>
|
|
1709 |
</connectionPointOut>
|
|
1710 |
<expression>RESULT_INT</expression>
|
|
1711 |
</inVariable>
|
|
1712 |
<block localId="31" width="68" height="85" typeName="LIMIT">
|
|
1713 |
<position x="419" y="994"/>
|
|
1714 |
<inputVariables>
|
|
1715 |
<variable formalParameter="MN">
|
|
1716 |
<connectionPointIn>
|
|
1717 |
<relPosition x="0" y="30"/>
|
|
1718 |
<connection refLocalId="33">
|
|
1719 |
<position x="419" y="1024"/>
|
|
1720 |
<position x="390" y="1024"/>
|
|
1721 |
</connection>
|
|
1722 |
</connectionPointIn>
|
|
1723 |
</variable>
|
|
1724 |
<variable formalParameter="IN">
|
|
1725 |
<connectionPointIn>
|
|
1726 |
<relPosition x="0" y="51"/>
|
|
1727 |
<connection refLocalId="38" formalParameter="OUT">
|
|
1728 |
<position x="419" y="1045"/>
|
|
1729 |
<position x="335" y="1045"/>
|
|
1730 |
</connection>
|
|
1731 |
</connectionPointIn>
|
|
1732 |
</variable>
|
|
1733 |
<variable formalParameter="MX">
|
|
1734 |
<connectionPointIn>
|
|
1735 |
<relPosition x="0" y="72"/>
|
|
1736 |
<connection refLocalId="34">
|
|
1737 |
<position x="419" y="1066"/>
|
|
1738 |
<position x="404" y="1066"/>
|
|
1739 |
<position x="404" y="1067"/>
|
|
1740 |
<position x="389" y="1067"/>
|
|
1741 |
</connection>
|
|
1742 |
</connectionPointIn>
|
|
1743 |
</variable>
|
|
1744 |
</inputVariables>
|
|
1745 |
<inOutVariables/>
|
|
1746 |
<outputVariables>
|
|
1747 |
<variable formalParameter="OUT">
|
|
1748 |
<connectionPointOut>
|
|
1749 |
<relPosition x="68" y="30"/>
|
|
1750 |
</connectionPointOut>
|
|
1751 |
</variable>
|
|
1752 |
</outputVariables>
|
|
1753 |
</block>
|
|
1754 |
<inVariable localId="33" height="27" width="20">
|
|
1755 |
<position x="370" y="1011"/>
|
|
1756 |
<connectionPointOut>
|
|
1757 |
<relPosition x="20" y="13"/>
|
|
1758 |
</connectionPointOut>
|
|
1759 |
<expression>0</expression>
|
|
1760 |
</inVariable>
|
|
1761 |
<inVariable localId="34" height="27" width="26">
|
|
1762 |
<position x="363" y="1054"/>
|
|
1763 |
<connectionPointOut>
|
|
1764 |
<relPosition x="26" y="13"/>
|
|
1765 |
</connectionPointOut>
|
|
1766 |
<expression>31</expression>
|
|
1767 |
</inVariable>
|
|
1768 |
<block localId="35" width="100" height="45" typeName="INT_TO_BYTE">
|
|
1769 |
<position x="529" y="992"/>
|
|
1770 |
<inputVariables>
|
|
1771 |
<variable formalParameter="IN">
|
|
1772 |
<connectionPointIn>
|
|
1773 |
<relPosition x="0" y="32"/>
|
|
1774 |
<connection refLocalId="31" formalParameter="OUT">
|
|
1775 |
<position x="529" y="1024"/>
|
|
1776 |
<position x="487" y="1024"/>
|
|
1777 |
</connection>
|
|
1778 |
</connectionPointIn>
|
|
1779 |
</variable>
|
|
1780 |
</inputVariables>
|
|
1781 |
<inOutVariables/>
|
|
1782 |
<outputVariables>
|
|
1783 |
<variable formalParameter="OUT">
|
|
1784 |
<connectionPointOut>
|
|
1785 |
<relPosition x="100" y="32"/>
|
|
1786 |
</connectionPointOut>
|
|
1787 |
</variable>
|
|
1788 |
</outputVariables>
|
|
1789 |
</block>
|
|
1790 |
<outVariable localId="37" height="27" width="100">
|
|
1791 |
<position x="681" y="1011"/>
|
|
1792 |
<connectionPointIn>
|
|
1793 |
<relPosition x="0" y="13"/>
|
|
1794 |
<connection refLocalId="35" formalParameter="OUT">
|
|
1795 |
<position x="681" y="1024"/>
|
|
1796 |
<position x="629" y="1024"/>
|
|
1797 |
</connection>
|
|
1798 |
</connectionPointIn>
|
|
1799 |
<expression>RESULT_BYTE</expression>
|
|
1800 |
</outVariable>
|
|
1801 |
<block localId="38" width="67" height="60" typeName="MUL">
|
|
1802 |
<position x="268" y="1015"/>
|
|
1803 |
<inputVariables>
|
|
1804 |
<variable formalParameter="IN1">
|
|
1805 |
<connectionPointIn>
|
|
1806 |
<relPosition x="0" y="30"/>
|
|
1807 |
<connection refLocalId="30">
|
|
1808 |
<position x="268" y="1045"/>
|
|
1809 |
<position x="228" y="1045"/>
|
|
1810 |
</connection>
|
|
1811 |
</connectionPointIn>
|
|
1812 |
</variable>
|
|
1813 |
<variable formalParameter="IN2">
|
|
1814 |
<connectionPointIn>
|
|
1815 |
<relPosition x="0" y="50"/>
|
|
1816 |
<connection refLocalId="39">
|
|
1817 |
<position x="268" y="1065"/>
|
|
1818 |
<position x="248" y="1065"/>
|
|
1819 |
<position x="248" y="1084"/>
|
|
1820 |
<position x="229" y="1084"/>
|
|
1821 |
</connection>
|
|
1822 |
</connectionPointIn>
|
|
1823 |
</variable>
|
|
1824 |
</inputVariables>
|
|
1825 |
<inOutVariables/>
|
|
1826 |
<outputVariables>
|
|
1827 |
<variable formalParameter="OUT">
|
|
1828 |
<connectionPointOut>
|
|
1829 |
<relPosition x="67" y="30"/>
|
|
1830 |
</connectionPointOut>
|
|
1831 |
</variable>
|
|
1832 |
</outputVariables>
|
|
1833 |
</block>
|
|
1834 |
<inVariable localId="39" height="27" width="18">
|
|
1835 |
<position x="211" y="1071"/>
|
|
1836 |
<connectionPointOut>
|
|
1837 |
<relPosition x="18" y="13"/>
|
|
1838 |
</connectionPointOut>
|
|
1839 |
<expression>1</expression>
|
|
1840 |
</inVariable>
|
|
1841 |
</FBD>
|
|
1842 |
</body>
|
|
1843 |
</pou>
|
|
1844 |
</pous>
|
|
1845 |
</types>
|
|
1846 |
<instances>
|
|
1847 |
<configurations>
|
|
1848 |
<configuration name="config">
|
|
1849 |
<resource name="resource1">
|
|
1850 |
<task name="test_task" interval="T#100ms" priority="0">
|
|
1851 |
<pouInstance name="main_instance" typeName="main_program"/>
|
|
1852 |
</task>
|
|
1853 |
</resource>
|
|
1854 |
</configuration>
|
|
1855 |
</configurations>
|
|
1856 |
</instances>
|
|
1857 |
</project>
|