Method for compiling multi-circuit logic control by applying human-computer interface

By implementing multi-circuit logic control of PLC through a visual human-machine interface, the problems of complex and time-consuming PLC programming are solved, the programming cost and threshold are reduced, and it is suitable for small-scale automation equipment.

CN121455006APending Publication Date: 2026-02-03谢功平
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511522054.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-22
Publication Date
2026-02-03

AI Technical Summary

Technical Problem

The existing PLC programming process requires professional skills and experience, is time-consuming and costly, and requires programming and simulation on a computer, resulting in a high barrier to entry.

Method used

It adopts a visual human-machine interface and realizes multi-circuit logic control through function block numbering, execution conditions, delay execution time, action options and target options modules. Users can directly compile PLC programs through the interface without computer programming.

Benefits of technology

It simplifies the PLC programming process, reduces programming costs and time, is suitable for ordinary users, and is applicable to small automation equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121455006A_ABST
    Figure CN121455006A_ABST
Patent Text Reader

Abstract

The invention discloses a method for compiling multi-circuit logic control by applying a human-computer interface, which comprises the following steps of: deeply developing a conventional human-computer interface program to form a visual and modular functional block interface to directly face a user, defining each functional block for controlling a PLC (Programmable Logic Controller) on the human-computer interface by the user to finish an action function option, a computer does not need to be connected and used, a PLC programming technology does not need to be understood, and only the action process of equipment needs to be understood, and the action of each interface device connected to the PLC is cleared, so that the running program of the machine can be compiled. The method is very suitable for ordinary people to use, and time and cost required for PLC programming can be saved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of automation control technology, and in particular to a method for programming multi-circuit logic control based on PLC. BACKGROUND

[0002] With the development of science and technology, automation equipment is increasingly used in industrial production. Automatic control is actually controlling the power-on and power-off of multiple circuits. When and under what conditions each line is powered on or off is pre-set according to the production process. In early industrial automation control, the control logic is generally realized by physical wiring combination of electromagnetic relays. By combining the contacts of multiple relays in series (to realize "and" logic), in parallel (to realize "or" logic), or with normally closed contacts (to realize "not" logic), etc., basic logic gate circuits such as "and gate", "or gate", "not gate" can be constructed, and more complex control logic can be realized. It has the advantages of being intuitive and reliable, but has the disadvantages of complex circuit, poor flexibility, large size, etc., and has been basically replaced by programmable logic controller (PLC).

[0003] PLC is the core device of industrial automation control. It constantly reads input signals, executes user programs, and updates output signals through a cyclic scanning working mode, thereby realizing the automation control of mechanical equipment or production processes. It has the advantages of high reliability and stability, strong flexibility and expandability, good real-time performance and fast response, low energy consumption, easy installation and maintenance, data operation, data processing, motion control, and complex network communication functions. However, it also has the following disadvantages: the program needs to be prepared for operation, and the program needs to be programmed using a computer. Because there are many brands of PLCs, the programming software used by each brand or even different series of products of the same brand is different. The programming process requires the use of a large number of instruction codes, which requires high professional skills and experience accumulation of the programmer, increases the use threshold and cost. The programming time is long, and the program needs to be simulated after being programmed on the computer, and further modification and debugging are required during actual machine operation. SUMMARY

[0004] The present application provides a method for programming multi-circuit logic control using a human-machine interface, which is convenient to implement the application of PLC, does not require the use of a computer for programming, and can save programming costs and time.

[0005] To solve the above technical problems, the present application adopts the following technical scheme: a method for programming multi-circuit logic control using a human-machine interface, which is performed according to the following process, 1) Provide a visual human-machine interface, through which at least the following program function modules are provided: function block number and execution instruction, execution condition, delay execution time, action options and target options; 2) In addition to displaying the function block number through the function block number and execution indicator module, an indicator light will illuminate when the function block is executed and turn off upon completion. 3) Implement the following functions by writing numbers through the execution condition module: execute this function block immediately after the previous function block finishes execution; execute this function block only if there is a signal on the corresponding input signal port; and execute this line of program only if there is no signal on the corresponding input port. 4) Enter a number in the delay execution time module to set the delay duration for executing the program; 5) The action options module provides the following three function selections: On, Off, and Function; Select "On" in the action options to perform the power-on action for the corresponding output interface; Select "Off" as the action option to execute the power-off action for the corresponding output interface; Selecting the "Function" action option will jump to the corresponding function block to execute the branch program, while allowing the program to continue execution, or perform motor positioning control, or perform a specific function; 6) By combining the target option module and the action option module, multiple circuits in the automated equipment can be powered on and off in a time-sharing and step-by-step manner to achieve the purpose of automatic control.

[0006] In step 3), the numbers entered through the execution condition module include negative numbers, 0, or any number from 1 to 17. 0 represents no condition, meaning that this function block will execute immediately after the previous function block is completed; 1 to 17 means that this function block must have a signal on the corresponding input signal port before it will execute; a negative number means that this line of program must have no signal on the corresponding input port before it will execute.

[0007] In step 4), a delay duration of 0 indicates immediate execution, while other numbers correspond to time units of minutes or seconds.

[0008] In step 6), select "Open" for the action option and enter the number 1-16 for the target option to execute the power-on action of the corresponding output interface; Select "Off" for the action option and enter numbers 1-16 for the target option to execute the power-off action for the corresponding output interface; Select the "Function" option for the action and enter a number from 1 to 50 for the action target: the program will jump to the corresponding function block to execute the branch program, while allowing the current program to continue execution. Select the [Function] option for the action and enter the number 51-79 for the action target: Perform positioning control of the stepper motor / servo motor; Action option selection

function

[0009] Program from top to bottom line by line, a line of program execution action, through each line of program filled in the number, select action function to achieve multiple circuit time-sharing, step-by-step power on and power off, achieve the purpose of automatic control.

[0010] The present application defines each function block for controlling PLC as an action function option on the man-machine interface, the user does not need to connect the computer and use the computer, does not need to understand the PLC programming technology, only needs to understand the action process of the equipment, and clarifies the role of each interface device connected on the PLC, so as to compile the running program of the machine. It is very suitable for ordinary people to use, and can save the time and cost required for PLC programming. BRIEF DESCRIPTION OF DRAWINGS

[0011] Figure 1 The flowchart of the present application is shown in the figure; Figure 2 The architecture diagram of the program function block of the present application is shown in the figure; Figure 3 The first schematic diagram of the man-machine interface for editing of the present application is shown in the figure; Figure 4 The second schematic diagram of the man-machine interface for editing of the present application is shown in the figure; Figure 5 The third schematic diagram of the man-machine interface for editing of the present application is shown in the figure; Figure 6 The fourth schematic diagram of the man-machine interface for editing of the present application is shown in the figure; Figure 7 The man-machine interface schematic diagram of the present application showing two lines of program is shown in the figure. DETAILED DESCRIPTION

[0012] The present application will be further described below in conjunction with the drawings.

[0013] Reference Figures 1-7 In the embodiment, the original PLC program is first developed in depth, the PLC basic program developed in depth is downloaded to the PLC hardware in advance, and the conventional man-machine interface (such as touch screen) program is developed in depth to form a visual, modular function block interface directly facing the user. The user can complete the programming control of multiple circuits through the visual interface, and the process of using the computer to compile the PLC program is eliminated. The specific process is as follows: 1) A visual man-machine interface is provided, and at least the following program function modules are provided through the man-machine interface: function block number and execution instruction, execution condition, delay execution time, action option and target option, and each program function module is the visual content in the man-machine interface; 2) In addition to displaying the function block number through the function block number and execution indicator module, an indicator light will illuminate when the function block is executed and turn off upon completion. 3) Implement the following functions by writing numbers through the execution condition module: execute this function block immediately after the previous function block finishes execution; execute this function block only if there is a signal on the corresponding input signal port; and execute this line of program only if there is no signal on the corresponding input port. 4) Enter a number in the delay execution time module to set the delay duration for executing the program; 5) The action options module provides the following three function selections: On, Off, and Function; 6) By combining the target option module and the action option module, multiple circuits in the automated equipment can be powered on and off in a time-sharing and step-by-step manner to achieve the purpose of automatic control.

[0014] The actual compilation process is as follows: 1. Input signal condition: This is the condition for the execution of this line of the program. You can enter a number, such as 0 to represent no condition, that is, the current line of the program will execute immediately after the previous line of the program is completed; enter any number from 1 to 17 to represent that the current line of the program must have a signal on the corresponding input signal port to execute; you can also enter a negative number to represent that the current line of the program must have no signal on the corresponding input port to execute. 2. Execution delay time: How long the program will wait after the input signal condition is met before executing the subsequent action. Enter a number to represent the time, in minutes or seconds. 0 means immediate execution. 3. Action Function and Action Goal: Clicking "Action Function" allows you to select one of three options: On, Off, or Function. Selecting On will perform a conduction action on the output port number entered in the next item (Action Goal); selecting Off will perform a disconnection action on the output port number entered in the next item (Action Goal); selecting Function has three possibilities: 1) If the action target is set to 0, this line of the program will perform a no-operation. 2) Enter the number 1-50 for the action target: When the program reaches this line, it will jump to another line to execute the branch program, while the current program continues to execute. 3) Enter numbers 81-99 for the action target: Switch to, for example... Figure 6 The "Function Code Explanation" is shown below; 4. The program executes line by line from top to bottom, with each line performing one action. By entering numbers and selecting actions in each line, multiple circuits can be powered on and off in a time-sharing and step-by-step manner, thereby achieving the purpose of automatic control.

[0015] The method is suitable for small automation equipment with IO32 points or less, and more than one PLC can be used for running when the equipment has more than IO32 points.

[0016] The above has described the present application in detail, and the above description is only the preferred embodiment of the present application, and cannot limit the scope of the present application, that is, all equivalent changes and modifications made according to the scope of the present application should still fall within the scope of the present application.

Claims

1. A method for programming multi-circuit logic control using human-machine interface, characterized by: According to the following procedure, 1) provide a visual human-computer interface, through which at least the following program function modules are provided: function block number and execution instruction, execution condition, delay execution time, action option and target option; 2) through the function block number and execution instruction module, display the function block number, and when the function block is executed, the light is on to prompt, and after the execution is completed, the light is off; 3) through the execution condition module, write numbers to achieve the following functions: the previous function block is executed, and then the function block is executed immediately, the function block is executed only when there is a signal on the corresponding input signal port, and the row program is executed only when there is no signal on the corresponding input port; 4) through the delay execution time module, fill in the numbers to set the delay time of the execution program; 5) through the action option module, the following three function selections are provided: open, close, and function; Action option selection 【open】, execute the power-on action of the corresponding output interface; Action option selection 【close】, execute the power-off action of the corresponding output interface; Action option selection 【function】, execute the branch program on the corresponding function block, and allow the program to continue to execute, or execute the positioning control of the motor, or execute a specific function; 6) through the target option module and the action option module, realize the power-on and power-off of multiple circuits in an automatic device in time and step by step, and achieve the purpose of automatic control.

2. The method of compiling multi-circuit logic control using human-machine interface according to claim 1, wherein: In step 3), the numbers filled in through the execution condition module include negative numbers, 0 or any number from 1 to 17, wherein 0 represents no condition, i.e. the function block is executed immediately after the previous function block is executed; 1-17 represent that the function block must meet the signal on the corresponding input signal port before execution; negative numbers represent that the row program must meet the signal on the corresponding input port before execution.

3. The method of compiling multi-circuit logic control using human-machine interface of claim 1, wherein: In step 4), the delay time number filled in is 0, indicating immediate execution, and other numbers correspond to time units of minutes or seconds.

4. The method for programming multi-circuit logic control using human machine interface of claim 1, wherein: In step 6), action option selection 【open】, target option number 1-16, execute the power-on action of the corresponding output interface; Action option selection 【close】, target option number 1-16, execute the power-off action of the corresponding output interface; Action option selection 【function】, action target number 1-50: execute the branch program on the corresponding function block, and allow the program to continue to execute; Action option selection 【function】, action target number 51-79: execute the positioning control of the stepper motor / servo motor; Action option selection 【function】, action target number 81-99: execute a specific function.

5. The method of compiling multi-circuit logic control using human-machine interface of claim 1, wherein: The program is executed from top to bottom, one line at a time, and one action is executed for each line of program. Through the numbers filled in each line of program, the power-on and power-off of multiple circuits are realized in time and step by step, and the purpose of automatic control is achieved.