I am trying to read/write a global variable of a PLC program which is published on the datalayer. My program does not seem to be able to access the variable written on the datalayer. Is there some examples of writing/reading to Datalayer I can access? Or a How to for it? (I cannot find any myself)
Â
Or is it an issue of not being able to read/write booleans?
Edit: I have managed to narrow down the issue a bit, reading anything from the datalayer seems to work just fine. However writing to the datalayer seems to still be an issue, no matter what type of variable I try to write. Even directly writing what is being read does not seem to work, and keeps sending the DL_Type_Mismatch error.
Â
uiState is a UInt16. does that cause an issue?
Â
Thank you
Â
Â