tests/traffic_lights/plc.xml
changeset 1911 c1298e7ffe3a
parent 1546 f1840d27823d
child 2296 a2ab363f9e90
equal deleted inserted replaced
1910:a375e31bf312 1911:c1298e7ffe3a
     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="Unnamed" productVersion="1" creationDateTime="2012-09-04T16:16:33"/>
     3   <fileHeader companyName="Beremiz" productName="Unnamed" productVersion="1" creationDateTime="2012-09-04T16:16:33"/>
     4   <contentHeader name="traffic_lights" modificationDateTime="2013-12-06T12:19:16">
     4   <contentHeader name="traffic_lights" modificationDateTime="2016-10-20T13:08:53">
     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>
   403               <connectionPointIn>
   403               <connectionPointIn>
   404                 <relPosition x="39" y="0"/>
   404                 <relPosition x="39" y="0"/>
   405                 <connection refLocalId="39">
   405                 <connection refLocalId="39">
   406                   <position x="569" y="31"/>
   406                   <position x="569" y="31"/>
   407                   <position x="569" y="11"/>
   407                   <position x="569" y="11"/>
   408                   <position x="1016" y="11"/>
   408                   <position x="980" y="11"/>
   409                   <position x="1016" y="1151"/>
   409                   <position x="980" y="1151"/>
   410                   <position x="776" y="1151"/>
   410                   <position x="776" y="1151"/>
   411                   <position x="776" y="1097"/>
   411                   <position x="776" y="1097"/>
   412                 </connection>
   412                 </connection>
   413               </connectionPointIn>
   413               </connectionPointIn>
   414               <connectionPointOut formalParameter="">
   414               <connectionPointOut formalParameter="">
   510               <action localId="0" qualifier="R">
   510               <action localId="0" qualifier="R">
   511                 <relPosition x="0" y="0"/>
   511                 <relPosition x="0" y="0"/>
   512                 <reference name="GREEN_LIGHT"/>
   512                 <reference name="GREEN_LIGHT"/>
   513               </action>
   513               </action>
   514             </actionBlock>
   514             </actionBlock>
   515             <actionBlock localId="9" width="219" height="125">
   515             <actionBlock localId="9" width="232" height="125">
   516               <position x="711" y="250"/>
   516               <position x="711" y="250"/>
   517               <connectionPointIn>
   517               <connectionPointIn>
   518                 <relPosition x="0" y="15"/>
   518                 <relPosition x="0" y="15"/>
   519                 <connection refLocalId="3">
   519                 <connection refLocalId="3">
   520                   <position x="711" y="265"/>
   520                   <position x="711" y="265"/>
   552               </connectionPointOut>
   552               </connectionPointOut>
   553               <connectionPointOutAction formalParameter="">
   553               <connectionPointOutAction formalParameter="">
   554                 <relPosition x="37" y="17"/>
   554                 <relPosition x="37" y="17"/>
   555               </connectionPointOutAction>
   555               </connectionPointOutAction>
   556             </step>
   556             </step>
   557             <actionBlock localId="11" width="203" height="103">
   557             <actionBlock localId="11" width="235" height="103">
   558               <position x="710" y="413"/>
   558               <position x="710" y="413"/>
   559               <connectionPointIn>
   559               <connectionPointIn>
   560                 <relPosition x="0" y="15"/>
   560                 <relPosition x="0" y="15"/>
   561                 <connection refLocalId="10">
   561                 <connection refLocalId="10">
   562                   <position x="710" y="428"/>
   562                   <position x="710" y="428"/>
   694               </connectionPointOut>
   694               </connectionPointOut>
   695               <connectionPointOutAction formalParameter="">
   695               <connectionPointOutAction formalParameter="">
   696                 <relPosition x="148" y="13"/>
   696                 <relPosition x="148" y="13"/>
   697               </connectionPointOutAction>
   697               </connectionPointOutAction>
   698             </step>
   698             </step>
   699             <actionBlock localId="19" width="246" height="110">
   699             <actionBlock localId="19" width="236" height="110">
   700               <position x="708" y="573"/>
   700               <position x="708" y="573"/>
   701               <connectionPointIn>
   701               <connectionPointIn>
   702                 <relPosition x="0" y="15"/>
   702                 <relPosition x="0" y="15"/>
   703                 <connection refLocalId="18">
   703                 <connection refLocalId="18">
   704                   <position x="708" y="588"/>
   704                   <position x="708" y="588"/>
   729               </connectionPointIn>
   729               </connectionPointIn>
   730               <connectionPointOut>
   730               <connectionPointOut>
   731                 <relPosition x="10" y="2"/>
   731                 <relPosition x="10" y="2"/>
   732               </connectionPointOut>
   732               </connectionPointOut>
   733               <condition>
   733               <condition>
   734                 <reference name="STOP"/>
   734                 <inline name="">
       
   735                   <ST>
       
   736                     <xhtml:p><![CDATA[NOT SWITCH_BUTTON]]></xhtml:p>
       
   737                   </ST>
       
   738                 </inline>
   735               </condition>
   739               </condition>
   736             </transition>
   740             </transition>
   737             <jumpStep localId="21" height="13" width="12" targetName="Standstill">
   741             <jumpStep localId="21" height="13" width="12" targetName="Standstill">
   738               <position x="404" y="694"/>
   742               <position x="404" y="694"/>
   739               <connectionPointIn>
   743               <connectionPointIn>
   794               </connectionPointOut>
   798               </connectionPointOut>
   795               <connectionPointOutAction formalParameter="">
   799               <connectionPointOutAction formalParameter="">
   796                 <relPosition x="148" y="13"/>
   800                 <relPosition x="148" y="13"/>
   797               </connectionPointOutAction>
   801               </connectionPointOutAction>
   798             </step>
   802             </step>
   799             <actionBlock localId="25" width="238" height="110">
   803             <actionBlock localId="25" width="233" height="110">
   800               <position x="708" y="748"/>
   804               <position x="708" y="748"/>
   801               <connectionPointIn>
   805               <connectionPointIn>
   802                 <relPosition x="0" y="15"/>
   806                 <relPosition x="0" y="15"/>
   803                 <connection refLocalId="24">
   807                 <connection refLocalId="24">
   804                   <position x="708" y="763"/>
   808                   <position x="708" y="763"/>
   829               </connectionPointIn>
   833               </connectionPointIn>
   830               <connectionPointOut>
   834               <connectionPointOut>
   831                 <relPosition x="10" y="2"/>
   835                 <relPosition x="10" y="2"/>
   832               </connectionPointOut>
   836               </connectionPointOut>
   833               <condition>
   837               <condition>
   834                 <reference name="STOP"/>
   838                 <connectionPointIn>
       
   839                   <connection refLocalId="48">
       
   840                     <position x="400" y="858"/>
       
   841                     <position x="290" y="858"/>
       
   842                   </connection>
       
   843                 </connectionPointIn>
   835               </condition>
   844               </condition>
   836             </transition>
   845             </transition>
   837             <jumpStep localId="27" height="13" width="12" targetName="Standstill">
   846             <jumpStep localId="27" height="13" width="12" targetName="Standstill">
   838               <position x="404" y="898"/>
   847               <position x="404" y="898"/>
   839               <connectionPointIn>
   848               <connectionPointIn>
   894               </connectionPointOut>
   903               </connectionPointOut>
   895               <connectionPointOutAction formalParameter="">
   904               <connectionPointOutAction formalParameter="">
   896                 <relPosition x="56" y="13"/>
   905                 <relPosition x="56" y="13"/>
   897               </connectionPointOutAction>
   906               </connectionPointOutAction>
   898             </step>
   907             </step>
   899             <actionBlock localId="31" width="154" height="110">
   908             <actionBlock localId="31" width="227" height="110">
   900               <position x="709" y="931"/>
   909               <position x="709" y="931"/>
   901               <connectionPointIn>
   910               <connectionPointIn>
   902                 <relPosition x="0" y="15"/>
   911                 <relPosition x="0" y="15"/>
   903                 <connection refLocalId="30">
   912                 <connection refLocalId="30">
   904                   <position x="709" y="946"/>
   913                   <position x="709" y="946"/>
  1110                     <relPosition x="50" y="30"/>
  1119                     <relPosition x="50" y="30"/>
  1111                   </connectionPointOut>
  1120                   </connectionPointOut>
  1112                 </variable>
  1121                 </variable>
  1113               </outputVariables>
  1122               </outputVariables>
  1114             </block>
  1123             </block>
       
  1124             <comment localId="45" height="681" width="645">
       
  1125               <position x="1021" y="21"/>
       
  1126               <content>
       
  1127                 <xhtml:p><![CDATA[*** Description of SFC action qualifiers ***
       
  1128 
       
  1129 N : non-stored - The action code body is executed or the Boolean variable is set as
       
  1130 long as the step is active.
       
  1131 
       
  1132 R : overriding reset &#8211; When the step has previously been executed with the S
       
  1133 (including DS, DS, and SL) qualifier, the R qualifier will stop the execution of the
       
  1134 code or reset the Boolean variable.
       
  1135 
       
  1136 S : set (stored) - The action code body is executed or the Boolean variable is set.
       
  1137 This state is stored as soon as the step becomes active. It can only be reset
       
  1138 explicitly by associating the same action to a different step using the qualifier 'R'.
       
  1139 
       
  1140 L : time limited - The action code body is executed or the Boolean variable is set as
       
  1141 long as the step is active but maximal for the fixed time interval.
       
  1142 
       
  1143 D : time delayed - The action code body is executed or the Boolean variable is set
       
  1144 after the fixed delay time has elapsed. The action remains active as long as the step
       
  1145 is active. If the step is active shorter than the fixed delay time the action does not
       
  1146 become active.
       
  1147 
       
  1148 P : pulse - As soon as the step is active the action code body is executed or the
       
  1149 Boolean variable is set for one operating cycle. (Note: The code body will then
       
  1150 execute for one additional operating cycle with the Step.X variable FALSE.)
       
  1151 
       
  1152 SD : stored and time delayed - the action code body is executed or the Boolean
       
  1153 variable is stored and set when the fixed delay time has elapsed after the step
       
  1154 activation, even if the step becomes inactive. The action remains active until it is
       
  1155 reset. If the step is active shorter than the fixed delay time the action becomes active
       
  1156 anyway.
       
  1157 
       
  1158 DS : delayed and stored - The action code body is executed or the Boolean variable
       
  1159 is set when the fixed delay time has elapsed after the step activation. The action
       
  1160 remains active until it is reset. If the step is active shorter than the fixed delay time
       
  1161 the action does not become active.
       
  1162 
       
  1163 SL : stored and time limited - The action code body is executed or the Boolean
       
  1164 variable is set and stored for a fixed time interval as soon as the step is active. If the
       
  1165 step is active shorter than the time interval the action is active for the whole time
       
  1166 interval anyway. If the action is reset during the time interval the action becomes
       
  1167 inactive as soon as the action is reset.
       
  1168 ]]></xhtml:p>
       
  1169               </content>
       
  1170             </comment>
       
  1171             <comment localId="46" height="160" width="375">
       
  1172               <position x="8" y="326"/>
       
  1173               <content>
       
  1174                 <xhtml:p><![CDATA[Conditions can be written in any IEC 61131-3 language.
       
  1175 They can be implemented in defferent ways:
       
  1176 - reference to external implementation;
       
  1177 - inline implementation;
       
  1178 - written in FBD or LD on SFC diagram and connected to the condition.
       
  1179 
       
  1180 See below examples of all these types.]]></xhtml:p>
       
  1181               </content>
       
  1182             </comment>
       
  1183             <leftPowerRail localId="47" height="40" width="3">
       
  1184               <position x="189" y="838"/>
       
  1185               <connectionPointOut formalParameter="">
       
  1186                 <relPosition x="3" y="20"/>
       
  1187               </connectionPointOut>
       
  1188             </leftPowerRail>
       
  1189             <contact localId="48" height="15" width="21" negated="true">
       
  1190               <position x="269" y="850"/>
       
  1191               <connectionPointIn>
       
  1192                 <relPosition x="0" y="8"/>
       
  1193                 <connection refLocalId="47">
       
  1194                   <position x="269" y="858"/>
       
  1195                   <position x="192" y="858"/>
       
  1196                 </connection>
       
  1197               </connectionPointIn>
       
  1198               <connectionPointOut>
       
  1199                 <relPosition x="21" y="8"/>
       
  1200               </connectionPointOut>
       
  1201               <variable>SWITCH_BUTTON</variable>
       
  1202             </contact>
       
  1203             <comment localId="13" height="66" width="375">
       
  1204               <position x="9" y="28"/>
       
  1205               <content>
       
  1206                 <xhtml:p><![CDATA[
       
  1207 Sequential function chart (SFC) is commonly used to describe state machines.]]></xhtml:p>
       
  1208               </content>
       
  1209             </comment>
  1115           </SFC>
  1210           </SFC>
  1116         </body>
  1211         </body>
  1117       </pou>
  1212       </pou>
  1118       <pou name="main_program" pouType="program">
  1213       <pou name="main_program" pouType="program">
  1119         <interface>
  1214         <interface>
  1156             <variable name="PedestrianGreenLight">
  1251             <variable name="PedestrianGreenLight">
  1157               <type>
  1252               <type>
  1158                 <derived name="Led"/>
  1253                 <derived name="Led"/>
  1159               </type>
  1254               </type>
  1160             </variable>
  1255             </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>
  1256           </localVars>
  1198         </interface>
  1257         </interface>
  1199         <body>
  1258         <body>
  1200           <FBD>
  1259           <FBD>
  1201             <block localId="1" width="349" height="836" typeName="traffic_light_sequence" instanceName="trafic_light_sequence0">
  1260             <block localId="1" width="349" height="836" typeName="traffic_light_sequence" instanceName="trafic_light_sequence0" executionOrderId="0">
  1202               <position x="470" y="127"/>
  1261               <position x="470" y="406"/>
  1203               <inputVariables>
  1262               <inputVariables>
  1204                 <variable formalParameter="SWITCH_BUTTON">
  1263                 <variable formalParameter="SWITCH_BUTTON">
  1205                   <connectionPointIn>
  1264                   <connectionPointIn>
  1206                     <relPosition x="0" y="101"/>
  1265                     <relPosition x="0" y="101"/>
  1207                     <connection refLocalId="2" formalParameter="state_out">
  1266                     <connection refLocalId="2" formalParameter="state_out">
  1208                       <position x="470" y="228"/>
  1267                       <position x="470" y="507"/>
  1209                       <position x="401" y="228"/>
  1268                       <position x="333" y="507"/>
  1210                       <position x="401" y="177"/>
       
  1211                       <position x="333" y="177"/>
       
  1212                     </connection>
  1269                     </connection>
  1213                   </connectionPointIn>
  1270                   </connectionPointIn>
  1214                 </variable>
  1271                 </variable>
  1215                 <variable formalParameter="PEDESTRIAN_BUTTON">
  1272                 <variable formalParameter="PEDESTRIAN_BUTTON">
  1216                   <connectionPointIn>
  1273                   <connectionPointIn>
  1217                     <relPosition x="0" y="264"/>
  1274                     <relPosition x="0" y="264"/>
  1218                     <connection refLocalId="3" formalParameter="state_out">
  1275                     <connection refLocalId="3" formalParameter="state_out">
  1219                       <position x="470" y="391"/>
  1276                       <position x="470" y="670"/>
  1220                       <position x="335" y="391"/>
  1277                       <position x="402" y="670"/>
       
  1278                       <position x="402" y="721"/>
       
  1279                       <position x="335" y="721"/>
  1221                     </connection>
  1280                     </connection>
  1222                   </connectionPointIn>
  1281                   </connectionPointIn>
  1223                 </variable>
  1282                 </variable>
  1224               </inputVariables>
  1283               </inputVariables>
  1225               <inOutVariables/>
  1284               <inOutVariables/>
  1249                     <relPosition x="349" y="753"/>
  1308                     <relPosition x="349" y="753"/>
  1250                   </connectionPointOut>
  1309                   </connectionPointOut>
  1251                 </variable>
  1310                 </variable>
  1252               </outputVariables>
  1311               </outputVariables>
  1253             </block>
  1312             </block>
  1254             <block localId="2" width="143" height="183" typeName="Button" instanceName="SwitchButton">
  1313             <block localId="2" width="143" height="183" typeName="Button" instanceName="SwitchButton" executionOrderId="0">
  1255               <position x="190" y="141"/>
  1314               <position x="190" y="471"/>
  1256               <inputVariables>
  1315               <inputVariables>
  1257                 <variable formalParameter="back_id">
  1316                 <variable formalParameter="back_id">
  1258                   <connectionPointIn>
  1317                   <connectionPointIn>
  1259                     <relPosition x="0" y="36"/>
  1318                     <relPosition x="0" y="36"/>
  1260                     <connection refLocalId="5">
  1319                     <connection refLocalId="5">
  1261                       <position x="190" y="177"/>
  1320                       <position x="190" y="507"/>
  1262                       <position x="136" y="177"/>
  1321                       <position x="136" y="507"/>
  1263                     </connection>
  1322                     </connection>
  1264                   </connectionPointIn>
  1323                   </connectionPointIn>
  1265                 </variable>
  1324                 </variable>
  1266                 <variable formalParameter="sele_id">
  1325                 <variable formalParameter="sele_id">
  1267                   <connectionPointIn>
  1326                   <connectionPointIn>
  1268                     <relPosition x="0" y="68"/>
  1327                     <relPosition x="0" y="68"/>
  1269                     <connection refLocalId="6">
  1328                     <connection refLocalId="6">
  1270                       <position x="190" y="209"/>
  1329                       <position x="190" y="539"/>
  1271                       <position x="136" y="209"/>
  1330                       <position x="136" y="539"/>
  1272                     </connection>
  1331                     </connection>
  1273                   </connectionPointIn>
  1332                   </connectionPointIn>
  1274                 </variable>
  1333                 </variable>
  1275                 <variable formalParameter="toggle">
  1334                 <variable formalParameter="toggle">
  1276                   <connectionPointIn>
  1335                   <connectionPointIn>
  1277                     <relPosition x="0" y="100"/>
  1336                     <relPosition x="0" y="100"/>
  1278                     <connection refLocalId="4">
  1337                     <connection refLocalId="4">
  1279                       <position x="190" y="241"/>
  1338                       <position x="190" y="571"/>
  1280                       <position x="136" y="241"/>
  1339                       <position x="136" y="571"/>
  1281                     </connection>
  1340                     </connection>
  1282                   </connectionPointIn>
  1341                   </connectionPointIn>
  1283                 </variable>
  1342                 </variable>
  1284                 <variable formalParameter="set_state">
  1343                 <variable formalParameter="set_state">
  1285                   <connectionPointIn>
  1344                   <connectionPointIn>
  1299                     <relPosition x="143" y="36"/>
  1358                     <relPosition x="143" y="36"/>
  1300                   </connectionPointOut>
  1359                   </connectionPointOut>
  1301                 </variable>
  1360                 </variable>
  1302               </outputVariables>
  1361               </outputVariables>
  1303             </block>
  1362             </block>
  1304             <block localId="3" width="143" height="198" typeName="Button" instanceName="PedestrianButton">
  1363             <block localId="3" width="143" height="198" typeName="Button" instanceName="PedestrianButton" executionOrderId="0">
  1305               <position x="192" y="354"/>
  1364               <position x="192" y="684"/>
  1306               <inputVariables>
  1365               <inputVariables>
  1307                 <variable formalParameter="back_id">
  1366                 <variable formalParameter="back_id">
  1308                   <connectionPointIn>
  1367                   <connectionPointIn>
  1309                     <relPosition x="0" y="37"/>
  1368                     <relPosition x="0" y="37"/>
  1310                     <connection refLocalId="7">
  1369                     <connection refLocalId="7">
  1311                       <position x="192" y="391"/>
  1370                       <position x="192" y="721"/>
  1312                       <position x="159" y="391"/>
  1371                       <position x="159" y="721"/>
  1313                     </connection>
  1372                     </connection>
  1314                   </connectionPointIn>
  1373                   </connectionPointIn>
  1315                 </variable>
  1374                 </variable>
  1316                 <variable formalParameter="sele_id">
  1375                 <variable formalParameter="sele_id">
  1317                   <connectionPointIn>
  1376                   <connectionPointIn>
  1318                     <relPosition x="0" y="72"/>
  1377                     <relPosition x="0" y="72"/>
  1319                     <connection refLocalId="8">
  1378                     <connection refLocalId="8">
  1320                       <position x="192" y="426"/>
  1379                       <position x="192" y="756"/>
  1321                       <position x="159" y="426"/>
  1380                       <position x="159" y="756"/>
  1322                     </connection>
  1381                     </connection>
  1323                   </connectionPointIn>
  1382                   </connectionPointIn>
  1324                 </variable>
  1383                 </variable>
  1325                 <variable formalParameter="toggle">
  1384                 <variable formalParameter="toggle">
  1326                   <connectionPointIn>
  1385                   <connectionPointIn>
  1345                     <relPosition x="143" y="37"/>
  1404                     <relPosition x="143" y="37"/>
  1346                   </connectionPointOut>
  1405                   </connectionPointOut>
  1347                 </variable>
  1406                 </variable>
  1348               </outputVariables>
  1407               </outputVariables>
  1349             </block>
  1408             </block>
  1350             <inVariable localId="4" height="27" width="18">
  1409             <inVariable localId="4" height="27" width="18" executionOrderId="0" negated="false">
  1351               <position x="118" y="228"/>
  1410               <position x="118" y="558"/>
  1352               <connectionPointOut>
  1411               <connectionPointOut>
  1353                 <relPosition x="18" y="13"/>
  1412                 <relPosition x="18" y="13"/>
  1354               </connectionPointOut>
  1413               </connectionPointOut>
  1355               <expression>1</expression>
  1414               <expression>1</expression>
  1356             </inVariable>
  1415             </inVariable>
  1357             <inVariable localId="5" height="27" width="105">
  1416             <inVariable localId="5" height="27" width="105" executionOrderId="0" negated="false">
  1358               <position x="31" y="164"/>
  1417               <position x="31" y="494"/>
  1359               <connectionPointOut>
  1418               <connectionPointOut>
  1360                 <relPosition x="105" y="13"/>
  1419                 <relPosition x="105" y="13"/>
  1361               </connectionPointOut>
  1420               </connectionPointOut>
  1362               <expression>'SWITCH_OFF'</expression>
  1421               <expression>'SWITCH_OFF'</expression>
  1363             </inVariable>
  1422             </inVariable>
  1364             <inVariable localId="6" height="27" width="105">
  1423             <inVariable localId="6" height="27" width="105" executionOrderId="0" negated="false">
  1365               <position x="31" y="196"/>
  1424               <position x="31" y="526"/>
  1366               <connectionPointOut>
  1425               <connectionPointOut>
  1367                 <relPosition x="105" y="13"/>
  1426                 <relPosition x="105" y="13"/>
  1368               </connectionPointOut>
  1427               </connectionPointOut>
  1369               <expression>'SWITCH_ON'</expression>
  1428               <expression>'SWITCH_ON'</expression>
  1370             </inVariable>
  1429             </inVariable>
  1371             <inVariable localId="7" height="27" width="137">
  1430             <inVariable localId="7" height="27" width="137" executionOrderId="0" negated="false">
  1372               <position x="22" y="378"/>
  1431               <position x="22" y="708"/>
  1373               <connectionPointOut>
  1432               <connectionPointOut>
  1374                 <relPosition x="137" y="13"/>
  1433                 <relPosition x="137" y="13"/>
  1375               </connectionPointOut>
  1434               </connectionPointOut>
  1376               <expression>'PEDESTRIAN_OFF'</expression>
  1435               <expression>'PEDESTRIAN_OFF'</expression>
  1377             </inVariable>
  1436             </inVariable>
  1378             <inVariable localId="8" height="27" width="137">
  1437             <inVariable localId="8" height="27" width="137" executionOrderId="0" negated="false">
  1379               <position x="22" y="413"/>
  1438               <position x="22" y="743"/>
  1380               <connectionPointOut>
  1439               <connectionPointOut>
  1381                 <relPosition x="137" y="13"/>
  1440                 <relPosition x="137" y="13"/>
  1382               </connectionPointOut>
  1441               </connectionPointOut>
  1383               <expression>'PEDESTRIAN_ON'</expression>
  1442               <expression>'PEDESTRIAN_ON'</expression>
  1384             </inVariable>
  1443             </inVariable>
  1385             <block localId="9" width="115" height="133" typeName="Led" instanceName="RedLight">
  1444             <block localId="9" width="115" height="133" typeName="Led" instanceName="RedLight" executionOrderId="0">
  1386               <position x="1057" y="116"/>
  1445               <position x="1057" y="395"/>
  1387               <inputVariables>
  1446               <inputVariables>
  1388                 <variable formalParameter="back_id">
  1447                 <variable formalParameter="back_id">
  1389                   <connectionPointIn>
  1448                   <connectionPointIn>
  1390                     <relPosition x="0" y="38"/>
  1449                     <relPosition x="0" y="38"/>
  1391                     <connection refLocalId="10">
  1450                     <connection refLocalId="10">
  1392                       <position x="1057" y="154"/>
  1451                       <position x="1057" y="433"/>
  1393                       <position x="1010" y="154"/>
  1452                       <position x="1010" y="433"/>
  1394                     </connection>
  1453                     </connection>
  1395                   </connectionPointIn>
  1454                   </connectionPointIn>
  1396                 </variable>
  1455                 </variable>
  1397                 <variable formalParameter="sele_id">
  1456                 <variable formalParameter="sele_id">
  1398                   <connectionPointIn>
  1457                   <connectionPointIn>
  1399                     <relPosition x="0" y="75"/>
  1458                     <relPosition x="0" y="75"/>
  1400                     <connection refLocalId="11">
  1459                     <connection refLocalId="11">
  1401                       <position x="1057" y="191"/>
  1460                       <position x="1057" y="470"/>
  1402                       <position x="1010" y="191"/>
  1461                       <position x="1010" y="470"/>
  1403                     </connection>
  1462                     </connection>
  1404                   </connectionPointIn>
  1463                   </connectionPointIn>
  1405                 </variable>
  1464                 </variable>
  1406                 <variable formalParameter="state_in">
  1465                 <variable formalParameter="state_in">
  1407                   <connectionPointIn>
  1466                   <connectionPointIn>
  1408                     <relPosition x="0" y="112"/>
  1467                     <relPosition x="0" y="112"/>
  1409                     <connection refLocalId="1" formalParameter="RED_LIGHT">
  1468                     <connection refLocalId="1" formalParameter="RED_LIGHT">
  1410                       <position x="1057" y="228"/>
  1469                       <position x="1057" y="507"/>
  1411                       <position x="819" y="228"/>
  1470                       <position x="819" y="507"/>
  1412                     </connection>
  1471                     </connection>
  1413                   </connectionPointIn>
  1472                   </connectionPointIn>
  1414                 </variable>
  1473                 </variable>
  1415               </inputVariables>
  1474               </inputVariables>
  1416               <inOutVariables/>
  1475               <inOutVariables/>
  1417               <outputVariables/>
  1476               <outputVariables/>
  1418             </block>
  1477             </block>
  1419             <inVariable localId="10" height="27" width="79">
  1478             <inVariable localId="10" height="27" width="79" executionOrderId="0" negated="false">
  1420               <position x="931" y="141"/>
  1479               <position x="931" y="420"/>
  1421               <connectionPointOut>
  1480               <connectionPointOut>
  1422                 <relPosition x="79" y="13"/>
  1481                 <relPosition x="79" y="13"/>
  1423               </connectionPointOut>
  1482               </connectionPointOut>
  1424               <expression>'RED_OFF'</expression>
  1483               <expression>'RED_OFF'</expression>
  1425             </inVariable>
  1484             </inVariable>
  1426             <inVariable localId="11" height="27" width="79">
  1485             <inVariable localId="11" height="27" width="79" executionOrderId="0" negated="false">
  1427               <position x="931" y="178"/>
  1486               <position x="931" y="457"/>
  1428               <connectionPointOut>
  1487               <connectionPointOut>
  1429                 <relPosition x="79" y="13"/>
  1488                 <relPosition x="79" y="13"/>
  1430               </connectionPointOut>
  1489               </connectionPointOut>
  1431               <expression>'RED_ON'</expression>
  1490               <expression>'RED_ON'</expression>
  1432             </inVariable>
  1491             </inVariable>
  1433             <block localId="12" width="115" height="133" typeName="Led" instanceName="OrangeLight">
  1492             <block localId="12" width="115" height="133" typeName="Led" instanceName="OrangeLight" executionOrderId="0">
  1434               <position x="1058" y="279"/>
  1493               <position x="1058" y="558"/>
  1435               <inputVariables>
  1494               <inputVariables>
  1436                 <variable formalParameter="back_id">
  1495                 <variable formalParameter="back_id">
  1437                   <connectionPointIn>
  1496                   <connectionPointIn>
  1438                     <relPosition x="0" y="38"/>
  1497                     <relPosition x="0" y="38"/>
  1439                     <connection refLocalId="13">
  1498                     <connection refLocalId="13">
  1440                       <position x="1058" y="317"/>
  1499                       <position x="1058" y="596"/>
  1441                       <position x="1010" y="317"/>
  1500                       <position x="1010" y="596"/>
  1442                     </connection>
  1501                     </connection>
  1443                   </connectionPointIn>
  1502                   </connectionPointIn>
  1444                 </variable>
  1503                 </variable>
  1445                 <variable formalParameter="sele_id">
  1504                 <variable formalParameter="sele_id">
  1446                   <connectionPointIn>
  1505                   <connectionPointIn>
  1447                     <relPosition x="0" y="75"/>
  1506                     <relPosition x="0" y="75"/>
  1448                     <connection refLocalId="14">
  1507                     <connection refLocalId="14">
  1449                       <position x="1058" y="354"/>
  1508                       <position x="1058" y="633"/>
  1450                       <position x="1010" y="354"/>
  1509                       <position x="1010" y="633"/>
  1451                     </connection>
  1510                     </connection>
  1452                   </connectionPointIn>
  1511                   </connectionPointIn>
  1453                 </variable>
  1512                 </variable>
  1454                 <variable formalParameter="state_in">
  1513                 <variable formalParameter="state_in">
  1455                   <connectionPointIn>
  1514                   <connectionPointIn>
  1456                     <relPosition x="0" y="112"/>
  1515                     <relPosition x="0" y="112"/>
  1457                     <connection refLocalId="1" formalParameter="ORANGE_LIGHT">
  1516                     <connection refLocalId="1" formalParameter="ORANGE_LIGHT">
  1458                       <position x="1058" y="391"/>
  1517                       <position x="1058" y="670"/>
  1459                       <position x="819" y="391"/>
  1518                       <position x="819" y="670"/>
  1460                     </connection>
  1519                     </connection>
  1461                   </connectionPointIn>
  1520                   </connectionPointIn>
  1462                 </variable>
  1521                 </variable>
  1463               </inputVariables>
  1522               </inputVariables>
  1464               <inOutVariables/>
  1523               <inOutVariables/>
  1465               <outputVariables/>
  1524               <outputVariables/>
  1466             </block>
  1525             </block>
  1467             <inVariable localId="13" height="27" width="111">
  1526             <inVariable localId="13" height="27" width="111" executionOrderId="0" negated="false">
  1468               <position x="899" y="304"/>
  1527               <position x="899" y="583"/>
  1469               <connectionPointOut>
  1528               <connectionPointOut>
  1470                 <relPosition x="111" y="13"/>
  1529                 <relPosition x="111" y="13"/>
  1471               </connectionPointOut>
  1530               </connectionPointOut>
  1472               <expression>'ORANGE_OFF'</expression>
  1531               <expression>'ORANGE_OFF'</expression>
  1473             </inVariable>
  1532             </inVariable>
  1474             <inVariable localId="14" height="27" width="106">
  1533             <inVariable localId="14" height="27" width="106" executionOrderId="0" negated="false">
  1475               <position x="904" y="341"/>
  1534               <position x="904" y="620"/>
  1476               <connectionPointOut>
  1535               <connectionPointOut>
  1477                 <relPosition x="106" y="13"/>
  1536                 <relPosition x="106" y="13"/>
  1478               </connectionPointOut>
  1537               </connectionPointOut>
  1479               <expression>'ORANGE_ON'</expression>
  1538               <expression>'ORANGE_ON'</expression>
  1480             </inVariable>
  1539             </inVariable>
  1481             <block localId="15" width="115" height="133" typeName="Led" instanceName="GreenLight">
  1540             <block localId="15" width="115" height="133" typeName="Led" instanceName="GreenLight" executionOrderId="0">
  1482               <position x="1058" y="442"/>
  1541               <position x="1058" y="721"/>
  1483               <inputVariables>
  1542               <inputVariables>
  1484                 <variable formalParameter="back_id">
  1543                 <variable formalParameter="back_id">
  1485                   <connectionPointIn>
  1544                   <connectionPointIn>
  1486                     <relPosition x="0" y="38"/>
  1545                     <relPosition x="0" y="38"/>
  1487                     <connection refLocalId="16">
  1546                     <connection refLocalId="16">
  1488                       <position x="1058" y="480"/>
  1547                       <position x="1058" y="759"/>
  1489                       <position x="1010" y="480"/>
  1548                       <position x="1010" y="759"/>
  1490                     </connection>
  1549                     </connection>
  1491                   </connectionPointIn>
  1550                   </connectionPointIn>
  1492                 </variable>
  1551                 </variable>
  1493                 <variable formalParameter="sele_id">
  1552                 <variable formalParameter="sele_id">
  1494                   <connectionPointIn>
  1553                   <connectionPointIn>
  1495                     <relPosition x="0" y="75"/>
  1554                     <relPosition x="0" y="75"/>
  1496                     <connection refLocalId="17">
  1555                     <connection refLocalId="17">
  1497                       <position x="1058" y="517"/>
  1556                       <position x="1058" y="796"/>
  1498                       <position x="1010" y="517"/>
  1557                       <position x="1010" y="796"/>
  1499                     </connection>
  1558                     </connection>
  1500                   </connectionPointIn>
  1559                   </connectionPointIn>
  1501                 </variable>
  1560                 </variable>
  1502                 <variable formalParameter="state_in">
  1561                 <variable formalParameter="state_in">
  1503                   <connectionPointIn>
  1562                   <connectionPointIn>
  1504                     <relPosition x="0" y="112"/>
  1563                     <relPosition x="0" y="112"/>
  1505                     <connection refLocalId="1" formalParameter="GREEN_LIGHT">
  1564                     <connection refLocalId="1" formalParameter="GREEN_LIGHT">
  1506                       <position x="1058" y="554"/>
  1565                       <position x="1058" y="833"/>
  1507                       <position x="819" y="554"/>
  1566                       <position x="819" y="833"/>
  1508                     </connection>
  1567                     </connection>
  1509                   </connectionPointIn>
  1568                   </connectionPointIn>
  1510                 </variable>
  1569                 </variable>
  1511               </inputVariables>
  1570               </inputVariables>
  1512               <inOutVariables/>
  1571               <inOutVariables/>
  1513               <outputVariables/>
  1572               <outputVariables/>
  1514             </block>
  1573             </block>
  1515             <inVariable localId="16" height="27" width="111">
  1574             <inVariable localId="16" height="27" width="111" executionOrderId="0" negated="false">
  1516               <position x="899" y="467"/>
  1575               <position x="899" y="746"/>
  1517               <connectionPointOut>
  1576               <connectionPointOut>
  1518                 <relPosition x="111" y="13"/>
  1577                 <relPosition x="111" y="13"/>
  1519               </connectionPointOut>
  1578               </connectionPointOut>
  1520               <expression>'GREEN_OFF'</expression>
  1579               <expression>'GREEN_OFF'</expression>
  1521             </inVariable>
  1580             </inVariable>
  1522             <inVariable localId="17" height="27" width="106">
  1581             <inVariable localId="17" height="27" width="106" executionOrderId="0" negated="false">
  1523               <position x="904" y="504"/>
  1582               <position x="904" y="783"/>
  1524               <connectionPointOut>
  1583               <connectionPointOut>
  1525                 <relPosition x="106" y="13"/>
  1584                 <relPosition x="106" y="13"/>
  1526               </connectionPointOut>
  1585               </connectionPointOut>
  1527               <expression>'GREEN_ON'</expression>
  1586               <expression>'GREEN_ON'</expression>
  1528             </inVariable>
  1587             </inVariable>
  1529             <block localId="18" width="115" height="133" typeName="Led" instanceName="PedestrianRedLight">
  1588             <block localId="18" width="115" height="133" typeName="Led" instanceName="PedestrianRedLight" executionOrderId="0">
  1530               <position x="1059" y="605"/>
  1589               <position x="1059" y="884"/>
  1531               <inputVariables>
  1590               <inputVariables>
  1532                 <variable formalParameter="back_id">
  1591                 <variable formalParameter="back_id">
  1533                   <connectionPointIn>
  1592                   <connectionPointIn>
  1534                     <relPosition x="0" y="38"/>
  1593                     <relPosition x="0" y="38"/>
  1535                     <connection refLocalId="19">
  1594                     <connection refLocalId="19">
  1536                       <position x="1059" y="643"/>
  1595                       <position x="1059" y="922"/>
  1537                       <position x="1020" y="643"/>
  1596                       <position x="1020" y="922"/>
  1538                     </connection>
  1597                     </connection>
  1539                   </connectionPointIn>
  1598                   </connectionPointIn>
  1540                 </variable>
  1599                 </variable>
  1541                 <variable formalParameter="sele_id">
  1600                 <variable formalParameter="sele_id">
  1542                   <connectionPointIn>
  1601                   <connectionPointIn>
  1543                     <relPosition x="0" y="75"/>
  1602                     <relPosition x="0" y="75"/>
  1544                     <connection refLocalId="20">
  1603                     <connection refLocalId="20">
  1545                       <position x="1059" y="680"/>
  1604                       <position x="1059" y="959"/>
  1546                       <position x="1020" y="680"/>
  1605                       <position x="1020" y="959"/>
  1547                     </connection>
  1606                     </connection>
  1548                   </connectionPointIn>
  1607                   </connectionPointIn>
  1549                 </variable>
  1608                 </variable>
  1550                 <variable formalParameter="state_in">
  1609                 <variable formalParameter="state_in">
  1551                   <connectionPointIn>
  1610                   <connectionPointIn>
  1552                     <relPosition x="0" y="112"/>
  1611                     <relPosition x="0" y="112"/>
  1553                     <connection refLocalId="1" formalParameter="PEDESTRIAN_RED_LIGHT">
  1612                     <connection refLocalId="1" formalParameter="PEDESTRIAN_RED_LIGHT">
  1554                       <position x="1059" y="717"/>
  1613                       <position x="1059" y="996"/>
  1555                       <position x="819" y="717"/>
  1614                       <position x="819" y="996"/>
  1556                     </connection>
  1615                     </connection>
  1557                   </connectionPointIn>
  1616                   </connectionPointIn>
  1558                 </variable>
  1617                 </variable>
  1559               </inputVariables>
  1618               </inputVariables>
  1560               <inOutVariables/>
  1619               <inOutVariables/>
  1561               <outputVariables/>
  1620               <outputVariables/>
  1562             </block>
  1621             </block>
  1563             <inVariable localId="19" height="27" width="171">
  1622             <inVariable localId="19" height="27" width="171" executionOrderId="0" negated="false">
  1564               <position x="849" y="630"/>
  1623               <position x="849" y="909"/>
  1565               <connectionPointOut>
  1624               <connectionPointOut>
  1566                 <relPosition x="171" y="13"/>
  1625                 <relPosition x="171" y="13"/>
  1567               </connectionPointOut>
  1626               </connectionPointOut>
  1568               <expression>'PEDESTRIAN_RED_OFF'</expression>
  1627               <expression>'PEDESTRIAN_RED_OFF'</expression>
  1569             </inVariable>
  1628             </inVariable>
  1570             <inVariable localId="20" height="27" width="166">
  1629             <inVariable localId="20" height="27" width="166" executionOrderId="0" negated="false">
  1571               <position x="854" y="667"/>
  1630               <position x="854" y="946"/>
  1572               <connectionPointOut>
  1631               <connectionPointOut>
  1573                 <relPosition x="166" y="13"/>
  1632                 <relPosition x="166" y="13"/>
  1574               </connectionPointOut>
  1633               </connectionPointOut>
  1575               <expression>'PEDESTRIAN_RED_ON'</expression>
  1634               <expression>'PEDESTRIAN_RED_ON'</expression>
  1576             </inVariable>
  1635             </inVariable>
  1577             <block localId="21" width="115" height="133" typeName="Led" instanceName="PedestrianGreenLight">
  1636             <block localId="21" width="115" height="133" typeName="Led" instanceName="PedestrianGreenLight" executionOrderId="0">
  1578               <position x="1059" y="768"/>
  1637               <position x="1059" y="1047"/>
  1579               <inputVariables>
  1638               <inputVariables>
  1580                 <variable formalParameter="back_id">
  1639                 <variable formalParameter="back_id">
  1581                   <connectionPointIn>
  1640                   <connectionPointIn>
  1582                     <relPosition x="0" y="38"/>
  1641                     <relPosition x="0" y="38"/>
  1583                     <connection refLocalId="22">
  1642                     <connection refLocalId="22">
  1584                       <position x="1059" y="806"/>
  1643                       <position x="1059" y="1085"/>
  1585                       <position x="1035" y="806"/>
  1644                       <position x="1035" y="1085"/>
  1586                     </connection>
  1645                     </connection>
  1587                   </connectionPointIn>
  1646                   </connectionPointIn>
  1588                 </variable>
  1647                 </variable>
  1589                 <variable formalParameter="sele_id">
  1648                 <variable formalParameter="sele_id">
  1590                   <connectionPointIn>
  1649                   <connectionPointIn>
  1591                     <relPosition x="0" y="75"/>
  1650                     <relPosition x="0" y="75"/>
  1592                     <connection refLocalId="23">
  1651                     <connection refLocalId="23">
  1593                       <position x="1059" y="843"/>
  1652                       <position x="1059" y="1122"/>
  1594                       <position x="1035" y="843"/>
  1653                       <position x="1035" y="1122"/>
  1595                     </connection>
  1654                     </connection>
  1596                   </connectionPointIn>
  1655                   </connectionPointIn>
  1597                 </variable>
  1656                 </variable>
  1598                 <variable formalParameter="state_in">
  1657                 <variable formalParameter="state_in">
  1599                   <connectionPointIn>
  1658                   <connectionPointIn>
  1600                     <relPosition x="0" y="112"/>
  1659                     <relPosition x="0" y="112"/>
  1601                     <connection refLocalId="1" formalParameter="PEDESTRIAN_GREEN_LIGHT">
  1660                     <connection refLocalId="1" formalParameter="PEDESTRIAN_GREEN_LIGHT">
  1602                       <position x="1059" y="880"/>
  1661                       <position x="1059" y="1159"/>
  1603                       <position x="819" y="880"/>
  1662                       <position x="819" y="1159"/>
  1604                     </connection>
  1663                     </connection>
  1605                   </connectionPointIn>
  1664                   </connectionPointIn>
  1606                 </variable>
  1665                 </variable>
  1607               </inputVariables>
  1666               </inputVariables>
  1608               <inOutVariables/>
  1667               <inOutVariables/>
  1609               <outputVariables/>
  1668               <outputVariables/>
  1610             </block>
  1669             </block>
  1611             <inVariable localId="22" height="27" width="190">
  1670             <inVariable localId="22" height="27" width="190" executionOrderId="0" negated="false">
  1612               <position x="845" y="793"/>
  1671               <position x="845" y="1072"/>
  1613               <connectionPointOut>
  1672               <connectionPointOut>
  1614                 <relPosition x="190" y="13"/>
  1673                 <relPosition x="190" y="13"/>
  1615               </connectionPointOut>
  1674               </connectionPointOut>
  1616               <expression>'PEDESTRIAN_GREEN_OFF'</expression>
  1675               <expression>'PEDESTRIAN_GREEN_OFF'</expression>
  1617             </inVariable>
  1676             </inVariable>
  1618             <inVariable localId="23" height="27" width="185">
  1677             <inVariable localId="23" height="27" width="185" executionOrderId="0" negated="false">
  1619               <position x="850" y="830"/>
  1678               <position x="850" y="1109"/>
  1620               <connectionPointOut>
  1679               <connectionPointOut>
  1621                 <relPosition x="185" y="13"/>
  1680                 <relPosition x="185" y="13"/>
  1622               </connectionPointOut>
  1681               </connectionPointOut>
  1623               <expression>'PEDESTRIAN_GREEN_ON'</expression>
  1682               <expression>'PEDESTRIAN_GREEN_ON'</expression>
  1624             </inVariable>
  1683             </inVariable>
  1625             <inVariable localId="24" height="27" width="84">
  1684             <comment localId="24" height="262" width="804">
  1626               <position x="289" y="1141"/>
  1685               <position x="22" y="13"/>
  1627               <connectionPointOut>
  1686               <content>
  1628                 <relPosition x="84" y="13"/>
  1687                 <xhtml:p><![CDATA[This example implements control of traffic lights.
  1629               </connectionPointOut>
  1688 
  1630               <expression>TEST_DATE</expression>
  1689 Basically it shows following features of Beremiz:
  1631             </inVariable>
  1690 - web interface (SCADA) using integrated web server in svgui extension;
  1632             <block localId="25" width="128" height="40" typeName="DATE_TO_STRING">
  1691 - interaction with web UI;
  1633               <position x="426" y="1124"/>
  1692 - functional blocks in SFC language.
  1634               <inputVariables>
  1693 
  1635                 <variable formalParameter="IN">
  1694 
  1636                   <connectionPointIn>
  1695 
  1637                     <relPosition x="0" y="30"/>
  1696 
  1638                     <connection refLocalId="24">
  1697 SVGUI is extensions to build web interface to PLC. It has *integrated* web-server. So it's NOT necessary to install Apache, lighttpd or nginx for that!!!
  1639                       <position x="426" y="1154"/>
  1698 
  1640                       <position x="373" y="1154"/>
  1699 As the program is running in PLC, web UI will be available at http://localhost:8009/.
  1641                     </connection>
  1700 
  1642                   </connectionPointIn>
  1701 Web interface is build as SVG file in Inkscape. To edit SVG file click 'Inkscape' button in 0x: svgui extension. 
  1643                 </variable>
  1702 Inkscape is a free and open-source vector graphics editor. It's not part of Beremiz and needs to be installed separately.
  1644               </inputVariables>
  1703 ]]></xhtml:p>
  1645               <inOutVariables/>
  1704               </content>
  1646               <outputVariables>
  1705             </comment>
  1647                 <variable formalParameter="OUT">
  1706             <comment localId="102" height="126" width="411">
  1648                   <connectionPointOut>
  1707               <position x="20" y="319"/>
  1649                     <relPosition x="128" y="30"/>
  1708               <content>
  1650                   </connectionPointOut>
  1709                 <xhtml:p><![CDATA[In this example FB like 'Button', 'Led' and 'Text' are used. 
  1651                 </variable>
  1710 Back_id and sele_id inputs of these blocks are IDs  of 
  1652               </outputVariables>
  1711 graphic primitives in SVG file. 
  1653             </block>
  1712 This is the way how elements in SVG are bound to elements 
  1654             <outVariable localId="26" height="27" width="116">
  1713 in PLC program.  You can find out or edit these IDs in Inkscape.]]></xhtml:p>
  1655               <position x="640" y="1141"/>
  1714               </content>
  1656               <connectionPointIn>
  1715             </comment>
  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>
  1716           </FBD>
  1842         </body>
  1717         </body>
  1843       </pou>
  1718       </pou>
  1844     </pous>
  1719     </pous>
  1845   </types>
  1720   </types>