简体   繁体   English

Milo OPC UA 服务器推送服务器逻辑中的值

[英]Milo OPC UA Server push Values in Server Logic

I'm a newbie to OPC UA.我是 OPC UA 的新手。

My target is to create a OPC UA Server and as soon somebody changes any Value I want to receive a function call, so I can react on the Input.我的目标是创建一个 OPC UA 服务器,一旦有人更改了我想要接收函数调用的任何值,我就可以对输入做出反应。

To archive this, I created a server with MILO-Eclipse.为了归档这个,我用 MILO-Eclipse 创建了一个服务器。 In my Namespace I have some functions called onDataItemsModified() etc. But if I change a Value in my Server with UAExpert, the Server doesn't call the onDataItemsModified() Function.在我的命名空间中,我有一些名为 onDataItemsModified() 等的函数。但是如果我使用UAExpert 更改服务器中的值,则服务器不会调用 onDataItemsModified() 函数。 Is there another way to receive a notification as soon somebody changed a value on my Server?是否有另一种方法可以在有人更改我服务器上的值时立即收到通知? I saw the opportunity to add a client and register an observer, but I thought I can see the changes directly as Server and dosnt need to implement a client.我看到了添加客户端和注册观察者的机会,但我认为我可以直接看到更改作为服务器并且不需要实现客户端。

When a client writes to an attribute of a Node in your address space it comes in via the Write service, not any of the Monitored Item services.当客户端写入地址空间中节点的属性时,它通过写入服务而不是任何受监控项服务进入。

You can override the write call in your address space, or simply add an AttributeObserver or an AttributeDelegate to the Nodes you create.您可以覆盖地址空间中的 write 调用,或者简单地将 AttributeObserver 或 AttributeDelegate 添加到您创建的节点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 具有历史数据访问权限的Milo OPC UA服务器 - Milo OPC UA Server with Historical Data Access 重新启动opc UA服务器时无法创建eclipse milo会话 - eclipse milo session not getting created when opc UA server restarts 服务器断开连接或使用 OPC UA milo 重新启动后如何处理重新订阅? - How to handle resubscribing after server is disconnected or restarted with OPC UA milo? OPC UA采样率设置为0是否可以与OPC UA Ecplise Milo服务器一起使用 - Does opc ua sampling rate set at 0 work with an OPC UA Ecplise Milo server 使用 milo 和具有安全连接的 OPC UA 服务器创建 java 一个 opc 客户端 - Create java a opc client using milo with an OPC UA Server with secure connection 我如何(仅)使用 Eclipse Milo OpcUa 服务器更新 OPC UA 节点的时间戳? - How do I (only) update the timestamp of an OPC UA Node using an Eclipse Milo OpcUa Server? 使用 Eclipse Milo JAva 客户端从 Rockwell OPC UA 服务器获取数据时出错 - Error fetching data from Rockwell OPC UA Server using Eclipse Milo JAva Client 将预触发值从OPC UA服务器发布到OPC UA客户端 - Publish pre-trigger values from an OPC UA server to a OPC UA client 什么时候在 milo opc ua 客户端中调用 onServiceFault? - When is onServiceFault called in milo opc ua client? opc ua客户端使用eclipse milo实现 - opc ua client implementation using eclipse milo
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM