tests/svghmi/plc.xml
branchsvghmi
changeset 2759 7345bd8a98eb
parent 2758 5f79b194fa63
child 2771 361366b891ca
equal deleted inserted replaced
2758:5f79b194fa63 2759:7345bd8a98eb
     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-14T10:55:12">
     4   <contentHeader name="Unnamed" modificationDateTime="2019-08-14T11:10:01">
     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>
    15     </coordinateInfo>
    15     </coordinateInfo>
    16   </contentHeader>
    16   </contentHeader>
    17   <types>
    17   <types>
    18     <dataTypes/>
    18     <dataTypes/>
    19     <pous>
    19     <pous>
    20       <pou name="program0" pouType="program">
    20       <pou name="MainStuff" pouType="program">
    21         <interface>
    21         <interface>
    22           <localVars>
    22           <localVars>
    23             <variable name="LocalVar0">
    23             <variable name="TargetPressure">
    24               <type>
    24               <type>
    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">
    65                     <relPosition x="63" y="30"/>
    65                     <relPosition x="63" y="30"/>
    66                   </connectionPointOut>
    66                   </connectionPointOut>
    67                 </variable>
    67                 </variable>
    68               </outputVariables>
    68               </outputVariables>
    69             </block>
    69             </block>
    70             <inOutVariable localId="1" executionOrderId="0" height="26" width="82" negatedOut="false" negatedIn="false">
    70             <inOutVariable localId="1" executionOrderId="0" height="26" width="122" negatedOut="false" negatedIn="false">
    71               <position x="120" y="190"/>
    71               <position x="120" y="190"/>
    72               <connectionPointIn>
    72               <connectionPointIn>
    73                 <relPosition x="0" y="10"/>
    73                 <relPosition x="0" y="15"/>
    74                 <connection refLocalId="2" formalParameter="OUT">
    74                 <connection refLocalId="2" formalParameter="OUT">
    75                   <position x="120" y="200"/>
    75                   <position x="120" y="205"/>
    76                   <position x="100" y="200"/>
    76                   <position x="100" y="205"/>
    77                   <position x="100" y="140"/>
    77                   <position x="100" y="140"/>
    78                   <position x="328" y="140"/>
    78                   <position x="328" y="140"/>
    79                   <position x="328" y="200"/>
    79                   <position x="328" y="205"/>
    80                   <position x="318" y="200"/>
    80                   <position x="318" y="205"/>
    81                 </connection>
    81                 </connection>
    82               </connectionPointIn>
    82               </connectionPointIn>
    83               <connectionPointOut>
    83               <connectionPointOut>
    84                 <relPosition x="82" y="10"/>
    84                 <relPosition x="122" y="15"/>
    85               </connectionPointOut>
    85               </connectionPointOut>
    86               <expression>LocalVar0</expression>
    86               <expression>TargetPressure</expression>
    87             </inOutVariable>
    87             </inOutVariable>
    88             <inVariable localId="3" executionOrderId="0" height="25" width="60" negated="false">
    88             <inVariable localId="3" executionOrderId="0" height="25" width="60" negated="false">
    89               <position x="130" y="225"/>
    89               <position x="130" y="225"/>
    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="PumpControl" instanceName="Pump0" executionOrderId="0" height="20" width="98">
    95             <block localId="4" typeName="PumpControl" instanceName="Pump0" executionOrderId="0" height="40" width="127">
    96               <position x="595" y="50"/>
    96               <position x="595" y="50"/>
    97               <inputVariables/>
    97               <inputVariables>
       
    98                 <variable formalParameter="TargetPressure">
       
    99                   <connectionPointIn>
       
   100                     <relPosition x="0" y="30"/>
       
   101                     <connection refLocalId="5">
       
   102                       <position x="595" y="80"/>
       
   103                       <position x="570" y="80"/>
       
   104                     </connection>
       
   105                   </connectionPointIn>
       
   106                 </variable>
       
   107               </inputVariables>
    98               <inOutVariables/>
   108               <inOutVariables/>
    99               <outputVariables/>
   109               <outputVariables/>
   100             </block>
   110             </block>
       
   111             <inVariable localId="5" executionOrderId="0" height="30" width="125" negated="false">
       
   112               <position x="445" y="65"/>
       
   113               <connectionPointOut>
       
   114                 <relPosition x="125" y="15"/>
       
   115               </connectionPointOut>
       
   116               <expression>TargetPressure</expression>
       
   117             </inVariable>
   101           </FBD>
   118           </FBD>
   102         </body>
   119         </body>
   103       </pou>
   120       </pou>
   104       <pou name="PumpControl" pouType="functionBlock">
   121       <pou name="PumpControl" pouType="functionBlock">
   105         <interface>
   122         <interface>
   112             <variable name="Pressure">
   129             <variable name="Pressure">
   113               <type>
   130               <type>
   114                 <derived name="HMI_INT"/>
   131                 <derived name="HMI_INT"/>
   115               </type>
   132               </type>
   116             </variable>
   133             </variable>
       
   134           </localVars>
       
   135           <inputVars>
       
   136             <variable name="TargetPressure">
       
   137               <type>
       
   138                 <INT/>
       
   139               </type>
       
   140             </variable>
       
   141           </inputVars>
       
   142           <localVars>
   117             <variable name="AddOut">
   143             <variable name="AddOut">
   118               <type>
   144               <type>
   119                 <derived name="HMI_INT"/>
   145                 <derived name="HMI_INT"/>
   120               </type>
   146               </type>
   121             </variable>
   147             </variable>
   204   <instances>
   230   <instances>
   205     <configurations>
   231     <configurations>
   206       <configuration name="config">
   232       <configuration name="config">
   207         <resource name="resource1">
   233         <resource name="resource1">
   208           <task name="task0" priority="0" interval="T#20ms">
   234           <task name="task0" priority="0" interval="T#20ms">
   209             <pouInstance name="instance0" typeName="program0"/>
   235             <pouInstance name="instance0" typeName="MainStuff"/>
   210           </task>
   236           </task>
   211           <globalVars>
       
   212             <variable name="LocalVar0">
       
   213               <type>
       
   214                 <derived name="HMI_LABEL"/>
       
   215               </type>
       
   216             </variable>
       
   217           </globalVars>
       
   218         </resource>
   237         </resource>
   219       </configuration>
   238       </configuration>
   220     </configurations>
   239     </configurations>
   221   </instances>
   240   </instances>
   222 </project>
   241 </project>