PLC virtual debugging method and system based on warehouse logistics production line
By building models on the warehousing and logistics line and using a virtual debugging system, the accuracy of the PLC program is verified, and the problem of verification of the new version of PLC program is solved, ensuring stable operation of the production line without shutting down.
Patent Information
- Application Number
- CN202410981805.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-12
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the warehousing and logistics production line, verification of the new version of PLC program is difficult to be carried out while ensuring that production does not stagnate, resulting in a higher risk of stagnation of the production line.
The PLC virtual debugging method and system based on the warehousing logistics production line is adopted. By building a warehousing logistics production line model, receiving user input information, generating PLC control instructions, and controlling the operation of the virtual equipment based on these instructions to verify the accuracy of the PLC program. The system includes a warehousing logistics line construction module, a virtual PLC debugging module, a simulation verification module and a control conversion module. It uses digital twin simulation technology and a virtual controller to combine it with a real controller to realize virtual debugging and three-dimensional monitoring.
It realizes the accuracy of the new version of PLC program without shutting down, reduces the risk of production line stagnation, and converts it into three-dimensional monitoring after virtual adjustment and verification, ensuring the stable operation of the warehousing and logistics production line.
Smart Images

Figure CN118938791A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital twin technology, and in particular to a PLC virtual debugging method and system based on a warehousing logistics production line. Background Art
[0002] In the process of enterprises upgrading traditional workshops to smart ones, it is necessary to upgrade or replace the existing systems. Before the system upgrade, it is necessary to test and optimize the operating procedures and dynamic coordination parameters of the current manufacturing system and equipment to ensure the safe and reliable operation of manufacturing activities. Moreover, in the field of warehousing and logistics, because the warehousing and logistics production lines have certain particularities and complexities, and it is also necessary to consider multiple factors such as the flow of goods, loading and unloading processes, and shelf layout, more customized development and expertise are required.
[0003] When a production line in operation needs to load a new version of the PLC program, the company often does not allow production to stagnate. However, the new version of the PLC program is often customized for the company, and there is no suitable production line to debug and verify. If it is directly downloaded to the customer's production line, it is very likely that the customer's production line will stagnate due to incorrect settings of the PLC program logic functions or incomplete considerations. Therefore, for storage and logistics production lines, how to verify the accuracy of the new version of the PLC program becomes an extremely important issue. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a PLC virtual debugging method and system based on a warehousing logistics production line to overcome the current problem that a new version of the PLC program cannot be verified while ensuring that production is not stagnant.
[0005] To achieve the above objectives, the present invention adopts the following technical solutions:
[0006] In a first aspect, the present application provides a PLC virtual debugging method based on a warehousing logistics production line, comprising:
[0007] Build a model of warehousing logistics production line;
[0008] Receive user input information, configure the PLC program to be tested based on the user input information, or generate the PLC program to be tested based on the user input information and configure it;
[0009] Based on the PLC program to be tested and the corresponding configuration information, a PLC input signal is obtained to generate a PLC control instruction, and the operation of the virtual device in the model is controlled based on the PLC control instruction;
[0010] Receive and display feedback results of the virtual device running the PLC control instruction.
[0011] Further, in some embodiments of the present application, the step of acquiring a PLC input signal based on the PLC program to be tested and the corresponding configuration information to generate a PLC control instruction includes:
[0012] By presetting a virtual controller in a control conversion module, based on the PLC program and corresponding configuration information, obtaining first signal data from a database in the control conversion module, and generating the PLC control instruction;
[0013] Wherein, the first signal data includes PLC input signal data for realizing PLC virtual debugging.
[0014] Furthermore, in some embodiments of the present application, it also includes:
[0015] By presetting the real controller in the control conversion module, based on the PLC program and corresponding configuration information, the second signal data is obtained from the database in the control conversion module to generate the PLC control instruction;
[0016] Among them, the second signal data includes PLC input signal data in the warehouse logistics production line.
[0017] Further, in some embodiments of the present application, the virtual equipment in the model corresponds to the physical equipment in the warehousing logistics production line;
[0018] Each of the virtual devices or physical devices corresponds to a dynamic link library, which contains device communication rules, data conversion rules and message parsing rule classes. The dynamic link library is used for engineers to configure, or generate and configure the PLC program to be tested.
[0019] Furthermore, in some embodiments of the present application, the model of building a storage logistics production line includes:
[0020] Based on the digital twin simulation technology, the warehousing logistics production line is restored according to the on-site equipment layout or engineering drawings in the warehousing logistics production line to obtain the model.
[0021] Furthermore, in some embodiments of the present application, it also includes:
[0022] A motion behavior analysis is established for the model and sensor switches, and the behavior model of the equipment is described by scripts in the digital twin simulation platform. The sensor switches include sensor switches in the warehouse logistics production line.
[0023] Furthermore, in some embodiments of the present application, it also includes:
[0024] The action enable signal corresponding to each virtual device in the model and the motion mechanism of each virtual device is associated with the output signal of the physical PLC or the virtual PLC, wherein the physical PLC is a PLC used to control the physical equipment in the warehouse logistics production line, and the virtual PLC is a PLC used to control the virtual equipment in the model.
[0025] In a second aspect, the present application also provides a PLC virtual debugging system based on a warehousing and logistics production line, including: a warehousing and logistics production line construction module, a virtual PLC debugging module, a simulation verification module and a control conversion module;
[0026] The storage logistics production line construction module is used to construct a model of the storage logistics production line;
[0027] The virtual PLC debugging module is used to receive user input information, configure the PLC program to be tested based on the user input information, or generate the PLC program to be tested based on the user input information and configure it;
[0028] The control conversion module is used to obtain a PLC input signal based on the PLC program to be tested and the corresponding configuration information to generate a PLC control instruction, and to control the operation of the virtual device in the model based on the PLC control instruction, and to receive feedback results of the virtual device running the PLC control instruction;
[0029] The control conversion module or the virtual PLC debugging module is also used to display the feedback result of the virtual device running the PLC control instruction.
[0030] The present invention relates to the field of digital twin technology, and specifically to a PLC virtual debugging method and system based on a warehousing and logistics production line, the method comprising: constructing a model of a warehousing and logistics production line; receiving user input information, configuring a PLC program to be tested based on the user input information, or generating a PLC program to be tested based on the user input information and configuring it; obtaining a PLC input signal based on the PLC program to be tested and the corresponding configuration information to generate a PLC control instruction, and controlling the operation of a virtual device in the model based on the PLC control instruction; receiving and displaying feedback results of the virtual device running the PLC control instruction. In addition, the virtual signal value can be obtained through virtual control for virtual debugging verification, and the real signal value can be obtained through a real controller, so as to transition from realizing PLC virtual debugging to real-time three-dimensional monitoring of the warehousing and logistics production line. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 It is a flow chart of a PLC virtual debugging method based on a warehousing logistics production line provided by an embodiment of the present invention.
[0033] Figure 2 It is a schematic diagram of the principle of data communication in a PLC virtual debugging system based on a warehousing logistics production line provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0034] To make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other implementation methods obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0035] Figure 1 This is a flow chart of a PLC virtual debugging method based on a warehousing logistics production line provided by an embodiment of the present invention. Figure 1 , this embodiment may include the following steps:
[0036] S101. Build a model of the warehousing logistics production line.
[0037] Specifically, based on the digital twin technology, the warehousing and logistics production line can be restored according to the on-site equipment layout or engineering drawings in the warehousing and logistics production line to obtain the above-mentioned model, wherein the model includes virtual devices corresponding to the on-site physical equipment in the warehousing and logistics production line, so as to verify the effect of the PLC program to be tested running in the warehousing and logistics production line through the virtual model.
[0038] S102 : receiving user input information, configuring the PLC program to be tested based on the user input information, or generating the PLC program to be tested based on the user input information and configuring it.
[0039] S103 . Based on the PLC program to be tested and the corresponding configuration information, obtain a PLC input signal to generate a PLC control instruction, and control the operation of the virtual device in the model based on the PLC control instruction.
[0040] S104, receiving and displaying feedback results of the virtual device running the PLC control instruction.
[0041] The PLC virtual debugging method based on the warehousing and logistics production line provided in the present application first constructs a model of the warehousing and logistics production line; receives user input information, configures the PLC program to be tested based on the user input information, or generates the PLC program to be tested based on the user input information and configures it; obtains PLC input signals based on the PLC program to be tested and the corresponding configuration information to generate PLC control instructions, and controls the operation of virtual devices in the model based on the PLC control instructions; receives and displays feedback results of the virtual device running the PLC control instructions, and realizes debugging and verification of new PLC programs for existing warehousing and logistics production lines.
[0042] The present application also provides a PLC virtual debugging system based on a warehousing and logistics production line, which is used to implement the above-mentioned PLC virtual debugging method based on a warehousing and logistics production line. Specifically, the PLC virtual debugging system based on a warehousing and logistics production line provided by the present application includes: a warehousing and logistics production line construction module, a virtual PLC debugging module, a simulation verification module, and a control conversion module.
[0043] Among them, the warehousing and logistics production line construction module is used to construct a model of the warehousing and logistics production line; the virtual PLC debugging module is used to receive user input information, configure the PLC program to be tested based on the user input information, or generate the PLC program to be tested based on the user input information and configure it; the control conversion module is used to obtain the PLC input signal based on the PLC program to be tested and the corresponding configuration information to generate PLC control instructions, and control the operation of the virtual equipment in the model based on the PLC control instructions, and receive feedback results of the virtual equipment running the PLC control instructions; the control conversion module or the virtual PLC debugging module is also used to display the feedback results of the virtual equipment running the PLC control instructions.
[0044] In some embodiments of the present application, the control conversion module includes a virtual controller (i.e., virtual PLC) and a real controller (i.e., real PLC). The virtual controller is used to perform virtual debugging of the newly written PLC program that needs to be tested based on the model, and the real controller is used to perform three-dimensional monitoring of the warehouse logistics production line based on the model.
[0045] In addition, the virtual-to-real PLC control conversion module also includes a Redis database. The signal data of virtual debugging and three-dimensional monitoring are serialized and cached in the Redis database. Both physical equipment (equipment of the warehousing and logistics production line) and virtual models obtain input signals from the Redis database. For example, based on the PLC program and corresponding configuration information, the virtual controller obtains the PLC input signal data (such as the signal during the model operation process) used to implement PLC virtual debugging from the database, that is, the first signal data, as the input signal, generates PLC control instructions, controls the operation of the virtual equipment in the model through the simulation verification module, and receives the feedback signal after the equipment is running, and directly displays or displays the feedback signal through the virtual PLC debugging module to verify the effect of the new program.
[0046] In actual applications, an information exchange channel is established between the above modules. Engineers can load the newly written PLC program into the virtual PLC debugging module and perform corresponding configuration. The control instructions of the virtual PLC are then sent to the simulation verification module. The simulation verification module executes the control instructions, and the generated feedback signals are transmitted to the virtual PLC (i.e. the virtual controller mentioned above), thereby verifying the logical functions of the PLC program and realizing the verification of the logistics production line PLC virtual debugging system.
[0047] Furthermore, in some implementations of the present application, the control conversion module also includes a real controller for controlling the operation of the model based on actual real signals in the warehousing and logistics production line, thereby achieving three-dimensional monitoring of the warehousing and logistics production line.
[0048] Specifically, the principle is the same as that in the above-mentioned virtual debugging process. The relevant signal data are serialized and cached in the Redis database. The real control obtains the PLC input signal data used to realize three-dimensional monitoring, that is, the second signal data, from the database as the input signal, generates PLC control instructions, and controls the operation of the virtual equipment in the model through the simulation verification module to realize three-dimensional monitoring.
[0049] In actual applications, after completing the virtual debugging, on this basis, the model of the logistics production line equipment in the PLC virtual debugging system is retained, and then the real-time PLC data on site is connected to drive the logistics production line equipment model to represent the actual equipment operation status on site, thereby realizing the conversion from virtual PLC signals to real PLC signals, and the conversion from the warehousing logistics production line PLC virtual debugging system to the logistics production line three-dimensional monitoring system.
[0050] In addition, in the present application, the above-mentioned database can also store signal data on the warehousing logistics production line, which can be directly used by the logistics equipment in the warehousing logistics production line. Both physical equipment and virtual models can obtain input signals from the Redis database, which can not only ensure the real-time nature of signal interaction, but also realize the separation of reading and writing signals between physical equipment and virtual equipment.
[0051] In some embodiments of the present application, since Siemens PLC is currently popular in the domestic industrial field, Siemens series PLCs have the advantages of small size, fast speed, strong network communication capabilities, high reliability, etc., and are used in various production lines. Therefore, the PLC virtual debugging system based on the warehousing and logistics production line provided by the present application can be developed as a driver for Siemens S7 series PLC during actual development to realize the above-mentioned virtual debugging and three-dimensional monitoring functions.
[0052] Figure 2 It is a schematic diagram of the principles of data communication in a PLC virtual debugging system based on a warehousing and logistics production line provided in an embodiment of the present invention, wherein the external simulation system, i.e., the digital twin scene (corresponding to the simulation verification module in the above embodiment), includes the model of the warehousing and logistics production line mentioned in the above embodiment.
[0053] In the present application, the virtual devices in the above model correspond to the physical devices in the warehousing logistics production line; and a dynamic link library is set for each virtual device or physical device, which contains device communication rules, data conversion rules and message parsing rule classes. The dynamic link library is used for engineers to configure, or generate and configure the PLC program to be tested.
[0054] Specifically, Figure 2 As shown, in this system, the operating environment of PLC can use the PLCsim module (or STEP7 TIA Portal) of STEP7 TIA Portal software for the operation of PLC program; at the same time, the PLC protocol and IP address are set, and each device corresponds to a dynamic link library dll, which contains device communication, data conversion rules and message parsing rule classes; the NetToPLCsim tool is used to obtain all output signals and input signals of the PLC program; then the connection interface between the NetToPLCsim tool and the external software (digital twin simulation software, the embodiment of this application uses a warehouse logistics simulation optimization platform based on digital twin or uses other digital twin simulation platforms) is established. In this way, the reading and writing methods of all devices are unified, so that the upper-level operation only needs to focus on reading the device type and address, simplifying the process of developing each device library.
[0055] Further, in some embodiments of the present application, the model of the warehousing logistics production line is constructed by the warehousing logistics production line construction module, including: in the digital twin simulation platform, the warehousing logistics production line is restored according to the on-site equipment layout or engineering drawing in the warehousing logistics production line to obtain the model. And also includes establishing motion behavior analysis for the model and sensor switches, describing the behavior model of the equipment through scripts in the digital twin simulation platform, the sensor switch includes the sensor switch in the warehousing logistics production line, so as to realize the operation of the equipment in the model based on the corresponding signal data control.
[0056] Specifically, the first step is to build a simulation scene, and restore the warehouse logistics production line in the digital twin simulation platform according to the actual layout of the on-site equipment or the production line layout engineering drawing. It can be understood that the more detailed the warehouse logistics equipment model is, the more obvious the PLC virtual debugging effect is, and the subsequent warehouse logistics equipment model can also be used for the three-dimensional monitoring of warehouse logistics, and the monitoring effect is more accurate.
[0057] In addition, motion behavior analysis is established for the built warehousing and logistics equipment model and the required sensor switches such as photoelectric switches. The behavior model of the equipment is described by scripts in the digital twin simulation platform to realize the interaction and execution of equipment actions.
[0058] It should be noted that in the present application, the digital twin simulation platform is used to build a model through the warehousing and logistics production line construction module, and virtual debugging and three-dimensional monitoring are carried out through the simulation verification module.
[0059] In practical applications, the PLC virtual debugging system based on the warehousing and logistics production line provided by the present application has good communication functions and efficient data acquisition functions, can support concurrent acquisition of multiple tasks, and has signal configuration functions and virtual-real signal interaction functions, so that the reading and writing of physical device signals and the reading and writing of virtual signals are separated to achieve asynchronous decoupling. Finally, by simulating the real environment, a virtual scene is built for virtual debugging. After the virtual debugging is successful, the real data obtained after decoupling can be used to realize three-dimensional real-time monitoring of the warehousing and logistics production line.
[0060] Among them, for communication connection, it can be achieved by including the above Figure 2 And related description parts, realize the communication between virtual PLC (such as virtual controller), physical PLC (such as PLC in warehouse logistics production line) and simulation platform. That is, the output signals of physical PLC and virtual PLC can be transmitted to the simulation platform, the feedback signals given by the simulation platform can be transmitted to physical PLC and virtual PLC, and the communication delay can be calculated. In some embodiments, the system can use industrial Ethernet for integrated communication, which not only has the characteristics of openness, low cost and wide software and hardware support, but also can break through the limitations of field bus communication distance and rate.
[0061] For the association configuration, the input and output signals of the physical / virtual PLC program can be associated with the control and feedback signals of the digital twin simulation platform. That is, the action enable signal corresponding to each device and the motion mechanism of each device in the digital twin simulation platform is associated with the output signal of the physical / virtual PLC and configured in the digital twin simulation platform, so that when the physical / virtual PLC and the digital twin simulation platform are jointly debugged and tested, each device and the motion mechanism of each device can run production and motion actions like the devices in the actual production line.
[0062] In some implementations of the present application, the specific association configuration may include data collection, signal configuration, and virtual and real signal interaction.
[0063] Among them, data acquisition is a basic function in the PLC virtual debugging system. In the embodiment of the present application, the device driver can be developed through the application programming interface provided by the device manufacturer to realize the connection and data interaction between the system and the industrial control equipment, and considering the data acquisition of multiple devices, in the embodiment of the present application, a thread pool can be used for multi-task concurrent processing. Regarding signal configuration, physical signals and virtual signals can be added and changed directly, and the configuration information can be maintained and restored through the INI configuration file. And regarding the interaction between virtual and real signals, after the signal configuration is completed, the signal data is serialized and uniformly stored in the database. Both the physical device and the virtual device obtain the input signal from the database, which can not only ensure the real-time nature of the signal interaction, but also realize the separation of the read and write signals of the physical device and the virtual device.
[0064] In this application, a digital twin simulation platform is built based on digital twin technology through the warehousing logistics production line construction module, and the joint debugging and testing of PLC program operation and digital twin simulation platform are realized by using the simulation verification module, including the operation of virtual devices in the control model.
[0065] Specifically, the physical / virtual PLC program operation and the digital twin simulation platform can be connected to the external application through the Socket, that is, the virtual PLC program control instructions can be transmitted and issued to the logistics scene of the digital twin simulation platform, and the operation control of the equipment in the virtual scene can be realized. By loading the virtual PLC signal, the process flow or work step rhythm of the logistics production line can be changed, and the logistics production line can be virtually debugged and visualized; at the same time, the response signal, interrupt signal, etc. in the logistics scene of the digital twin simulation platform can be fed back to the virtual PLC, so as to assist engineers in timely discovering bugs in the PLC program. At the same time, the optimized process flow and work step rhythm information and virtual PLC information are uploaded to the terminal database as the basis for virtual debugging.
[0066] In addition, the content of three-dimensional monitoring of the storage logistics production line mentioned in the above embodiment of the present application is explained as follows:
[0067] In this application, after completing the debugging and verification of the new PLC program, the PLC virtual debugging system based on the warehousing and logistics production line can be converted into a three-dimensional monitoring system for the logistics production line. In actual applications, although the PLC virtual debugging system based on the warehousing and logistics production line can already visualize the warehousing and logistics production line, the virtual debugging process rarely considers the coupling relationship between equipment, the real-time transmission of equipment signals, and the influence of surrounding environmental factors. The visualization of virtual debugging is inconsistent with the actual movement visualization of the warehousing and logistics production line. Therefore, the actual movement signals and data of the on-site warehousing and logistics production line can be collected to convert the PLC virtual debugging system into a three-dimensional monitoring system.
[0068] Specifically, the warehouse logistics production line model is retained on the basis of the PLC virtual debugging system, and data is collected from each device on the warehouse logistics production line. The collected data information is uploaded to the real controller in the virtual-real PLC control conversion module, and the system reads real-time data from the real controller to drive the warehouse logistics production line. Achieve three-dimensional monitoring of the warehouse logistics production line.
[0069] This application provides a PLC virtual debugging system that can be performed without stopping the production line for a production line that is in operation and needs to replace the PLC program, so as to realize the simulation and verification of the logic of the new PLC program; at the same time, based on the PLC virtual debugging system, three-dimensional monitoring of the production line after the PLC program is replaced is realized, that is, the system has the function of virtual and real signal interaction, so that the reading and writing of physical device signals are separated from the reading and writing of virtual signals, and asynchronous decoupling is realized. The conversion of virtual signals to real data completes the transformation of the PLC virtual debugging system and the three-dimensional monitoring system. On the one hand, the structural design and control design of the production line can be continuously changed in the virtual debugging stage, and the control module can be quickly connected to the actual design equipment for debugging and verification in the subsequent deployment stage. On the other hand, the three-dimensional monitoring of the production line after the PLC program is replaced can also be realized based on the PLC virtual debugging system, and the transformation of virtual signals to real data completes the transformation of the PLC virtual debugging system and the three-dimensional monitoring system.
[0070] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" refers to at least two.
[0071] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0072] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0073] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0074] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0075] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0076] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0077] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A PLC virtual debugging method based on warehousing logistics production line, It is characterized in that include: Build a model of warehousing logistics production line; Receive user input information, configure the PLC program to be tested based on the user input information, or generate the PLC program to be tested based on the user input information and configure it; Based on the PLC program to be tested and the corresponding configuration information, a PLC input signal is obtained to generate a PLC control instruction, and the operation of the virtual device in the model is controlled based on the PLC control instruction; Receive and display feedback results of the virtual device running the PLC control instruction.
2. According to claim 1, the PLC virtual debugging method based on the warehousing logistics production line, It is characterized in that The step of acquiring a PLC input signal based on the PLC program to be tested and the corresponding configuration information to generate a PLC control instruction includes: By presetting a virtual controller in a control conversion module, based on the PLC program and corresponding configuration information, obtaining first signal data from a database in the control conversion module, and generating the PLC control instruction; Wherein, the first signal data includes PLC input signal data for realizing PLC virtual debugging.
3. According to claim 1, the PLC virtual debugging method based on the warehousing logistics production line, It is characterized in that Also includes: By presetting the real controller in the control conversion module, based on the PLC program and corresponding configuration information, the second signal data is obtained from the database in the control conversion module to generate the PLC control instruction; Among them, the second signal data includes PLC input signal data in the warehouse logistics production line.
4. The PLC virtual debugging method based on the warehousing logistics production line according to claim 1, It is characterized in that The virtual equipment in the model corresponds to the physical equipment in the warehousing logistics production line; Each of the virtual devices or physical devices corresponds to a dynamic link library, which contains device communication rules, data conversion rules and message parsing rule classes. The dynamic link library is used for engineers to configure, or generate and configure the PLC program to be tested.
5. According to claim 1, the PLC virtual debugging method based on the warehousing logistics production line, It is characterized in that The model for constructing a warehousing logistics production line includes: Based on the digital twin simulation technology, the warehousing logistics production line is restored according to the on-site equipment layout or engineering drawings in the warehousing logistics production line to obtain the model.
6. The PLC virtual debugging method based on the warehousing logistics production line according to claim 5, It is characterized in that Also includes: A motion behavior analysis is established for the model and sensor switches, and the behavior model of the equipment is described by scripts in the digital twin simulation platform. The sensor switches include sensor switches in the warehouse logistics production line.
7. The PLC virtual debugging method based on the warehousing logistics production line according to claim 5, It is characterized in that Also includes: The action enable signal corresponding to each virtual device in the model and the motion mechanism of each virtual device is associated with the output signal of the physical PLC or the virtual PLC, wherein the physical PLC is a PLC used to control the physical equipment in the warehouse logistics production line, and the virtual PLC is a PLC used to control the virtual equipment in the model.
8. A PLC virtual debugging system based on warehousing logistics production line, It is characterized in that include: Warehousing logistics production line construction module, virtual PLC debugging module, simulation verification module and control conversion module; The storage logistics production line construction module is used to construct a model of the storage logistics production line; The virtual PLC debugging module is used to receive user input information, configure the PLC program to be tested based on the user input information, or generate the PLC program to be tested based on the user input information and configure it; The control conversion module is used to obtain a PLC input signal based on the PLC program to be tested and the corresponding configuration information to generate a PLC control instruction, and to control the operation of the virtual device in the model based on the PLC control instruction, and to receive feedback results of the virtual device running the PLC control instruction; The control conversion module or the virtual PLC debugging module is also used to display the feedback result of the virtual device running the PLC control instruction.
Citation Information
Patent Citations
Manufacturing execution system and production line integrated virtual debugging method and system
CN111562773A
Method for constructing virtual-real combined digital twin simulation experiment platform
CN112684717A
MPS system intelligent control method and system based on digital twinning
CN113110283A
Online virtual debugging method for ultra-thin strip rolling mill based on digital twinning
CN117349991A
Virtual debugging system and method based on digital twin and soft PLC
CN118152066A
Cited By
Intelligent storage unit virtual debugging system and method
CN119620676A
Transmission line digital twinning virtual debugging system and method based on B / S (Browser / Server) architecture
CN120669627A
Conveyor line digital twin virtual debugging system and method based on b / s architecture
CN120669627B
IO simulation debugging method for PLC
CN120993818A
Implementation method and system of PLC virtual extension module
CN122613869A
