Py_ext: use non-derived type when generating C code for handling Python PLC globals.
--- a/py_ext/PythonFileCTNMixin.py Wed Jun 17 14:32:55 2020 +0200
+++ b/py_ext/PythonFileCTNMixin.py Thu Jun 18 14:18:16 2020 +0200
@@ -119,7 +119,7 @@
"opts": repr(variable.getopts()),
"configname": configname.upper(),
"uppername": variable.getname().upper(),
- "IECtype": variable.gettype(),
+ "IECtype": self.GetCTRoot().GetBaseType(variable.gettype()),
"initial": repr(variable.getinitial()),
"pyextname": pyextname
},