Hi, Does anyone know if it is possible to set OPC variables as read only? Best regards Stefan
Hi Stefan, From memory, an OPC UA variable that is declared as an OUT port is read-only, at least in the UaExpert test client I was using … Can you try this and let us know? Martin.
Hi Martin, Yes that works.That is just for program variables or is it possible in PLC.Datalist (Global variables)? I have all the opc variables in a structure so maybe it’s not possible to do some of those variables readonly. /Stefan
Hmm, in PLCnext Engineer I don’t think it’s possible to set variables in the global variable table to read-only. I think the closest you will get is to put all the read-only variables into a separate struct instance, which is declared as a program OUT port. If you are creating PLCnext components and programs in C++, then there is more flexibility around OPC variables in structs, but I’m guessing that isn’t relevant in this case. Martin.