In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Most people do not understand the knowledge points of this article "Modbus use and testing methods", so the editor summarizes the following contents, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "what is the method of Modbus use and testing" article.
1.1 Overview
Designer IDE is developed entirely on the basis of ServerSuperIO. Of course, secondary developers can also develop their own IDE environment and apply it to the company's products and projects. An IDE environment has been developed before, but it is still a long way from production. The framework of Designer IDE is relatively mature and scalable. Designer IDE can be used for system development and configuration, and ServerSuperIO.Host can be used for formal deployment and operation.
In the future, it will also be configured and docked with Web, which will be used for graphical modeling, quickly realize "connect and display" from the underlying sensor to cloud monitoring, and fully decouple communication and graphic modeling, which is the development trend of high-speed network (such as 5G) environment construction in the future. At the same time, for small and medium-sized enterprises pre-sales design, project deployment and implementation to provide a full range of solutions.
1.2 use and testing of standard Modbus
There are many devices or sensors that claim to be the Modbus protocol, but in practice, the standard Modbus protocol is modified, which is a lot of cases, essentially a custom protocol.
(1) download Modbus Slave and set it
Self-Baidu download, mainly used to simulate terminal devices and sensors using Modbus protocol. For those of you who don't understand the Modbus agreement, make up lessons first. Achieve the running effect, as shown in the following figure:
Step 1: next, set Modbus Slave, select * * Setup * *-> * * Slave Definition * *, and set the slave address, function code, register starting address and number, as shown below:
Step 2: download Virtual Serial Port Driver virtual serial port software to realize the virtual connection between COM1 and COM2. As shown below:
Step 3: select * * Connection * *-> * * Connect * * to set the key parameters of the communication, as shown below:
At this point, the analog data source terminal is set up.
(2) deploy Designer IDE and set it up to communicate with Modbus Slave
Step 1: deploy Designer IDE, the latest version is v4.2, download address: http://pan.baidu.com/s/1c1ZZLOO, see "deployment manual .docx" for specific deployment. Run the ServerSuperIO.Designer.exe main interface, as shown below:
Step 2: right-click * * Service instance * *-> * * add Service instance * * to set the basic parameters of the service. Other parameters can remain unchanged. If there is a scenario that requires advanced parameter settings, it depends on the situation. A service instance can mount multiple device drivers, service plug-ins, and so on. As shown below:
Step 3: in the service instance just created, right-click and select "device driver Management". You can see that there is device management and monitoring point management for the corresponding devices in the area on the right. As shown below:
Step 4: select "add device driver" to set the basic and communication parameters of the device, as shown below:
Step 5: select the device driver just added, and select [add Monitoring points] in the rightmost area, set and configure the corresponding Modbus Slave, and read the data information of the two monitoring points.
Read the settings of the first register data, as shown in the following figure:
Read the settings of the second register data, as shown in the following figure:
Step 6: select * * Debug * *-> * * run * *. The actual running effect can read the data of the two registers of the sensor, as shown below:
1.3 use and testing of non-standard protocols
The use and testing of non-standard protocols is consistent with the operation of Modbus, but the selection of additional device drivers and configuration of additional monitoring points depends on the actual situation. For the protocol of the driver, see the chapter on sending and receiving protocols such as developing a set of device drivers that support serial port and network communication at the same time.
(1) configure device drivers and monitoring points
Step 1: add device drivers, as shown below:
Step 2: add monitoring points, as shown in the following figure:
(2) start the analog terminal
Run the [TestDevice (Analog Terminal device) .exe] program in the test tools directory, and configure the serial port parameters, as shown below:
(3) Select * * Debug * *-> * * run * * to achieve the running effect, as shown below:
1.4 Development of device drivers
Download the standard Modbus device driver case: https://github.com/wxzz/ServerSuperIO.Driver.
Non-standard device driver case download: https://github.com/wxzz/TestDeviceDriver.
For the process of developing device drivers, see "if you develop a set of device drivers that support serial port and network communication at the same time", there may be some changes in the interface method, just develop your own device drivers with Modbus device driver examples. In addition, the development of the device driver is more flexible, it is not necessary to configure monitoring points, data storage operations can also be written in the device driver, but to take into account the blocking of data processing, do not affect the overall scheduling of ServerSuperIO to the device driver.
After using Designer IDE to configure and test the system, you can select * * launch console * * as the runtime environment, as shown below:
The above is about the content of this article on "what are the methods of Modbus use and testing". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.