gpt4 book ai didi

client-server - 写我自己的OPC

转载 作者:行者123 更新时间:2023-12-05 09:24:08 25 4
gpt4 key购买 nike

我对OPC的实现有一些疑问:

  • 我可以为要向服务器发送和接收实时数据的 PLC 编写自己的 OPC 服务器和 OPC 客户端吗?

    本科生能轻松到什么地步??!!

  • 或者我可以为服务器(例如“MartikonOPC Explorer”)和客户端使用免费软件来连接到 PLC 吗?

  • 我可以使用哪种编程语言?

======================================

评论:

  • PLC型号:台达

最佳答案

Can I write my own OPC server and OPC client for a PLC that want to send and receive real-time data to the server ??

是的,你可以,听起来好像你只需要 OPC DA,即读取/写入值。

How much is easy for a undergraduate student ??!!

这取决于,如果您想实现 OPCDA 3.0,那么您将需要一些有关 COM 的知识,如果您以前没有使用过它,这可能会让人望而生畏。通常,当您创建 OPC 服务器时,您会使用来自某些供应商的框架,例如Matrikon,但如果您的预算紧张,您可能需要全部自己完成。

Or can I use free software for the server (for example "MartikonOPC Explorer") and for the client to connect to the PLC ??

您可以使用 Matrikon OPC 资源管理器连接到您的 OPC 服务器,但通常您希望将客户端代码嵌入到程序中并对值进行一些操作,资源管理器更多用于测试

Which Programming language can I use ?

对于服务器部分C/C++,对于客户端部分你更灵活,任何支持COM的语言

或者,您可以实现 OPC UA 服务器,OPC UA 独立于平台,几乎与语言无关。

查看更多信息 opcfoundation.org

关于client-server - 写我自己的OPC,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15295304/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com