CN114488928A - PLC program framework generation method, system, device and storage medium - Google Patents

PLC program framework generation method, system, device and storage medium Download PDF

Info

Publication number
CN114488928A
CN114488928A CN202111678734.1A CN202111678734A CN114488928A CN 114488928 A CN114488928 A CN 114488928A CN 202111678734 A CN202111678734 A CN 202111678734A CN 114488928 A CN114488928 A CN 114488928A
Authority
CN
China
Prior art keywords
program
plc
frame
project
program frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111678734.1A
Other languages
Chinese (zh)
Inventor
任孝江
李杜
左志军
向永军
曾彬
黄坚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Discrete Zhizao Technology Innovation Co ltd
Guangzhou Mino Equipment Co Ltd
Original Assignee
Guangdong Discrete Zhizao Technology Innovation Co ltd
Guangzhou Mino Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Discrete Zhizao Technology Innovation Co ltd, Guangzhou Mino Equipment Co Ltd filed Critical Guangdong Discrete Zhizao Technology Innovation Co ltd
Priority to CN202111678734.1A priority Critical patent/CN114488928A/en
Publication of CN114488928A publication Critical patent/CN114488928A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/056Programming the PLC
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/13Plc programming
    • G05B2219/13004Programming the plc

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

The invention discloses a method, a system and a device for generating a PLC program framework. The method comprises the following steps: determining a program template of a target PLC as a first program frame; determining project parameters; and updating the project parameters into the first program frame to generate a second program frame of the target PLC. By using the method of the invention, a new second program frame can be obtained by updating the project parameters of the project scheme into the original first program frame, and the project parameters are not required to be modified and corrected manually by a PLC engineer, thereby improving the PLC programming efficiency and reducing the probability of programming errors. The invention can be widely applied to the technical field of electrical control.

Description

PLC program framework generation method, system, device and storage medium
Technical Field
The invention relates to the technical field of electrical control, in particular to a PLC program framework generation method, a system, a device and a storage medium.
Background
Programmable Logic Controllers (PLCs) employ a type of Programmable memory for storing programs therein, executing user-oriented instructions such as logic operations, sequence control, timing, counting, and arithmetic operations, and controlling various types of machinery or manufacturing processes via digital or analog input/output.
The PLC program framework is a program template of the PLC, control logic of a processing flow is packaged in the program template, the PLC program framework is a semi-finished product application, and the PLC program framework is compiled according to specific project research and development requirements and project schemes researched and developed in the later period, so that the specific project requirements are realized.
In an actual project research and development process, when a PLC engineer fills project parameters in a project plan into a PLC program frame according to the project plan, the PLC engineer needs to modify names, contents, attributes, positions, and the like of PLC blocks one by one, and debugs the PLC program filled with the project parameters at a later stage to verify the robustness of the PLC program.
When a PLC engineer writes a PLC program frame according to a project scheme and a PLC program design specification, a large number of project parameters need to be modified, more labor cost is consumed, and the working efficiency is low.
Disclosure of Invention
The embodiment of the application provides a PLC program frame generation method, a system, a device and a storage medium, which do not need to manually modify and correct project parameters, improve the PLC programming efficiency and reduce the probability of programming errors.
In one aspect, an object of an embodiment of the present invention is to provide a method for generating a PLC program framework, including the following steps:
determining a program template of a target PLC as a first program frame;
determining project parameters;
and updating the project parameters into the first program frame to generate a second program frame of the target PLC.
Further, the method for generating the PLC program frame further includes a step of acquiring identification information of the target PLC, and determining the program template of the target PLC as the first program frame includes:
and acquiring a corresponding program template as a first program frame according to the identification information.
Further, the PLC program framework generating method further includes the steps of:
and constructing a project parameter table, wherein the project parameter table is used for storing the project parameters.
Further, the PLC program framework generating method further includes the steps of:
and constructing a program library, wherein the program library is used for storing the first program frame or the second program frame.
Further, the step of updating the project parameters into the first program framework includes the steps of:
acquiring the incidence relation between the project parameter table and the program library;
and updating the project parameters into the first program frame according to the association relationship to obtain a second program frame.
Further, the step of updating the project parameters into the first program framework according to the association relationship includes the following steps:
determining the content of the first program frame needing to be updated according to the incidence relation;
updating the project parameters into the program content.
Further, the step of acquiring the identification information of the target PLC includes:
and acquiring at least one of the name, the model or the brand of the target PLC as the identification information of the target PLC.
On the other hand, an embodiment of the present invention provides a PLC program framework generating system, including:
the first frame determining module is used for determining a program template of the target PLC as a first program frame;
the parameter determining module is used for determining project parameters;
and the second frame generation module is used for updating the project parameters into the first program frame and generating a second program frame of the target PLC.
In another aspect, an embodiment of the present invention provides a PLC program framework generating apparatus, including:
at least one processor;
at least one memory for storing at least one program;
when the at least one program is executed by the at least one processor, the at least one processor is caused to implement the PLC program framework generation method.
In another aspect, an embodiment of the present invention provides a storage medium in which a processor-executable program is stored, where the processor-executable program is used to implement the PLC program framework generating method when executed by a processor.
Advantages and benefits of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention:
according to the invention, the project parameters of the project scheme are updated to the original first program frame to obtain the new second program frame, and a PLC engineer is not required to manually modify and correct the project parameters, so that the PLC programming efficiency is improved, and the probability of programming errors is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description is made on the drawings of the embodiments of the present invention or the related technical solutions in the prior art, and it should be understood that the drawings in the following description are only for convenience and clarity of describing some embodiments in the technical solutions of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart diagram of a specific embodiment of a PLC program framework generation method according to the present invention;
FIG. 2 is a diagram illustrating a parameter table of a project according to an embodiment of a method for generating a PLC framework;
fig. 3 is a schematic diagram of a program library according to an embodiment of the PLC program framework generating method of the present invention;
fig. 4 is a schematic structural diagram of a specific embodiment of a PLC program framework generation system according to the present invention;
fig. 5 is a schematic structural diagram of an embodiment of a PLC program framework generating device according to the present invention.
Detailed Description
The present application is further described with reference to the following figures and specific examples. The described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person skilled in the art without making any inventive step are within the scope of protection of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
Referring to fig. 1, a method for generating a PLC program framework in the embodiment of the present invention mainly includes the following steps:
s1, determining a program template of the target PLC as a first program frame;
the target PLC is a PLC that is to perform a program framework update.
The program template of the target PLC may be a blank template suitable for development of the target PLC, and the blank template generally encapsulates the control logic of the process flow, but is not filled with the project parameters for realizing the project requirements. Of course, the program template of the target PLC may also be a program source file already used by other PLCs of the same type, but the program source file is already filled with project parameters, so that specific project requirements can be realized.
Whether the blank template is not filled with project parameters or the program source file which is used by other PLCs of the same type and realizes the specific project requirements can be used as the program template of the target PLC of the application and used as the first program frame of the target PLC.
S2, determining project parameters;
the project parameters refer to various index data determined according to project requirements, and all contents to be filled in the first program frame can be considered as the project parameters. For example, project parameters may be defined by including a project name; a line body name; PLC serial numbers used for distinguishing different PLCs; the station numbers are used for numbering the production units, so that the sequential control of the working procedures is conveniently realized; the safety area is a plurality of stations needing linkage, and the stations are uniformly started and stopped, so that the production rhythm is consistent with the production safety pace; the fixture is used for positioning production pieces, and the name, the number and the signal of each production piece can be different; robots, equipment for performing station processes such as handling, welding, gluing, etc., each station may be different.
And S3, updating the project parameters into the first program frame, and generating a second program frame of the target PLC.
Specifically, the project parameters can reflect the project requirements of the project scheme, so that the project parameters are updated into the first program frame, and the parameters at the corresponding positions in the first program frame are filled or replaced, so as to generate the second program frame with the specific project requirements.
To sum up, the project parameters of the project scheme are updated to the original program frame to obtain a new program frame, a PLC engineer is not required to manually modify and correct the project parameters, the PLC programming efficiency is improved, and the probability of programming errors is reduced. The method can improve the programming efficiency more obviously especially when more sets of PLCs need to modify project parameters.
As a further optional implementation manner, the PLC program framework generating method further includes step S4 of acquiring the identification information of the target PLC, and step S1 includes:
and acquiring a corresponding program template as a first program frame according to the identification information.
Specifically, the target PLC is a PLC that is to generate a program framework, and may be selected according to the actual needs of the user. The identification information of the target PLC is information that can identify the target PLC, and may be information such as a manufacturer, a brand, and a model of the target PLC. In the PLCs of different manufacturers, brands, models, etc., the used program templates are usually different, and the derivation ways of the program templates are also different, so that the identification information of the target PLC needs to be determined to obtain the corresponding program template.
For example, during the development of a project, multiple brands of PLCs may be used, wherein the program templates of different brands are exported in different ways and in different source file formats. There are currently a wide variety of brands of PLCs, for example, AB PLC (Allen Bradley brand PLC), Siemens PLC (Siemens brand PLC), and the like. Therefore, it is necessary to specify a program template of the target PLC based on the identification information of the target PLC and use the program template as a first program frame.
As a further optional implementation manner, the PLC program framework generating method further includes the following steps:
and S5, constructing a project parameter table, wherein the project parameter table is used for storing project parameters.
Specifically, the project parameter table is constructed, and used project parameters are stored by the project parameter table. In one embodiment, referring to fig. 2, since the Excel table has the characteristics of convenience in use and rapidness in operation, the Excel table can be used for constructing the project parameter table, and project parameters can be flexibly modified and adjusted.
As a further optional implementation, the PLC program framework generation method further includes the following steps:
and S6, constructing a program library, wherein the program library is used for storing the first program frame or the second program frame.
Specifically, referring to fig. 3, a first program frame is saved in a program library, and program source file contents of the first program frame and library attributes, such as a source file name, a source file location, a source file call parameter, and the like, are recorded.
Optionally, as described above, if an Excel table is used to store the project parameters and the first program frame, and define the calling relationship, the basic function blocks, and the like of the first program frame of the target PLC, the project parameters are updated into the first program frame, and a new program frame, that is, the second program frame, can be obtained, so that the library can be used to store the first program frame or the second program frame. For example, in the data row of Main in column a in fig. 3, a row of data corresponds to a data processing rule.
Optionally, when the Excel table is used to construct the project parameter table, if there are other program source files of the same type of PLC, the program source file may also be directly imported or the content of the program source file may be directly copied to the program library, so as to rapidly complete the construction of the program library.
When the first program frame is changed, for example, a control program for a certain robot is deleted or added, the changed first program frame (i.e., the second program frame) can be quickly generated by flexibly adjusting the contents of the library.
Further as an alternative embodiment, step S3 includes the following steps S31-S32:
s31, acquiring the association relation between the project parameter table and the program library;
and S32, updating the project parameters into the first program frame according to the association relationship to obtain a second program frame.
Specifically, the project parameters are updated in the first program frame, the connection between the project parameter table and the program library needs to be established according to the association relationship, and then the project parameters in the project parameter table are updated to the corresponding positions in the first program frame, so that the modification or update of the project parameters is completed. Wherein, the incidence relation is a mapping matching relation between the item parameter table and the program library.
Further as an optional implementation, step S32 includes the following steps S321-S322:
s321, determining the content of the first program frame needing to be updated according to the incidence relation;
and S322, updating the item parameters into the content of the first frame.
Specifically, in the process of updating the project parameters to the first program frame, not all program contents in the PLC program frame are updated, so that the application first determines the program contents to be updated in the first program frame by using the association relationship, and then updates the project parameters to the program contents to be updated.
For example, referring to fig. 2 and fig. 3, the method obtains the workstation name and the security area in the project parameter table, where a security area 1 in the project parameter table and a Zone01 program in the program table are in a pair of association relationship, referred to as a first association relationship, a security area 2 in the project parameter table and a Zone02 program in the program table are in a pair of association relationship, screens out program source files containing a Zone01 program in a first program frame in the program library by using the first association relationship, fills the workstation sequence number in the program source files, has the same reason, screens out program source files containing a Zone02 program in the first program frame in the program library by using the second association relationship, and fills the workstation sequence number in the program source files.
Further as an optional implementation, step S4 includes:
and acquiring at least one of the name, the model or the brand of the target PLC as the identification information of the target PLC.
Specifically, the identification information of the target PLC includes information such as name, manufacturer, brand, model, etc., so that the program template to which the target PLC is applied can be determined subsequently.
In order to more clearly illustrate the implementation principle of the present application, the present application further provides another embodiment, in which a PLC program framework generating method includes the following steps:
step 1: and acquiring the identification information of the target PLC, and taking the program template of the target PLC acquired according to the identification information as a first program frame. Specifically, taking the identification information as a brand as an example, in many brands (AB PLC, Siemens PLC, GE PLC), determining that the target PLC is AB PLC, then, determining that the program template of the AB PLC is the program template of the target PLC, and taking the program template of the target program as a first program frame; the first program framework is stored in a pre-built library.
Step 2: storing project parameters for realizing specific project requirements in a pre-constructed project parameter table;
step 3: and acquiring the incidence relation between the project parameter table and the program library, determining the content of the first program frame needing to be updated according to the incidence relation, and updating the project parameters into the content of the first frame, so as to fill or replace the parameters at the corresponding positions.
Therefore, the method has the following characteristics:
1. the parameters in the generated second program frame are adjusted by flexibly adjusting the project parameters in the project parameter table, so that the method has the characteristic of high programming efficiency;
2. especially when the program frames of a plurality of target PLCs need to be updated, the PLC program frame generation method can obviously improve the programming efficiency and has low probability of programming errors.
Next, a PLC program framework generating system proposed according to an embodiment of the present invention is described with reference to the drawings.
Fig. 4 is a schematic structural diagram of a PLC program framework generation system according to an embodiment of the present invention.
The system specifically comprises:
a first frame determining module 201, configured to determine a program template of a target PLC as a first program frame;
a parameter determination module 202 for determining project parameters;
and a second frame generation module 203, configured to update the project parameter to the first program frame, and generate a second program frame of the target PLC.
It can be seen that the contents in the foregoing method embodiments are all applicable to this system embodiment, the functions specifically implemented by this system embodiment are the same as those in the foregoing method embodiment, and the advantageous effects achieved by this system embodiment are also the same as those achieved by the foregoing method embodiment.
Referring to fig. 5, an embodiment of the present invention provides a PLC program framework generating apparatus 300, including:
at least one processor 380;
at least one memory 320 for storing at least one program;
when the at least one program is executed by the at least one processor 380, the at least one processor 380 is enabled to implement an embodiment of a PLC program framework generation method as described above.
Specifically, the device may be a user terminal or a server.
The embodiment of the present application takes a device as a user terminal as an example, and specifically includes the following steps:
the apparatus 300 may include RF (Radio Frequency) circuitry 310, memory 320 including one or more computer-readable storage media, input unit 330, display unit 340, sensor 350, audio circuitry 360, short-range wireless transmission module 370, processor 380 including one or more processing cores, and power supply 390, among other components. Those skilled in the art will appreciate that the device architecture shown in fig. 5 does not constitute a limitation of electronic devices and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The RF circuit 310 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information of a base station and then processing the received downlink information by one or more processors 380; in addition, data relating to uplink is transmitted to the base station. In general, RF circuitry 310 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, RF circuit 310 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), and the like.
Memory 320 may be used to store software programs and modules. The processor 380 executes various functional applications and data processing by executing software programs and modules stored in the memory 320. The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the device 300, and the like. Further, the memory 320 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 320 may also include a memory controller to provide the processor 380 and the input unit 330 with access to the memory 320. Although fig. 5 shows the RF circuit 310, it is understood that it does not belong to the essential constitution of the device 300 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The input unit 330 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user, as well as various graphical user interfaces of the control 300, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlie display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, it is passed to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in FIG. 5, touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The device 300 may also include at least one sensor 350, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the device 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for the other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are also configured to the device 300, detailed descriptions thereof are omitted.
Audio circuitry 360, speaker 361, microphone 362 may provide an audio interface between a user and device 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signals into electrical signals, which are received by the audio circuit 360 and converted into audio data, which are then processed by the audio data output processor 380 and then transmitted to another control device via the RF circuit 310, or output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of peripheral headphones with the device 300.
The short-distance wireless transmission module 370 may be a WIFI (wireless fidelity) module, a bluetooth module, an infrared module, or the like. The device 300 can perform information transmission with a wireless transmission module provided on another device through the short-range wireless transmission module 370.
The processor 380 is the control center of the device 300, connects various portions of the overall control device using various interfaces and lines, and performs various functions of the device 300 and processes data by running or executing software programs and/or modules stored in the memory 320 and calling up data stored in the memory 320, thereby performing overall monitoring of the control device. Optionally, processor 380 may include one or more processing cores; optionally, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 350.
The device 300 also includes a power supply 390 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 380 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 390 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the device 300 may also include a camera, a bluetooth module, etc., which are not described in detail herein.
The embodiment of the application also provides a storage medium, wherein the storage medium stores a program, and the program realizes the embodiment of the PLC program framework generation method when being executed by the processor.
The terms "first," "second," "third," "fourth," and the like (if any) in the description of the present application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The step numbers in the above method embodiments are set for convenience of illustration only, the order between the steps is not limited at all, and the execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art.
While the present application has been described with reference to the preferred embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A PLC program framework generation method is characterized by comprising the following steps:
determining a program template of a target PLC as a first program frame;
determining project parameters;
and updating the project parameters into the first program frame to generate a second program frame of the target PLC.
2. The PLC program frame generating method according to claim 1, wherein the PLC program frame generating method further includes a step of acquiring identification information of the target PLC, and the determining a program template of the target PLC as the first program frame includes:
and acquiring a corresponding program template as a first program frame according to the identification information.
3. The PLC program framework generating method according to claim 1, further comprising:
and constructing a project parameter table, wherein the project parameter table is used for storing the project parameters.
4. The PLC program framework generating method according to claim 3, further comprising:
and constructing a program library, wherein the program library is used for storing the first program frame or the second program frame.
5. The PLC program frame generating method according to claim 4, wherein the step of updating the project parameter into the first program frame includes the steps of:
acquiring the incidence relation between the project parameter table and the program library;
and updating the project parameters into the first program frame according to the association relationship to obtain a second program frame.
6. The PLC program frame creation method according to claim 5, wherein the step of updating the project parameter into the first program frame according to the association relationship includes the steps of:
determining the content of the first program frame needing to be updated according to the incidence relation;
updating the project parameters into the program content.
7. The method as claimed in claim 2, wherein the step of obtaining the identification information of the target PLC includes:
and acquiring at least one of the name, the model or the brand of the target PLC as the identification information of the target PLC.
8. A PLC program framework generating system, comprising:
the first frame determining module is used for determining a program template of the target PLC as a first program frame;
the parameter determining module is used for determining project parameters;
and the second frame generation module is used for updating the project parameters into the first program frame and generating a second program frame of the target PLC.
9. A PLC program framework creating apparatus, comprising:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, the at least one program causes the at least one processor to implement a PLC program framework generation method according to any one of claims 1 to 7.
10. A storage medium in which a processor-executable program is stored, wherein the processor-executable program, when executed by a processor, is for implementing a PLC program framework generating method according to any one of claims 1 to 7.
CN202111678734.1A 2021-12-31 2021-12-31 PLC program framework generation method, system, device and storage medium Pending CN114488928A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111678734.1A CN114488928A (en) 2021-12-31 2021-12-31 PLC program framework generation method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111678734.1A CN114488928A (en) 2021-12-31 2021-12-31 PLC program framework generation method, system, device and storage medium

Publications (1)

Publication Number Publication Date
CN114488928A true CN114488928A (en) 2022-05-13

Family

ID=81509950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111678734.1A Pending CN114488928A (en) 2021-12-31 2021-12-31 PLC program framework generation method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN114488928A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108829024A (en) * 2018-05-30 2018-11-16 广州明珞软控信息技术有限公司 A kind of PLC program generation method and system
CN109765836A (en) * 2019-02-02 2019-05-17 宁波吉利汽车研究开发有限公司 Automatic generation method, device and the realization device of PLC program
CN110262370A (en) * 2019-05-30 2019-09-20 苏州华兴源创科技股份有限公司 Batch reading/writing method, the apparatus and system of PLC
CN112764748A (en) * 2020-11-16 2021-05-07 中油国家油气钻井装备工程技术研究中心有限公司 Upper computer UI design method capable of automatically updating display and storage parameters

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108829024A (en) * 2018-05-30 2018-11-16 广州明珞软控信息技术有限公司 A kind of PLC program generation method and system
CN109765836A (en) * 2019-02-02 2019-05-17 宁波吉利汽车研究开发有限公司 Automatic generation method, device and the realization device of PLC program
CN110262370A (en) * 2019-05-30 2019-09-20 苏州华兴源创科技股份有限公司 Batch reading/writing method, the apparatus and system of PLC
CN112764748A (en) * 2020-11-16 2021-05-07 中油国家油气钻井装备工程技术研究中心有限公司 Upper computer UI design method capable of automatically updating display and storage parameters

Similar Documents

Publication Publication Date Title
CN110515626B (en) Code compiling method of deep learning calculation framework and related product
CN107908407B (en) Compiling method and device and terminal equipment
CN103455407A (en) Mobile terminal CPU (Central Processing Unit) occupation rate monitoring method and device and mobile terminal
CN103455343A (en) Method and device for updating application programs
CN104765591A (en) Method and system for updating software configuration parameter, and terminal server
CN106919458B (en) Method and device for Hook target kernel function
CN107656754B (en) Method for restoring set parameters and user equipment thereof
CN110941750A (en) Data linkage method and related device
CN111723002A (en) Code debugging method and device, electronic equipment and storage medium
CN110609694A (en) BUG repairing method and device, terminal equipment and storage medium
CN110413639A (en) Data check method and device, electronic equipment and computer readable storage medium
CN106453571A (en) Data migration method and terminal
CN117971397B (en) Model processing method, device, terminal equipment and storage medium
CN112328304A (en) Script adaptation method, system, equipment and computer storage medium
CN114488928A (en) PLC program framework generation method, system, device and storage medium
CN114064447B (en) Interface testing method and device, storage medium and terminal
CN106445662A (en) Method for transplanting application procedure and terminal equipment
CN112035180A (en) Automatic instance loading method and device, electronic equipment and storage medium
CN108280798B (en) Method and device for rendering and displaying browser kernel
CN114488927A (en) PLC hardware configuration method, system, device and storage medium
CN106657278B (en) Data transmission method and device and computer equipment
CN106681845B (en) Method and device for managing communication messages
CN107709940A (en) The Weighing method and touch screen terminal of touch screen terminal
CN105279175B (en) Data transmission method and device
CN106033358B (en) Batch installation method and device of application programs

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination