examples/example.xml
changeset 56 7187e1c00975
parent 47 2b2f8d88e6d3
child 58 39cd981ff242
equal deleted inserted replaced
55:e24d2f917c7e 56:7187e1c00975
   860 IF (Gate = TRUE) AND
   860 IF (Gate = TRUE) AND
   861     (Pump = TRUE) AND (Temp > 200.0) THEN
   861     (Pump = TRUE) AND (Temp > 200.0) THEN
   862   Control_State := TRUE;
   862   Control_State := TRUE;
   863 ELSE
   863 ELSE
   864   Control_State := FALSE;
   864   Control_State := FALSE;
       
   865 
   865   PumpSpeed := 10.0;
   866   PumpSpeed := 10.0;
   866 END_IF;
   867 END_IF;
   867           </ST>
   868           </ST>
   868         </body>
   869         </body>
   869       </pou>
   870       </pou>
   871   </types>
   872   </types>
   872   <instances>
   873   <instances>
   873     <configurations>
   874     <configurations>
   874       <configuration name="ConfigTest">
   875       <configuration name="ConfigTest">
   875         <resource name="ResourceTest">
   876         <resource name="ResourceTest">
   876           <task interval="01:00:00.100000" name="Toto" priority="6">
   877           <task interval="00:00:00.010000" name="Toto" priority="6">
   877             <pouInstance type="SFCTest" name="Program1"/>
   878             <pouInstance type="SFCTest" name="Program1"/>
   878           </task>
   879           </task>
   879           <globalVars>
   880           <globalVars>
   880             <variable name="Titi" address="M30">
   881             <variable name="Titi" address="%MW30">
   881               <type>
   882               <type>
   882                 <INT/>
   883                 <INT/>
   883               </type>
   884               </type>
   884             </variable>
   885             </variable>
   885           </globalVars>
   886           </globalVars>
   886         </resource>
   887         </resource>
   887         <globalVars>
   888         <globalVars>
   888           <variable name="Toto" address="M10">
   889           <variable name="Toto" address="%MW10">
   889             <type>
   890             <type>
   890               <INT/>
   891               <INT/>
   891             </type>
   892             </type>
   892           </variable>
   893           </variable>
   893           <variable name="Tutu" address="M20">
   894           <variable name="Tutu" address="%MX20">
   894             <type>
   895             <type>
   895               <BOOL/>
   896               <BOOL/>
   896             </type>
   897             </type>
   897           </variable>
   898           </variable>
   898         </globalVars>
   899         </globalVars>
   899       </configuration>
   900       </configuration>
   900       <configuration name="ConfigTest2"/>
       
   901     </configurations>
   901     </configurations>
   902   </instances>
   902   </instances>
   903 </project>
   903 </project>