--- a/exemples/python/py_ext_0@py_ext/pyfile.xml Mon May 22 14:38:25 2023 +0200
+++ b/exemples/python/py_ext_0@py_ext/pyfile.xml Mon May 22 14:40:49 2023 +0200
@@ -6,19 +6,19 @@
-print "All python PLC globals variables :", PLCGlobalsDesc
-print "Current extention name :", __ext_name__
+print("All python PLC globals variables :", PLCGlobalsDesc) +print("Current extention name :", __ext_name__)
- print "count",OnChange.SomeVarName.count
- print "first",OnChange.SomeVarName.first
- print "last",OnChange.SomeVarName.last
+ print("count",OnChange.SomeVarName.count) + print("first",OnChange.SomeVarName.first) + print("last",OnChange.SomeVarName.last) --- a/exemples/python/python@py_ext/pyfile.xml Mon May 22 14:38:25 2023 +0200
+++ b/exemples/python/python@py_ext/pyfile.xml Mon May 22 14:40:49 2023 +0200
@@ -15,12 +15,12 @@
if(Python_to_C_Call(arg, i)):
- print "toC:", arg, "from C:", res, "FBID:", FBID
+ print("toC:", arg, "from C:", res, "FBID:", FBID) - print "Failed Python_to_C_Call failed"
+ print("Failed Python_to_C_Call failed") - print "Python read PLC global :",PLCGlobals.Test_Python_Var
- print "Python read PLC global Grumpf :",PLCGlobals.Grumpf
+ print("Python read PLC global :",PLCGlobals.Test_Python_Var) + print("Python read PLC global Grumpf :",PLCGlobals.Grumpf) PLCGlobals.Second_Python_Var = 789
@@ -47,23 +47,23 @@
-print "py_runtime init:", x, ",", y
+print("py_runtime init:", x, ",", y) -print "py_runtime cleanup"
+print("py_runtime cleanup") -print "py_runtime start", x * x + y * y
+print("py_runtime start", x * x + y * y)
+print("py_runtime stop")