# HG changeset patch # User Edouard Tisserant # Date 1592397175 -7200 # Node ID 6bfed67574956498672e6d2a8dbc80b091e0b00a # Parent 2783906d5792257f4e2c48f53078c2c6c3eced0d tests/python : add some STRING PLC Python globals with OnChange. diff -r 2783906d5792 -r 6bfed6757495 tests/python/plc.xml --- a/tests/python/plc.xml Wed Jun 17 14:30:55 2020 +0200 +++ b/tests/python/plc.xml Wed Jun 17 14:32:55 2020 +0200 @@ -1,7 +1,7 @@ - + @@ -246,6 +246,25 @@ + + + + + + + + + + + + + + + + + + + @@ -255,7 +274,7 @@ - 'time.sleep(1)' + '666' @@ -1118,23 +1137,12 @@ Second_Python_Var - - - - - - - - - - Test_Python_Var - - 23 + 1 @@ -1300,6 +1308,162 @@ ]]> + + + + + + + + + + + + Grumpf + + + + + + + BOOL#TRUE + + + + + + + Test_DT + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Test_Python_Var + + + + + + + 23 + + + + + + + + + + + + + + SomeVarName + @@ -1447,7 +1611,7 @@ - + diff -r 2783906d5792 -r 6bfed6757495 tests/python/py_ext_0@py_ext/pyfile.xml --- a/tests/python/py_ext_0@py_ext/pyfile.xml Wed Jun 17 14:30:55 2020 +0200 +++ b/tests/python/py_ext_0@py_ext/pyfile.xml Wed Jun 17 14:32:55 2020 +0200 @@ -1,13 +1,17 @@ - - + + diff -r 2783906d5792 -r 6bfed6757495 tests/python/python@py_ext/pyfile.xml --- a/tests/python/python@py_ext/pyfile.xml Wed Jun 17 14:30:55 2020 +0200 +++ b/tests/python/python@py_ext/pyfile.xml Wed Jun 17 14:32:55 2020 +0200 @@ -20,6 +20,7 @@ print "Failed Python_to_C_Call failed" res = None print "Python read PLC global :",PLCGlobals.Test_Python_Var + print "Python read PLC global Grumpf :",PLCGlobals.Grumpf PLCGlobals.Second_Python_Var = 789 sys.stdout.flush() return res