tests/python/python@py_ext/pyfile.xml
changeset 1145 203f4eff3313
parent 1125 1b1472e76f07
child 1401 611fded24ce4
--- a/tests/python/python@py_ext/pyfile.xml	Wed May 15 17:13:49 2013 +0900
+++ b/tests/python/python@py_ext/pyfile.xml	Wed May 15 18:21:20 2013 +0900
@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <PyFile>
   <variables>
-    <variable name="Test_Python_Var" type="INT" initial="0"/>
+    <variable name="Test_Python_Var" type="INT" initial="4"/>
+    <variable name="Second_Python_Var" type="INT" initial="5"/>
   </variables>
   <globals>
 <![CDATA[
@@ -18,6 +19,8 @@
     else:
         print "Failed Python_to_C_Call failed"
         res = None
+    print "Python read PLC global :",PLCGlobals.Test_Python_Var
+    PLCGlobals.Second_Python_Var = 789
     sys.stdout.flush()
     return res