opc服务器的时间怎么修改,OPC服务器是否允许在其逻辑中使用源时间戳?(Is OPC server allowed to use source timestamp in its logic?)...

OPC服务器是否允许在其逻辑中使用源时间戳?(Is OPC server allowed to use source timestamp in its logic?)

或换句话说 - 是仅用于客户报告目的的源时间戳?

我想知道的情况是 - 客户端A写入一些带有源时间戳集的变量。 然后,客户端B写入相同的变量,其源时间戳早于客户端A的时间戳(无论出于何种原因)。

现在 - 允许服务器拒绝来自B的写入,因为两个源时间戳都不为空并且很明显按时间顺序被破坏,或者服务器不允许这样做(即服务器必须接受更新的写入,因为它们来了)?

Or to put in other words -- is source timestamp used only for client reporting purposes?

The case I wonder about is -- a client A writes some variable with source timestamp set. And later client B writes the same variable with source timestamp older than the one from client A (for whatever reason).

Now -- is server allowed to reject the write from B because both source timestamps are not null and it is clear the chronological order is broken, or server is not allowed to do such a thing (i.e. server has to accept newer writes as they come)?

原文:https://stackoverflow.com/questions/40522364

更新时间:2020-02-27 16:10

最满意答案

你可以这样做,但像Camille说你可能只会在自己的自定义服务器中找到支持除了值以外的任何东西。

没有StatusCode可以让客户清楚为什么写入失败,但是您可以使用DiagnosticInfo信息补充返回的StatusCode,假设客户端请求了一个。

You can do this, but like Camille said you'll likely only find support for writing anything other than a value in your own custom server.

There's no StatusCode that would make it clear to clients why the write failed, but you could supplement the returned StatusCode with information in the DiagnosticInfo, assuming the client requested one.

相关问答

“内部异常:拒绝访问”,这意味着您必须在服务器和客户端之间启用DCOM通信。 服务器应用程序和OPCEnum服务(用于将ProgID转换为CLSID)。 https://www.google.com/search?q=dcom+configuration+for+opc "Inner Exception: Access is denied", meaning you have to enable DCOM communication between the server and client. B

...

埋在堆栈跟踪中是真正的问题: UaException: timed out waiting for acknowledge 。 也许你的防火墙或网络设置阻止了它,或者服务器没有发回它,但问题是客户端从未收到Acknowledge消息以响应其Hello 。 FWIW,我可以在没有问题的ReadExample针对该公共服务器运行ReadExample 。 在ReadExample我ReadExample getSecurityPolicy()并返回SecurityPolicy.None并在Client

...

除了Yair的答案,我还发现了一个非常有用的工具包,价格为295美元,提供了从LabVIEW连接到OPC服务器的快速简单的机制。 我已经用试用模式进行了测试,看来我的问题已经解决了。 http://opc-da.com/ In addition to Yair's answer I have found an very useful toolkit here for $295 that provides fast and simple mechanism to connect to OPC ser

...

这取决于您如何配置您的OPC客户端来提取数据。 当你在OPC中订阅一个组时,你可以指定一个刷新率。 这可能会默认为1秒甚至5秒,具体取决于OPC客户端。 OPC服务器对更新数据的频率也有一定的限制。 这仅适用于您的OPC客户端订阅数据更改事件。 另一种方法是对OPC服务器执行异步或同步读/写操作。 还有几种阅读模式。 由于您使用的是OPC,因此您可以使用任何OPC兼容的客户端来测试您的服务器,这将告诉您问题是否与Think'n'Do中的设置有关,还是与PLC /服务器有关。 我使用的最好的通用OP

...

我发现Unified Automation的C ++ SDK在本文中提到了XCode支持 虽然不是 Xcode,但我已经成功使用这些SDK,使用Xamarin构建在iOS和Android上运行的应用程序。 https://github.com/OPCFoundation/UA-.NETStandard https://github.com/convertersystems/opc-ua-samples I see that Unified Automation's C++ SDK does men

...

如果您使用Windows系统, 点击开始 - >运行 - >输入“dcomcnfg.exe” 展开组件服务 - >计算机 - >我的电脑 - > DCOM配置 然后找到您的OPC服务器并右键单击,您将获得OPC服务器的所有详细信息 There's probably other ways to find it out but I finally found an answer myself in this forum thread: http://www.control.com/thread/102

...

我在工业环境中的4台服务器上使用Kepware OPC服务器用于MODBUS TCP,Simatic S7和Yokogawa超过5年,没有任何问题。 它很容易设置,在开发过程中没有出现任何问题。 实际上,我们决定不使用它只是在它不支持我们拥有的设备时这是非常好的(这种情况很少见,而且主要发生在我必须开发自定义OPC服务器时)。 Kepware OPC服务器甚至能够使用保留的PG连接来连接西门子PLC(与Simatic OPC服务器不同,如果您的连接数量有限,例如CP343 LEAN版本的通信模块,

...

OPC服务器:Simatic NET 服务器ID:opcda://localhost/OPC.SimaticNET.1/ {B6EACB30-42D5-11D0-9517-0020AFAA4B3C} CLSID:{B6EACB30-42D5-11D0-9517-0020AFAA4B3C} 标签: SERVER:\ DiagnosticsSummary \ CumulatedSubscriptionCount SERVER:\功能\ MinSupportedUpdateRate OPC Server

...

你可以这样做,但像Camille说你可能只会在自己的自定义服务器中找到支持除了值以外的任何东西。 没有StatusCode可以让客户清楚为什么写入失败,但是您可以使用DiagnosticInfo信息补充返回的StatusCode,假设客户端请求了一个。 You can do this, but like Camille said you'll likely only find support for writing anything other than a value in your own c

...

当前的Sinumerik OPC UA服务器是错误的,并没有提供正确编码的ExtensionObjects。 一旦可用,您将需要从西门子请求更新服务器。 请注意,您可以毫无问题地访问它,UaExpert可以解码编码不良的ExtesionObjects。 这只是让他们首先发布了这样一个错误的版本。 编辑:关于ExtensionObjects的注意事项:如果您尝试将其作为完整结构读取,则ServerStatus将作为ExtensionObject传输。 PublishResponse(用于提供订阅数据

...

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值