OPCtoJMS
a bridge from an OPC-DA server to a JMS queue. The target is to read realtimes changes from an OPC server and decouple elaboration
Install / Use
/learn @skioppetto/OPCtoJMSREADME
OPCtoJMS
a bridge from an OPC-DA server to a JMS queue. The target is to read realtimes changes from an OPC server and decouple elaboration.
1.0: OPCProducer works perfectly. Now it connects to an OPC-DA server, listen to trigger changes and report the state of a group of items to a BlockingQueue. To use it:
- 1 implements IOPCCotext to match your needs (see MatrikonSimContext to get inspired). Let's call it MyOPCContext
- 2 Follow this snippet:
private BlockingQueue<IOPCMessage> queue = new ArrayBlockingQueue<IOPCMessage>(QUEUE_LIMIT);
private OPCProducer producer;
producer = new OPCProducer(new MyOPCContext(), queue);
// listen to queue to get some OPCMessageGroup
Known bugs:
- bug 5 sometimes OPC server reconnection fail.
Initial Import.
-
OPCProducer: produce OPCMessage objects listening to OPC-DA server changes. Configuration in made of a context where are define groups and triggers. When a trigger change all group items are read and send to a blocking queue.
-
ConnectionInformationFactory: build a JIInterop ConnectionInformation starting from a context object
-
OPCMessageAdapter: adapt an JIInterop object to a simple serializable POJO. This class is tested
What comes next.
In the next releases will be
- test OPCProducer using as source a local hosted Matrikon OPC Server and evaluating messages put into the Blocking Queue.
- develop OPCConsumer to write OPC items reading requests from a Blocking Queue
- test OPCConsumer using as destination a local hosted Matrikon OPC Server
- develop JMSConsumer that read messages from a Blocking Queue and send them to a JMS queue
- test JMSConsumer
- develop JMSProducer that listen to a JMS queue and send write requestes to a Blocking Queue
- test JMSProducer
Related Skills
node-connect
350.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
