equal
deleted
inserted
replaced
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"/> |
4 <variable name="SomeVarName" type="DINT" onchange="MyFunc"/> |
5 <variable name="Grumpf" type="STRING"/> |
5 <variable name="Grumpf" type="STRING" initial="'mhoo'" onchange="MyFunc"/> |
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 |
|
12 def MyFunc(*args): |
|
13 print args |
|
14 |
11 ]]></xhtml:p> |
15 ]]></xhtml:p> |
12 </globals> |
16 </globals> |
13 <init> |
17 <init> |
14 <xhtml:p><![CDATA[ |
18 <xhtml:p><![CDATA[ |
15 ]]></xhtml:p> |
19 ]]></xhtml:p> |