tests/logging/plc.xml
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Tue, 25 Sep 2018 19:00:03 +0300
changeset 2343 33071a451021
parent 2296 a2ab363f9e90
child 2346 ac16bad593cf
permissions -rw-r--r--
Don't need to call extra _init_

_init_ is already called for value in infos["elmt_type"]["initial"]().
Additional _init_() creates second set of child element and that
creates unusable xml project.
This regression cause by not well tested commit "Proper fix for error
'object has no attribute 'getSlave' in EtherCAT extension" (96ca6b056c55595f71bfaca9f54b9e8646460c23)
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;"/>
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
     4
  <contentHeader name="Logging example" modificationDateTime="2018-08-24T13:12:45">
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>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    55
            <inVariable localId="2" height="30" width="170" executionOrderId="0" negated="false">
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
    56
              <position x="507" y="365"/>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    57
              <connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    58
                <relPosition x="170" y="15"/>
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>
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
    84
            <inOutVariable localId="4" height="30" width="51" executionOrderId="0" negatedOut="false" negatedIn="false">
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
    85
              <position x="66" y="304"/>
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">
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
    89
                  <position x="66" y="319"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
    90
                  <position x="37" y="319"/>
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>
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
    98
                <relPosition x="51" 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"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   114
                      <position x="445" 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"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   123
                      <position x="453" y="481"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   124
                      <position x="453" y="482"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   125
                      <position x="454" y="482"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   126
                      <position x="454" y="483"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   127
                      <position x="444" y="483"/>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   128
                    </connection>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   129
                  </connectionPointIn>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   130
                </variable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   131
              </inputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   132
              <inOutVariables/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   133
              <outputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   134
                <variable formalParameter="OUT">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   135
                  <connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   136
                    <relPosition x="68" y="39"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   137
                  </connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   138
                </variable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   139
              </outputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   140
            </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
   141
            <inOutVariable localId="6" height="30" width="103" executionOrderId="0" negatedOut="false" negatedIn="false">
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   142
              <position x="341" y="468"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   143
              <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
   144
                <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
   145
                <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
   146
                  <position x="341" y="483"/>
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="320" y="483"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   148
                  <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
   149
                  <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
   150
                  <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
   151
                  <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
   152
                </connection>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   153
              </connectionPointIn>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   154
              <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
   155
                <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
   156
              </connectionPointOut>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   157
              <expression>count</expression>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   158
            </inOutVariable>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   159
            <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
   160
              <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
   161
              <inputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   162
                <variable formalParameter="IN1">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   163
                  <connectionPointIn>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   164
                    <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
   165
                    <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
   166
                      <position x="727" 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
   167
                      <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
   168
                    </connection>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   169
                  </connectionPointIn>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   170
                </variable>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   171
                <variable formalParameter="IN2">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   172
                  <connectionPointIn>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   173
                    <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
   174
                    <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
   175
                      <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
   176
                      <position x="680" y="442"/>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   177
                    </connection>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   178
                  </connectionPointIn>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   179
                </variable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   180
              </inputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   181
              <inOutVariables/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   182
              <outputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   183
                <variable formalParameter="OUT">
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
                    <relPosition x="67" y="51"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   186
                  </connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   187
                </variable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   188
              </outputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   189
            </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
   190
            <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
   191
              <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
   192
              <inputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   193
                <variable formalParameter="IN">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   194
                  <connectionPointIn>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   195
                    <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
   196
                    <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
   197
                      <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
   198
                      <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
   199
                    </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
   200
                  </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
   201
                </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
   202
              </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
   203
              <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
   204
              <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
   205
                <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
   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
                    <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
   208
                  </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
   209
                </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
   210
              </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
   211
            </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
   212
            <block localId="10" width="106" height="40" typeName="BOOL_TO_INT" 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
   213
              <position x="339" y="412"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   214
              <inputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   215
                <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
   216
                  <connectionPointIn>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   217
                    <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
   218
                    <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
   219
                      <position x="339" 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
   220
                      <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
   221
                      <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
   222
                      <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
   223
                    </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
   224
                  </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
   225
                </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
   226
              </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
   227
              <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
   228
              <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
   229
                <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
   230
                  <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
   231
                    <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
   232
                  </connectionPointOut>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   233
                </variable>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   234
              </outputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   235
            </block>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   236
            <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
   237
              <position x="907" y="266"/>
917
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   238
              <inputVariables>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   239
                <variable formalParameter="TRIG">
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   240
                  <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
   241
                    <relPosition x="0" y="51"/>
917
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   242
                    <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
   243
                      <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
   244
                      <position x="300" y="317"/>
917
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   245
                    </connection>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   246
                  </connectionPointIn>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   247
                </variable>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   248
                <variable formalParameter="MSG">
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   249
                  <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
   250
                    <relPosition x="0" y="114"/>
917
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   251
                    <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
   252
                      <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
   253
                      <position x="794" y="380"/>
917
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   254
                    </connection>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   255
                  </connectionPointIn>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   256
                </variable>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   257
                <variable formalParameter="LEVEL">
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   258
                  <connectionPointIn>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   259
                    <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
   260
                    <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
   261
                      <position x="907" y="443"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   262
                      <position x="893" y="443"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   263
                      <position x="893" y="445"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   264
                      <position x="879" y="445"/>
944
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 917
diff changeset
   265
                    </connection>
917
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   266
                  </connectionPointIn>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   267
                </variable>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   268
              </inputVariables>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   269
              <inOutVariables/>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   270
              <outputVariables/>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   271
            </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
   272
            <inVariable localId="12" height="30" width="79" executionOrderId="0" negated="false">
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   273
              <position x="800" y="430"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   274
              <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
   275
                <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
   276
              </connectionPointOut>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   277
              <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
   278
            </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
   279
            <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
   280
              <position x="150" y="278"/>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   281
              <inputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   282
                <variable formalParameter="IN">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   283
                  <connectionPointIn>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   284
                    <relPosition x="0" y="39"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   285
                    <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
   286
                      <position x="150" 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
   287
                      <position x="133" 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
   288
                      <position x="133" y="319"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   289
                      <position x="117" y="319"/>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   290
                    </connection>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   291
                  </connectionPointIn>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   292
                </variable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   293
                <variable formalParameter="PT">
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
                    <relPosition x="0" y="78"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   296
                    <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
   297
                      <position x="150" y="356"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   298
                      <position x="133" y="356"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   299
                      <position x="133" y="359"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   300
                      <position x="117" y="359"/>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   301
                    </connection>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   302
                  </connectionPointIn>
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
              </inputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   305
              <inOutVariables/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   306
              <outputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   307
                <variable formalParameter="Q">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   308
                  <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
   309
                    <relPosition x="47" y="39"/>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   310
                  </connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   311
                </variable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   312
                <variable formalParameter="ET">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   313
                  <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
   314
                    <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
   315
                  </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
   316
                </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
   317
              </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
   318
            </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
   319
            <inVariable localId="1" executionOrderId="0" height="30" width="52" negated="false">
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   320
              <position x="65" y="344"/>
a2ab363f9e90 Make comment blocks in examples slightly bigger so text inside is always visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1525
diff changeset
   321
              <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
   322
                <relPosition x="52" y="15"/>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   323
              </connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   324
              <expression>T#3s</expression>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   325
            </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
   326
            <comment localId="15" height="238" width="675">
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   327
              <position x="27" y="16"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   328
              <content>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   329
                <xhtml:p><![CDATA[This example shows logging functionality in Beremiz.
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   330
Here are shown two ways of logging:
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   331
- from IEC PLC program;
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   332
- from python extension.
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   333
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   334
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
   335
See function blocks below.
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   336
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   337
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
   338
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
   339
]]></xhtml:p>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   340
              </content>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   341
            </comment>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   342
          </FBD>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   343
        </body>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   344
      </pou>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   345
    </pous>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   346
  </types>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   347
  <instances>
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
      <configuration name="config">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   350
        <resource name="resource1">
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   351
          <task name="task0" priority="0" interval="T#100ms">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   352
            <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
   353
          </task>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   354
        </resource>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   355
      </configuration>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   356
    </configurations>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   357
  </instances>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   358
</project>