A method for interactive verification of PLC and host computer WCS signals

By using the interactive verification method of unique serial numbers and timestamps when the PLC interacts with the host computer WCS, the problem of communication delay and confusion caused by network delay and packet loss is solved, fast tracking of information and troubleshooting are realized, and the efficiency is improved Equipment maintenance efficiency.

CN114253211BActive Publication Date: 2024-09-20安歌科技(集团)股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111535676.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-15
Publication Date
2024-09-20
Estimated Expiration
2041-12-15

AI Technical Summary

Technical Problem

When the PLC interacts with the host computer WCS, due to network delay and packet loss, the communication information is delayed or confused, making it difficult to quickly troubleshoot.

Method used

The method of unique serial number and timestamp is used for interactive verification of data packets. Through interactive verification during the sending and receiving stages of data, the accuracy and timeliness of data packets are ensured, including generating a unique serial number when the lower system collects data, and A timestamp is added when the data packet is sent, and the receiving end parses and feeds back the sequence number to confirm data reception.

Benefits of technology

It realizes fast tracking query and troubleshooting of information, can record the frequency and time of equipment failure, improves the efficiency of equipment maintenance, and solves the failure problems caused by communication delay and packet loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114253211B
    Figure CN114253211B
Patent Text Reader

Abstract

The present invention proposes a method for interactive verification of PLC and WCS signals of a host computer, comprising the following steps: interactive verification in the data sending phase: S11. When the lower system collects data at an interactive point, the lower system triggers an accumulation calculator to generate a unique serial number in the PLC of the lower system; S12. Bind the unique serial number with the collected data, send the bound data packet to the host computer, and when the data packet is sent, the PLC generates a timestamp, and the WCS server of the host computer receives the data; interactive verification in the data receiving phase: S21. After the host computer feeds back the data to the PLC of the lower system for parsing, the host computer returns the unique serial number parsed by the PLC; S22. After the PLC parses the unique serial number, it stamps the received data with a receiving timestamp, and the PLC completes receiving the data. When data delay, packet loss and disorder occur in the communication information between the upper WCS and the PLC, information tracking can be queried, and the fault of the interactive information between the PLC and the host computer can be quickly eliminated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent warehousing, and in particular to a method for interactive verification of PLC and WCS signals of a host computer. Background Art

[0002] The ways of interaction between PLC and WCS include OPC UA, Socket and other Ethernet-based TCP / IP protocols. The network topology of the system is as follows: Figure 1 As shown, the system consists of a host computer, a lower PLC controller, and the execution equipment includes conveyors, sorting line stackers and other execution equipment.

[0003] Due to network delay and packet loss in the network link, when the host computer receives the data packet, it may be data from several seconds later, causing data delay or packet loss when the host WCS communicates with PLC. This paper proposes a method for signal interaction verification between PLC and host computer WCS. Summary of the invention

[0004] The purpose of the present invention is to solve the problems in the prior art and to propose a method for verifying the signal interaction between PLC and host computer WCS. When data delay or packet loss occurs in the communication information between the host WCS and PLC, information tracking can be queried, so as to quickly eliminate the fault of the interaction information between PLC and host computer.

[0005] To achieve the above object, the present invention proposes a method for interactive verification of signals between a PLC and a host computer WCS, including interactive verification in the data sending phase and interactive verification in the data receiving phase;

[0006] The interactive verification in the data sending stage specifically includes the following steps:

[0007] S11. When the lower system collects data at an interaction point, the lower system triggers an accumulator to generate a unique serial number in the PLC of the lower system;

[0008] S12. Bind the unique serial number to the collected data, send the bound data packet to the host computer, and at the same time as the data packet is sent, the PLC generates a timestamp, and the WCS server of the host computer receives the data;

[0009] The interactive verification in the data receiving stage specifically includes the following steps:

[0010] S21. After the host computer feeds back the data to the PLC of the lower system for analysis, the host computer returns the unique serial number analyzed by the PLC;

[0011] S22. After the PLC has parsed the unique serial number, it will add a receiving timestamp to the received data, and the PLC has completed receiving the data.

[0012] Preferably, in step S11, the data collected by the lower system includes barcode data and dimension data.

[0013] Preferably, in S12, the unique serial number is bound to the collected barcode data.

[0014] Preferably, in step S11, the accumulation calculation is performed according to the definition of the data and the size of the data storage area, and the accumulation range is 1-65535. When the count exceeds the accumulation count range, it returns to 1 and starts accumulation again.

[0015] Preferably, in step S12, the bound data packet is sent to the host computer via Socket.

[0016] Preferably, in step S12, the PLC generates a timestamp and stores it in the PLC data.

[0017] The beneficial effects of the present invention are as follows: by using the method of adding a unique serial number to a system timestamp, when the communication information between the upper WCS and the PLC generates data delay or packet loss, the information tracking can be queried and the time record can be kept, so that the fault of the PLC and the upper interactive information can be quickly eliminated. At the same time, the above method can also be used to record various on-site faults detected by the PLC, and to store and record data. It is used to eliminate the frequency and time of equipment failures, so as to maintain the equipment and solve equipment failures.

[0018] The features and advantages of the present invention will be described in detail through embodiments in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a network topology diagram of the interactive system between PLC and host computer WCS;

[0020] Figure 2 The present invention is a flow chart of a method for interactive verification of signals between a PLC and a host computer WCS. DETAILED DESCRIPTION

[0021] See also Figure 2 , a method for interactive verification of signals between a PLC and a host computer WCS of the present invention includes interactive verification in a data sending phase and interactive verification in a data receiving phase;

[0022] The interactive verification in the data sending stage specifically includes the following steps:

[0023] S11. When the lower system collects barcode data or other size data at an interaction point, the lower system triggers an accumulation calculator to accumulate and calculate according to the storage size of the data. The accumulation range is 1-65535. When the accumulation range is exceeded, it returns to 1 and starts accumulating to generate a unique serial number in the PLC of the lower system;

[0024] S12. Bind the unique serial number to the collected barcode data, and send the bound data packet to the host computer through Socket. When the data packet is sent, the PLC generates a timestamp and stores it in the PLC data. The WCS server of the host computer receives the data.

[0025] The interactive verification in the data receiving stage specifically includes the following steps:

[0026] S21. After the host computer feeds back the data to the PLC of the lower system for analysis, the host computer returns the unique serial number analyzed by the PLC;

[0027] S22. After the PLC has parsed the unique serial number, it will add a receiving timestamp to the received data, and the PLC has completed receiving the data.

[0028] Working principle of the present invention:

[0029] Due to the network delay and packet loss in the network link, the host computer may receive data several seconds later when receiving the data packet. The present invention uses a unique serial number plus a system timestamp method to track and query information when the communication information between the host WCS and PLC generates data delay or packet loss disorder, and has a time record, so as to quickly eliminate the fault of the PLC and the host interactive information. At the same time, the above method can also be used to record various on-site faults detected by the PLC, and to store and record data. It is used to eliminate the frequency and time of equipment failures, so as to maintain the equipment and solve equipment failures.

[0030] The above embodiments are intended to illustrate the present invention, not to limit the present invention. Any solution that is a simple transformation of the present invention belongs to the protection scope of the present invention.

Claims

1. A method for interactive verification of PLC and host computer WCS signals, Features: Including interactive verification in the data sending phase and interactive verification in the data receiving phase; The interactive verification in the data sending stage specifically includes the following steps: S11. The lower system collects data at an interaction point, and triggers an accumulation calculator to generate a unique serial number in the PLC of the lower system; the accumulation is calculated according to the definition of the data and the size of the data storage area, and the accumulation range is 1-65535. When the count exceeds the accumulation count range, it returns to 1 and starts accumulation again; the data collected by the lower system includes barcode data and size data; S12. Bind the unique serial number to the collected data, send the bound data packet to the host computer, and at the same time as the data packet is sent, the PLC generates a timestamp, and the WCS server of the host computer receives the data; the PLC generates a timestamp and stores it in the PLC data; bind the unique serial number to the collected barcode data; The interactive verification in the data receiving stage specifically includes the following steps: S21. After the host computer feeds back the data to the PLC of the lower system for analysis, the host computer returns the unique serial number analyzed by the PLC; S22. After the PLC has parsed the unique serial number, it will add a receiving timestamp to the received data, and the PLC has completed receiving the data.

2. A method for verifying the signal interaction between a PLC and a host computer WCS as claimed in claim 1, Features: In step S12, the bound data packet is sent to the host computer via Socket.