tests/logging/plc.xml
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Tue, 02 Oct 2018 16:53:14 +0300
changeset 2416 1ca207782dde
parent 2346 ac16bad593cf
permissions -rw-r--r--
Use predefined constants for PlcStatus instead of string literals
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
     1
<?xml version='1.0' encoding='utf-8'?>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
     2
<project xmlns="http://www.plcopen.org/xml/tc6_0201" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xhtml="http://www.w3.org/1999/xhtml" xsi:schemaLocation="http://www.plcopen.org/xml/tc6_0201">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
     3
  <fileHeader companyName="Unknown" productName="Generic PLC" productVersion="1" creationDateTime="2013-01-29T14:01:00" contentDescription="This example shows logging functionality in Beremiz.&#10;Here are shown two ways of logging:&#10;- from IEC PLC program;&#10;- from python extension.&#10;"/>
2346
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
     4
  <contentHeader name="Logging example" modificationDateTime="2018-09-26T13:10:14">
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
     5
    <coordinateInfo>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
     6
      <fbd>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
     7
        <scaling x="0" y="0"/>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
     8
      </fbd>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
     9
      <ld>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    10
        <scaling x="0" y="0"/>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    11
      </ld>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    12
      <sfc>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    13
        <scaling x="0" y="0"/>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    14
      </sfc>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    15
    </coordinateInfo>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    16
  </contentHeader>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    17
  <types>
944
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 917
diff changeset
    18
    <dataTypes/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    19
    <pous>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    20
      <pou name="program0" pouType="program">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    21
        <interface>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    22
          <localVars>
917
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
    23
            <variable name="beat">
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
    24
              <type>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
    25
                <BOOL/>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
    26
              </type>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
    27
            </variable>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
    28
            <variable name="count">
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
    29
              <type>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
    30
                <INT/>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
    31
              </type>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
    32
            </variable>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    33
            <variable name="LOGGER0">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    34
              <type>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    35
                <derived name="LOGGER"/>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    36
              </type>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    37
            </variable>
944
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 917
diff changeset
    38
            <variable name="lvl">
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 917
diff changeset
    39
              <type>
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 917
diff changeset
    40
                <derived name="LOGLEVEL"/>
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 917
diff changeset
    41
              </type>
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 917
diff changeset
    42
              <initialValue>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    43
                <simpleValue value="INFO"/>
944
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 917
diff changeset
    44
              </initialValue>
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 917
diff changeset
    45
            </variable>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    46
            <variable name="Timer">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    47
              <type>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    48
                <derived name="TOF"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    49
              </type>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    50
            </variable>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    51
          </localVars>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    52
        </interface>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    53
        <body>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    54
          <FBD>
2346
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
    55
            <inVariable localId="2" height="30" width="218" executionOrderId="0" negated="false">
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
    56
              <position x="459" y="365"/>
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
    57
              <connectionPointOut>
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
    58
                <relPosition x="218" y="15"/>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    59
              </connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    60
              <expression>'IEC side logging: beat #'</expression>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    61
            </inVariable>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    62
            <block localId="3" width="59" height="40" typeName="NOT" executionOrderId="0">
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
    63
              <position x="241" y="287"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    64
              <inputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    65
                <variable formalParameter="IN">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    66
                  <connectionPointIn>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    67
                    <relPosition x="0" y="30"/>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    68
                    <connection refLocalId="14" formalParameter="Q">
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
    69
                      <position x="241" y="317"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
    70
                      <position x="197" y="317"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    71
                    </connection>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    72
                  </connectionPointIn>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    73
                </variable>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    74
              </inputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    75
              <inOutVariables/>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    76
              <outputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    77
                <variable formalParameter="OUT">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    78
                  <connectionPointOut>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    79
                    <relPosition x="59" y="30"/>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    80
                  </connectionPointOut>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    81
                </variable>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    82
              </outputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    83
            </block>
2346
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
    84
            <inOutVariable localId="4" height="30" width="60" executionOrderId="0" negatedOut="false" negatedIn="false">
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
    85
              <position x="57" y="302"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    86
              <connectionPointIn>
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
    87
                <relPosition x="0" y="15"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    88
                <connection refLocalId="3" formalParameter="OUT">
2346
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
    89
                  <position x="57" y="317"/>
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
    90
                  <position x="37" y="317"/>
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
    91
                  <position x="37" y="390"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
    92
                  <position x="314" y="390"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
    93
                  <position x="314" y="317"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
    94
                  <position x="300" y="317"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    95
                </connection>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    96
              </connectionPointIn>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    97
              <connectionPointOut>
2346
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
    98
                <relPosition x="60" y="15"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    99
              </connectionPointOut>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   100
              <expression>beat</expression>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   101
            </inOutVariable>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   102
            <block localId="5" width="68" height="98" typeName="ADD" executionOrderId="0">
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   103
              <position x="463" y="403"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   104
              <inputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   105
                <variable formalParameter="IN1">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   106
                  <connectionPointIn>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   107
                    <relPosition x="0" y="39"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   108
                    <connection refLocalId="10" formalParameter="OUT">
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   109
                      <position x="463" y="442"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   110
                      <position x="452" y="442"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   111
                      <position x="452" y="442"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   112
                      <position x="455" y="442"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   113
                      <position x="455" y="442"/>
2346
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
   114
                      <position x="439" y="442"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   115
                    </connection>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   116
                  </connectionPointIn>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   117
                </variable>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   118
                <variable formalParameter="IN2">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   119
                  <connectionPointIn>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   120
                    <relPosition x="0" y="78"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   121
                    <connection refLocalId="6">
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   122
                      <position x="463" y="481"/>
2346
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
   123
                      <position x="438" y="481"/>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   124
                    </connection>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   125
                  </connectionPointIn>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   126
                </variable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   127
              </inputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   128
              <inOutVariables/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   129
              <outputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   130
                <variable formalParameter="OUT">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   131
                  <connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   132
                    <relPosition x="68" y="39"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   133
                  </connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   134
                </variable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   135
              </outputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   136
            </block>
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   137
            <inOutVariable localId="6" height="30" width="103" executionOrderId="0" negatedOut="false" negatedIn="false">
2346
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
   138
              <position x="335" y="466"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   139
              <connectionPointIn>
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   140
                <relPosition x="0" y="15"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   141
                <connection refLocalId="5" formalParameter="OUT">
2346
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
   142
                  <position x="335" y="481"/>
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
   143
                  <position x="320" y="481"/>
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   144
                  <position x="320" y="518"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   145
                  <position x="544" y="518"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   146
                  <position x="544" y="442"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   147
                  <position x="531" y="442"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   148
                </connection>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   149
              </connectionPointIn>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   150
              <connectionPointOut>
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   151
                <relPosition x="103" y="15"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   152
              </connectionPointOut>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   153
              <expression>count</expression>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   154
            </inOutVariable>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   155
            <block localId="8" width="67" height="144" typeName="CONCAT" executionOrderId="0">
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   156
              <position x="727" y="329"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   157
              <inputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   158
                <variable formalParameter="IN1">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   159
                  <connectionPointIn>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   160
                    <relPosition x="0" y="51"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   161
                    <connection refLocalId="2">
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   162
                      <position x="727" y="380"/>
2346
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
   163
                      <position x="717" y="380"/>
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
   164
                      <position x="717" y="380"/>
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   165
                      <position x="677" y="380"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   166
                    </connection>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   167
                  </connectionPointIn>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   168
                </variable>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   169
                <variable formalParameter="IN2">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   170
                  <connectionPointIn>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   171
                    <relPosition x="0" y="113"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   172
                    <connection refLocalId="9" formalParameter="OUT">
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   173
                      <position x="727" y="442"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   174
                      <position x="680" y="442"/>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   175
                    </connection>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   176
                  </connectionPointIn>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   177
                </variable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   178
              </inputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   179
              <inOutVariables/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   180
              <outputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   181
                <variable formalParameter="OUT">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   182
                  <connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   183
                    <relPosition x="67" y="51"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   184
                  </connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   185
                </variable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   186
              </outputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   187
            </block>
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   188
            <block localId="9" width="119" height="40" typeName="INT_TO_STRING" executionOrderId="0">
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   189
              <position x="561" y="412"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   190
              <inputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   191
                <variable formalParameter="IN">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   192
                  <connectionPointIn>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   193
                    <relPosition x="0" y="30"/>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   194
                    <connection refLocalId="5" formalParameter="OUT">
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   195
                      <position x="561" y="442"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   196
                      <position x="531" y="442"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   197
                    </connection>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   198
                  </connectionPointIn>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   199
                </variable>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   200
              </inputVariables>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   201
              <inOutVariables/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   202
              <outputVariables>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   203
                <variable formalParameter="OUT">
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   204
                  <connectionPointOut>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   205
                    <relPosition x="119" y="30"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   206
                  </connectionPointOut>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   207
                </variable>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   208
              </outputVariables>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   209
            </block>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   210
            <block localId="10" width="106" height="40" typeName="BOOL_TO_INT" executionOrderId="0">
2346
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
   211
              <position x="333" y="412"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   212
              <inputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   213
                <variable formalParameter="IN" edge="rising">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   214
                  <connectionPointIn>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   215
                    <relPosition x="0" y="30"/>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   216
                    <connection refLocalId="3" formalParameter="OUT">
2346
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
   217
                      <position x="333" y="442"/>
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   218
                      <position x="314" y="442"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   219
                      <position x="314" y="317"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   220
                      <position x="300" y="317"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   221
                    </connection>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   222
                  </connectionPointIn>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   223
                </variable>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   224
              </inputVariables>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   225
              <inOutVariables/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   226
              <outputVariables>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   227
                <variable formalParameter="OUT">
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   228
                  <connectionPointOut>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   229
                    <relPosition x="106" y="30"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   230
                  </connectionPointOut>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   231
                </variable>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   232
              </outputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   233
            </block>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   234
            <block localId="11" width="65" height="209" typeName="LOGGER" instanceName="LOGGER0" executionOrderId="0">
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   235
              <position x="907" y="266"/>
917
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   236
              <inputVariables>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   237
                <variable formalParameter="TRIG">
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   238
                  <connectionPointIn>
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   239
                    <relPosition x="0" y="51"/>
917
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   240
                    <connection refLocalId="3" formalParameter="OUT">
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   241
                      <position x="907" y="317"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   242
                      <position x="300" y="317"/>
917
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   243
                    </connection>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   244
                  </connectionPointIn>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   245
                </variable>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   246
                <variable formalParameter="MSG">
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   247
                  <connectionPointIn>
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   248
                    <relPosition x="0" y="114"/>
917
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   249
                    <connection refLocalId="8" formalParameter="OUT">
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   250
                      <position x="907" y="380"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   251
                      <position x="794" y="380"/>
917
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   252
                    </connection>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   253
                  </connectionPointIn>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   254
                </variable>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   255
                <variable formalParameter="LEVEL">
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   256
                  <connectionPointIn>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   257
                    <relPosition x="0" y="177"/>
944
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 917
diff changeset
   258
                    <connection refLocalId="12">
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   259
                      <position x="907" y="443"/>
2346
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
   260
                      <position x="880" y="443"/>
944
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 917
diff changeset
   261
                    </connection>
917
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   262
                  </connectionPointIn>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   263
                </variable>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   264
              </inputVariables>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   265
              <inOutVariables/>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   266
              <outputVariables/>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   267
            </block>
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   268
            <inVariable localId="12" height="30" width="79" executionOrderId="0" negated="false">
2346
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
   269
              <position x="801" y="428"/>
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   270
              <connectionPointOut>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   271
                <relPosition x="79" y="15"/>
944
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 917
diff changeset
   272
              </connectionPointOut>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   273
              <expression>lvl</expression>
944
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 917
diff changeset
   274
            </inVariable>
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   275
            <block localId="14" typeName="TOF" instanceName="Timer" executionOrderId="0" height="98" width="47">
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   276
              <position x="150" y="278"/>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   277
              <inputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   278
                <variable formalParameter="IN">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   279
                  <connectionPointIn>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   280
                    <relPosition x="0" y="39"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   281
                    <connection refLocalId="4">
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   282
                      <position x="150" y="317"/>
2346
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
   283
                      <position x="117" y="317"/>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   284
                    </connection>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   285
                  </connectionPointIn>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   286
                </variable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   287
                <variable formalParameter="PT">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   288
                  <connectionPointIn>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   289
                    <relPosition x="0" y="78"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   290
                    <connection refLocalId="1">
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   291
                      <position x="150" y="356"/>
2346
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
   292
                      <position x="117" y="356"/>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   293
                    </connection>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   294
                  </connectionPointIn>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   295
                </variable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   296
              </inputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   297
              <inOutVariables/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   298
              <outputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   299
                <variable formalParameter="Q">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   300
                  <connectionPointOut>
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   301
                    <relPosition x="47" y="39"/>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   302
                  </connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   303
                </variable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   304
                <variable formalParameter="ET">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   305
                  <connectionPointOut>
2296
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   306
                    <relPosition x="47" y="78"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   307
                  </connectionPointOut>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   308
                </variable>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   309
              </outputVariables>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   310
            </block>
2346
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
   311
            <inVariable localId="1" executionOrderId="0" height="30" width="61" negated="false">
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
   312
              <position x="56" y="341"/>
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
   313
              <connectionPointOut>
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
   314
                <relPosition x="61" y="15"/>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   315
              </connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   316
              <expression>T#3s</expression>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   317
            </inVariable>
2346
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
   318
            <comment localId="15" height="249" width="682">
ac16bad593cf Cleanup examples so they look clean, nice and almost the same on Windows and GNU/Linux
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2296
diff changeset
   319
              <position x="19" y="8"/>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   320
              <content>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   321
                <xhtml:p><![CDATA[This example shows logging functionality in Beremiz.
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   322
Here are shown two ways of logging:
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   323
- from IEC PLC program;
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   324
- from python extension.
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   325
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   326
In IEC PLC program every third second (beat) new message is generated and put in PLC log.
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   327
See function blocks below.
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   328
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   329
Every 15 seconds status of PLC program is put in PLC log from python extension.
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   330
For more information about logging from python look at 0.x: py_ext_0 implementation in project tree. 
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   331
]]></xhtml:p>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   332
              </content>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   333
            </comment>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   334
          </FBD>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   335
        </body>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   336
      </pou>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   337
    </pous>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   338
  </types>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   339
  <instances>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   340
    <configurations>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   341
      <configuration name="config">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   342
        <resource name="resource1">
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   343
          <task name="task0" priority="0" interval="T#100ms">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   344
            <pouInstance name="prg" typeName="program0"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   345
          </task>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   346
        </resource>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   347
      </configuration>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   348
    </configurations>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   349
  </instances>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   350
</project>