Programmable controller programming method and system and storage medium

By acquiring and optimizing the control signals and resources of the programmable controller, formulating software programs and performing emergency response degree and resource evaluation, the problems of low efficiency and insufficient response speed in traditional methods are solved, and more efficient programming and response speed are achieved .

CN119200495AInactive Publication Date: 2024-12-27XIAO QI (GUANGDONG)SCIENCEAND TWCHNOIOGY
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410262913.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-07
Publication Date
2024-12-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional programmable controller programming methods fail to fully consider control signals and resource conditions, resulting in low work efficiency and unsatisfactory response speed.

Method used

By obtaining the control signals sent by the controller, formulating software programs, and prioritizing and resource evaluation based on the degree of emergency response and resource conditions, the programming process is optimized to improve efficiency.

Benefits of technology

Effectively improves the working efficiency and response speed of the programmable controller, so that it can achieve the expected performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119200495A_ABST
    Figure CN119200495A_ABST
Patent Text Reader

Abstract

The invention discloses a programming method and system of a programmable controller and a storage medium. The programming method of the programmable controller comprises the following steps that a control signal sent by the controller is obtained; compiling a software program according to the control signal sent by the controller; and controlling a device corresponding to the control signal through the programmed software program. The programming system of the programmable controller comprises a control signal acquisition device, a software programming device and a corresponding device control device. The storage medium comprises a memory and a processor, a computer program is stored in the memory, and the steps of the programming method of the programmable controller are realized when the computer program is executed by the processor. The method has the advantages that the working efficiency of the controller can be improved, and the response speed of the controller can be increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of controller programming, and in particular to a programming method, system and storage medium for a programmable controller. Background Art

[0002] A programmable controller is a controller that can edit software programs. Programming a programmable controller can control analog and digital quantities, collect and store data, and monitor and manage target devices in different areas through network communications. At present, programmable controllers are widely used in industrial control equipment. The relevant traditional technical solutions usually program the controller according to the control requirements, and basically do not consider the situation of the programmable controller sending control signals and the internal resources of the programmable controller, which leads to low working efficiency of the programmable controller and the response speed of the programmable controller often fails to meet expectations. Summary of the invention

[0003] In order to optimize the traditional related technical solutions, the present application provides a programming method, system and storage medium for a programmable controller.

[0004] In a first aspect, the present application provides a programming method for a programmable controller, which may include the following steps: Get the control signal sent by the controller; Compiling a software program according to the control signal sent by the controller; The device corresponding to the control signal is controlled by the compiled software program.

[0005] In the above technical solution, by programming according to the situation in which the programmable controller sends a control signal, the working efficiency of the programmable controller is effectively improved and the response speed of the programmable controller is accelerated.

[0006] In a preferred example, the solution of the first aspect of the present application can be further configured as follows: The programming method of the programmable controller may further comprise the following steps: The control signals are prioritized according to the degree of emergency response, and the control signals that require emergency response are given priority.

[0007] In a preferred example, the solution of the first aspect of the present application can be further configured as follows: The method for programming the priority of control signals according to the emergency response level includes the following expression: , in, Indicates the programming priority of the control signal with the highest emergency response level among all the control signals sent by the controller. Indicates the controller sends the Programming priority of control signals, Indicates the total number of control signals sent by the controller. , Is a positive integer.

[0008] In a preferred example, the solution of the first aspect of the present application can be further configured as follows: The programming method of the programmable controller may further comprise the following steps: When two or more control signals have the same programming priority, the control signal with the shortest execution time among all control signals with the same programming priority is preferentially programmed.

[0009] In a preferred example, the solution of the first aspect of the present application can be further configured as follows: The programming method of the programmable controller may further comprise the following steps: According to the resources of the controller, the total number of control signals sent by the controller is determined.

[0010] In a preferred example, the solution of the first aspect of the present application can be further configured as follows: In the step of determining the total number of control signals sent by the controller according to the resources of the controller, the method for determining the total number of control signals sent by the controller is the following expression: , in, Indicates the total number of control signals sent by the controller. Indicates the flash memory of the controller, Indicates the memory of the controller. represents the power consumption of the controller, Indicates the clock frequency of the controller, Indicates the weight of the controller flash memory, represents the weight of the controller memory, represents the weight of the controller power consumption, represents the weight of the controller clock frequency, () represents the square of the sine function value, () represents the square of the tangent function value, () represents the secant function.

[0011] In a second aspect, the present application provides a programming system for implementing the programming method of the programmable controller described above, which may include: A control signal acquisition device, used to acquire a control signal sent by a controller; A software program compiling device, used for compiling a software program according to the control signal sent by the controller; The corresponding device control apparatus is used to control the device corresponding to the control signal through the compiled software program.

[0012] In a preferred example, the solution of the second aspect of the present application can be further configured as follows: The programming system may further include: The programming priority sorting device is used to sort the control signals according to the degree of emergency response, and give priority to programming the control signals that require emergency response.

[0013] In a preferred example, the solution of the second aspect of the present application can be further configured as follows: The programming system may further include: The device for determining the total number of control signals sent by the controller is used to determine the total number of control signals sent by the controller according to the resources of the controller.

[0014] In a third aspect, the present application provides a storage medium, which includes a memory and a processor, wherein a computer program is stored in the memory, and the computer program implements the steps of the programming method of the programmable controller when executed by the processor.

[0015] In summary, compared with the prior art, the present application has at least the following beneficial effects: The programming method of the programmable controller of the present application fully considers the situation of the control signal sent by the programmable controller and the resource situation inside the programmable controller, thereby effectively improving the working efficiency of the programmable controller and accelerating the response speed of the programmable controller, so that the response speed of the programmable controller can meet the expectations. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a flow chart of the programming method of the programmable controller of the present application.

[0017] Figure 2 It is a programming system block diagram of the programmable controller of this application.

[0018] Figure 3 It is a schematic diagram of the storage medium of this application. DETAILED DESCRIPTION

[0019] The present application is further described in detail below with reference to the accompanying drawings. Example 1

[0020] like Figure 1 FIG. 1 is a flowchart of a programming method for a programmable controller according to an embodiment of the present invention, which may specifically include the following steps: S1, obtaining a control signal sent by a controller; S2. compiling a software program according to the control signal sent by the controller; S3. Control the device corresponding to the control signal through the compiled software program.

[0021] The programming method of the programmable controller may further comprise the following steps: The control signals are prioritized according to the degree of emergency response, and the control signals that require emergency response are given priority.

[0022] The method for programming the priority of the control signals according to the emergency response degree includes the following expression: , in, Indicates the programming priority of the control signal with the highest emergency response level among all the control signals sent by the controller. Indicates the controller sends the Programming priority of control signals, Indicates the total number of control signals sent by the controller. , Is a positive integer.

[0023] The programming method of the programmable controller may further comprise the following steps: When two or more control signals have the same programming priority, the control signal with the shortest execution time among all control signals with the same programming priority is preferentially programmed.

[0024] The programming method of the programmable controller may further comprise the following steps: According to the resources of the controller, the total number of control signals sent by the controller is determined.

[0025] In the step of determining the total number of control signals sent by the controller according to the resources of the controller, the method for determining the total number of control signals sent by the controller is the following expression: , in, Indicates the total number of control signals sent by the controller. Indicates the flash memory of the controller, Indicates the memory of the controller. represents the power consumption of the controller, Indicates the clock frequency of the controller, Indicates the weight of the controller flash memory, Indicates the weight of the controller memory, represents the weight of the controller power consumption, represents the weight of the controller clock frequency, () represents the square of the sine function value, () represents the square of the tangent function value, () represents the secant function.

[0026] The programming system of the programmable controller of this embodiment is as follows: Figure 2 As shown, the programming system of the programmable controller may specifically include: A control signal acquisition device, used to acquire a control signal sent by a controller; A software program compiling device, used for compiling a software program according to the control signal sent by the controller; The corresponding device control apparatus is used to control the device corresponding to the control signal through the compiled software program.

[0027] The programming system may further include: The programming priority sorting device is used to sort the control signals according to the degree of emergency response, and give priority to programming the control signals that require emergency response.

[0028] The programming system may further include: The device for determining the total number of control signals sent by the controller is used to determine the total number of control signals sent by the controller according to the resources of the controller.

[0029] like Figure 3 As shown, a schematic diagram of the storage medium of this embodiment, the storage medium may specifically include a memory and a processor, the memory stores a computer program, and the computer program implements the steps of the programming method of the programmable controller when executed by the processor.

[0030] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A programming method for a programmable controller, characterized in that: The following steps are involved: Get the control signal sent by the controller; Compiling a software program according to the control signal sent by the controller; The device corresponding to the control signal is controlled by the compiled software program.

2. The programming method of a programmable controller according to claim 1, characterized in that: The following steps are also included: The control signals are prioritized according to the degree of emergency response, and the control signals that require emergency response are given priority.

3. The programming method of a programmable controller according to claim 2, characterized in that: The method for programming the priority of control signals according to the emergency response level includes the following expression: , in, Indicates the programming priority of the control signal with the highest emergency response level among all the control signals sent by the controller. Indicates the controller sends the Programming priority of control signals, Indicates the total number of control signals sent by the controller. , Is a positive integer.

4. The programming method of a programmable controller according to claim 2, characterized in that: The following steps are also included: When two or more control signals have the same programming priority, the control signal with the shortest execution time among all control signals with the same programming priority is preferentially programmed.

5. The programming method of a programmable controller according to claim 1, characterized in that: The following steps are also included: According to the resources of the controller, the total number of control signals sent by the controller is determined.

6. The programming method of a programmable controller according to claim 1, characterized in that: In the step of determining the total number of control signals sent by the controller according to the resources of the controller, the method for determining the total number of control signals sent by the controller is the following expression: , in, Indicates the total number of control signals sent by the controller. Indicates the flash memory of the controller, Indicates the memory of the controller. represents the power consumption of the controller, Indicates the clock frequency of the controller, Indicates the weight of the controller flash memory, Indicates the weight of the controller memory, represents the weight of the controller power consumption, represents the weight of the controller clock frequency, () represents the square of the sine function value, () represents the square of the tangent function value, () represents the secant function.

7. A programming system for implementing the programming method of the programmable controller according to claim 1, characterized in that: include: A control signal acquisition device, used to acquire a control signal sent by a controller; A software program compiling device, used for compiling a software program according to the control signal sent by the controller; The corresponding device control apparatus is used to control the device corresponding to the control signal through the compiled software program.

8. The programming system according to claim 7, characterized in that: Also includes: The programming priority sorting device is used to sort the control signals according to the degree of emergency response, and give priority to programming the control signals that require emergency response.

9. The programming system according to claim 7, characterized in that: Also includes: The device for determining the total number of control signals sent by the controller is used to determine the total number of control signals sent by the controller according to the resources of the controller.

10. A storage medium, comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by a processor, the steps of the programming method of a programmable controller as claimed in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Memory power manager

    CN102306046A

  • Control device, control method, and control program

    CN110402430A

  • UART interface expansion circuit based on programmable logic device

    CN112395230A

  • Resource allocation system and method

    CN114296918A

  • Information processing method and equipment, device, apparatus and storage medium

    CN115729883A