tests/logging/plc.xml
author Edouard Tisserant
Wed, 31 Jan 2018 11:21:08 +0100
changeset 1914 99f8cfa80b15
parent 1525 36e912fac70f
child 2296 a2ab363f9e90
permissions -rw-r--r--
launcher : move call to ShowSplashScreen and BackgroundInitialization to PreStart()
It doesn't change behaviour of launcher in beremiz, but may have some impact on some customizations.
Some customizations need to squeeze some bitmap folder init in between app creation and ShowSplashScreen
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;"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
     4
  <contentHeader name="Logging example" modificationDateTime="2016-09-09T17:54:15">
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">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    56
              <position x="507" y="347"/>
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">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    63
              <position x="241" y="269"/>
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">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    69
                      <position x="241" y="299"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    70
                      <position x="195" y="299"/>
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>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    84
            <inOutVariable localId="4" height="27" width="51" executionOrderId="0" negatedOut="false" negatedIn="false">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    85
              <position x="66" y="286"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    86
              <connectionPointIn>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
    87
                <relPosition x="0" y="13"/>
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">
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    89
                  <position x="66" y="299"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    90
                  <position x="37" y="299"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    91
                  <position x="37" y="372"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    92
                  <position x="314" y="372"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    93
                  <position x="314" y="299"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    94
                  <position x="300" y="299"/>
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>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
    98
                <relPosition x="51" y="13"/>
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">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   103
              <position x="463" y="385"/>
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">
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   109
                      <position x="463" y="424"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   110
                      <position x="452" y="424"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   111
                      <position x="452" y="424"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   112
                      <position x="454" y="424"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   113
                      <position x="454" y="424"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   114
                      <position x="444" y="424"/>
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">
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   122
                      <position x="463" y="463"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   123
                      <position x="444" y="463"/>
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>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   137
            <inOutVariable localId="6" height="27" width="103" executionOrderId="0" negatedOut="false" negatedIn="false">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   138
              <position x="341" y="450"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   139
              <connectionPointIn>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   140
                <relPosition x="0" y="13"/>
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">
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   142
                  <position x="341" y="463"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   143
                  <position x="320" y="463"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   144
                  <position x="320" y="500"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   145
                  <position x="544" y="500"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   146
                  <position x="544" y="424"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   147
                  <position x="531" y="424"/>
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>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   151
                <relPosition x="103" y="13"/>
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">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   156
              <position x="727" y="311"/>
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">
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   162
                      <position x="727" y="362"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   163
                      <position x="677" y="362"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   164
                    </connection>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   165
                  </connectionPointIn>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   166
                </variable>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   167
                <variable formalParameter="IN2">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   168
                  <connectionPointIn>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   169
                    <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
   170
                    <connection refLocalId="9" formalParameter="OUT">
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   171
                      <position x="727" y="424"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   172
                      <position x="677" y="424"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   173
                    </connection>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   174
                  </connectionPointIn>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   175
                </variable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   176
              </inputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   177
              <inOutVariables/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   178
              <outputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   179
                <variable formalParameter="OUT">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   180
                  <connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   181
                    <relPosition x="67" y="51"/>
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
                </variable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   184
              </outputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   185
            </block>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   186
            <block localId="9" width="116" height="40" typeName="INT_TO_STRING" executionOrderId="0">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   187
              <position x="561" y="394"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   188
              <inputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   189
                <variable formalParameter="IN">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   190
                  <connectionPointIn>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   191
                    <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
   192
                    <connection refLocalId="5" formalParameter="OUT">
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   193
                      <position x="561" y="424"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   194
                      <position x="531" y="424"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   195
                    </connection>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   196
                  </connectionPointIn>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   197
                </variable>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   198
              </inputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   199
              <inOutVariables/>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   200
              <outputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   201
                <variable formalParameter="OUT">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   202
                  <connectionPointOut>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   203
                    <relPosition x="116" y="30"/>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   204
                  </connectionPointOut>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   205
                </variable>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   206
              </outputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   207
            </block>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   208
            <block localId="10" width="105" height="40" typeName="BOOL_TO_INT" executionOrderId="0">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   209
              <position x="339" y="394"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   210
              <inputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   211
                <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
   212
                  <connectionPointIn>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   213
                    <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
   214
                    <connection refLocalId="3" formalParameter="OUT">
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   215
                      <position x="339" y="424"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   216
                      <position x="314" y="424"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   217
                      <position x="314" y="299"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   218
                      <position x="300" y="299"/>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   219
                    </connection>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   220
                  </connectionPointIn>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   221
                </variable>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   222
              </inputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   223
              <inOutVariables/>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   224
              <outputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   225
                <variable formalParameter="OUT">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   226
                  <connectionPointOut>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   227
                    <relPosition x="105" y="30"/>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   228
                  </connectionPointOut>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   229
                </variable>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   230
              </outputVariables>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   231
            </block>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   232
            <block localId="11" width="65" height="209" typeName="LOGGER" instanceName="LOGGER0" executionOrderId="0">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   233
              <position x="907" y="248"/>
917
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   234
              <inputVariables>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   235
                <variable formalParameter="TRIG">
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   236
                  <connectionPointIn>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   237
                    <relPosition x="0" y="52"/>
917
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   238
                    <connection refLocalId="3" formalParameter="OUT">
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   239
                      <position x="907" y="300"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   240
                      <position x="300" y="300"/>
917
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   241
                    </connection>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   242
                  </connectionPointIn>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   243
                </variable>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   244
                <variable formalParameter="MSG">
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   245
                  <connectionPointIn>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   246
                    <relPosition x="0" y="112"/>
917
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   247
                    <connection refLocalId="8" formalParameter="OUT">
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   248
                      <position x="907" y="360"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   249
                      <position x="794" y="360"/>
917
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   250
                    </connection>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   251
                  </connectionPointIn>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   252
                </variable>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   253
                <variable formalParameter="LEVEL">
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   254
                  <connectionPointIn>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   255
                    <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
   256
                    <connection refLocalId="12">
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   257
                      <position x="907" y="425"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   258
                      <position x="879" y="425"/>
944
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 917
diff changeset
   259
                    </connection>
917
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   260
                  </connectionPointIn>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   261
                </variable>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   262
              </inputVariables>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   263
              <inOutVariables/>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   264
              <outputVariables/>
401e44bae7c0 Now logging have 4 levels
Edouard Tisserant
parents: 914
diff changeset
   265
            </block>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   266
            <inVariable localId="12" height="27" width="79" executionOrderId="0" negated="false">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   267
              <position x="800" y="412"/>
944
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 917
diff changeset
   268
              <connectionPointOut>
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 917
diff changeset
   269
                <relPosition x="79" y="13"/>
52a17be9c4d1 Introduce Beremiz Native POU library. Now LOGGER POU is part of Beremiz' native POU library
Edouard Tisserant
parents: 917
diff changeset
   270
              </connectionPointOut>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   271
              <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
   272
            </inVariable>
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   273
            <block localId="14" typeName="TOF" instanceName="Timer" executionOrderId="0" height="98" width="45">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   274
              <position x="150" y="260"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   275
              <inputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   276
                <variable formalParameter="IN">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   277
                  <connectionPointIn>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   278
                    <relPosition x="0" y="39"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   279
                    <connection refLocalId="4">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   280
                      <position x="150" y="299"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   281
                      <position x="117" y="299"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   282
                    </connection>
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
                </variable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   285
                <variable formalParameter="PT">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   286
                  <connectionPointIn>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   287
                    <relPosition x="0" y="78"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   288
                    <connection refLocalId="1">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   289
                      <position x="150" y="338"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   290
                      <position x="117" y="338"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   291
                    </connection>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   292
                  </connectionPointIn>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   293
                </variable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   294
              </inputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   295
              <inOutVariables/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   296
              <outputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   297
                <variable formalParameter="Q">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   298
                  <connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   299
                    <relPosition x="45" y="39"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   300
                  </connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   301
                </variable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   302
                <variable formalParameter="ET">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   303
                  <connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   304
                    <relPosition x="45" y="78"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   305
                  </connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   306
                </variable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   307
              </outputVariables>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   308
            </block>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   309
            <inVariable localId="1" executionOrderId="0" height="24" width="52" negated="false">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   310
              <position x="65" y="326"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   311
              <connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   312
                <relPosition x="52" y="12"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   313
              </connectionPointOut>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   314
              <expression>T#3s</expression>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   315
            </inVariable>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   316
            <comment localId="15" height="212" width="675">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   317
              <position x="27" y="16"/>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   318
              <content>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   319
                <xhtml:p><![CDATA[This example shows logging functionality in Beremiz.
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   320
Here are shown two ways of logging:
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   321
- from IEC PLC program;
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   322
- from python extension.
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   323
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   324
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
   325
See function blocks below.
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   326
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   327
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
   328
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
   329
]]></xhtml:p>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   330
              </content>
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   331
            </comment>
911
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   332
          </FBD>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   333
        </body>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   334
      </pou>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   335
    </pous>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   336
  </types>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   337
  <instances>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   338
    <configurations>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   339
      <configuration name="config">
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   340
        <resource name="resource1">
1525
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   341
          <task name="task0" priority="0" interval="T#100ms">
36e912fac70f cleanup logging example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1014
diff changeset
   342
            <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
   343
          </task>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   344
        </resource>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   345
      </configuration>
ffa24427396a Log redirected to console, dump of all available log to console when connecting to PLC
Edouard Tisserant
parents:
diff changeset
   346
    </configurations>
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
</project>