是否可以实施Modbus服务器? [英] Is it possible to implement Modbus Server?

查看:68
本文介绍了是否可以实施Modbus服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,
我需要实现ModBus服务器,尤其是Modbus TCP服务器.我正在使用C#3.0.用户选择特定的数据类型(Int,Float,Double).用户可以根据需要选择任意数量的数据类型.它将包含在一个collection.Collection中包含选定的数据类型.我需要为选定的数据类型分配随机值.然后,用户提供他的IP.那么我需要通过modbus TCP提供这些值.仅在这里感到困惑:(((我的项目的主要目的是那些值应该能够被SCADA访问.SCADA支持modbusTCP.SCADA用户创建变量标签并指定通讯模式(此处为MODBUS TCP).因此,这些标签包含用户在我的应用程序(Modbus服务器)中选择了数据类型..


其他主要问题是我的应用程序"充当服务器,而SCADA充当客户端.不应有任何中间的第三方Modbus PLC仿真器.生成的值可以由SCADA直接访问.

我想我对你很清楚...

请帮我吧.

在此先感谢

Hi Dear Friends,
I need to implement ModBus Server especially Modbus TCP server. Im using C# 3.0. User selects the particular data type(Int,Float,Double). User can select as many data types as he wants. it ll be in one collection.Collection contains the selected data types.. I need to assign random values to the selected data types. Then user provides his IP. then i need to made available those values thro modbus TCP. confused here only :(( The Main aim of my project is those values should be able to access by SCADA. SCADA supports modbus TCP. SCADA user creates the variable tags and also specifies the communication mode(Here MODBUS TCP).So the tags contain the user selected data types in my application(Modbus Server)..


Other main thing is My Application acts as server and SCADA acts as client. There should not be any intermediate third party Modbus PLC simulator. The generated values can be accesible by SCADA directly.

I think that i was clear to you...

please help me out guys..

Thanks in advance

推荐答案

如果这是编程练习,建议您阅读 ^ ].
另一方面,如果您正在寻找开发应用程序的快速方法,请查看 NMODBUS [ ^ ]库.
:)
If this is a programming exercise the I suggest you reading the modbus specification[^].
On the other hand, if you''re looking for a quick way to develop your application, then check out the NMODBUS[^] library.
:)


这篇关于是否可以实施Modbus服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆