CN104238438A - PLC universal platform and design method thereof - Google Patents

PLC universal platform and design method thereof Download PDF

Info

Publication number
CN104238438A
CN104238438A CN201410355051.6A CN201410355051A CN104238438A CN 104238438 A CN104238438 A CN 104238438A CN 201410355051 A CN201410355051 A CN 201410355051A CN 104238438 A CN104238438 A CN 104238438A
Authority
CN
China
Prior art keywords
plc
module
program
design
communication
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
CN201410355051.6A
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.)
SHANTOU INSTITUTE FOR LIGHT INDUSTRIAL EQUIPMENT RESEARCH
Shantou University
Original Assignee
SHANTOU INSTITUTE FOR LIGHT INDUSTRIAL EQUIPMENT RESEARCH
Shantou University
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 SHANTOU INSTITUTE FOR LIGHT INDUSTRIAL EQUIPMENT RESEARCH, Shantou University filed Critical SHANTOU INSTITUTE FOR LIGHT INDUSTRIAL EQUIPMENT RESEARCH
Priority to CN201410355051.6A priority Critical patent/CN104238438A/en
Publication of CN104238438A publication Critical patent/CN104238438A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

The invention relates to the field of industrial control, in particular to a PLC universal platform and a design method thereof. The PLC universal platform comprises a conversion module, an editing module, a compiling module, a modular calling module, a communication module and a symbol table module. The design method of the PLC universal platform includes the steps of symbol table design, modular design, program conversion design and communication design. Thus, the universal platform can be used for PLCs of many manufacturers, the transportability of PLC programs among different machine types can be improved, burdens on engineering technicians and engineering designers can be relieved, the PLC universal platform has practical industrial application value, and the situation that the compatibility of the PLCs of the manufacturers is poor at present can be alleviated to some extent.

Description

A kind of PLC general-purpose platform and method for designing thereof
Technical field
The present invention relates to industrial control field, particularly relate to a kind of PLC general-purpose platform and method for designing thereof.
Background technology
Programmable Logic Controller (Prograble Logic Controller, be called for short PLC) course of more than 40 year of having passed by, with its compact conformation, reliability is high, function is strong, speed is fast etc., and advantage obtains widespread use, has become the main flow of industrial control system.Along with the development of semiconductor technology, computer technology and the communication technology, industrial control field has earth-shaking change, and PLC is also in continuous development and change, and PLC constantly employs new technology and constantly strengthens function and the opening of system.
Due to PLC advantage in every respect, be widely used in fields such as petrochemical complex, power electronics, electrical equipment, metallurgy, machine-building, water treatment, medicine food, traffic, fire-fightings.PLC is the pillar product of automatic field; Novel PLC product just commercially development and application, particularly small-sized, miniature or high performance PLC, as the PLC of the PLC of hazardous location, soft logic, the PLC etc. of integrated, networking.
Have more than the 300 kind of PLC product of manufacturer production more than 200 abroad at present, and the PLC programming software of each manufacturer alone becomes one, compatibility is to each other poor, and the PLC of different manufacturers different model is difficult to the transplanting directly completing program.The developing instrument software of current various PLC is all bundle with the hardware system equipment of manufacturer, i.e. the developing instrument software of the PLC of a certain manufacturer, the hardware that can only provide in this manufacturer uses.
For user, according to different application scenarios, need the PLC type number selecting cost performance the highest.In a set of large-scale control system, or the production scene of an enterprise, often there is the present situation that the PLC of several manufacturer coexists.For the hardware and software using the user of multiple PLC will be familiar with and grasp multiple PLC, make user's amount of having high input manpower and financial resources, as the third-party PLC more renewed, must staff training be re-started, cause the significant wastage of human resources.
Summary of the invention
The object of the present invention is to provide a kind of PLC general-purpose platform and method for designing thereof, solve the problem of the poor compatibility that prior art exists.
In order to realize above-mentioned object, adopt following technical scheme.A kind of PLC general-purpose platform, comprise modular converter, editor module, collector, modularization calling module, communication module and symbol table module, described modular converter is used for the conversion between each PLC language, described editor module is used for providing a program editing environment for the memonic symbol sound instruction of PLC
Described collector is used for the user program of memonic symbol language compilation to compile, the executable file that generation can run in each PLC software for editing, described modularization calling module is integrated with conventional PLC program block, described communication module is used for communication between host computer and PLC hardware, described symbol table module for symbolic address and PLC hardware is provided physical address between corresponding relation.
The workflow of general-purpose platform is as follows: the initialization of S1 general-purpose platform; S2 editor module editor PLC memonic symbol language source code; S3 modular converter converts PLC memonic symbol language source code to PLC memonic symbol language target program; PLC memonic symbol language target Program Generating is the executable file that can run in each PLC software for editing by S4 collector.In above-mentioned flow process, modular universal module, communication module and symbol table module play auxiliary effect.
Modularization calling module mainly improves the reusability of program, this module is that conventional program block is loaded in the routine library of software, directly call when deployed, only revise parameter, a large amount of work repeated can be saved like this, make technician have more energy to go to improve whole control system.The programming experience of forefathers and coding style can hand on by this function, also can save the input that programmer repeats.
A kind of method for designing of PLC general-purpose platform, comprise symbol table design, modular design, Program transformation design and communication scheme, the design of described symbol table is realize symbolic address and physical address corresponding, program is divided into some pieces by function by described modular design artificially, programming and debugging in units of block, described Program transformation design realizes the conversion between each PLC language, and described communication scheme realizes the communication between host computer and PLC hardware.
Program transformation design realizes the conversion between each PLC language, first want clear and definite control overflow, select suitable PLC machine type and suitable hardware module, according to the difference of internal storage form according to control overflow, rational distribution symbol table, carries out the corresponding conversion of symbolic address and specific address.After finishing these preliminary preparations, next carry out conversion and the compiling in the later stage debugging of whole PLC program.The operation will done before conversion is, according to the address assignment in source program, does the distribution of address in related objective program, and allocation rule is mapping relations one to one.Then remake the conversion of program, symbolic address is constant, and instruction becomes the instruction of identical function.When the instruction of PLC language passive in target P LC language, then sourse instruction is converted to the N objective instruction set of identical function, and when making reverse conversion, rule is also like this.
Compared with prior art, the present invention enables the PLC of numerous manufacturer have a general platform, the portability of PLC program between different type of machines can be improved, alleviate the burden of engineering technical personnel and project planner, there is actual industrial application value, the situation that current each manufacturer PLC is compatible poor can be alleviated to a certain extent.
Embodiment
The invention will be further described below.
The invention discloses a kind of PLC general-purpose platform, comprise modular converter, editor module, collector, modularization calling module, communication module and symbol table module.
Modular converter is the topmost functional module of general-purpose platform, and this module mainly realizes the translation function between Siemens, Mitsubishi, Omron and IEC61131-3 standard PLC language.
Editor module is the most basic functional module of general-purpose platform, and the memonic symbol sound instruction being mainly PLC provides a program editing environment, and its function, except accepting the input of user program, must be edited the word of input.
Collector is compiled by the user program of memonic symbol language compilation, the mistake that prompting user occurs in a program, finally generates the executable file that can run in each PLC software for editing.
Modularization calling module is integrated with conventional PLC program block, user can directly call this module when using a certain module in programming process, parameter in all right modified module, such as, revise I/O address, assistance contacor address, to complete actual programming requirement.
Communication module can be the communication between responsible host computer and PLC hardware, and this module have employed the mode of comparatively conventional serial communication.
Symbol table module mainly provides the corresponding relation between symbolic address and the physical address of PLC hardware used in programming process, and is annotated, to improve the readability of PLC program.
The workflow of general-purpose platform is as follows: the initialization of S1 general-purpose platform; S2 editor module editor PLC memonic symbol language source code; S3 modular converter converts PLC memonic symbol language source code to PLC memonic symbol language target program; PLC memonic symbol language target Program Generating is the executable file that can run in each PLC software for editing by S4 collector.In above-mentioned flow process, modular universal module, communication module and symbol table module play auxiliary effect.
The invention also discloses a kind of method for designing of PLC general-purpose platform, comprise symbol table design, modular design, Program transformation design and communication scheme.Symbol table design is realize symbolic address and physical address corresponding, program is divided into some pieces by function by modular design artificially, programming and debugging in units of block, Program transformation design realizes the conversion between each PLC language, and communication scheme realizes the communication between host computer and PLC hardware.
Program transformation design is the topmost link of general-purpose platform method for designing.Program transformation mainly comprises the following steps: the clear and definite control overflow of S1; S2 selects suitable PLC; S3 carries out the conversion of hardware configuration and symbol table; The conversion of each program module of S4; The integration of the whole program of S5 is called; S6 compiling and preservation.The final purpose of Program transformation is the whole PLC control system of design, and design PLC control system mainly does the work of two aspects: one is carry out hardware system configuration, and two is designing user programs.
Hardware system configuration comprises the configuration of basic configuration, I/O expanded configuration, special functional module configuration, redundancy structure configuration, communicate configuration and peripheral establishing.
Basic configuration: select the CPU module of monoblock type PLC or modular PLC, memory modules, power module, I/O module, floor or frame.
I/O expanded configuration: when counting of having of monoblock type PLC itself can not meet control overflow, need expansion I/O module.The expanded configuration of modular PLC has two kinds: local expansion and Remote Expansion, Remote Expansion can expand the scope of control system greatly, remote I/O is directly placed in industry spot, and Remote Expansion will note the ultimate range of used transmission medium, host-host protocol and data line.Should notice that when expanded configuration the maximum expansion of this model PLC is counted, suitable allowance be left, operate at full capacity, stability and the serviceable life of PLC system can be affected.
Special functional module configures: according to control overflow, increase special functional module, to strengthen control accuracy and the control ability of control system.As high speed counting module, position control module, analog input and output module, temperature detecting module, circuit control module etc.
Redundancy structure configures: in some special important occasions, as oil refining process control, in order to improve the reliability of control system, be necessary to arrange redundancy structure.Redundant configuration refers to except required module, also wants the configuration of the module of additional spare.The principle of work of redundancy structure is: arrange the identical control device of two covers and lay respectively at a position and No. two positions, wherein a position is in running order, No. two positions are in dormant state, when the control device of a position breaks down, or when the device of a position needs detection to safeguard, control system switches, at this moment No. two positions are in running order, a position is in dormant state, so both can strengthen the stability of system, can make again the continual work of control system.
Communication configuration: large-scale control system is divided into three levels substantially: mechanical floor, key-course and administration and supervision authorities.Between mechanical floor and key-course, need to communicate between key-course with administration and supervision authorities, these data that suitable communication module and communication mode will be selected to realize between three layers are transmitted.
The configuration of peripheral establishing: the configuration purpose of peripherals is the establishment of PLC program, debugging, storage, and the display of data, storage, printing provide condition.
Designing user program mainly comprises technological requirement analysis, should build it, I/O distribution, program design, debugged program and stored routine.
Technological requirement is analyzed: clear and definite system process process, specifies the corresponding relation of the workflow of controlled device, technological requirement, interlocking linkage relationship, input and output, needs to gather, transmit which data.Also want characteristic and the distribution of clear and definite inputoutput unit, distribute corresponding output point and be connected with it, during distribution, should accomplish that wiring advantages of simple accomplishes to avoid the interference of signal again.
Hardware setting: there is respective default setting in general producer, if needed, but also oneself arranges the plane No. of special module, extended instruction function number etc.
I/O distributes: to each I/O module, each input and output point allocation address, and current most software support symbolic address programming, needs first edit symbol table before programming, after also can first programming by symbolic address, then the corresponding relation of edit symbol and physical address.
Program design: when program is larger, according to the institutional framework of program, is divided into some program modules by function whole program, then by module coding respectively, finally integrates these modules again and forms whole program.
Debugged program: after having compiled program, also will debug repeatedly, and amendment, until normally run.Debugged program can first utilize simulation software to make artificial debugging, downloads in PLC again and do actual debugging after program is errorless.
Storage program: debugging successful program will file, and is kept in the RAM of PLC, also it can be solidified, in write ROM.Be modified for preventing program or delete, final program will carry out protecting, encrypts, add latching operation.As with the protection of hardware switch setting program or with software design patterns protection, the method for encryption has instruction encryption, programming software encryption, and the output disable bit of the available set PLC that locks realizes, and also able to programme corresponding output is forbidden.

Claims (2)

1. a PLC general-purpose platform, is characterized in that, comprises modular converter, editor module, collector, modularization calling module, communication module and symbol table module,
Described modular converter is used for the conversion between each PLC language,
Described editor module is used for providing a program editing environment for the memonic symbol sound instruction of PLC,
Described collector is used for the user program of memonic symbol language compilation to compile, and generates the executable file that can run in each PLC software for editing,
Described modularization calling module is integrated with conventional PLC program block,
Described communication module is used for the communication between host computer and PLC hardware,
Described symbol table module for symbolic address and PLC hardware is provided physical address between corresponding relation.
2. a method for designing for PLC general-purpose platform, is characterized in that, comprises symbol table design, modular design, Program transformation design and communication scheme,
The design of described symbol table is realize symbolic address and physical address corresponding,
Program is divided into some pieces by function by described modular design artificially, programming and debugging in units of block,
Described Program transformation design realizes the conversion between each PLC language,
Described communication scheme realizes the communication between host computer and PLC hardware.
CN201410355051.6A 2014-07-24 2014-07-24 PLC universal platform and design method thereof Pending CN104238438A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410355051.6A CN104238438A (en) 2014-07-24 2014-07-24 PLC universal platform and design method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410355051.6A CN104238438A (en) 2014-07-24 2014-07-24 PLC universal platform and design method thereof

Publications (1)

Publication Number Publication Date
CN104238438A true CN104238438A (en) 2014-12-24

Family

ID=52226754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410355051.6A Pending CN104238438A (en) 2014-07-24 2014-07-24 PLC universal platform and design method thereof

Country Status (1)

Country Link
CN (1) CN104238438A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106909123A (en) * 2017-02-10 2017-06-30 昆山同日工业自动化有限公司 One kind control programming auxiliary equipment
CN108829024A (en) * 2018-05-30 2018-11-16 广州明珞软控信息技术有限公司 A kind of PLC program generation method and system
CN109799776A (en) * 2018-12-13 2019-05-24 西安艾润物联网技术服务有限责任公司 Data configuration method and device
CN113815009A (en) * 2021-10-12 2021-12-21 湖南诚今电梯部件制造有限公司 Elevator component grabbing device and control method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106909123A (en) * 2017-02-10 2017-06-30 昆山同日工业自动化有限公司 One kind control programming auxiliary equipment
CN106909123B (en) * 2017-02-10 2020-05-19 昆山同日工业自动化有限公司 Control programming auxiliary assembly
CN108829024A (en) * 2018-05-30 2018-11-16 广州明珞软控信息技术有限公司 A kind of PLC program generation method and system
CN109799776A (en) * 2018-12-13 2019-05-24 西安艾润物联网技术服务有限责任公司 Data configuration method and device
CN109799776B (en) * 2018-12-13 2020-10-27 西安艾润物联网技术服务有限责任公司 Data configuration method and device
CN113815009A (en) * 2021-10-12 2021-12-21 湖南诚今电梯部件制造有限公司 Elevator component grabbing device and control method
CN113815009B (en) * 2021-10-12 2023-11-24 湖南诚今电梯部件制造有限公司 Elevator component grabbing device and control method

Similar Documents

Publication Publication Date Title
CN104898546B (en) A kind of PLC on-line debugging system and method based on SOC
CN104267999B (en) A kind of method and apparatus that control program is compiled
US20140123104A1 (en) Method and device for the programming and configuration of a programmable logic controller
CN103123598B (en) Online debugging implementation method of compiling soft programmable logic controller (PLC)
CN102508654B (en) Method for designing ladder diagram editing software of embedded PLC (Programmable Logic Controller)
CN110271009B (en) Method for realizing manipulator teaching function based on PLC robot-simulated instruction
CN104238438A (en) PLC universal platform and design method thereof
CN104503896A (en) Systems And Methods For Batch Device Commissioning And Decommissioning
CN103760810A (en) Remote measuring terminal controller
CN109213061A (en) Program making device
CN103092747A (en) Controlling program verifying and testing method and system thereof
CN110445656B (en) Nuclear power plant DCS platform transparent transmission network data full life cycle generation method
CN102621960A (en) Advanced RISC machine-Linux (ARM-Linux)-based compiled programmable automation control (PAC)
US20210026609A1 (en) Support device and non-transitory computer-readable recording medium
CN110147226A (en) A kind of system according to Function Block Diagram automatically generating program, method and device
CN104063231A (en) Test resource rapid access method based on HIT-TENA
CN102566481B (en) C language-based PLC (Programmable Logic Controller) control system and realization method thereof
JP2010176377A (en) Tool for converting plc program
Younis et al. UML-based approach for the re-engineering of PLC programs
CN112558541B (en) PLC programming extension system and method and electronic equipment
CN105659175A (en) Processing device and method for configuring an automation system
CN203909545U (en) Remote telemetering terminal controller
CN106547218B (en) Direct-current transmission field layer real-time simulation system, simulation system and closed-loop test system
Vyatkin et al. Object-oriented modular place/transition formalism for systematic modeling and validation of industrial automation systems
Marcos et al. Model-driven design of industrial control systems

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141224

WD01 Invention patent application deemed withdrawn after publication