OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Adding Object to OPC UA Server from Ignition issue in Python

  • Thread starter Thread starter Marko Ilić
  • Start date Start date
M

Marko Ilić

Guest
I'm new in programming world and I want to pull some data from modbus register and add it to OPC UA Ignition server. I'm programming in Python.

I'm trying to create OPC UA Server Object, but I didn't get any results. Code is executed, but there is no new Object in the server.

Here is my code:

from opcua import Server, ua

server = Server()

url="opc.tcp://localhost:62541"

server.set_endpoint(url)

name="OPCUA_SIMULAITON_SERVER"

addspace=server.register_namespace(name)

node = server.get_objects_node()

param=node.add_object(addspace,"Parameters")
<p>I'm new in programming world and I want to pull some data from modbus register and add it to OPC UA Ignition server. I'm programming in Python.</p>
<p>I'm trying to create OPC UA Server Object, but I didn't get any results. Code is executed, but there is no new Object in the server.</p>
<p>Here is my code:</p>
<p>from opcua import Server, ua</p>
<p>server = Server()</p>
<p>url="opc.tcp://localhost:62541"</p>
<p>server.set_endpoint(url)</p>
<p>name="OPCUA_SIMULAITON_SERVER"</p>
<p>addspace=server.register_namespace(name)</p>
<p>node = server.get_objects_node()</p>
<p>param=node.add_object(addspace,"Parameters")</p>
 

Latest posts

S
Replies
0
Views
1
Safwan Aipuram
S
Top