Basic Usage of HslCommunication Test Tool

Tip: After the article is written, the table of contents can be automatically generated. How to generate it can refer to the help document on the right


foreword

In the actual development process, when we operate the upper computer, one of the inseparable links is the communication function. This article is aimed at the original communication of PLC, both java and .net have inherited many functional interfaces. But what I want to talk about today is the most original tool, the HslCommunication test tool, which can test whether it communicates with the device in the case of a local connection.


1. What is HslCommunication?

Example: HslCommunication is a powerful communication test software, which can help us communicate with PLC locally.

2. Use steps

1. Open the software

The interface is as follows
insert image description here
Find our demo with the same model and protocol as the PLC device, and open it.
Here, we take Omron's PLC as an example, and the sampling protocol of this device is Fins UDP. Open the HslCommunication software to the corresponding demo of Omron, as shown in the figure, fill in the PLC parameters.
insert image description hereThen, hardware connection is required, and there are two ways to communicate with PLC. One is network port communication, and the other is serial port communication. Let's take network port communication as an example, which is more convenient. Connect the network port to the network port on the PLC device, and then change the local network IP address so that it is on the same network segment as the PLC. As shown in the figure, because my PLC port is 192.168.0.*, the first three digits of my local must also be set to 192.168.0, and the last digit is optional.

insert image description here

2. Software communication

With everything in place, we can start communicating.
After clicking Create Object
insert image description here
to open the interface, enter your address number. This address number is the address of the PLC internal register, which is defined inside the PLC. Simply put, it is the address where the data is stored. We use this address to find the data we want to monitor, and then call it for us. Finally, click Read, if there is a value displayed, it means the communication is successful.
insert image description here
Communication failures like the one shown below
insert image description here


Summarize

HslCommunication software communication is a very powerful software. I think before PLC communication, we can use this software to test to see if it can be communicated. If the communication is up, we will go down. If the communication is not up, we can advance in time Adjustment.
The most common problem encountered in the middle is that the software cannot communicate. This requires everyone to find out whether the PLC model, address, port and protocol correspond to each other.

Guess you like

Origin blog.csdn.net/weixin_46646156/article/details/128373805