tests/python/plc.xml
changeset 918 aa136ef12506
parent 881 68ac754a5a72
child 941 b6e93549de2e
equal deleted inserted replaced
917:401e44bae7c0 918:aa136ef12506
     6   <fileHeader companyName="beremiz"
     6   <fileHeader companyName="beremiz"
     7               productName="Beremiz"
     7               productName="Beremiz"
     8               productVersion="0.0"
     8               productVersion="0.0"
     9               creationDateTime="2008-12-14T16:21:19"/>
     9               creationDateTime="2008-12-14T16:21:19"/>
    10   <contentHeader name="Beremiz Python Support Tests"
    10   <contentHeader name="Beremiz Python Support Tests"
    11                  modificationDateTime="2012-11-15T18:38:58">
    11                  modificationDateTime="2013-01-11T14:08:25">
    12     <coordinateInfo>
    12     <coordinateInfo>
    13       <pageSize x="1024" y="1024"/>
    13       <pageSize x="1024" y="1024"/>
    14       <fbd>
    14       <fbd>
    15         <scaling x="5" y="5"/>
    15         <scaling x="5" y="5"/>
    16       </fbd>
    16       </fbd>
   153             </variable>
   153             </variable>
   154             <variable name="Test_String">
   154             <variable name="Test_String">
   155               <type>
   155               <type>
   156                 <string/>
   156                 <string/>
   157               </type>
   157               </type>
       
   158               <initialValue>
       
   159                 <simpleValue value="test"/>
       
   160               </initialValue>
   158             </variable>
   161             </variable>
   159             <variable name="Test_Bool">
   162             <variable name="Test_Bool">
   160               <type>
   163               <type>
   161                 <BOOL/>
   164                 <BOOL/>
   162               </type>
   165               </type>
  1062 Global_RS();
  1065 Global_RS();
  1063 ]]>
  1066 ]]>
  1064           </ST>
  1067           </ST>
  1065         </body>
  1068         </body>
  1066       </pou>
  1069       </pou>
       
  1070       <pou name="norm" pouType="function">
       
  1071         <interface>
       
  1072           <returnType>
       
  1073             <REAL/>
       
  1074           </returnType>
       
  1075           <inputVars>
       
  1076             <variable name="IN1">
       
  1077               <type>
       
  1078                 <REAL/>
       
  1079               </type>
       
  1080             </variable>
       
  1081             <variable name="IN2">
       
  1082               <type>
       
  1083                 <REAL/>
       
  1084               </type>
       
  1085             </variable>
       
  1086           </inputVars>
       
  1087         </interface>
       
  1088         <body>
       
  1089           <ST>
       
  1090 <![CDATA[NORM := SQRT(IN1 * IN1 + IN2 * IN2);]]>
       
  1091           </ST>
       
  1092         </body>
       
  1093       </pou>
  1067     </pous>
  1094     </pous>
  1068   </types>
  1095   </types>
  1069   <instances>
  1096   <instances>
  1070     <configurations>
  1097     <configurations>
  1071       <configuration name="conf_pytest">
  1098       <configuration name="conf_pytest">
  1072         <resource name="res_pytest">
  1099         <resource name="res_pytest">
  1073           <task name="pytest_task" interval="T#1ms" priority="0"/>
  1100           <task name="pytest_task" interval="T#1ms" priority="0"/>
       
  1101           <globalVars>
       
  1102             <variable name="TOTO">
       
  1103               <type>
       
  1104                 <INT/>
       
  1105               </type>
       
  1106             </variable>
       
  1107           </globalVars>
  1074           <pouInstance name="pytest_instance" typeName="main_pytest"/>
  1108           <pouInstance name="pytest_instance" typeName="main_pytest"/>
  1075         </resource>
  1109         </resource>
  1076         <globalVars>
  1110         <globalVars>
  1077           <variable name="Global_RS">
  1111           <variable name="Global_RS">
  1078             <type>
  1112             <type>