NativeLib.xml
changeset 944 52a17be9c4d1
child 969 1950fe687dde
equal deleted inserted replaced
943:da7f80e04a54 944:52a17be9c4d1
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <project xmlns="http://www.plcopen.org/xml/tc6.xsd"
       
     3          xsi:schemaLocation="http://www.plcopen.org/xml/tc6.xsd"
       
     4          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       
     5          xmlns:xhtml="http://www.w3.org/1999/xhtml">
       
     6   <fileHeader companyName="Unknown"
       
     7               productName="Unnamed"
       
     8               productVersion="1"
       
     9               creationDateTime="2013-01-29T14:01:00"/>
       
    10   <contentHeader name="Unnamed"
       
    11                  modificationDateTime="2013-02-26T15:59:13">
       
    12     <coordinateInfo>
       
    13       <fbd>
       
    14         <scaling x="0" y="0"/>
       
    15       </fbd>
       
    16       <ld>
       
    17         <scaling x="0" y="0"/>
       
    18       </ld>
       
    19       <sfc>
       
    20         <scaling x="0" y="0"/>
       
    21       </sfc>
       
    22     </coordinateInfo>
       
    23   </contentHeader>
       
    24   <types>
       
    25     <dataTypes>
       
    26       <dataType name="LOGLEVEL">
       
    27         <baseType>
       
    28           <enum>
       
    29             <values>
       
    30               <value name="CRITICAL"/>
       
    31               <value name="WARNING"/>
       
    32               <value name="INFO"/>
       
    33               <value name="DEBUG"/>
       
    34             </values>
       
    35           </enum>
       
    36         </baseType>
       
    37         <initialValue>
       
    38           <simpleValue value="INFO"/>
       
    39         </initialValue>
       
    40       </dataType>
       
    41     </dataTypes>
       
    42     <pous>
       
    43       <pou name="LOGGER" pouType="functionBlock">
       
    44         <interface>
       
    45           <inputVars>
       
    46             <variable name="TRIG">
       
    47               <type>
       
    48                 <BOOL/>
       
    49               </type>
       
    50             </variable>
       
    51             <variable name="MSG">
       
    52               <type>
       
    53                 <string/>
       
    54               </type>
       
    55             </variable>
       
    56             <variable name="LEVEL">
       
    57               <type>
       
    58                 <derived name="LOGLEVEL"/>
       
    59               </type>
       
    60               <initialValue>
       
    61                 <simpleValue value="INFO"/>
       
    62               </initialValue>
       
    63             </variable>
       
    64           </inputVars>
       
    65           <localVars>
       
    66             <variable name="TRIG0">
       
    67               <type>
       
    68                 <BOOL/>
       
    69               </type>
       
    70             </variable>
       
    71           </localVars>
       
    72         </interface>
       
    73         <body>
       
    74           <ST>
       
    75 <![CDATA[IF TRIG AND NOT TRIG0 THEN
       
    76 {{
       
    77  LogMessage(GetFbVar(LEVEL),GetFbVar(MSG, .body),GetFbVar(MSG, .len));
       
    78 }}
       
    79 END_IF;
       
    80 TRIG0:=TRIG;
       
    81 ]]>
       
    82           </ST>
       
    83         </body>
       
    84       </pou>
       
    85     </pous>
       
    86   </types>
       
    87   <instances>
       
    88     <configurations/>
       
    89   </instances>
       
    90 </project>