
08/16/2017

hello, everyone,
i meet a problem. Because i want to read / write value in opcua server integrated in S7 1500 of siemens by a client in 4diac. But it must have a id von opc ua server and i don not know how can i set the id for opcua server.this is by me set :opc_ua[opc.tcp://192.168.1.2:4840#/Objects:PLC_1:DataBlocksGlobal:Datenbaustein_1/SIMATIC.S7-1500.OPC-UAServer:PLC_1], but it does not work. and it always reminder me , that can not find node method.
i hope i can fast get your answer. thank you very much

From what I see you use a client that expects you to enter a fully qualified path consisting of the Server URL and the NodeId.
I recommend you use a different client that allows you to discover a server, browse the address space and select the variables that you need to access. Any well-designed UA Client that I know works that way.
Note that OPC UA NodeIds are not assumed to be strings. They may be numbers, GUIDs or even byte strings.
And even if a server uses strings, these strings might contain special characters like colon or slash that you will have to escape to create such a fully qualified path.
1 Guest(s)