Alarm data integration

Is it possible to read out and acknowledge alarms outside from Ignition gateway? With the OPC UA or with some other interface?

You could expose a web API to do this using the Web Dev module.

1 Like

That is a good idea, thank you. With a quick walkthrough it seems quite easy to do python scripting for returning alarm data within web API calls. And acknowledge alarms also.

Web Dev module is not included in trial version of Ignition, is it possible to install afterwards as a free trial?

Yes, all of the modules IA provides honor the 2-hour trial system. And I'm not aware of any 3rd party modules that don't.

1 Like

I think, this example can help you to find a better solution.

1 Like

Thank you for tips and links.
Simple and efficient way could be also using pure Tcp connection, and some binary protocol.

import SocketServer
import time

class MyTCPHandler(SocketServer.BaseRequestHandler):

def handle(self):
	self.data = self.request.recv(1024).strip()
	print self.data
	#read data from connection, parameters f.ex.
	#and here alarm data could be read and sent to active connection
	self.request.send(self.data.upper())
	time.sleep(2)
	#connection is closed after sending data back, in this example

print “starting”
server = SocketServer.TCPServer((“192.168.1.19”, 2345), MyTCPHandler)
server.serve_forever()

1 Like