tests/wamp/plc.xml
author Edouard Tisserant
Sat, 05 Dec 2020 16:59:27 +0100
branchsvghmi
changeset 3085 6b1b23971960
parent 2298 10cfc280927c
permissions -rw-r--r--
SVGHMI: Rewrote button widget.
1439
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
     1
<?xml version='1.0' encoding='utf-8'?>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
     2
<project xmlns:ns1="http://www.plcopen.org/xml/tc6_0201" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.plcopen.org/xml/tc6_0201">
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
     3
  <fileHeader companyName="Beremiz" productName="Beremiz" productVersion="1" creationDateTime="2015-02-05T11:44:55" contentDescription=" &#10;&#10;"/>
2298
10cfc280927c Increase size of comment block in WAMP example, so all information is visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2290
diff changeset
     4
  <contentHeader name="WAMPTest" modificationDateTime="2018-08-27T11:11:30">
1439
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
     5
    <coordinateInfo>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
     6
      <fbd>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
     7
        <scaling x="0" y="0"/>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
     8
      </fbd>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
     9
      <ld>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    10
        <scaling x="0" y="0"/>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    11
      </ld>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    12
      <sfc>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    13
        <scaling x="0" y="0"/>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    14
      </sfc>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    15
    </coordinateInfo>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    16
  </contentHeader>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    17
  <types>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    18
    <dataTypes/>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    19
    <pous>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    20
      <pou name="program0" pouType="program">
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    21
        <interface>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    22
          <localVars>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    23
            <variable name="LocalVar0">
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    24
              <type>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    25
                <DINT/>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    26
              </type>
2290
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    27
              <initialValue>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    28
                <simpleValue value="1"/>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    29
              </initialValue>
1439
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    30
            </variable>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    31
          </localVars>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    32
          <externalVars>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    33
            <variable name="PyVar0">
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    34
              <type>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    35
                <DINT/>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    36
              </type>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    37
            </variable>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    38
            <variable name="PyVar1">
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    39
              <type>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    40
                <DINT/>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    41
              </type>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    42
            </variable>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    43
          </externalVars>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    44
        </interface>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    45
        <body>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    46
          <FBD>
2290
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    47
            <inVariable localId="1" executionOrderId="0" height="30" width="55" negated="false">
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    48
              <position x="57" y="540"/>
1439
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    49
              <connectionPointOut>
2290
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    50
                <relPosition x="55" y="15"/>
1439
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    51
              </connectionPointOut>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    52
              <expression>PyVar0</expression>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    53
            </inVariable>
2290
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    54
            <block localId="3" typeName="ADD" executionOrderId="0" height="60" width="67">
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    55
              <position x="168" y="525"/>
1439
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    56
              <inputVariables>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    57
                <variable formalParameter="IN1">
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    58
                  <connectionPointIn>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    59
                    <relPosition x="0" y="30"/>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    60
                    <connection refLocalId="1">
2290
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    61
                      <position x="168" y="555"/>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    62
                      <position x="112" y="555"/>
1439
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    63
                    </connection>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    64
                  </connectionPointIn>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    65
                </variable>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    66
                <variable formalParameter="IN2">
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    67
                  <connectionPointIn>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    68
                    <relPosition x="0" y="50"/>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    69
                    <connection refLocalId="4">
2290
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    70
                      <position x="168" y="575"/>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    71
                      <position x="151" y="575"/>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    72
                      <position x="151" y="595"/>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    73
                      <position x="112" y="595"/>
1439
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    74
                    </connection>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    75
                  </connectionPointIn>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    76
                </variable>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    77
              </inputVariables>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    78
              <inOutVariables/>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    79
              <outputVariables>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    80
                <variable formalParameter="OUT">
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    81
                  <connectionPointOut>
2290
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    82
                    <relPosition x="67" y="30"/>
1439
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    83
                  </connectionPointOut>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    84
                </variable>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    85
              </outputVariables>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    86
            </block>
2290
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    87
            <inVariable localId="4" executionOrderId="0" height="30" width="73" negated="false">
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    88
              <position x="39" y="580"/>
1439
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    89
              <connectionPointOut>
2290
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    90
                <relPosition x="73" y="15"/>
1439
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    91
              </connectionPointOut>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    92
              <expression>LocalVar0</expression>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
    93
            </inVariable>
2298
10cfc280927c Increase size of comment block in WAMP example, so all information is visible
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 2290
diff changeset
    94
            <comment localId="5" height="459" width="788">
2290
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    95
              <position x="23" y="10"/>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    96
              <content>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    97
                <xhtml:p><![CDATA[Communication between Beremiz and PLC runtime isn't bound to any specific protocol and could be extended by writing corresponding connector (see 'connectors' directory).
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    98
Beremiz reference runtime implementation supports PYRO and WAMP protocols.
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
    99
This example shows how to use Web Application Messaging Protocol (WAMP).
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   100
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   101
WAMP can be used to build distributed systems out of application components which are loosely coupled and communicate in real-time. No direct connection between IDE and PLC are necessary.
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   102
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   103
WAMP is in a process to be published as official IETF standard. Draft specification is already available on IETF website.
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   104
	
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   105
To use this example you need WAMP router and standalone running Beremiz_service.
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   106
1. See README file in project's directory with detailed instructions for
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   107
setup Crossbar.io, router for open Web Application Messaging Protocol (WAMP).
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   108
2. Run crossbar
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   109
3. Create service working directory and copy wampconf.json from project_files to created directory
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   110
4. Run Beremiz_service:
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   111
./Beremiz_service.py -x 0 <working directory>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   112
]]></xhtml:p>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   113
              </content>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   114
            </comment>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   115
            <inOutVariable localId="2" executionOrderId="0" height="30" width="55" negatedOut="false" negatedIn="false">
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   116
              <position x="270" y="540"/>
1439
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   117
              <connectionPointIn>
2290
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   118
                <relPosition x="0" y="15"/>
1439
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   119
                <connection refLocalId="3" formalParameter="OUT">
2290
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   120
                  <position x="270" y="555"/>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   121
                  <position x="235" y="555"/>
1439
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   122
                </connection>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   123
              </connectionPointIn>
2290
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   124
              <connectionPointOut>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   125
                <relPosition x="55" y="15"/>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   126
              </connectionPointOut>
1439
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   127
              <expression>PyVar1</expression>
2290
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   128
            </inOutVariable>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   129
            <outVariable localId="6" executionOrderId="0" height="30" width="55" negated="false">
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   130
              <position x="362" y="540"/>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   131
              <connectionPointIn>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   132
                <relPosition x="0" y="15"/>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   133
                <connection refLocalId="2">
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   134
                  <position x="362" y="555"/>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   135
                  <position x="325" y="555"/>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   136
                </connection>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   137
              </connectionPointIn>
52afa2dec4fb Cleanup WAMP example
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 1448
diff changeset
   138
              <expression>PyVar0</expression>
1439
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   139
            </outVariable>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   140
          </FBD>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   141
        </body>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   142
      </pou>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   143
    </pous>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   144
  </types>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   145
  <instances>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   146
    <configurations>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   147
      <configuration name="config">
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   148
        <resource name="resource1">
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   149
          <task name="Task0" priority="0" interval="T#100ms">
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   150
            <pouInstance name="Instance0" typeName="program0"/>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   151
          </task>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   152
        </resource>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   153
      </configuration>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   154
    </configurations>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   155
  </instances>
a68cd4253259 Added stub code for runtime WAMP client. Added runtime command line switch to select WAMP url and Nevow web site port. Web port is now fixed, next port number is not tested if bind fails.
Edouard Tisserant
parents:
diff changeset
   156
</project>