tests/svghmi/plc.xml
branchsvghmi
changeset 2758 5f79b194fa63
parent 2757 c901baa36bb3
child 2759 7345bd8a98eb
equal deleted inserted replaced
2757:c901baa36bb3 2758:5f79b194fa63
     1 <?xml version='1.0' encoding='utf-8'?>
     1 <?xml version='1.0' encoding='utf-8'?>
     2 <project xmlns:ns1="http://www.plcopen.org/xml/tc6_0201" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.plcopen.org/xml/tc6_0201">
     2 <project xmlns:ns1="http://www.plcopen.org/xml/tc6_0201" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.plcopen.org/xml/tc6_0201">
     3   <fileHeader companyName="Unknown" productName="Unnamed" productVersion="1" creationDateTime="2019-08-06T14:23:42"/>
     3   <fileHeader companyName="Unknown" productName="Unnamed" productVersion="1" creationDateTime="2019-08-06T14:23:42"/>
     4   <contentHeader name="Unnamed" modificationDateTime="2019-08-13T10:34:09">
     4   <contentHeader name="Unnamed" modificationDateTime="2019-08-14T10:55:12">
     5     <coordinateInfo>
     5     <coordinateInfo>
     6       <fbd>
     6       <fbd>
     7         <scaling x="5" y="5"/>
     7         <scaling x="5" y="5"/>
     8       </fbd>
     8       </fbd>
     9       <ld>
     9       <ld>
    25                 <derived name="HMI_INT"/>
    25                 <derived name="HMI_INT"/>
    26               </type>
    26               </type>
    27             </variable>
    27             </variable>
    28             <variable name="Pump0">
    28             <variable name="Pump0">
    29               <type>
    29               <type>
    30                 <derived name="Pump"/>
    30                 <derived name="PumpControl"/>
    31               </type>
    31               </type>
    32             </variable>
    32             </variable>
    33           </localVars>
    33           </localVars>
    34         </interface>
    34         </interface>
    35         <body>
    35         <body>
    90               <connectionPointOut>
    90               <connectionPointOut>
    91                 <relPosition x="60" y="10"/>
    91                 <relPosition x="60" y="10"/>
    92               </connectionPointOut>
    92               </connectionPointOut>
    93               <expression>1</expression>
    93               <expression>1</expression>
    94             </inVariable>
    94             </inVariable>
    95             <block localId="4" typeName="Pump" instanceName="Pump0" executionOrderId="0" height="20" width="45">
    95             <block localId="4" typeName="PumpControl" instanceName="Pump0" executionOrderId="0" height="20" width="98">
    96               <position x="595" y="50"/>
    96               <position x="595" y="50"/>
    97               <inputVariables/>
    97               <inputVariables/>
    98               <inOutVariables/>
    98               <inOutVariables/>
    99               <outputVariables/>
    99               <outputVariables/>
   100             </block>
   100             </block>
   101           </FBD>
   101           </FBD>
   102         </body>
   102         </body>
   103       </pou>
   103       </pou>
   104       <pou name="Pump" pouType="functionBlock">
   104       <pou name="PumpControl" pouType="functionBlock">
   105         <interface>
   105         <interface>
   106           <localVars>
   106           <localVars>
   107             <variable name="hmi">
   107             <variable name="Pump">
   108               <type>
   108               <type>
   109                 <derived name="HMI_LABEL"/>
   109                 <derived name="HMI_LABEL"/>
   110               </type>
   110               </type>
   111             </variable>
   111             </variable>
   112             <variable name="Pressure">
   112             <variable name="Pressure">
       
   113               <type>
       
   114                 <derived name="HMI_INT"/>
       
   115               </type>
       
   116             </variable>
       
   117             <variable name="AddOut">
   113               <type>
   118               <type>
   114                 <derived name="HMI_INT"/>
   119                 <derived name="HMI_INT"/>
   115               </type>
   120               </type>
   116             </variable>
   121             </variable>
   117           </localVars>
   122           </localVars>
   176               <connectionPointOut>
   181               <connectionPointOut>
   177                 <relPosition x="30" y="10"/>
   182                 <relPosition x="30" y="10"/>
   178               </connectionPointOut>
   183               </connectionPointOut>
   179               <expression>23</expression>
   184               <expression>23</expression>
   180             </inVariable>
   185             </inVariable>
       
   186             <outVariable localId="4" executionOrderId="0" height="30" width="60" negated="false">
       
   187               <position x="640" y="135"/>
       
   188               <connectionPointIn>
       
   189                 <relPosition x="0" y="15"/>
       
   190                 <connection refLocalId="2" formalParameter="OUT">
       
   191                   <position x="640" y="150"/>
       
   192                   <position x="590" y="150"/>
       
   193                   <position x="590" y="135"/>
       
   194                   <position x="540" y="135"/>
       
   195                 </connection>
       
   196               </connectionPointIn>
       
   197               <expression>AddOut</expression>
       
   198             </outVariable>
   181           </FBD>
   199           </FBD>
   182         </body>
   200         </body>
   183       </pou>
   201       </pou>
   184     </pous>
   202     </pous>
   185   </types>
   203   </types>
   188       <configuration name="config">
   206       <configuration name="config">
   189         <resource name="resource1">
   207         <resource name="resource1">
   190           <task name="task0" priority="0" interval="T#20ms">
   208           <task name="task0" priority="0" interval="T#20ms">
   191             <pouInstance name="instance0" typeName="program0"/>
   209             <pouInstance name="instance0" typeName="program0"/>
   192           </task>
   210           </task>
       
   211           <globalVars>
       
   212             <variable name="LocalVar0">
       
   213               <type>
       
   214                 <derived name="HMI_LABEL"/>
       
   215               </type>
       
   216             </variable>
       
   217           </globalVars>
   193         </resource>
   218         </resource>
   194       </configuration>
   219       </configuration>
   195     </configurations>
   220     </configurations>
   196   </instances>
   221   </instances>
   197 </project>
   222 </project>