Edouard@944: <?xml version="1.0" encoding="UTF-8"?> Edouard@944: <project xmlns="http://www.plcopen.org/xml/tc6.xsd" Edouard@944: xsi:schemaLocation="http://www.plcopen.org/xml/tc6.xsd" Edouard@944: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Edouard@944: xmlns:xhtml="http://www.w3.org/1999/xhtml"> Edouard@944: <fileHeader companyName="Unknown" Edouard@944: productName="Unnamed" Edouard@944: productVersion="1" Edouard@944: creationDateTime="2013-01-29T14:01:00"/> Edouard@944: <contentHeader name="Unnamed" Edouard@944: modificationDateTime="2013-02-26T15:59:13"> Edouard@944: <coordinateInfo> Edouard@944: <fbd> Edouard@944: <scaling x="0" y="0"/> Edouard@944: </fbd> Edouard@944: <ld> Edouard@944: <scaling x="0" y="0"/> Edouard@944: </ld> Edouard@944: <sfc> Edouard@944: <scaling x="0" y="0"/> Edouard@944: </sfc> Edouard@944: </coordinateInfo> Edouard@944: </contentHeader> Edouard@944: <types> Edouard@944: <dataTypes> Edouard@944: <dataType name="LOGLEVEL"> Edouard@944: <baseType> Edouard@944: <enum> Edouard@944: <values> Edouard@944: <value name="CRITICAL"/> Edouard@944: <value name="WARNING"/> Edouard@944: <value name="INFO"/> Edouard@944: <value name="DEBUG"/> Edouard@944: </values> Edouard@944: </enum> Edouard@944: </baseType> Edouard@944: <initialValue> Edouard@944: <simpleValue value="INFO"/> Edouard@944: </initialValue> Edouard@944: </dataType> Edouard@944: </dataTypes> Edouard@944: <pous> Edouard@944: <pou name="LOGGER" pouType="functionBlock"> Edouard@944: <interface> Edouard@944: <inputVars> Edouard@944: <variable name="TRIG"> Edouard@944: <type> Edouard@944: <BOOL/> Edouard@944: </type> Edouard@944: </variable> Edouard@944: <variable name="MSG"> Edouard@944: <type> Edouard@944: <string/> Edouard@944: </type> Edouard@944: </variable> Edouard@944: <variable name="LEVEL"> Edouard@944: <type> Edouard@944: <derived name="LOGLEVEL"/> Edouard@944: </type> Edouard@944: <initialValue> Edouard@944: <simpleValue value="INFO"/> Edouard@944: </initialValue> Edouard@944: </variable> Edouard@944: </inputVars> Edouard@944: <localVars> Edouard@944: <variable name="TRIG0"> Edouard@944: <type> Edouard@944: <BOOL/> Edouard@944: </type> Edouard@944: </variable> Edouard@944: </localVars> Edouard@944: </interface> Edouard@944: <body> Edouard@944: <ST> Edouard@944: <![CDATA[IF TRIG AND NOT TRIG0 THEN Edouard@944: {{ Edouard@1050: LogMessage(GetFbVar(LEVEL),(char*)GetFbVar(MSG, .body),GetFbVar(MSG, .len)); Edouard@944: }} Edouard@944: END_IF; Edouard@944: TRIG0:=TRIG; Edouard@944: ]]> Edouard@944: </ST> Edouard@944: </body> Edouard@944: </pou> Edouard@944: </pous> Edouard@944: </types> Edouard@944: <instances> Edouard@944: <configurations/> Edouard@944: </instances> Edouard@944: </project>