tests/python/py_ext_0@py_ext/pyfile.xml
changeset 2692 d4bede6cd3f1
parent 2680 6bfed6757495
child 2699 467ff0e58327
equal deleted inserted replaced
2691:6e4a95621080 2692:d4bede6cd3f1
     1 <?xml version='1.0' encoding='utf-8'?>
     1 <?xml version='1.0' encoding='utf-8'?>
     2 <PyFile xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
     2 <PyFile xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
     3   <variables>
     3   <variables>
     4     <variable name="SomeVarName" type="DINT" onchange="MyFunc"/>
     4     <variable name="SomeVarName" type="DINT" onchange="MyFunc"/>
     5     <variable name="Grumpf" type="STRING" initial="'mhoo'" onchange="MyFunc"/>
     5     <variable name="Grumpf" type="STRING" initial="'mhoo'" onchange="MyFunc, MyOtherFunc"/>
     6   </variables>
     6   </variables>
     7   <globals>
     7   <globals>
     8     <xhtml:p><![CDATA[
     8     <xhtml:p><![CDATA[
     9 print "All python PLC globals variables :", PLCGlobalsDesc
     9 print "All python PLC globals variables :", PLCGlobalsDesc
    10 print "Current extention name :", __ext_name__
    10 print "Current extention name :", __ext_name__
    11 
    11 
    12 def MyFunc(*args):
    12 def MyFunc(*args):
    13     print args
    13     print args
       
    14 
       
    15 def MyOtherFunc(*args):
       
    16     print "other", args
       
    17 
    14 
    18 
    15 ]]></xhtml:p>
    19 ]]></xhtml:p>
    16   </globals>
    20   </globals>
    17   <init>
    21   <init>
    18     <xhtml:p><![CDATA[
    22     <xhtml:p><![CDATA[