Hi all,
I am using the PLCnext REST API with Python3 to read and write variables from/to the GDS.
Reading works well with “Simple” datatypes (like BOOL, INT etc.) as well as with complex STRUCTS, but writing variables doesn’t work with STRUCT-datatypes.
I have a variable udtTest of datatype TEST that looks like this in debug-window:
grafik.png
I can read the data from there, but if I try to write I get an error in the response saying “TypeMismatch”.
my code looks like this:
grafik.pngResponse:
grafik.png
Does anybody have an idea how this can be solved?
Thanks and regards
Fabian