plugins/python/modules/svgui/pous.xml
changeset 381 5c0f34a9ab00
parent 371 b7cb57a2da08
child 434 092060fd8afb
equal deleted inserted replaced
380:46d7d2ce84d2 381:5c0f34a9ab00
     6   <fileHeader companyName="LOLITECH"
     6   <fileHeader companyName="LOLITECH"
     7               productName="Beremiz"
     7               productName="Beremiz"
     8               productVersion="0.0"
     8               productVersion="0.0"
     9               creationDateTime="2008-12-14T16:53:26"/>
     9               creationDateTime="2008-12-14T16:53:26"/>
    10   <contentHeader name="Beremiz non-standard POUs library"
    10   <contentHeader name="Beremiz non-standard POUs library"
    11                  modificationDateTime="2009-07-15T17:13:23">
    11                  modificationDateTime="2009-08-12T15:35:33">
    12     <coordinateInfo>
    12     <coordinateInfo>
    13       <fbd>
    13       <fbd>
    14         <scaling x="0" y="0"/>
    14         <scaling x="0" y="0"/>
    15       </fbd>
    15       </fbd>
    16       <ld>
    16       <ld>
    49   CODE := 'False';
    49   CODE := 'False';
    50 END_IF;]]>
    50 END_IF;]]>
    51           </ST>
    51           </ST>
    52         </body>
    52         </body>
    53       </pou>
    53       </pou>
    54       <pou name="Button_toggle" pouType="functionBlock">
    54       <pou name="TextCtrl" pouType="functionBlock">
    55         <interface>
    55         <interface>
    56           <localVars>
    56           <localVars>
    57             <variable name="SVGUI_Command">
    57             <variable name="ID">
    58               <type>
    58               <type>
    59                 <derived name="python_poll"/>
    59                 <string/>
    60               </type>
    60               </type>
    61             </variable>
    61             </variable>
    62           </localVars>
    62           </localVars>
    63           <inputVars>
    63           <inputVars>
    64             <variable name="back_id">
    64             <variable name="back_id">
    65               <type>
    65               <type>
    66                 <string/>
    66                 <string/>
    67               </type>
    67               </type>
    68             </variable>
    68             </variable>
    69             <variable name="sele_id">
    69             <variable name="set_text">
       
    70               <type>
       
    71                 <BOOL/>
       
    72               </type>
       
    73             </variable>
       
    74             <variable name="text">
    70               <type>
    75               <type>
    71                 <string/>
    76                 <string/>
    72               </type>
    77               </type>
    73             </variable>
    78             </variable>
    74             <variable name="set_state">
       
    75               <type>
       
    76                 <BOOL/>
       
    77               </type>
       
    78             </variable>
       
    79           </inputVars>
    79           </inputVars>
    80           <outputVars>
       
    81             <variable name="current_state">
       
    82               <type>
       
    83                 <BOOL/>
       
    84               </type>
       
    85             </variable>
       
    86           </outputVars>
       
    87           <localVars>
    80           <localVars>
    88             <variable name="GetButtonState">
    81             <variable name="SVGUI_TEXTCTRL">
    89               <type>
    82               <type>
    90                 <derived name="GetBoolString"/>
    83                 <derived name="python_eval"/>
       
    84               </type>
       
    85             </variable>
       
    86             <variable name="setstate_Command">
       
    87               <type>
       
    88                 <derived name="python_eval"/>
    91               </type>
    89               </type>
    92             </variable>
    90             </variable>
    93           </localVars>
    91           </localVars>
    94         </interface>
    92         </interface>
    95         <body>
    93         <body>
    96           <FBD>
    94           <FBD>
    97             <block localId="1" width="125" height="140" typeName="python_poll" instanceName="SVGUI_Command">
    95             <block localId="1" width="193" height="160" typeName="CONCAT">
    98               <position x="872" y="137"/>
    96               <position x="626" y="122"/>
    99               <inputVariables>
       
   100                 <variable formalParameter="TRIG">
       
   101                   <connectionPointIn>
       
   102                     <relPosition x="0" y="50"/>
       
   103                     <connection refLocalId="10">
       
   104                       <position x="872" y="187"/>
       
   105                       <position x="795" y="187"/>
       
   106                     </connection>
       
   107                   </connectionPointIn>
       
   108                 </variable>
       
   109                 <variable formalParameter="CODE">
       
   110                   <connectionPointIn>
       
   111                     <relPosition x="0" y="110"/>
       
   112                     <connection refLocalId="2" formalParameter="OUT">
       
   113                       <position x="872" y="247"/>
       
   114                       <position x="678" y="247"/>
       
   115                       <position x="678" y="80"/>
       
   116                       <position x="636" y="80"/>
       
   117                     </connection>
       
   118                   </connectionPointIn>
       
   119                 </variable>
       
   120               </inputVariables>
       
   121               <inOutVariables/>
       
   122               <outputVariables>
       
   123                 <variable formalParameter="ACK">
       
   124                   <connectionPointOut>
       
   125                     <relPosition x="125" y="50"/>
       
   126                   </connectionPointOut>
       
   127                 </variable>
       
   128                 <variable formalParameter="RESULT">
       
   129                   <connectionPointOut>
       
   130                     <relPosition x="125" y="110"/>
       
   131                   </connectionPointOut>
       
   132                 </variable>
       
   133               </outputVariables>
       
   134             </block>
       
   135             <block localId="2" width="150" height="485" typeName="CONCAT">
       
   136               <position x="486" y="25"/>
       
   137               <inputVariables>
    97               <inputVariables>
   138                 <variable formalParameter="IN1">
    98                 <variable formalParameter="IN1">
   139                   <connectionPointIn>
    99                   <connectionPointIn>
   140                     <relPosition x="0" y="55"/>
   100                     <relPosition x="0" y="43"/>
       
   101                     <connection refLocalId="2">
       
   102                       <position x="626" y="165"/>
       
   103                       <position x="535" y="165"/>
       
   104                     </connection>
       
   105                   </connectionPointIn>
       
   106                 </variable>
       
   107                 <variable formalParameter="IN2">
       
   108                   <connectionPointIn>
       
   109                     <relPosition x="0" y="89"/>
   141                     <connection refLocalId="3">
   110                     <connection refLocalId="3">
   142                       <position x="486" y="80"/>
   111                       <position x="626" y="211"/>
   143                       <position x="380" y="80"/>
   112                       <position x="535" y="211"/>
   144                     </connection>
       
   145                   </connectionPointIn>
       
   146                 </variable>
       
   147                 <variable formalParameter="IN2">
       
   148                   <connectionPointIn>
       
   149                     <relPosition x="0" y="120"/>
       
   150                     <connection refLocalId="11">
       
   151                       <position x="486" y="145"/>
       
   152                       <position x="170" y="145"/>
       
   153                     </connection>
   113                     </connection>
   154                   </connectionPointIn>
   114                   </connectionPointIn>
   155                 </variable>
   115                 </variable>
   156                 <variable formalParameter="IN3">
   116                 <variable formalParameter="IN3">
   157                   <connectionPointIn>
   117                   <connectionPointIn>
   158                     <relPosition x="0" y="185"/>
   118                     <relPosition x="0" y="135"/>
   159                     <connection refLocalId="5">
   119                     <connection refLocalId="6">
   160                       <position x="486" y="210"/>
   120                       <position x="626" y="257"/>
   161                       <position x="380" y="210"/>
   121                       <position x="532" y="257"/>
   162                     </connection>
       
   163                   </connectionPointIn>
       
   164                 </variable>
       
   165                 <variable formalParameter="IN4">
       
   166                   <connectionPointIn>
       
   167                     <relPosition x="0" y="250"/>
       
   168                     <connection refLocalId="12">
       
   169                       <position x="486" y="275"/>
       
   170                       <position x="205" y="275"/>
       
   171                     </connection>
       
   172                   </connectionPointIn>
       
   173                 </variable>
       
   174                 <variable formalParameter="IN5">
       
   175                   <connectionPointIn>
       
   176                     <relPosition x="0" y="315"/>
       
   177                     <connection refLocalId="7">
       
   178                       <position x="486" y="340"/>
       
   179                       <position x="350" y="340"/>
       
   180                     </connection>
       
   181                   </connectionPointIn>
       
   182                 </variable>
       
   183                 <variable formalParameter="IN6">
       
   184                   <connectionPointIn>
       
   185                     <relPosition x="0" y="385"/>
       
   186                     <connection refLocalId="28" formalParameter="CODE">
       
   187                       <position x="486" y="410"/>
       
   188                       <position x="389" y="410"/>
       
   189                     </connection>
       
   190                   </connectionPointIn>
       
   191                 </variable>
       
   192                 <variable formalParameter="IN7">
       
   193                   <connectionPointIn>
       
   194                     <relPosition x="0" y="450"/>
       
   195                     <connection refLocalId="9">
       
   196                       <position x="486" y="475"/>
       
   197                       <position x="389" y="475"/>
       
   198                     </connection>
   122                     </connection>
   199                   </connectionPointIn>
   123                   </connectionPointIn>
   200                 </variable>
   124                 </variable>
   201               </inputVariables>
   125               </inputVariables>
   202               <inOutVariables/>
   126               <inOutVariables/>
   203               <outputVariables>
   127               <outputVariables>
   204                 <variable formalParameter="OUT">
   128                 <variable formalParameter="OUT">
   205                   <connectionPointOut>
   129                   <connectionPointOut>
   206                     <relPosition x="150" y="55"/>
   130                     <relPosition x="193" y="43"/>
   207                   </connectionPointOut>
   131                   </connectionPointOut>
   208                 </variable>
   132                 </variable>
   209               </outputVariables>
   133               </outputVariables>
   210             </block>
   134             </block>
   211             <inVariable localId="3" height="30" width="291">
   135             <inVariable localId="2" height="30" width="460">
   212               <position x="89" y="65"/>
   136               <position x="75" y="150"/>
   213               <connectionPointOut>
   137               <connectionPointOut>
   214                 <relPosition x="291" y="15"/>
   138                 <relPosition x="460" y="15"/>
   215               </connectionPointOut>
   139               </connectionPointOut>
   216               <expression>'int(SVGUI("SvguiButton","'</expression>
   140               <expression>'createSVGUIControl("textControl", back_id="'</expression>
   217             </inVariable>
   141             </inVariable>
   218             <inVariable localId="5" height="30" width="140">
   142             <inVariable localId="3" height="35" width="85">
   219               <position x="240" y="195"/>
   143               <position x="450" y="196"/>
   220               <connectionPointOut>
       
   221                 <relPosition x="140" y="15"/>
       
   222               </connectionPointOut>
       
   223               <expression>'",sele_id="'</expression>
       
   224             </inVariable>
       
   225             <inVariable localId="7" height="30" width="110">
       
   226               <position x="240" y="325"/>
       
   227               <connectionPointOut>
       
   228                 <relPosition x="110" y="15"/>
       
   229               </connectionPointOut>
       
   230               <expression>'",state='</expression>
       
   231             </inVariable>
       
   232             <inVariable localId="9" height="30" width="290">
       
   233               <position x="99" y="460"/>
       
   234               <connectionPointOut>
       
   235                 <relPosition x="290" y="15"/>
       
   236               </connectionPointOut>
       
   237               <expression>',toggle=True,active=True))'</expression>
       
   238             </inVariable>
       
   239             <inVariable localId="10" height="30" width="70">
       
   240               <position x="725" y="172"/>
       
   241               <connectionPointOut>
       
   242                 <relPosition x="70" y="15"/>
       
   243               </connectionPointOut>
       
   244               <expression>BOOL#1</expression>
       
   245             </inVariable>
       
   246             <inVariable localId="11" height="35" width="85">
       
   247               <position x="85" y="130"/>
       
   248               <connectionPointOut>
   144               <connectionPointOut>
   249                 <relPosition x="85" y="15"/>
   145                 <relPosition x="85" y="15"/>
   250               </connectionPointOut>
   146               </connectionPointOut>
   251               <expression>back_id</expression>
   147               <expression>back_id</expression>
   252             </inVariable>
   148             </inVariable>
   253             <inVariable localId="12" height="35" width="85">
       
   254               <position x="120" y="260"/>
       
   255               <connectionPointOut>
       
   256                 <relPosition x="85" y="15"/>
       
   257               </connectionPointOut>
       
   258               <expression>sele_id</expression>
       
   259             </inVariable>
       
   260             <inVariable localId="13" height="35" width="100">
       
   261               <position x="109" y="395"/>
       
   262               <connectionPointOut>
       
   263                 <relPosition x="100" y="15"/>
       
   264               </connectionPointOut>
       
   265               <expression>set_state</expression>
       
   266             </inVariable>
       
   267             <block localId="25" width="145" height="45" typeName="STRING_TO_INT">
       
   268               <position x="1052" y="217"/>
       
   269               <inputVariables>
       
   270                 <variable formalParameter="IN">
       
   271                   <connectionPointIn>
       
   272                     <relPosition x="0" y="30"/>
       
   273                     <connection refLocalId="1" formalParameter="RESULT">
       
   274                       <position x="1052" y="247"/>
       
   275                       <position x="997" y="247"/>
       
   276                     </connection>
       
   277                   </connectionPointIn>
       
   278                 </variable>
       
   279               </inputVariables>
       
   280               <inOutVariables/>
       
   281               <outputVariables>
       
   282                 <variable formalParameter="OUT">
       
   283                   <connectionPointOut>
       
   284                     <relPosition x="145" y="30"/>
       
   285                   </connectionPointOut>
       
   286                 </variable>
       
   287               </outputVariables>
       
   288             </block>
       
   289             <block localId="26" width="125" height="45" typeName="INT_TO_BOOL">
       
   290               <position x="1247" y="217"/>
       
   291               <inputVariables>
       
   292                 <variable formalParameter="IN">
       
   293                   <connectionPointIn>
       
   294                     <relPosition x="0" y="30"/>
       
   295                     <connection refLocalId="25" formalParameter="OUT">
       
   296                       <position x="1247" y="247"/>
       
   297                       <position x="1197" y="247"/>
       
   298                     </connection>
       
   299                   </connectionPointIn>
       
   300                 </variable>
       
   301               </inputVariables>
       
   302               <inOutVariables/>
       
   303               <outputVariables>
       
   304                 <variable formalParameter="OUT">
       
   305                   <connectionPointOut>
       
   306                     <relPosition x="125" y="30"/>
       
   307                   </connectionPointOut>
       
   308                 </variable>
       
   309               </outputVariables>
       
   310             </block>
       
   311             <outVariable localId="27" height="35" width="145">
       
   312               <position x="1402" y="232"/>
       
   313               <connectionPointIn>
       
   314                 <relPosition x="0" y="15"/>
       
   315                 <connection refLocalId="26" formalParameter="OUT">
       
   316                   <position x="1402" y="247"/>
       
   317                   <position x="1372" y="247"/>
       
   318                 </connection>
       
   319               </connectionPointIn>
       
   320               <expression>current_state</expression>
       
   321             </outVariable>
       
   322             <block localId="28" width="140" height="40" typeName="GetBoolString" instanceName="GetButtonState">
       
   323               <position x="249" y="380"/>
       
   324               <inputVariables>
       
   325                 <variable formalParameter="VALUE">
       
   326                   <connectionPointIn>
       
   327                     <relPosition x="0" y="30"/>
       
   328                     <connection refLocalId="13">
       
   329                       <position x="249" y="410"/>
       
   330                       <position x="209" y="410"/>
       
   331                     </connection>
       
   332                   </connectionPointIn>
       
   333                 </variable>
       
   334               </inputVariables>
       
   335               <inOutVariables/>
       
   336               <outputVariables>
       
   337                 <variable formalParameter="CODE">
       
   338                   <connectionPointOut>
       
   339                     <relPosition x="140" y="30"/>
       
   340                   </connectionPointOut>
       
   341                 </variable>
       
   342               </outputVariables>
       
   343             </block>
       
   344           </FBD>
       
   345         </body>
       
   346       </pou>
       
   347       <pou name="TextCtrl" pouType="functionBlock">
       
   348         <interface>
       
   349           <inputVars>
       
   350             <variable name="back_id">
       
   351               <type>
       
   352                 <string/>
       
   353               </type>
       
   354             </variable>
       
   355             <variable name="state">
       
   356               <type>
       
   357                 <string/>
       
   358               </type>
       
   359             </variable>
       
   360           </inputVars>
       
   361           <localVars>
       
   362             <variable name="SVGUI_TEXTCTRL">
       
   363               <type>
       
   364                 <derived name="python_poll"/>
       
   365               </type>
       
   366             </variable>
       
   367           </localVars>
       
   368           <outputVars>
       
   369             <variable name="code">
       
   370               <type>
       
   371                 <string/>
       
   372               </type>
       
   373             </variable>
       
   374           </outputVars>
       
   375         </interface>
       
   376         <body>
       
   377           <FBD>
       
   378             <block localId="1" width="265" height="230" typeName="CONCAT">
       
   379               <position x="549" y="125"/>
       
   380               <inputVariables>
       
   381                 <variable formalParameter="IN1">
       
   382                   <connectionPointIn>
       
   383                     <relPosition x="0" y="40"/>
       
   384                     <connection refLocalId="2">
       
   385                       <position x="549" y="165"/>
       
   386                       <position x="361" y="165"/>
       
   387                     </connection>
       
   388                   </connectionPointIn>
       
   389                 </variable>
       
   390                 <variable formalParameter="IN2">
       
   391                   <connectionPointIn>
       
   392                     <relPosition x="0" y="85"/>
       
   393                     <connection refLocalId="3">
       
   394                       <position x="549" y="210"/>
       
   395                       <position x="160" y="210"/>
       
   396                     </connection>
       
   397                   </connectionPointIn>
       
   398                 </variable>
       
   399                 <variable formalParameter="IN3">
       
   400                   <connectionPointIn>
       
   401                     <relPosition x="0" y="125"/>
       
   402                     <connection refLocalId="5">
       
   403                       <position x="549" y="250"/>
       
   404                       <position x="195" y="250"/>
       
   405                     </connection>
       
   406                   </connectionPointIn>
       
   407                 </variable>
       
   408                 <variable formalParameter="IN4">
       
   409                   <connectionPointIn>
       
   410                     <relPosition x="0" y="165"/>
       
   411                     <connection refLocalId="4">
       
   412                       <position x="549" y="290"/>
       
   413                       <position x="140" y="290"/>
       
   414                     </connection>
       
   415                   </connectionPointIn>
       
   416                 </variable>
       
   417                 <variable formalParameter="IN5">
       
   418                   <connectionPointIn>
       
   419                     <relPosition x="0" y="210"/>
       
   420                     <connection refLocalId="6">
       
   421                       <position x="549" y="335"/>
       
   422                       <position x="125" y="335"/>
       
   423                     </connection>
       
   424                   </connectionPointIn>
       
   425                 </variable>
       
   426               </inputVariables>
       
   427               <inOutVariables/>
       
   428               <outputVariables>
       
   429                 <variable formalParameter="OUT">
       
   430                   <connectionPointOut>
       
   431                     <relPosition x="265" y="40"/>
       
   432                   </connectionPointOut>
       
   433                 </variable>
       
   434               </outputVariables>
       
   435             </block>
       
   436             <inVariable localId="2" height="30" width="286">
       
   437               <position x="75" y="150"/>
       
   438               <connectionPointOut>
       
   439                 <relPosition x="286" y="15"/>
       
   440               </connectionPointOut>
       
   441               <expression>'SVGUI("SvguiTextCtrl","'</expression>
       
   442             </inVariable>
       
   443             <inVariable localId="3" height="35" width="85">
       
   444               <position x="75" y="195"/>
       
   445               <connectionPointOut>
       
   446                 <relPosition x="85" y="15"/>
       
   447               </connectionPointOut>
       
   448               <expression>back_id</expression>
       
   449             </inVariable>
       
   450             <inVariable localId="4" height="35" width="65">
       
   451               <position x="75" y="275"/>
       
   452               <connectionPointOut>
       
   453                 <relPosition x="65" y="15"/>
       
   454               </connectionPointOut>
       
   455               <expression>state</expression>
       
   456             </inVariable>
       
   457             <inVariable localId="5" height="30" width="120">
       
   458               <position x="75" y="235"/>
       
   459               <connectionPointOut>
       
   460                 <relPosition x="120" y="15"/>
       
   461               </connectionPointOut>
       
   462               <expression>'",state="'</expression>
       
   463             </inVariable>
       
   464             <inVariable localId="6" height="30" width="50">
   149             <inVariable localId="6" height="30" width="50">
   465               <position x="75" y="320"/>
   150               <position x="482" y="242"/>
   466               <connectionPointOut>
   151               <connectionPointOut>
   467                 <relPosition x="50" y="15"/>
   152                 <relPosition x="50" y="15"/>
   468               </connectionPointOut>
   153               </connectionPointOut>
   469               <expression>'")'</expression>
   154               <expression>'")'</expression>
   470             </inVariable>
   155             </inVariable>
   471             <block localId="7" width="125" height="115" typeName="python_poll" instanceName="SVGUI_TEXTCTRL">
   156             <block localId="7" width="125" height="115" typeName="python_eval" instanceName="SVGUI_TEXTCTRL">
   472               <position x="909" y="75"/>
   157               <position x="909" y="75"/>
   473               <inputVariables>
   158               <inputVariables>
   474                 <variable formalParameter="TRIG">
   159                 <variable formalParameter="TRIG">
   475                   <connectionPointIn>
   160                   <connectionPointIn>
   476                     <relPosition x="0" y="45"/>
   161                     <relPosition x="0" y="45"/>
   485                 <variable formalParameter="CODE">
   170                 <variable formalParameter="CODE">
   486                   <connectionPointIn>
   171                   <connectionPointIn>
   487                     <relPosition x="0" y="90"/>
   172                     <relPosition x="0" y="90"/>
   488                     <connection refLocalId="1" formalParameter="OUT">
   173                     <connection refLocalId="1" formalParameter="OUT">
   489                       <position x="909" y="165"/>
   174                       <position x="909" y="165"/>
   490                       <position x="814" y="165"/>
   175                       <position x="819" y="165"/>
   491                     </connection>
   176                     </connection>
   492                   </connectionPointIn>
   177                   </connectionPointIn>
   493                 </variable>
   178                 </variable>
   494               </inputVariables>
   179               </inputVariables>
   495               <inOutVariables/>
   180               <inOutVariables/>
   504                     <relPosition x="125" y="90"/>
   189                     <relPosition x="125" y="90"/>
   505                   </connectionPointOut>
   190                   </connectionPointOut>
   506                 </variable>
   191                 </variable>
   507               </outputVariables>
   192               </outputVariables>
   508             </block>
   193             </block>
   509             <outVariable localId="8" height="35" width="55">
   194             <inVariable localId="9" height="30" width="70">
   510               <position x="1084" y="150"/>
   195               <position x="799" y="70"/>
       
   196               <connectionPointOut>
       
   197                 <relPosition x="70" y="15"/>
       
   198               </connectionPointOut>
       
   199               <expression>BOOL#1</expression>
       
   200             </inVariable>
       
   201             <outVariable localId="10" height="30" width="30">
       
   202               <position x="1094" y="150"/>
   511               <connectionPointIn>
   203               <connectionPointIn>
   512                 <relPosition x="0" y="15"/>
   204                 <relPosition x="0" y="15"/>
   513                 <connection refLocalId="7" formalParameter="RESULT">
   205                 <connection refLocalId="7" formalParameter="RESULT">
   514                   <position x="1084" y="165"/>
   206                   <position x="1094" y="165"/>
   515                   <position x="1034" y="165"/>
   207                   <position x="1034" y="165"/>
   516                 </connection>
   208                 </connection>
   517               </connectionPointIn>
   209               </connectionPointIn>
   518               <expression>code</expression>
   210               <expression>ID</expression>
   519             </outVariable>
   211             </outVariable>
   520             <inVariable localId="9" height="30" width="70">
   212             <connector name="CREATED" localId="11" height="30" width="110">
   521               <position x="799" y="70"/>
   213               <position x="1096" y="105"/>
   522               <connectionPointOut>
   214               <connectionPointIn>
   523                 <relPosition x="70" y="15"/>
   215                 <relPosition x="0" y="15"/>
   524               </connectionPointOut>
   216                 <connection refLocalId="7" formalParameter="ACK">
   525               <expression>BOOL#1</expression>
   217                   <position x="1096" y="120"/>
       
   218                   <position x="1034" y="120"/>
       
   219                 </connection>
       
   220               </connectionPointIn>
       
   221             </connector>
       
   222             <block localId="4" width="125" height="140" typeName="python_eval" instanceName="setstate_Command">
       
   223               <position x="957" y="472"/>
       
   224               <inputVariables>
       
   225                 <variable formalParameter="TRIG">
       
   226                   <connectionPointIn>
       
   227                     <relPosition x="0" y="50"/>
       
   228                     <connection refLocalId="31" formalParameter="OUT">
       
   229                       <position x="957" y="522"/>
       
   230                       <position x="909" y="522"/>
       
   231                       <position x="909" y="444"/>
       
   232                       <position x="857" y="444"/>
       
   233                     </connection>
       
   234                   </connectionPointIn>
       
   235                 </variable>
       
   236                 <variable formalParameter="CODE">
       
   237                   <connectionPointIn>
       
   238                     <relPosition x="0" y="110"/>
       
   239                     <connection refLocalId="12" formalParameter="OUT">
       
   240                       <position x="957" y="582"/>
       
   241                       <position x="822" y="582"/>
       
   242                     </connection>
       
   243                   </connectionPointIn>
       
   244                 </variable>
       
   245               </inputVariables>
       
   246               <inOutVariables/>
       
   247               <outputVariables>
       
   248                 <variable formalParameter="ACK">
       
   249                   <connectionPointOut>
       
   250                     <relPosition x="125" y="50"/>
       
   251                   </connectionPointOut>
       
   252                 </variable>
       
   253                 <variable formalParameter="RESULT">
       
   254                   <connectionPointOut>
       
   255                     <relPosition x="125" y="110"/>
       
   256                   </connectionPointOut>
       
   257                 </variable>
       
   258               </outputVariables>
       
   259             </block>
       
   260             <continuation name="CREATED" localId="5" height="30" width="110">
       
   261               <position x="589" y="429"/>
       
   262               <connectionPointOut>
       
   263                 <relPosition x="110" y="15"/>
       
   264               </connectionPointOut>
       
   265             </continuation>
       
   266             <block localId="12" width="186" height="288" typeName="CONCAT">
       
   267               <position x="636" y="536"/>
       
   268               <inputVariables>
       
   269                 <variable formalParameter="IN1">
       
   270                   <connectionPointIn>
       
   271                     <relPosition x="0" y="46"/>
       
   272                     <connection refLocalId="14">
       
   273                       <position x="636" y="582"/>
       
   274                       <position x="526" y="582"/>
       
   275                     </connection>
       
   276                   </connectionPointIn>
       
   277                 </variable>
       
   278                 <variable formalParameter="IN2">
       
   279                   <connectionPointIn>
       
   280                     <relPosition x="0" y="99"/>
       
   281                     <connection refLocalId="8">
       
   282                       <position x="636" y="635"/>
       
   283                       <position x="526" y="635"/>
       
   284                     </connection>
       
   285                   </connectionPointIn>
       
   286                 </variable>
       
   287                 <variable formalParameter="IN3">
       
   288                   <connectionPointIn>
       
   289                     <relPosition x="0" y="152"/>
       
   290                     <connection refLocalId="15">
       
   291                       <position x="636" y="688"/>
       
   292                       <position x="527" y="688"/>
       
   293                     </connection>
       
   294                   </connectionPointIn>
       
   295                 </variable>
       
   296                 <variable formalParameter="IN4">
       
   297                   <connectionPointIn>
       
   298                     <relPosition x="0" y="205"/>
       
   299                     <connection refLocalId="32">
       
   300                       <position x="636" y="741"/>
       
   301                       <position x="528" y="741"/>
       
   302                     </connection>
       
   303                   </connectionPointIn>
       
   304                 </variable>
       
   305                 <variable formalParameter="IN5">
       
   306                   <connectionPointIn>
       
   307                     <relPosition x="0" y="258"/>
       
   308                     <connection refLocalId="16">
       
   309                       <position x="636" y="794"/>
       
   310                       <position x="528" y="794"/>
       
   311                     </connection>
       
   312                   </connectionPointIn>
       
   313                 </variable>
       
   314               </inputVariables>
       
   315               <inOutVariables/>
       
   316               <outputVariables>
       
   317                 <variable formalParameter="OUT">
       
   318                   <connectionPointOut>
       
   319                     <relPosition x="186" y="46"/>
       
   320                   </connectionPointOut>
       
   321                 </variable>
       
   322               </outputVariables>
       
   323             </block>
       
   324             <inVariable localId="8" height="30" width="53">
       
   325               <position x="473" y="620"/>
       
   326               <connectionPointOut>
       
   327                 <relPosition x="53" y="15"/>
       
   328               </connectionPointOut>
       
   329               <expression>ID</expression>
       
   330             </inVariable>
       
   331             <inVariable localId="13" height="35" width="100">
       
   332               <position x="599" y="469"/>
       
   333               <connectionPointOut>
       
   334                 <relPosition x="100" y="17"/>
       
   335               </connectionPointOut>
       
   336               <expression>set_text</expression>
       
   337             </inVariable>
       
   338             <inVariable localId="14" height="30" width="120">
       
   339               <position x="406" y="567"/>
       
   340               <connectionPointOut>
       
   341                 <relPosition x="120" y="15"/>
       
   342               </connectionPointOut>
       
   343               <expression>'setAttr('</expression>
       
   344             </inVariable>
       
   345             <inVariable localId="15" height="30" width="122">
       
   346               <position x="405" y="673"/>
       
   347               <connectionPointOut>
       
   348                 <relPosition x="122" y="15"/>
       
   349               </connectionPointOut>
       
   350               <expression>',"text","'</expression>
       
   351             </inVariable>
       
   352             <inVariable localId="16" height="30" width="50">
       
   353               <position x="478" y="779"/>
       
   354               <connectionPointOut>
       
   355                 <relPosition x="50" y="15"/>
       
   356               </connectionPointOut>
       
   357               <expression>'")'</expression>
       
   358             </inVariable>
       
   359             <block localId="31" width="75" height="105" typeName="AND">
       
   360               <position x="782" y="403"/>
       
   361               <inputVariables>
       
   362                 <variable formalParameter="IN1">
       
   363                   <connectionPointIn>
       
   364                     <relPosition x="0" y="41"/>
       
   365                     <connection refLocalId="5">
       
   366                       <position x="782" y="444"/>
       
   367                       <position x="699" y="444"/>
       
   368                     </connection>
       
   369                   </connectionPointIn>
       
   370                 </variable>
       
   371                 <variable formalParameter="IN2">
       
   372                   <connectionPointIn>
       
   373                     <relPosition x="0" y="83"/>
       
   374                     <connection refLocalId="13">
       
   375                       <position x="782" y="486"/>
       
   376                       <position x="699" y="486"/>
       
   377                     </connection>
       
   378                   </connectionPointIn>
       
   379                 </variable>
       
   380               </inputVariables>
       
   381               <inOutVariables/>
       
   382               <outputVariables>
       
   383                 <variable formalParameter="OUT">
       
   384                   <connectionPointOut>
       
   385                     <relPosition x="75" y="41"/>
       
   386                   </connectionPointOut>
       
   387                 </variable>
       
   388               </outputVariables>
       
   389             </block>
       
   390             <inVariable localId="32" height="30" width="90">
       
   391               <position x="438" y="726"/>
       
   392               <connectionPointOut>
       
   393                 <relPosition x="90" y="15"/>
       
   394               </connectionPointOut>
       
   395               <expression>text</expression>
   526             </inVariable>
   396             </inVariable>
   527           </FBD>
   397           </FBD>
   528         </body>
   398         </body>
   529       </pou>
   399       </pou>
   530       <pou name="Button" pouType="functionBlock">
   400       <pou name="Button" pouType="functionBlock">
   531         <interface>
   401         <interface>
   532           <localVars>
   402           <localVars>
   533             <variable name="SVGUI_Command">
   403             <variable name="ID">
   534               <type>
   404               <type>
   535                 <derived name="python_poll"/>
   405                 <string/>
   536               </type>
   406               </type>
   537             </variable>
   407             </variable>
   538           </localVars>
   408           </localVars>
   539           <inputVars>
   409           <inputVars>
   540             <variable name="back_id">
   410             <variable name="back_id">
   545             <variable name="sele_id">
   415             <variable name="sele_id">
   546               <type>
   416               <type>
   547                 <string/>
   417                 <string/>
   548               </type>
   418               </type>
   549             </variable>
   419             </variable>
       
   420             <variable name="toggle">
       
   421               <type>
       
   422                 <BOOL/>
       
   423               </type>
       
   424             </variable>
   550             <variable name="set_state">
   425             <variable name="set_state">
       
   426               <type>
       
   427                 <BOOL/>
       
   428               </type>
       
   429             </variable>
       
   430             <variable name="state_in">
   551               <type>
   431               <type>
   552                 <BOOL/>
   432                 <BOOL/>
   553               </type>
   433               </type>
   554             </variable>
   434             </variable>
   555           </inputVars>
   435           </inputVars>
   556           <outputVars>
   436           <outputVars>
   557             <variable name="current_state">
   437             <variable name="state_out">
   558               <type>
   438               <type>
   559                 <BOOL/>
   439                 <BOOL/>
   560               </type>
   440               </type>
   561             </variable>
   441             </variable>
   562           </outputVars>
   442           </outputVars>
   563           <localVars>
   443           <localVars>
       
   444             <variable name="init_Command">
       
   445               <type>
       
   446                 <derived name="python_eval"/>
       
   447               </type>
       
   448             </variable>
   564             <variable name="GetButtonState">
   449             <variable name="GetButtonState">
       
   450               <type>
       
   451                 <derived name="GetBoolString"/>
       
   452               </type>
       
   453             </variable>
       
   454             <variable name="setstate_Command">
       
   455               <type>
       
   456                 <derived name="python_eval"/>
       
   457               </type>
       
   458             </variable>
       
   459             <variable name="getstate_Command">
       
   460               <type>
       
   461                 <derived name="python_poll"/>
       
   462               </type>
       
   463             </variable>
       
   464             <variable name="GetButtonToggle">
   565               <type>
   465               <type>
   566                 <derived name="GetBoolString"/>
   466                 <derived name="GetBoolString"/>
   567               </type>
   467               </type>
   568             </variable>
   468             </variable>
   569           </localVars>
   469           </localVars>
   570         </interface>
   470         </interface>
   571         <body>
   471         <body>
   572           <FBD>
   472           <FBD>
   573             <block localId="1" width="125" height="140" typeName="python_poll" instanceName="SVGUI_Command">
   473             <block localId="1" width="125" height="140" typeName="python_eval" instanceName="init_Command">
   574               <position x="827" y="168"/>
   474               <position x="838" y="32"/>
   575               <inputVariables>
   475               <inputVariables>
   576                 <variable formalParameter="TRIG">
   476                 <variable formalParameter="TRIG">
   577                   <connectionPointIn>
   477                   <connectionPointIn>
   578                     <relPosition x="0" y="50"/>
   478                     <relPosition x="0" y="50"/>
   579                     <connection refLocalId="10">
   479                     <connection refLocalId="10">
   580                       <position x="827" y="218"/>
   480                       <position x="838" y="82"/>
   581                       <position x="766" y="218"/>
   481                       <position x="781" y="82"/>
   582                     </connection>
   482                     </connection>
   583                   </connectionPointIn>
   483                   </connectionPointIn>
   584                 </variable>
   484                 </variable>
   585                 <variable formalParameter="CODE">
   485                 <variable formalParameter="CODE">
   586                   <connectionPointIn>
   486                   <connectionPointIn>
   587                     <relPosition x="0" y="110"/>
   487                     <relPosition x="0" y="110"/>
   588                     <connection refLocalId="2" formalParameter="OUT">
   488                     <connection refLocalId="2" formalParameter="OUT">
   589                       <position x="827" y="278"/>
   489                       <position x="838" y="142"/>
   590                       <position x="679" y="278"/>
   490                       <position x="641" y="142"/>
   591                       <position x="679" y="80"/>
       
   592                       <position x="649" y="80"/>
       
   593                     </connection>
   491                     </connection>
   594                   </connectionPointIn>
   492                   </connectionPointIn>
   595                 </variable>
   493                 </variable>
   596               </inputVariables>
   494               </inputVariables>
   597               <inOutVariables/>
   495               <inOutVariables/>
   606                     <relPosition x="125" y="110"/>
   504                     <relPosition x="125" y="110"/>
   607                   </connectionPointOut>
   505                   </connectionPointOut>
   608                 </variable>
   506                 </variable>
   609               </outputVariables>
   507               </outputVariables>
   610             </block>
   508             </block>
   611             <block localId="2" width="150" height="485" typeName="CONCAT">
   509             <block localId="2" width="150" height="442" typeName="CONCAT">
   612               <position x="499" y="25"/>
   510               <position x="491" y="92"/>
   613               <inputVariables>
   511               <inputVariables>
   614                 <variable formalParameter="IN1">
   512                 <variable formalParameter="IN1">
   615                   <connectionPointIn>
   513                   <connectionPointIn>
   616                     <relPosition x="0" y="55"/>
   514                     <relPosition x="0" y="50"/>
   617                     <connection refLocalId="3">
   515                     <connection refLocalId="3">
   618                       <position x="499" y="80"/>
   516                       <position x="491" y="142"/>
   619                       <position x="378" y="80"/>
   517                       <position x="433" y="142"/>
   620                     </connection>
   518                     </connection>
   621                   </connectionPointIn>
   519                   </connectionPointIn>
   622                 </variable>
   520                 </variable>
   623                 <variable formalParameter="IN2">
   521                 <variable formalParameter="IN2">
   624                   <connectionPointIn>
   522                   <connectionPointIn>
   625                     <relPosition x="0" y="120"/>
   523                     <relPosition x="0" y="110"/>
   626                     <connection refLocalId="11">
   524                     <connection refLocalId="11">
   627                       <position x="499" y="145"/>
   525                       <position x="491" y="202"/>
   628                       <position x="170" y="145"/>
   526                       <position x="431" y="202"/>
   629                     </connection>
   527                     </connection>
   630                   </connectionPointIn>
   528                   </connectionPointIn>
   631                 </variable>
   529                 </variable>
   632                 <variable formalParameter="IN3">
   530                 <variable formalParameter="IN3">
   633                   <connectionPointIn>
   531                   <connectionPointIn>
   634                     <relPosition x="0" y="185"/>
   532                     <relPosition x="0" y="170"/>
   635                     <connection refLocalId="5">
   533                     <connection refLocalId="5">
   636                       <position x="499" y="210"/>
   534                       <position x="491" y="262"/>
   637                       <position x="380" y="210"/>
   535                       <position x="431" y="262"/>
   638                     </connection>
   536                     </connection>
   639                   </connectionPointIn>
   537                   </connectionPointIn>
   640                 </variable>
   538                 </variable>
   641                 <variable formalParameter="IN4">
   539                 <variable formalParameter="IN4">
   642                   <connectionPointIn>
   540                   <connectionPointIn>
   643                     <relPosition x="0" y="250"/>
   541                     <relPosition x="0" y="230"/>
   644                     <connection refLocalId="12">
   542                     <connection refLocalId="12">
   645                       <position x="499" y="275"/>
   543                       <position x="491" y="322"/>
   646                       <position x="205" y="275"/>
   544                       <position x="430" y="322"/>
   647                     </connection>
   545                     </connection>
   648                   </connectionPointIn>
   546                   </connectionPointIn>
   649                 </variable>
   547                 </variable>
   650                 <variable formalParameter="IN5">
   548                 <variable formalParameter="IN5">
   651                   <connectionPointIn>
   549                   <connectionPointIn>
   652                     <relPosition x="0" y="315"/>
   550                     <relPosition x="0" y="290"/>
   653                     <connection refLocalId="7">
   551                     <connection refLocalId="23">
   654                       <position x="499" y="340"/>
   552                       <position x="491" y="382"/>
   655                       <position x="348" y="340"/>
   553                       <position x="463" y="382"/>
       
   554                       <position x="463" y="370"/>
       
   555                       <position x="430" y="370"/>
   656                     </connection>
   556                     </connection>
   657                   </connectionPointIn>
   557                   </connectionPointIn>
   658                 </variable>
   558                 </variable>
   659                 <variable formalParameter="IN6">
   559                 <variable formalParameter="IN6">
   660                   <connectionPointIn>
   560                   <connectionPointIn>
   661                     <relPosition x="0" y="385"/>
   561                     <relPosition x="0" y="350"/>
   662                     <connection refLocalId="28" formalParameter="CODE">
   562                     <connection refLocalId="24" formalParameter="CODE">
   663                       <position x="499" y="410"/>
   563                       <position x="491" y="442"/>
   664                       <position x="369" y="410"/>
   564                       <position x="429" y="442"/>
   665                     </connection>
   565                     </connection>
   666                   </connectionPointIn>
   566                   </connectionPointIn>
   667                 </variable>
   567                 </variable>
   668                 <variable formalParameter="IN7">
   568                 <variable formalParameter="IN7">
   669                   <connectionPointIn>
   569                   <connectionPointIn>
   670                     <relPosition x="0" y="450"/>
   570                     <relPosition x="0" y="410"/>
   671                     <connection refLocalId="9">
   571                     <connection refLocalId="9">
   672                       <position x="499" y="475"/>
   572                       <position x="491" y="502"/>
   673                       <position x="275" y="475"/>
   573                       <position x="430" y="502"/>
   674                     </connection>
   574                     </connection>
   675                   </connectionPointIn>
   575                   </connectionPointIn>
   676                 </variable>
   576                 </variable>
   677               </inputVariables>
   577               </inputVariables>
   678               <inOutVariables/>
   578               <inOutVariables/>
   679               <outputVariables>
   579               <outputVariables>
   680                 <variable formalParameter="OUT">
   580                 <variable formalParameter="OUT">
   681                   <connectionPointOut>
   581                   <connectionPointOut>
   682                     <relPosition x="150" y="55"/>
   582                     <relPosition x="150" y="50"/>
   683                   </connectionPointOut>
   583                   </connectionPointOut>
   684                 </variable>
   584                 </variable>
   685               </outputVariables>
   585               </outputVariables>
   686             </block>
   586             </block>
   687             <inVariable localId="3" height="30" width="290">
   587             <inVariable localId="3" height="30" width="400">
   688               <position x="88" y="65"/>
   588               <position x="33" y="127"/>
   689               <connectionPointOut>
   589               <connectionPointOut>
   690                 <relPosition x="290" y="15"/>
   590                 <relPosition x="400" y="15"/>
   691               </connectionPointOut>
   591               </connectionPointOut>
   692               <expression>'int(SVGUI("SvguiButton","'</expression>
   592               <expression>'createSVGUIControl("button",back_id="'</expression>
   693             </inVariable>
   593             </inVariable>
   694             <inVariable localId="5" height="30" width="140">
   594             <inVariable localId="5" height="30" width="140">
   695               <position x="240" y="195"/>
   595               <position x="291" y="247"/>
   696               <connectionPointOut>
   596               <connectionPointOut>
   697                 <relPosition x="140" y="15"/>
   597                 <relPosition x="140" y="15"/>
   698               </connectionPointOut>
   598               </connectionPointOut>
   699               <expression>'",sele_id="'</expression>
   599               <expression>'",sele_id="'</expression>
   700             </inVariable>
   600             </inVariable>
   701             <inVariable localId="7" height="30" width="110">
   601             <inVariable localId="9" height="30" width="180">
   702               <position x="238" y="325"/>
   602               <position x="250" y="487"/>
       
   603               <connectionPointOut>
       
   604                 <relPosition x="180" y="15"/>
       
   605               </connectionPointOut>
       
   606               <expression>',active=True)'</expression>
       
   607             </inVariable>
       
   608             <inVariable localId="10" height="30" width="70">
       
   609               <position x="711" y="67"/>
       
   610               <connectionPointOut>
       
   611                 <relPosition x="70" y="15"/>
       
   612               </connectionPointOut>
       
   613               <expression>BOOL#1</expression>
       
   614             </inVariable>
       
   615             <inVariable localId="11" height="35" width="85">
       
   616               <position x="346" y="187"/>
       
   617               <connectionPointOut>
       
   618                 <relPosition x="85" y="15"/>
       
   619               </connectionPointOut>
       
   620               <expression>back_id</expression>
       
   621             </inVariable>
       
   622             <inVariable localId="12" height="35" width="85">
       
   623               <position x="345" y="307"/>
       
   624               <connectionPointOut>
       
   625                 <relPosition x="85" y="15"/>
       
   626               </connectionPointOut>
       
   627               <expression>sele_id</expression>
       
   628             </inVariable>
       
   629             <inVariable localId="13" height="35" width="100">
       
   630               <position x="452" y="639"/>
       
   631               <connectionPointOut>
       
   632                 <relPosition x="100" y="15"/>
       
   633               </connectionPointOut>
       
   634               <expression>set_state</expression>
       
   635             </inVariable>
       
   636             <block localId="28" width="140" height="40" typeName="GetBoolString" instanceName="GetButtonState">
       
   637               <position x="239" y="897"/>
       
   638               <inputVariables>
       
   639                 <variable formalParameter="VALUE">
       
   640                   <connectionPointIn>
       
   641                     <relPosition x="0" y="30"/>
       
   642                     <connection refLocalId="32">
       
   643                       <position x="239" y="927"/>
       
   644                       <position x="181" y="927"/>
       
   645                     </connection>
       
   646                   </connectionPointIn>
       
   647                 </variable>
       
   648               </inputVariables>
       
   649               <inOutVariables/>
       
   650               <outputVariables>
       
   651                 <variable formalParameter="CODE">
       
   652                   <connectionPointOut>
       
   653                     <relPosition x="140" y="30"/>
       
   654                   </connectionPointOut>
       
   655                 </variable>
       
   656               </outputVariables>
       
   657             </block>
       
   658             <outVariable localId="29" height="30" width="53">
       
   659               <position x="1015" y="127"/>
       
   660               <connectionPointIn>
       
   661                 <relPosition x="0" y="15"/>
       
   662                 <connection refLocalId="1" formalParameter="RESULT">
       
   663                   <position x="1015" y="142"/>
       
   664                   <position x="963" y="142"/>
       
   665                 </connection>
       
   666               </connectionPointIn>
       
   667               <expression>ID</expression>
       
   668             </outVariable>
       
   669             <block localId="4" width="125" height="140" typeName="python_eval" instanceName="setstate_Command">
       
   670               <position x="810" y="640"/>
       
   671               <inputVariables>
       
   672                 <variable formalParameter="TRIG">
       
   673                   <connectionPointIn>
       
   674                     <relPosition x="0" y="50"/>
       
   675                     <connection refLocalId="31" formalParameter="OUT">
       
   676                       <position x="810" y="690"/>
       
   677                       <position x="762" y="690"/>
       
   678                       <position x="762" y="612"/>
       
   679                       <position x="710" y="612"/>
       
   680                     </connection>
       
   681                   </connectionPointIn>
       
   682                 </variable>
       
   683                 <variable formalParameter="CODE">
       
   684                   <connectionPointIn>
       
   685                     <relPosition x="0" y="110"/>
       
   686                     <connection refLocalId="7" formalParameter="OUT">
       
   687                       <position x="810" y="750"/>
       
   688                       <position x="643" y="750"/>
       
   689                     </connection>
       
   690                   </connectionPointIn>
       
   691                 </variable>
       
   692               </inputVariables>
       
   693               <inOutVariables/>
       
   694               <outputVariables>
       
   695                 <variable formalParameter="ACK">
       
   696                   <connectionPointOut>
       
   697                     <relPosition x="125" y="50"/>
       
   698                   </connectionPointOut>
       
   699                 </variable>
       
   700                 <variable formalParameter="RESULT">
       
   701                   <connectionPointOut>
       
   702                     <relPosition x="125" y="110"/>
       
   703                   </connectionPointOut>
       
   704                 </variable>
       
   705               </outputVariables>
       
   706             </block>
       
   707             <connector name="CREATED" localId="30" height="30" width="110">
       
   708               <position x="1014" y="67"/>
       
   709               <connectionPointIn>
       
   710                 <relPosition x="0" y="15"/>
       
   711                 <connection refLocalId="1" formalParameter="ACK">
       
   712                   <position x="1014" y="82"/>
       
   713                   <position x="963" y="82"/>
       
   714                 </connection>
       
   715               </connectionPointIn>
       
   716             </connector>
       
   717             <continuation name="CREATED" localId="6" height="30" width="110">
       
   718               <position x="442" y="597"/>
   703               <connectionPointOut>
   719               <connectionPointOut>
   704                 <relPosition x="110" y="15"/>
   720                 <relPosition x="110" y="15"/>
   705               </connectionPointOut>
   721               </connectionPointOut>
   706               <expression>'",state='</expression>
   722             </continuation>
   707             </inVariable>
   723             <block localId="31" width="75" height="105" typeName="AND">
   708             <inVariable localId="9" height="30" width="180">
   724               <position x="635" y="571"/>
   709               <position x="225" y="460"/>
   725               <inputVariables>
   710               <connectionPointOut>
   726                 <variable formalParameter="IN1">
   711                 <relPosition x="180" y="15"/>
   727                   <connectionPointIn>
   712               </connectionPointOut>
   728                     <relPosition x="0" y="41"/>
   713               <expression>',active=True))'</expression>
   729                     <connection refLocalId="6">
   714             </inVariable>
   730                       <position x="635" y="612"/>
   715             <inVariable localId="10" height="30" width="70">
   731                       <position x="552" y="612"/>
   716               <position x="696" y="203"/>
   732                     </connection>
   717               <connectionPointOut>
   733                   </connectionPointIn>
   718                 <relPosition x="70" y="15"/>
   734                 </variable>
   719               </connectionPointOut>
   735                 <variable formalParameter="IN2">
   720               <expression>BOOL#1</expression>
   736                   <connectionPointIn>
   721             </inVariable>
   737                     <relPosition x="0" y="83"/>
   722             <inVariable localId="11" height="35" width="85">
   738                     <connection refLocalId="13">
   723               <position x="85" y="130"/>
   739                       <position x="635" y="654"/>
   724               <connectionPointOut>
   740                       <position x="552" y="654"/>
   725                 <relPosition x="85" y="15"/>
       
   726               </connectionPointOut>
       
   727               <expression>back_id</expression>
       
   728             </inVariable>
       
   729             <inVariable localId="12" height="35" width="85">
       
   730               <position x="120" y="260"/>
       
   731               <connectionPointOut>
       
   732                 <relPosition x="85" y="15"/>
       
   733               </connectionPointOut>
       
   734               <expression>sele_id</expression>
       
   735             </inVariable>
       
   736             <inVariable localId="13" height="35" width="100">
       
   737               <position x="62" y="395"/>
       
   738               <connectionPointOut>
       
   739                 <relPosition x="100" y="15"/>
       
   740               </connectionPointOut>
       
   741               <expression>set_state</expression>
       
   742             </inVariable>
       
   743             <block localId="25" width="145" height="45" typeName="STRING_TO_INT">
       
   744               <position x="1014" y="248"/>
       
   745               <inputVariables>
       
   746                 <variable formalParameter="IN">
       
   747                   <connectionPointIn>
       
   748                     <relPosition x="0" y="30"/>
       
   749                     <connection refLocalId="1" formalParameter="RESULT">
       
   750                       <position x="1014" y="278"/>
       
   751                       <position x="952" y="278"/>
       
   752                     </connection>
   741                     </connection>
   753                   </connectionPointIn>
   742                   </connectionPointIn>
   754                 </variable>
   743                 </variable>
   755               </inputVariables>
   744               </inputVariables>
   756               <inOutVariables/>
   745               <inOutVariables/>
   757               <outputVariables>
   746               <outputVariables>
   758                 <variable formalParameter="OUT">
   747                 <variable formalParameter="OUT">
   759                   <connectionPointOut>
   748                   <connectionPointOut>
   760                     <relPosition x="145" y="30"/>
   749                     <relPosition x="75" y="41"/>
   761                   </connectionPointOut>
   750                   </connectionPointOut>
   762                 </variable>
   751                 </variable>
   763               </outputVariables>
   752               </outputVariables>
   764             </block>
   753             </block>
   765             <block localId="26" width="125" height="45" typeName="INT_TO_BOOL">
   754             <inVariable localId="32" height="30" width="90">
   766               <position x="1209" y="248"/>
   755               <position x="91" y="912"/>
   767               <inputVariables>
   756               <connectionPointOut>
   768                 <variable formalParameter="IN">
   757                 <relPosition x="90" y="15"/>
   769                   <connectionPointIn>
   758               </connectionPointOut>
   770                     <relPosition x="0" y="30"/>
   759               <expression>state_in</expression>
   771                     <connection refLocalId="25" formalParameter="OUT">
   760             </inVariable>
   772                       <position x="1209" y="278"/>
   761             <outVariable localId="33" height="30" width="100">
   773                       <position x="1159" y="278"/>
   762               <position x="1334" y="1184"/>
   774                     </connection>
       
   775                   </connectionPointIn>
       
   776                 </variable>
       
   777               </inputVariables>
       
   778               <inOutVariables/>
       
   779               <outputVariables>
       
   780                 <variable formalParameter="OUT">
       
   781                   <connectionPointOut>
       
   782                     <relPosition x="125" y="30"/>
       
   783                   </connectionPointOut>
       
   784                 </variable>
       
   785               </outputVariables>
       
   786             </block>
       
   787             <outVariable localId="27" height="35" width="145">
       
   788               <position x="1364" y="263"/>
       
   789               <connectionPointIn>
   763               <connectionPointIn>
   790                 <relPosition x="0" y="15"/>
   764                 <relPosition x="0" y="15"/>
   791                 <connection refLocalId="26" formalParameter="OUT">
   765                 <connection refLocalId="26" formalParameter="OUT">
   792                   <position x="1364" y="278"/>
   766                   <position x="1334" y="1199"/>
   793                   <position x="1334" y="278"/>
   767                   <position x="1286" y="1199"/>
   794                 </connection>
   768                 </connection>
   795               </connectionPointIn>
   769               </connectionPointIn>
   796               <expression>current_state</expression>
   770               <expression>state_out</expression>
   797             </outVariable>
   771             </outVariable>
   798             <block localId="28" width="140" height="40" typeName="GetBoolString" instanceName="GetButtonState">
   772             <block localId="7" width="150" height="319" typeName="CONCAT">
   799               <position x="229" y="380"/>
   773               <position x="493" y="701"/>
       
   774               <inputVariables>
       
   775                 <variable formalParameter="IN1">
       
   776                   <connectionPointIn>
       
   777                     <relPosition x="0" y="49"/>
       
   778                     <connection refLocalId="14">
       
   779                       <position x="493" y="750"/>
       
   780                       <position x="379" y="750"/>
       
   781                     </connection>
       
   782                   </connectionPointIn>
       
   783                 </variable>
       
   784                 <variable formalParameter="IN2">
       
   785                   <connectionPointIn>
       
   786                     <relPosition x="0" y="108"/>
       
   787                     <connection refLocalId="8">
       
   788                       <position x="493" y="809"/>
       
   789                       <position x="435" y="809"/>
       
   790                       <position x="435" y="803"/>
       
   791                       <position x="379" y="803"/>
       
   792                     </connection>
       
   793                   </connectionPointIn>
       
   794                 </variable>
       
   795                 <variable formalParameter="IN3">
       
   796                   <connectionPointIn>
       
   797                     <relPosition x="0" y="167"/>
       
   798                     <connection refLocalId="15">
       
   799                       <position x="493" y="868"/>
       
   800                       <position x="435" y="868"/>
       
   801                       <position x="435" y="855"/>
       
   802                       <position x="379" y="855"/>
       
   803                     </connection>
       
   804                   </connectionPointIn>
       
   805                 </variable>
       
   806                 <variable formalParameter="IN4">
       
   807                   <connectionPointIn>
       
   808                     <relPosition x="0" y="226"/>
       
   809                     <connection refLocalId="28" formalParameter="CODE">
       
   810                       <position x="493" y="927"/>
       
   811                       <position x="379" y="927"/>
       
   812                     </connection>
       
   813                   </connectionPointIn>
       
   814                 </variable>
       
   815                 <variable formalParameter="IN5">
       
   816                   <connectionPointIn>
       
   817                     <relPosition x="0" y="285"/>
       
   818                     <connection refLocalId="16">
       
   819                       <position x="493" y="986"/>
       
   820                       <position x="377" y="986"/>
       
   821                     </connection>
       
   822                   </connectionPointIn>
       
   823                 </variable>
       
   824               </inputVariables>
       
   825               <inOutVariables/>
       
   826               <outputVariables>
       
   827                 <variable formalParameter="OUT">
       
   828                   <connectionPointOut>
       
   829                     <relPosition x="150" y="49"/>
       
   830                   </connectionPointOut>
       
   831                 </variable>
       
   832               </outputVariables>
       
   833             </block>
       
   834             <inVariable localId="8" height="30" width="53">
       
   835               <position x="326" y="788"/>
       
   836               <connectionPointOut>
       
   837                 <relPosition x="53" y="15"/>
       
   838               </connectionPointOut>
       
   839               <expression>ID</expression>
       
   840             </inVariable>
       
   841             <inVariable localId="14" height="30" width="120">
       
   842               <position x="259" y="735"/>
       
   843               <connectionPointOut>
       
   844                 <relPosition x="120" y="15"/>
       
   845               </connectionPointOut>
       
   846               <expression>'setAttr('</expression>
       
   847             </inVariable>
       
   848             <inVariable localId="15" height="30" width="122">
       
   849               <position x="257" y="840"/>
       
   850               <connectionPointOut>
       
   851                 <relPosition x="122" y="15"/>
       
   852               </connectionPointOut>
       
   853               <expression>',"state",'</expression>
       
   854             </inVariable>
       
   855             <inVariable localId="16" height="30" width="41">
       
   856               <position x="336" y="971"/>
       
   857               <connectionPointOut>
       
   858                 <relPosition x="41" y="15"/>
       
   859               </connectionPointOut>
       
   860               <expression>')'</expression>
       
   861             </inVariable>
       
   862             <block localId="17" width="125" height="140" typeName="python_poll" instanceName="getstate_Command">
       
   863               <position x="801" y="1089"/>
       
   864               <inputVariables>
       
   865                 <variable formalParameter="TRIG">
       
   866                   <connectionPointIn>
       
   867                     <relPosition x="0" y="50"/>
       
   868                     <connection refLocalId="18">
       
   869                       <position x="801" y="1139"/>
       
   870                       <position x="763" y="1139"/>
       
   871                       <position x="763" y="1099"/>
       
   872                       <position x="720" y="1099"/>
       
   873                     </connection>
       
   874                   </connectionPointIn>
       
   875                 </variable>
       
   876                 <variable formalParameter="CODE">
       
   877                   <connectionPointIn>
       
   878                     <relPosition x="0" y="110"/>
       
   879                     <connection refLocalId="22" formalParameter="OUT">
       
   880                       <position x="801" y="1199"/>
       
   881                       <position x="643" y="1199"/>
       
   882                     </connection>
       
   883                   </connectionPointIn>
       
   884                 </variable>
       
   885               </inputVariables>
       
   886               <inOutVariables/>
       
   887               <outputVariables>
       
   888                 <variable formalParameter="ACK">
       
   889                   <connectionPointOut>
       
   890                     <relPosition x="125" y="50"/>
       
   891                   </connectionPointOut>
       
   892                 </variable>
       
   893                 <variable formalParameter="RESULT">
       
   894                   <connectionPointOut>
       
   895                     <relPosition x="125" y="110"/>
       
   896                   </connectionPointOut>
       
   897                 </variable>
       
   898               </outputVariables>
       
   899             </block>
       
   900             <block localId="25" width="145" height="45" typeName="STRING_TO_INT">
       
   901               <position x="966" y="1169"/>
       
   902               <inputVariables>
       
   903                 <variable formalParameter="IN">
       
   904                   <connectionPointIn>
       
   905                     <relPosition x="0" y="30"/>
       
   906                     <connection refLocalId="17" formalParameter="RESULT">
       
   907                       <position x="966" y="1199"/>
       
   908                       <position x="926" y="1199"/>
       
   909                     </connection>
       
   910                   </connectionPointIn>
       
   911                 </variable>
       
   912               </inputVariables>
       
   913               <inOutVariables/>
       
   914               <outputVariables>
       
   915                 <variable formalParameter="OUT">
       
   916                   <connectionPointOut>
       
   917                     <relPosition x="145" y="30"/>
       
   918                   </connectionPointOut>
       
   919                 </variable>
       
   920               </outputVariables>
       
   921             </block>
       
   922             <block localId="26" width="125" height="45" typeName="INT_TO_BOOL">
       
   923               <position x="1161" y="1169"/>
       
   924               <inputVariables>
       
   925                 <variable formalParameter="IN">
       
   926                   <connectionPointIn>
       
   927                     <relPosition x="0" y="30"/>
       
   928                     <connection refLocalId="25" formalParameter="OUT">
       
   929                       <position x="1161" y="1199"/>
       
   930                       <position x="1111" y="1199"/>
       
   931                     </connection>
       
   932                   </connectionPointIn>
       
   933                 </variable>
       
   934               </inputVariables>
       
   935               <inOutVariables/>
       
   936               <outputVariables>
       
   937                 <variable formalParameter="OUT">
       
   938                   <connectionPointOut>
       
   939                     <relPosition x="125" y="30"/>
       
   940                   </connectionPointOut>
       
   941                 </variable>
       
   942               </outputVariables>
       
   943             </block>
       
   944             <continuation name="CREATED" localId="18" height="30" width="110">
       
   945               <position x="610" y="1084"/>
       
   946               <connectionPointOut>
       
   947                 <relPosition x="110" y="15"/>
       
   948               </connectionPointOut>
       
   949             </continuation>
       
   950             <inVariable localId="19" height="30" width="53">
       
   951               <position x="383" y="1238"/>
       
   952               <connectionPointOut>
       
   953                 <relPosition x="53" y="15"/>
       
   954               </connectionPointOut>
       
   955               <expression>ID</expression>
       
   956             </inVariable>
       
   957             <inVariable localId="20" height="30" width="150">
       
   958               <position x="286" y="1184"/>
       
   959               <connectionPointOut>
       
   960                 <relPosition x="150" y="15"/>
       
   961               </connectionPointOut>
       
   962               <expression>'int(getAttr('</expression>
       
   963             </inVariable>
       
   964             <inVariable localId="21" height="30" width="190">
       
   965               <position x="246" y="1292"/>
       
   966               <connectionPointOut>
       
   967                 <relPosition x="190" y="15"/>
       
   968               </connectionPointOut>
       
   969               <expression>',"state",False))'</expression>
       
   970             </inVariable>
       
   971             <block localId="22" width="150" height="183" typeName="CONCAT">
       
   972               <position x="493" y="1152"/>
       
   973               <inputVariables>
       
   974                 <variable formalParameter="IN1">
       
   975                   <connectionPointIn>
       
   976                     <relPosition x="0" y="47"/>
       
   977                     <connection refLocalId="20">
       
   978                       <position x="493" y="1199"/>
       
   979                       <position x="436" y="1199"/>
       
   980                     </connection>
       
   981                   </connectionPointIn>
       
   982                 </variable>
       
   983                 <variable formalParameter="IN2">
       
   984                   <connectionPointIn>
       
   985                     <relPosition x="0" y="101"/>
       
   986                     <connection refLocalId="19">
       
   987                       <position x="493" y="1253"/>
       
   988                       <position x="436" y="1253"/>
       
   989                     </connection>
       
   990                   </connectionPointIn>
       
   991                 </variable>
       
   992                 <variable formalParameter="IN3">
       
   993                   <connectionPointIn>
       
   994                     <relPosition x="0" y="155"/>
       
   995                     <connection refLocalId="21">
       
   996                       <position x="493" y="1307"/>
       
   997                       <position x="483" y="1307"/>
       
   998                       <position x="483" y="1307"/>
       
   999                       <position x="436" y="1307"/>
       
  1000                     </connection>
       
  1001                   </connectionPointIn>
       
  1002                 </variable>
       
  1003               </inputVariables>
       
  1004               <inOutVariables/>
       
  1005               <outputVariables>
       
  1006                 <variable formalParameter="OUT">
       
  1007                   <connectionPointOut>
       
  1008                     <relPosition x="150" y="47"/>
       
  1009                   </connectionPointOut>
       
  1010                 </variable>
       
  1011               </outputVariables>
       
  1012             </block>
       
  1013             <inVariable localId="23" height="30" width="130">
       
  1014               <position x="300" y="355"/>
       
  1015               <connectionPointOut>
       
  1016                 <relPosition x="130" y="15"/>
       
  1017               </connectionPointOut>
       
  1018               <expression>'",toggle='</expression>
       
  1019             </inVariable>
       
  1020             <block localId="24" width="140" height="40" typeName="GetBoolString" instanceName="GetButtonToggle">
       
  1021               <position x="289" y="412"/>
   800               <inputVariables>
  1022               <inputVariables>
   801                 <variable formalParameter="VALUE">
  1023                 <variable formalParameter="VALUE">
   802                   <connectionPointIn>
  1024                   <connectionPointIn>
   803                     <relPosition x="0" y="30"/>
  1025                     <relPosition x="0" y="30"/>
   804                     <connection refLocalId="13">
  1026                     <connection refLocalId="27">
   805                       <position x="229" y="410"/>
  1027                       <position x="289" y="442"/>
   806                       <position x="162" y="410"/>
  1028                       <position x="220" y="442"/>
   807                     </connection>
  1029                     </connection>
   808                   </connectionPointIn>
  1030                   </connectionPointIn>
   809                 </variable>
  1031                 </variable>
   810               </inputVariables>
  1032               </inputVariables>
   811               <inOutVariables/>
  1033               <inOutVariables/>
   815                     <relPosition x="140" y="30"/>
  1037                     <relPosition x="140" y="30"/>
   816                   </connectionPointOut>
  1038                   </connectionPointOut>
   817                 </variable>
  1039                 </variable>
   818               </outputVariables>
  1040               </outputVariables>
   819             </block>
  1041             </block>
       
  1042             <inVariable localId="27" height="30" width="90">
       
  1043               <position x="130" y="427"/>
       
  1044               <connectionPointOut>
       
  1045                 <relPosition x="90" y="15"/>
       
  1046               </connectionPointOut>
       
  1047               <expression>toggle</expression>
       
  1048             </inVariable>
   820           </FBD>
  1049           </FBD>
   821         </body>
  1050         </body>
   822       </pou>
  1051       </pou>
   823       <pou name="Button_led" pouType="functionBlock">
  1052       <pou name="Led" pouType="functionBlock">
   824         <interface>
  1053         <interface>
       
  1054           <localVars>
       
  1055             <variable name="ID">
       
  1056               <type>
       
  1057                 <string/>
       
  1058               </type>
       
  1059             </variable>
       
  1060           </localVars>
   825           <inputVars>
  1061           <inputVars>
   826             <variable name="back_id">
  1062             <variable name="back_id">
   827               <type>
  1063               <type>
   828                 <string/>
  1064                 <string/>
   829               </type>
  1065               </type>
   831             <variable name="sele_id">
  1067             <variable name="sele_id">
   832               <type>
  1068               <type>
   833                 <string/>
  1069                 <string/>
   834               </type>
  1070               </type>
   835             </variable>
  1071             </variable>
   836           </inputVars>
  1072             <variable name="state_in">
   837           <inputVars>
       
   838             <variable name="state">
       
   839               <type>
  1073               <type>
   840                 <BOOL/>
  1074                 <BOOL/>
   841               </type>
  1075               </type>
   842             </variable>
  1076             </variable>
   843           </inputVars>
  1077           </inputVars>
   844           <localVars>
  1078           <localVars>
   845             <variable name="SVGUI_Command_LED">
  1079             <variable name="init_Command">
       
  1080               <type>
       
  1081                 <derived name="python_eval"/>
       
  1082               </type>
       
  1083             </variable>
       
  1084             <variable name="setstate_Command">
   846               <type>
  1085               <type>
   847                 <derived name="python_poll"/>
  1086                 <derived name="python_poll"/>
   848               </type>
  1087               </type>
   849             </variable>
  1088             </variable>
   850             <variable name="GetLEDState">
  1089             <variable name="GetLedState">
   851               <type>
  1090               <type>
   852                 <derived name="GetBoolString"/>
  1091                 <derived name="GetBoolString"/>
   853               </type>
  1092               </type>
   854             </variable>
  1093             </variable>
   855           </localVars>
  1094           </localVars>
   856         </interface>
  1095         </interface>
   857         <body>
  1096         <body>
   858           <FBD>
  1097           <FBD>
   859             <inVariable localId="1" height="30" width="244">
  1098             <block localId="1" width="125" height="140" typeName="python_eval" instanceName="init_Command">
   860               <position x="51" y="110"/>
  1099               <position x="810" y="30"/>
   861               <connectionPointOut>
  1100               <inputVariables>
   862                 <relPosition x="244" y="15"/>
  1101                 <variable formalParameter="TRIG">
   863               </connectionPointOut>
  1102                   <connectionPointIn>
   864               <expression>'SVGUI("SvguiButton","'</expression>
  1103                     <relPosition x="0" y="50"/>
   865             </inVariable>
  1104                     <connection refLocalId="10">
   866             <inVariable localId="2" height="30" width="140">
  1105                       <position x="810" y="80"/>
   867               <position x="50" y="255"/>
  1106                       <position x="753" y="80"/>
       
  1107                     </connection>
       
  1108                   </connectionPointIn>
       
  1109                 </variable>
       
  1110                 <variable formalParameter="CODE">
       
  1111                   <connectionPointIn>
       
  1112                     <relPosition x="0" y="110"/>
       
  1113                     <connection refLocalId="2" formalParameter="OUT">
       
  1114                       <position x="810" y="140"/>
       
  1115                       <position x="640" y="140"/>
       
  1116                     </connection>
       
  1117                   </connectionPointIn>
       
  1118                 </variable>
       
  1119               </inputVariables>
       
  1120               <inOutVariables/>
       
  1121               <outputVariables>
       
  1122                 <variable formalParameter="ACK">
       
  1123                   <connectionPointOut>
       
  1124                     <relPosition x="125" y="50"/>
       
  1125                   </connectionPointOut>
       
  1126                 </variable>
       
  1127                 <variable formalParameter="RESULT">
       
  1128                   <connectionPointOut>
       
  1129                     <relPosition x="125" y="110"/>
       
  1130                   </connectionPointOut>
       
  1131                 </variable>
       
  1132               </outputVariables>
       
  1133             </block>
       
  1134             <block localId="2" width="150" height="322" typeName="CONCAT">
       
  1135               <position x="490" y="90"/>
       
  1136               <inputVariables>
       
  1137                 <variable formalParameter="IN1">
       
  1138                   <connectionPointIn>
       
  1139                     <relPosition x="0" y="50"/>
       
  1140                     <connection refLocalId="3">
       
  1141                       <position x="490" y="140"/>
       
  1142                       <position x="415" y="140"/>
       
  1143                     </connection>
       
  1144                   </connectionPointIn>
       
  1145                 </variable>
       
  1146                 <variable formalParameter="IN2">
       
  1147                   <connectionPointIn>
       
  1148                     <relPosition x="0" y="110"/>
       
  1149                     <connection refLocalId="11">
       
  1150                       <position x="490" y="200"/>
       
  1151                       <position x="415" y="200"/>
       
  1152                     </connection>
       
  1153                   </connectionPointIn>
       
  1154                 </variable>
       
  1155                 <variable formalParameter="IN3">
       
  1156                   <connectionPointIn>
       
  1157                     <relPosition x="0" y="170"/>
       
  1158                     <connection refLocalId="5">
       
  1159                       <position x="490" y="260"/>
       
  1160                       <position x="415" y="260"/>
       
  1161                     </connection>
       
  1162                   </connectionPointIn>
       
  1163                 </variable>
       
  1164                 <variable formalParameter="IN4">
       
  1165                   <connectionPointIn>
       
  1166                     <relPosition x="0" y="230"/>
       
  1167                     <connection refLocalId="12">
       
  1168                       <position x="490" y="320"/>
       
  1169                       <position x="414" y="320"/>
       
  1170                     </connection>
       
  1171                   </connectionPointIn>
       
  1172                 </variable>
       
  1173                 <variable formalParameter="IN5">
       
  1174                   <connectionPointIn>
       
  1175                     <relPosition x="0" y="290"/>
       
  1176                     <connection refLocalId="9">
       
  1177                       <position x="490" y="380"/>
       
  1178                       <position x="414" y="380"/>
       
  1179                     </connection>
       
  1180                   </connectionPointIn>
       
  1181                 </variable>
       
  1182               </inputVariables>
       
  1183               <inOutVariables/>
       
  1184               <outputVariables>
       
  1185                 <variable formalParameter="OUT">
       
  1186                   <connectionPointOut>
       
  1187                     <relPosition x="150" y="50"/>
       
  1188                   </connectionPointOut>
       
  1189                 </variable>
       
  1190               </outputVariables>
       
  1191             </block>
       
  1192             <inVariable localId="3" height="30" width="400">
       
  1193               <position x="15" y="125"/>
       
  1194               <connectionPointOut>
       
  1195                 <relPosition x="400" y="15"/>
       
  1196               </connectionPointOut>
       
  1197               <expression>'createSVGUIControl("button",back_id="'</expression>
       
  1198             </inVariable>
       
  1199             <block localId="4" width="125" height="140" typeName="python_poll" instanceName="setstate_Command">
       
  1200               <position x="782" y="536"/>
       
  1201               <inputVariables>
       
  1202                 <variable formalParameter="TRIG">
       
  1203                   <connectionPointIn>
       
  1204                     <relPosition x="0" y="50"/>
       
  1205                     <connection refLocalId="6">
       
  1206                       <position x="782" y="586"/>
       
  1207                       <position x="653" y="586"/>
       
  1208                       <position x="653" y="552"/>
       
  1209                       <position x="602" y="552"/>
       
  1210                     </connection>
       
  1211                   </connectionPointIn>
       
  1212                 </variable>
       
  1213                 <variable formalParameter="CODE">
       
  1214                   <connectionPointIn>
       
  1215                     <relPosition x="0" y="110"/>
       
  1216                     <connection refLocalId="7" formalParameter="OUT">
       
  1217                       <position x="782" y="646"/>
       
  1218                       <position x="615" y="646"/>
       
  1219                     </connection>
       
  1220                   </connectionPointIn>
       
  1221                 </variable>
       
  1222               </inputVariables>
       
  1223               <inOutVariables/>
       
  1224               <outputVariables>
       
  1225                 <variable formalParameter="ACK">
       
  1226                   <connectionPointOut>
       
  1227                     <relPosition x="125" y="50"/>
       
  1228                   </connectionPointOut>
       
  1229                 </variable>
       
  1230                 <variable formalParameter="RESULT">
       
  1231                   <connectionPointOut>
       
  1232                     <relPosition x="125" y="110"/>
       
  1233                   </connectionPointOut>
       
  1234                 </variable>
       
  1235               </outputVariables>
       
  1236             </block>
       
  1237             <inVariable localId="5" height="30" width="140">
       
  1238               <position x="275" y="245"/>
   868               <connectionPointOut>
  1239               <connectionPointOut>
   869                 <relPosition x="140" y="15"/>
  1240                 <relPosition x="140" y="15"/>
   870               </connectionPointOut>
  1241               </connectionPointOut>
   871               <expression>'",sele_id="'</expression>
  1242               <expression>'",sele_id="'</expression>
   872             </inVariable>
  1243             </inVariable>
   873             <inVariable localId="3" height="35" width="85">
  1244             <continuation name="CREATED" localId="6" height="30" width="110">
   874               <position x="50" y="185"/>
  1245               <position x="492" y="537"/>
       
  1246               <connectionPointOut>
       
  1247                 <relPosition x="110" y="15"/>
       
  1248               </connectionPointOut>
       
  1249             </continuation>
       
  1250             <block localId="7" width="150" height="319" typeName="CONCAT">
       
  1251               <position x="465" y="597"/>
       
  1252               <inputVariables>
       
  1253                 <variable formalParameter="IN1">
       
  1254                   <connectionPointIn>
       
  1255                     <relPosition x="0" y="49"/>
       
  1256                     <connection refLocalId="14">
       
  1257                       <position x="465" y="646"/>
       
  1258                       <position x="351" y="646"/>
       
  1259                     </connection>
       
  1260                   </connectionPointIn>
       
  1261                 </variable>
       
  1262                 <variable formalParameter="IN2">
       
  1263                   <connectionPointIn>
       
  1264                     <relPosition x="0" y="108"/>
       
  1265                     <connection refLocalId="8">
       
  1266                       <position x="465" y="705"/>
       
  1267                       <position x="407" y="705"/>
       
  1268                       <position x="407" y="699"/>
       
  1269                       <position x="351" y="699"/>
       
  1270                     </connection>
       
  1271                   </connectionPointIn>
       
  1272                 </variable>
       
  1273                 <variable formalParameter="IN3">
       
  1274                   <connectionPointIn>
       
  1275                     <relPosition x="0" y="167"/>
       
  1276                     <connection refLocalId="15">
       
  1277                       <position x="465" y="764"/>
       
  1278                       <position x="407" y="764"/>
       
  1279                       <position x="407" y="751"/>
       
  1280                       <position x="351" y="751"/>
       
  1281                     </connection>
       
  1282                   </connectionPointIn>
       
  1283                 </variable>
       
  1284                 <variable formalParameter="IN4">
       
  1285                   <connectionPointIn>
       
  1286                     <relPosition x="0" y="226"/>
       
  1287                     <connection refLocalId="28" formalParameter="CODE">
       
  1288                       <position x="465" y="823"/>
       
  1289                       <position x="351" y="823"/>
       
  1290                     </connection>
       
  1291                   </connectionPointIn>
       
  1292                 </variable>
       
  1293                 <variable formalParameter="IN5">
       
  1294                   <connectionPointIn>
       
  1295                     <relPosition x="0" y="285"/>
       
  1296                     <connection refLocalId="16">
       
  1297                       <position x="465" y="882"/>
       
  1298                       <position x="407" y="882"/>
       
  1299                       <position x="407" y="883"/>
       
  1300                       <position x="351" y="883"/>
       
  1301                     </connection>
       
  1302                   </connectionPointIn>
       
  1303                 </variable>
       
  1304               </inputVariables>
       
  1305               <inOutVariables/>
       
  1306               <outputVariables>
       
  1307                 <variable formalParameter="OUT">
       
  1308                   <connectionPointOut>
       
  1309                     <relPosition x="150" y="49"/>
       
  1310                   </connectionPointOut>
       
  1311                 </variable>
       
  1312               </outputVariables>
       
  1313             </block>
       
  1314             <inVariable localId="8" height="30" width="53">
       
  1315               <position x="298" y="684"/>
       
  1316               <connectionPointOut>
       
  1317                 <relPosition x="53" y="15"/>
       
  1318               </connectionPointOut>
       
  1319               <expression>ID</expression>
       
  1320             </inVariable>
       
  1321             <inVariable localId="9" height="30" width="300">
       
  1322               <position x="124" y="365"/>
       
  1323               <connectionPointOut>
       
  1324                 <relPosition x="300" y="15"/>
       
  1325               </connectionPointOut>
       
  1326               <expression>'",toggle=True,active=False)'</expression>
       
  1327             </inVariable>
       
  1328             <inVariable localId="10" height="30" width="70">
       
  1329               <position x="683" y="65"/>
       
  1330               <connectionPointOut>
       
  1331                 <relPosition x="70" y="15"/>
       
  1332               </connectionPointOut>
       
  1333               <expression>BOOL#1</expression>
       
  1334             </inVariable>
       
  1335             <inVariable localId="11" height="35" width="85">
       
  1336               <position x="330" y="185"/>
   875               <connectionPointOut>
  1337               <connectionPointOut>
   876                 <relPosition x="85" y="15"/>
  1338                 <relPosition x="85" y="15"/>
   877               </connectionPointOut>
  1339               </connectionPointOut>
   878               <expression>back_id</expression>
  1340               <expression>back_id</expression>
   879             </inVariable>
  1341             </inVariable>
   880             <inVariable localId="4" height="35" width="85">
  1342             <inVariable localId="12" height="35" width="85">
   881               <position x="50" y="325"/>
  1343               <position x="329" y="305"/>
   882               <connectionPointOut>
  1344               <connectionPointOut>
   883                 <relPosition x="85" y="15"/>
  1345                 <relPosition x="85" y="15"/>
   884               </connectionPointOut>
  1346               </connectionPointOut>
   885               <expression>sele_id</expression>
  1347               <expression>sele_id</expression>
   886             </inVariable>
  1348             </inVariable>
   887             <inVariable localId="5" height="30" width="165">
  1349             <inVariable localId="14" height="30" width="120">
   888               <position x="50" y="545"/>
  1350               <position x="231" y="631"/>
   889               <connectionPointOut>
       
   890                 <relPosition x="165" y="15"/>
       
   891               </connectionPointOut>
       
   892               <expression>',toggle=True)'</expression>
       
   893             </inVariable>
       
   894             <inVariable localId="6" height="30" width="120">
       
   895               <position x="50" y="400"/>
       
   896               <connectionPointOut>
  1351               <connectionPointOut>
   897                 <relPosition x="120" y="15"/>
  1352                 <relPosition x="120" y="15"/>
   898               </connectionPointOut>
  1353               </connectionPointOut>
   899               <expression>'", state='</expression>
  1354               <expression>'setAttr('</expression>
   900             </inVariable>
  1355             </inVariable>
   901             <inVariable localId="9" height="35" width="65">
  1356             <inVariable localId="15" height="30" width="122">
   902               <position x="52" y="470"/>
  1357               <position x="229" y="736"/>
   903               <connectionPointOut>
  1358               <connectionPointOut>
   904                 <relPosition x="65" y="15"/>
  1359                 <relPosition x="122" y="15"/>
   905               </connectionPointOut>
  1360               </connectionPointOut>
   906               <expression>state</expression>
  1361               <expression>',"state",'</expression>
   907             </inVariable>
  1362             </inVariable>
   908             <block localId="10" width="80" height="530" typeName="CONCAT">
  1363             <inVariable localId="16" height="30" width="41">
   909               <position x="503" y="70"/>
  1364               <position x="310" y="868"/>
   910               <inputVariables>
  1365               <connectionPointOut>
   911                 <variable formalParameter="IN1">
  1366                 <relPosition x="41" y="15"/>
   912                   <connectionPointIn>
  1367               </connectionPointOut>
   913                     <relPosition x="0" y="55"/>
  1368               <expression>')'</expression>
   914                     <connection refLocalId="1">
  1369             </inVariable>
   915                       <position x="503" y="125"/>
  1370             <block localId="28" width="140" height="40" typeName="GetBoolString" instanceName="GetLedState">
   916                       <position x="295" y="125"/>
  1371               <position x="211" y="793"/>
   917                     </connection>
  1372               <inputVariables>
   918                   </connectionPointIn>
  1373                 <variable formalParameter="VALUE">
   919                 </variable>
       
   920                 <variable formalParameter="IN2">
       
   921                   <connectionPointIn>
       
   922                     <relPosition x="0" y="130"/>
       
   923                     <connection refLocalId="3">
       
   924                       <position x="503" y="200"/>
       
   925                       <position x="135" y="200"/>
       
   926                     </connection>
       
   927                   </connectionPointIn>
       
   928                 </variable>
       
   929                 <variable formalParameter="IN3">
       
   930                   <connectionPointIn>
       
   931                     <relPosition x="0" y="200"/>
       
   932                     <connection refLocalId="2">
       
   933                       <position x="503" y="270"/>
       
   934                       <position x="190" y="270"/>
       
   935                     </connection>
       
   936                   </connectionPointIn>
       
   937                 </variable>
       
   938                 <variable formalParameter="IN4">
       
   939                   <connectionPointIn>
       
   940                     <relPosition x="0" y="270"/>
       
   941                     <connection refLocalId="4">
       
   942                       <position x="503" y="340"/>
       
   943                       <position x="135" y="340"/>
       
   944                     </connection>
       
   945                   </connectionPointIn>
       
   946                 </variable>
       
   947                 <variable formalParameter="IN5">
       
   948                   <connectionPointIn>
       
   949                     <relPosition x="0" y="345"/>
       
   950                     <connection refLocalId="6">
       
   951                       <position x="503" y="415"/>
       
   952                       <position x="170" y="415"/>
       
   953                     </connection>
       
   954                   </connectionPointIn>
       
   955                 </variable>
       
   956                 <variable formalParameter="IN6">
       
   957                   <connectionPointIn>
       
   958                     <relPosition x="0" y="415"/>
       
   959                     <connection refLocalId="28" formalParameter="CODE">
       
   960                       <position x="503" y="485"/>
       
   961                       <position x="368" y="485"/>
       
   962                     </connection>
       
   963                   </connectionPointIn>
       
   964                 </variable>
       
   965                 <variable formalParameter="IN7">
       
   966                   <connectionPointIn>
       
   967                     <relPosition x="0" y="490"/>
       
   968                     <connection refLocalId="5">
       
   969                       <position x="503" y="560"/>
       
   970                       <position x="215" y="560"/>
       
   971                     </connection>
       
   972                   </connectionPointIn>
       
   973                 </variable>
       
   974               </inputVariables>
       
   975               <inOutVariables/>
       
   976               <outputVariables>
       
   977                 <variable formalParameter="OUT">
       
   978                   <connectionPointOut>
       
   979                     <relPosition x="80" y="55"/>
       
   980                   </connectionPointOut>
       
   981                 </variable>
       
   982               </outputVariables>
       
   983             </block>
       
   984             <block localId="11" width="125" height="65" typeName="python_poll" instanceName="SVGUI_Command_LED">
       
   985               <position x="753" y="135"/>
       
   986               <inputVariables>
       
   987                 <variable formalParameter="TRIG">
       
   988                   <connectionPointIn>
  1374                   <connectionPointIn>
   989                     <relPosition x="0" y="30"/>
  1375                     <relPosition x="0" y="30"/>
   990                     <connection refLocalId="12">
  1376                     <connection refLocalId="32">
   991                       <position x="753" y="165"/>
  1377                       <position x="211" y="823"/>
   992                       <position x="715" y="165"/>
  1378                       <position x="153" y="823"/>
   993                       <position x="715" y="90"/>
  1379                     </connection>
   994                       <position x="698" y="90"/>
  1380                   </connectionPointIn>
   995                     </connection>
  1381                 </variable>
   996                   </connectionPointIn>
  1382               </inputVariables>
   997                 </variable>
  1383               <inOutVariables/>
       
  1384               <outputVariables>
   998                 <variable formalParameter="CODE">
  1385                 <variable formalParameter="CODE">
   999                   <connectionPointIn>
       
  1000                     <relPosition x="0" y="55"/>
       
  1001                     <connection refLocalId="10" formalParameter="OUT">
       
  1002                       <position x="753" y="190"/>
       
  1003                       <position x="658" y="190"/>
       
  1004                       <position x="658" y="125"/>
       
  1005                       <position x="583" y="125"/>
       
  1006                     </connection>
       
  1007                   </connectionPointIn>
       
  1008                 </variable>
       
  1009               </inputVariables>
       
  1010               <inOutVariables/>
       
  1011               <outputVariables>
       
  1012                 <variable formalParameter="ACK">
       
  1013                   <connectionPointOut>
       
  1014                     <relPosition x="125" y="30"/>
       
  1015                   </connectionPointOut>
       
  1016                 </variable>
       
  1017                 <variable formalParameter="RESULT">
       
  1018                   <connectionPointOut>
       
  1019                     <relPosition x="125" y="55"/>
       
  1020                   </connectionPointOut>
       
  1021                 </variable>
       
  1022               </outputVariables>
       
  1023             </block>
       
  1024             <inVariable localId="12" height="30" width="70">
       
  1025               <position x="628" y="75"/>
       
  1026               <connectionPointOut>
       
  1027                 <relPosition x="70" y="15"/>
       
  1028               </connectionPointOut>
       
  1029               <expression>BOOL#1</expression>
       
  1030             </inVariable>
       
  1031             <block localId="28" width="140" height="40" typeName="GetBoolString" instanceName="GetLEDState">
       
  1032               <position x="228" y="455"/>
       
  1033               <inputVariables>
       
  1034                 <variable formalParameter="VALUE">
       
  1035                   <connectionPointIn>
       
  1036                     <relPosition x="0" y="30"/>
       
  1037                     <connection refLocalId="9">
       
  1038                       <position x="228" y="485"/>
       
  1039                       <position x="117" y="485"/>
       
  1040                     </connection>
       
  1041                   </connectionPointIn>
       
  1042                 </variable>
       
  1043               </inputVariables>
       
  1044               <inOutVariables/>
       
  1045               <outputVariables>
       
  1046                 <variable formalParameter="CODE">
       
  1047                   <connectionPointOut>
  1386                   <connectionPointOut>
  1048                     <relPosition x="140" y="30"/>
  1387                     <relPosition x="140" y="30"/>
  1049                   </connectionPointOut>
  1388                   </connectionPointOut>
  1050                 </variable>
  1389                 </variable>
  1051               </outputVariables>
  1390               </outputVariables>
  1052             </block>
  1391             </block>
       
  1392             <outVariable localId="29" height="30" width="53">
       
  1393               <position x="987" y="125"/>
       
  1394               <connectionPointIn>
       
  1395                 <relPosition x="0" y="15"/>
       
  1396                 <connection refLocalId="1" formalParameter="RESULT">
       
  1397                   <position x="987" y="140"/>
       
  1398                   <position x="935" y="140"/>
       
  1399                 </connection>
       
  1400               </connectionPointIn>
       
  1401               <expression>ID</expression>
       
  1402             </outVariable>
       
  1403             <connector name="CREATED" localId="30" height="30" width="110">
       
  1404               <position x="986" y="65"/>
       
  1405               <connectionPointIn>
       
  1406                 <relPosition x="0" y="15"/>
       
  1407                 <connection refLocalId="1" formalParameter="ACK">
       
  1408                   <position x="986" y="80"/>
       
  1409                   <position x="935" y="80"/>
       
  1410                 </connection>
       
  1411               </connectionPointIn>
       
  1412             </connector>
       
  1413             <inVariable localId="32" height="30" width="90">
       
  1414               <position x="63" y="808"/>
       
  1415               <connectionPointOut>
       
  1416                 <relPosition x="90" y="15"/>
       
  1417               </connectionPointOut>
       
  1418               <expression>state_in</expression>
       
  1419             </inVariable>
  1053           </FBD>
  1420           </FBD>
  1054         </body>
  1421         </body>
  1055       </pou>
  1422       </pou>
  1056     </pous>
  1423     </pous>
  1057   </types>
  1424   </types>