CN112596458A - PLC automatic allocation method in electrical drawing and storage medium - Google Patents
PLC automatic allocation method in electrical drawing and storage medium Download PDFInfo
- Publication number
- CN112596458A CN112596458A CN202011460293.3A CN202011460293A CN112596458A CN 112596458 A CN112596458 A CN 112596458A CN 202011460293 A CN202011460293 A CN 202011460293A CN 112596458 A CN112596458 A CN 112596458A
- Authority
- CN
- China
- Prior art keywords
- plc
- macro
- type
- configuration
- station
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/054—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/10—Plc systems
- G05B2219/11—Plc I-O input output
- G05B2219/1103—Special, intelligent I-O processor, also plc can only access via processor
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Programmable Controllers (AREA)
Abstract
The invention relates to the technical field, in particular to a PLC automatic allocation method and a storage medium in electrical drawing. Creating one or more PLC stations, wherein creating the PLC stations comprises specifying a configuration type of each PLC station; creating unit equipment, wherein the creation of the unit equipment comprises the selection of PLC stations and unit equipment configuration files from the created PLC stations; calling a unit equipment configuration file, and analyzing the PLC macro mapping type of each PLC point; calling a corresponding PLC configuration table according to the configuration type of the specified PLC station, and respectively acquiring corresponding PLC graphic macros from the PLC configuration table according to the PLC macro mapping type of each PLC point; and outputting the PLC graphic macro of each PLC point. And automatically calling the corresponding PLC configuration table from each PLC point by analyzing the configuration file of the unit equipment, and pointing to the corresponding PLC graphic macro of the PLC station according to the PLC macro mapping type, thereby realizing the mode of distribution as required and automatically adding a PLC rack, PLC address preview and PLC address reference.
Description
Technical Field
The invention relates to the technical field, in particular to a PLC automatic allocation method and a storage medium in electrical drawing.
Background
In the automation industry, PLC systems are used in large numbers, and in electrical mapping, manual mapping of PLC racks/PLC points is generally used for input/output/assignment of PLC addresses. Since a project often has hundreds or even thousands of PLC points, the address assignment by hand easily causes address duplication and unreasonable assignment, and wastes a lot of time and energy. Therefore, there is a need for a method capable of realizing PLC automatic allocation of electrical drawings, so as to improve allocation efficiency and allocation accuracy.
In addition, in many areas of transport systems, the distribution boxes are heavily used, and much effort is required to handle distribution of the points of use of the distribution boxes.
Disclosure of Invention
The invention aims to provide a PLC automatic allocation method and a storage medium in electrical drawing aiming at the defects of the prior art, which can automatically generate an automatic allocation diagram of an IO point of a PLC and an automatic allocation diagram of a junction box, replace a manual drawing mode and greatly improve the design efficiency.
The technical scheme of the invention is as follows: creating one or several PLC stations, wherein the creating of the PLC stations comprises the step of specifying the configuration type of each PLC station;
creating unit equipment, wherein the creating unit equipment comprises a PLC station selected from created PLC stations and a unit equipment configuration file;
calling the unit equipment configuration file to analyze the PLC macro mapping type of each PLC point;
calling a corresponding PLC configuration table according to the configuration type of the specified PLC station, and respectively acquiring corresponding PLC graphic macros from the PLC configuration table according to the PLC macro mapping type of each PLC point;
outputting the PLC graphic macro of each PLC point;
the PLC configuration table comprises a plurality of PLC macro mapping types and a plurality of PLC graphic macros which correspond to the PLC macro mapping types one by one.
Preferably, the unit device configuration file further includes a cable box macro mapping type.
Preferably, the method further comprises the step of specifying the type of the junction box, and when the specified type of the junction box is the junction box, acquiring a corresponding junction box graphic macro from a junction box configuration table according to the analyzed macro mapping type of the junction box;
the distribution box configuration table comprises a plurality of distribution box macro mapping types and a plurality of distribution box graphic macros which are in one-to-one correspondence with the distribution box macro mapping types.
Preferably, the type of the fixed junction box comprises an empty junction box, a field IO junction box and a junction box;
when the type of the designated junction box is empty, the PLC station is distributed by the station to which the unit equipment belongs;
when the designated distribution box type is field IO or a distribution box, the PLC station is distributed by the user designated station.
Preferably, the junction box graphic macro is inserted between the input circuit and the PLC input point.
Preferably, the PLC graphic macro includes an address macro, a preview macro, and a rack macro.
Preferably, each PLC configuration table corresponds to a configuration type of the PLC station
Preferably, a module before starting automatic insertion is further designated in the PLC configuration table;
when the module before starting automatic insertion is empty, no module is inserted in advance;
and when the module before starting automatic insertion is not empty, inserting one or more specified modules in advance.
Preferably, the PLC configuration table further specifies whether to add a power module.
Preferably, the PLC configuration table further specifies a maximum number of rack modules, and when the number of rack modules required is greater than the maximum number of rack modules set in the PLC configuration table, a new rack is automatically created.
The invention has the beneficial effects that: the PLC configuration table and the plurality of unit equipment configuration files are prestored in the program, the required PLC station configuration type and the unit equipment configuration files are specified in the software according to project requirements, the corresponding PLC configuration table can be automatically called at each PLC point, and the corresponding PLC graphic macro is pointed according to the PLC macro mapping type, so that the PLC rack, the PLC address preview and the PLC address reference are automatically added in a mode of distribution according to needs. Meanwhile, a distribution box configuration table is prestored in the program, the type of the distribution box is specified according to project requirements, whether the distribution box is automatically added or not can be realized, and related electrical drawings such as distribution box preview, distribution box reference and the like can be realized. The scheme considers different application occasions such as a local rack, a remote station, a junction box and the like, and perfectly realizes the unification of rules.
Drawings
FIG. 1 is a schematic flow diagram of the present invention;
FIG. 2 is a schematic diagram of the creation of a PLC station of the present invention;
FIG. 3 is a schematic diagram of the creation of a unit device of the present invention;
FIG. 4 is a PLC configuration representation intent;
FIG. 5 is a schematic diagram of the insertion position of the junction box;
FIG. 6 is a schematic representation of a junction box configuration;
FIG. 7 is a schematic diagram of a PLC description in a unit device profile;
fig. 8 is a schematic diagram of the description of the distribution box in the unit device configuration file.
Detailed Description
The invention will be further described in detail with reference to the following drawings and specific examples, which are not intended to limit the invention, but are for clear understanding.
When the method is used for the first time, the configuration of a new project is created through automatic drawing generation software, the reference to the PLC configuration file path is set, and the program can conveniently read the configuration information of the PLC. After the setting is finished, the subsequent use does not need to be repeatedly set.
As shown in fig. 1, a PLC automatic allocation method in electrical drawing has the following flow:
step 1: adding a control area in a project configuration flow of automatic drawing generation software, and creating one or a plurality of PLC stations under each area, as shown in fig. 2, creating a PLC station includes specifying a configuration type of each PLC station, wherein each configuration type of the PLC station points to a PLC configuration table.
Step 2: adding control areas in the project configuration flow of the automatic drawing generation software, and creating unit equipment under each area, as shown in fig. 3, wherein creating unit equipment comprises selecting a PLC station and a unit equipment configuration file from the created PLC stations.
And step 3: and calling the unit equipment configuration file to analyze the PLC macro mapping type of each PLC point.
And 4, step 4: calling the corresponding PLC configuration table according to the configuration type of the specified PLC station, and respectively acquiring the corresponding PLC graphic macro from the PLC configuration table according to the PLC macro mapping type of each PLC point.
And 5: and outputting the PLC graphic macro of each PLC point. Specifically, according to the inquired graphic data, coordinate data and PLC configuration parameter data, a PLC rack/PLC address preview/PLC address used graphic is inserted at a specified position, and IO points are automatically allocated.
The PLC station is a virtual station, a user does not need to distribute an actual PLC module to the PLC station, the automatic drawing generation software can automatically add an IO module according to the IO usage amount of the actual PLC, and a new PLC rack can be automatically created after the modules in the rack are full.
The PLC configuration table used in the above steps is configured in advance, and as shown in fig. 4, the PLC configuration table specifies a PLC macro mapping type, an IO type, a description, a point number, a point current, a rack macro, and a PLC graphic macro. The predefined PLC IO types DI/DO/AI/AO/MD are used in the configuration table to correlate with the pre-fabricated PLC graphical macro. The PLC graphic macro includes an address macro, a preview macro, and a rack macro. These graphic macros are the basic units of PLC graphics in automation drawings. Each PLC configuration table corresponds to a configuration type of a PLC station, and a plurality of PLC configuration tables can be designed, so that a designer can select what type of rack, such as a local rack and a remote rack, belongs to different types of racks.
In this table, to unify the local chassis and the remote chassis, the module before starting the automatic insertion is specified: before automatically calculating and inserting the input module and the output module, the representation program needs to be inserted into the module on the left in advance, and a plurality of modules can be inserted and used among the modules; "separate, for some remote stations of IP67 or mitsubishi, is set to null, i.e., no modules need to be inserted in advance.
In order to consider the automatic power supply problem of the remote module, whether the power supply module is provided or not is specified, which indicates whether the power supply current is accumulated and calculated when the distributed module is plugged in, and the corresponding power supply module is automatically plugged in.
In order to take the addressing format of the PLC into account, the addressing format of the address set in the Eplan, such as SIMATIC S7(I/Q), is corresponded.
In order to unify local and remote racks, a parameter specifying the maximum number of rack modules, which is the maximum number of modules for one rack (or one station), is 1 for the external modules of IP67 and the partial modules of mitsubishi, and the partial local rack number is greater than 1, and the program automatically creates a new rack when the required number of modules is greater than the maximum number of rack modules according to the demand assignment.
The IO type in the table is hard code and five types of DI/DO/AI/AO/MD, wherein DI/DO/AI/AO is used for the allocation mode of program calculation address, PLC input and output identification in the macro belongs to one of the 4 types, and the MD module is only referred to in the module before starting automatic insertion.
The above PLC point automatic allocation rule considers not only the local rack but also the remote rack and the distribution box, and for the local rack, the IO point of a process unit device is assigned to the local rack without any problem, but for the transport system, such as a rolling bed device, the IO point of the driving circuit may come from the local rack in the cabinet, and the field sensor may come from the local rack, or may come from the remote IO on the field, or may come from the distribution box on the field.
The distribution box is inserted with an adapter component (which may be inserted or not depending on the setting) before the PLC point, as shown in fig. 5.
As shown in fig. 6, the distribution box configuration table includes a plurality of distribution box macro mapping types and a plurality of distribution box graphic macros corresponding to the distribution box macro mapping types one to one.
Whether the junction box needs to be inserted or not can be specified by setting the type of the junction box. The PLC station is distributed by the station of the unit equipment when the designated junction box type is empty; when the designated distribution box type is field IO or a distribution box, the PLC station is distributed by the user designated station. When the type of the designated junction box is the junction box, calling the junction box configuration table, and performing corresponding preview macro insertion (the junction box needs to be inserted before a PLC point).
The unit equipment configuration file contains PLC macro mapping types and junction box macro mapping types of all PLC points. As shown in fig. 7, the Type of the PLC node of the unit device configuration file corresponds to the "macro mapping Type" in the PLC configuration table, and when the program reads the PLC Type, the program automatically queries the Excel table to obtain various macro types of the PLC node, and finally, the principle of allocation as required is implemented to automatically create a rack and address preview.
For some entry points, either directly to the PLC, to the distribution box, or to the field IO, the point is modified from PLC to SBox as shown in fig. 8.
Details not described in this specification are within the skill of the art that are well known to those skilled in the art. The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The present invention is not limited to the above embodiments, and any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention are included in the scope of the claims of the present invention which are filed as the application.
Claims (10)
1. A PLC automatic allocation method in electrical drawing is characterized in that:
creating one or several PLC stations, wherein the creating of the PLC stations comprises the step of specifying the configuration type of each PLC station;
creating unit equipment, wherein the creating unit equipment comprises a PLC station selected from created PLC stations and a unit equipment configuration file;
calling the unit equipment configuration file to analyze the PLC macro mapping type of each PLC point;
calling a corresponding PLC configuration table according to the configuration type of the specified PLC station, and respectively acquiring corresponding PLC graphic macros from the PLC configuration table according to the PLC macro mapping type of each PLC point;
outputting the PLC graphic macro of each PLC point;
the PLC configuration table comprises a plurality of PLC macro mapping types and a plurality of PLC graphic macros which correspond to the PLC macro mapping types one by one.
2. The PLC automatic distribution method in electrical drawing according to claim 1, wherein: the unit device configuration file also contains a cable box macro mapping type.
3. The PLC automatic distribution method in electrical drawing according to claim 2, wherein: the method also comprises the step of appointing a junction box type, and when the appointed junction box type is the junction box, acquiring a corresponding junction box graphic macro from a junction box configuration table according to the analyzed macro mapping type of the junction box;
the distribution box configuration table comprises a plurality of distribution box macro mapping types and a plurality of distribution box graphic macros which are in one-to-one correspondence with the distribution box macro mapping types.
4. The PLC automatic distribution method in electrical drawing according to claim 3, wherein: the fixed junction box types comprise empty, field IO and junction boxes;
when the type of the designated junction box is empty, the PLC station is distributed by the station to which the unit equipment belongs;
when the designated distribution box type is field IO or a distribution box, the PLC station is distributed by the user designated station.
5. The PLC automatic distribution method in electrical drawing according to claim 3, wherein: the junction box graphic macro is inserted between the input circuit and the PLC input point.
6. The PLC automatic distribution method in electrical drawing according to claim 1, wherein: each PLC configuration table corresponds to a configuration type of the PLC station.
7. The PLC automatic distribution method in electrical drawing according to claim 1, wherein: a module before starting automatic insertion is also appointed in the PLC configuration table;
when the module before starting automatic insertion is empty, no module is inserted in advance;
and when the module before starting automatic insertion is not empty, inserting one or more specified modules in advance.
8. The PLC automatic distribution method in electrical drawing according to claim 1, wherein: and whether a power supply module is added or not is also specified in the PLC configuration table.
9. The PLC automatic distribution method in electrical drawing according to claim 1, wherein: and the PLC configuration table also specifies the maximum number of rack modules, and when the required number of the rack modules is greater than the maximum number of the rack modules set in the PLC configuration table, a new rack is automatically created.
10. A computer-readable storage medium storing a computer program, characterized in that: the computer program when executed by a processor implementing the steps of the method according to any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011460293.3A CN112596458B (en) | 2020-12-11 | 2020-12-11 | PLC automatic allocation method in electrical drawing and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011460293.3A CN112596458B (en) | 2020-12-11 | 2020-12-11 | PLC automatic allocation method in electrical drawing and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112596458A true CN112596458A (en) | 2021-04-02 |
CN112596458B CN112596458B (en) | 2022-05-03 |
Family
ID=75192634
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011460293.3A Active CN112596458B (en) | 2020-12-11 | 2020-12-11 | PLC automatic allocation method in electrical drawing and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112596458B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113312685A (en) * | 2021-05-28 | 2021-08-27 | 东风设计研究院有限公司 | Part brand replacement method in macro circuit and storage medium |
CN113536407A (en) * | 2021-06-09 | 2021-10-22 | 东风设计研究院有限公司 | Method and device for constructing project drawing based on unit equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101634833A (en) * | 2008-07-23 | 2010-01-27 | 沈阳中科博微自动化技术有限公司 | Open type configuration method and system for IO parameters of field device |
CN102880748A (en) * | 2012-09-06 | 2013-01-16 | 国电联合动力技术有限公司 | Method for automatically drawing electric diagrams |
CN106415416A (en) * | 2014-06-12 | 2017-02-15 | 三菱电机株式会社 | Rendering software |
CN109947025A (en) * | 2019-03-29 | 2019-06-28 | 南京南瑞继保电气有限公司 | A kind of cluster measure and control device configuration method |
US10491463B2 (en) * | 2016-09-29 | 2019-11-26 | Kyland Technology Co., Ltd | Software-defined realization method based on protection and control system for intelligent substation |
CN111026387A (en) * | 2019-12-23 | 2020-04-17 | 北京东土科技股份有限公司 | VPLC configuration method and device of industrial server and readable storage medium |
CN111124680A (en) * | 2019-12-23 | 2020-05-08 | 浙江中控技术股份有限公司 | Intelligent I/O distribution method and system |
-
2020
- 2020-12-11 CN CN202011460293.3A patent/CN112596458B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101634833A (en) * | 2008-07-23 | 2010-01-27 | 沈阳中科博微自动化技术有限公司 | Open type configuration method and system for IO parameters of field device |
CN102880748A (en) * | 2012-09-06 | 2013-01-16 | 国电联合动力技术有限公司 | Method for automatically drawing electric diagrams |
CN106415416A (en) * | 2014-06-12 | 2017-02-15 | 三菱电机株式会社 | Rendering software |
US10491463B2 (en) * | 2016-09-29 | 2019-11-26 | Kyland Technology Co., Ltd | Software-defined realization method based on protection and control system for intelligent substation |
CN109947025A (en) * | 2019-03-29 | 2019-06-28 | 南京南瑞继保电气有限公司 | A kind of cluster measure and control device configuration method |
CN111026387A (en) * | 2019-12-23 | 2020-04-17 | 北京东土科技股份有限公司 | VPLC configuration method and device of industrial server and readable storage medium |
CN111124680A (en) * | 2019-12-23 | 2020-05-08 | 浙江中控技术股份有限公司 | Intelligent I/O distribution method and system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113312685A (en) * | 2021-05-28 | 2021-08-27 | 东风设计研究院有限公司 | Part brand replacement method in macro circuit and storage medium |
CN113536407A (en) * | 2021-06-09 | 2021-10-22 | 东风设计研究院有限公司 | Method and device for constructing project drawing based on unit equipment and storage medium |
CN113536407B (en) * | 2021-06-09 | 2023-07-21 | 武汉东研智慧设计研究院有限公司 | Method, device and storage medium for constructing project drawing based on unit equipment |
Also Published As
Publication number | Publication date |
---|---|
CN112596458B (en) | 2022-05-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112596458B (en) | PLC automatic allocation method in electrical drawing and storage medium | |
CN110866320A (en) | Intelligent platform area graph automatic generation method and system | |
CN107292003B (en) | Automatic generation method of power grid station wiring diagram | |
CN107784139B (en) | Automatic generation method of electrical schematic diagram of compressor control system | |
CN109426690B (en) | Method, device and equipment for generating visual model layout of space | |
CN108829024A (en) | A kind of PLC program generation method and system | |
CN102854855A (en) | Flexible production line monitoring system | |
CN117077642B (en) | Automatic drawing method for power substation power transformation and distribution system diagram based on VBA programming | |
US20210116890A1 (en) | Production Control System | |
CN111652559A (en) | Material matching method and device | |
CN110460473B (en) | Communication configuration method and device of configuration software and computer readable storage medium | |
CN110147226B (en) | System, method and device for automatically generating program according to functional block diagram | |
CN103418864A (en) | Electric spark machining method and system | |
CN109740223B (en) | Auxiliary drawing method for direct-current power supply system of transformer substation | |
CN111475159B (en) | Method, device and storage medium for automatically generating program | |
CN108931963A (en) | A kind of air valve part by numerical control NC auto programming system | |
CN105305619A (en) | Method and device for three-remote configuration based on distribution automation | |
CN109074065A (en) | For numerical control device to be matched with to the device and method of machine to be controlled | |
CN113536407B (en) | Method, device and storage medium for constructing project drawing based on unit equipment | |
CN114721736B (en) | Data management method and system based on soft PLC | |
CN111158827A (en) | Method and device for graphic configuration tool correlation calculation value information | |
CN104486117A (en) | Configuration command interaction method and configuration command interaction system of multi-board card core switch | |
CN111274680B (en) | Method for acquiring logistics transportation simulation path of digital factory | |
CN109885921B (en) | Method, system, medium and equipment for transferring mounting data based on three-dimensional component library | |
CN113534730A (en) | Model-based PLC control code generation method, system, device and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220509 Address after: 430056, No. 1, Dongfeng central, No. three Dongfeng Road, Wuhan economic and Technological Development Zone, Hubei, Wuhan, A Patentee after: Wuhan Dongyan intelligent design and Research Institute Co.,Ltd. Address before: 430056, No. 1, Dongfeng central, No. three Dongfeng Road, Wuhan economic and Technological Development Zone, Hubei, Wuhan, A Patentee before: DONGFENG DESIGN INSTITUTE Co.,Ltd. |