CN101344773B - Programmable controller PLC and its expansion method - Google Patents
Programmable controller PLC and its expansion method Download PDFInfo
- Publication number
- CN101344773B CN101344773B CN200810142402XA CN200810142402A CN101344773B CN 101344773 B CN101344773 B CN 101344773B CN 200810142402X A CN200810142402X A CN 200810142402XA CN 200810142402 A CN200810142402 A CN 200810142402A CN 101344773 B CN101344773 B CN 101344773B
- Authority
- CN
- China
- Prior art keywords
- cpu
- host cpu
- interface
- data
- programmable controller
- 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.)
- Expired - Fee Related
Links
Images
Abstract
The invention is applicable to the technical field of programmable controller manufacture and provides a programmable controller and an expansion method thereof. The programmable controller comprises a main CPU and at least one auxiliary CPU connected with the main CPU. The auxiliary CPU performs format treatment on received data, then transmits the processed data to the main CPU and also conducts data output treatment according to data transmitted by the main CPU; the main CPU conducts digital/logic operation, order translation and system resource management according to data transmitted by the auxiliary CPU and transmits the processed data to the auxiliary CPU. The invention leads users to modify or expand the auxiliary CPU according to practical situation or demands, thereby effectively promoting the development of the PLC.
Description
Technical field
The invention belongs to programmable controller manufacturing technology field, relate in particular to a kind of programmable controller PLC and extended method thereof.
Background technology
Programmable controller (Programmable Logic Controller, PLC) be a kind of specially under industrial environment, using the electronic installation of the digital operation operation that designs, it adopt general or special purpose CPU and within it portion be provided with watchdog routine (or operating system) and can store the storer of user program, inner watchdog routine interpreting user program is also carried out relevant logical operation, sequential operation, timing, the instruction of operations such as counting and arithmetical operation, and can control various types of machineries or production run by digital or analog input and output.Be a kind of equipment very common in the commercial production, especially obtained using widely in industrial automation control field.
In the prior art, have only a central processing unit (Central ProcessingUnit, CPU) chip, responsible various mathematics of this CPU and logical operation, I/O processing, communication processing etc. in the common PLC.The function of this PLC is an integrated form, handles various mathematics and logical operation, I/O.The program code of communications protocol also be gather together, indivisible, when the type that will change communications protocol (promptly supporting different communication interfaces) or change input/output interface when (as change simulation into from numeral), need the update routine code and compile, debug, test, the step of many complexity such as typing just can finish, these work generally have only the production firm of product just can finish, and client's (being the end user) is helpless.So cause a kind of phenomenon of present PLC industry, the product of PLC manufacturers produce, the client can only use, can not change according to actual conditions or demand, more can not expand, and, the system of each PLC manufacturer is different, can not intercommunication, usefulness mutually, and this limits the development of PLC greatly.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of programmable controller PLC, be intended to solve that PLC has only a CPU to carry out processing controls in the prior art, the client can only use and can not change or expand, and can not intercommunication between the PLC that generates of each PLC manufacturer, the problem of usefulness mutually.
The embodiment of the invention is to realize like this, a kind of programmable controller PLC, described programmable controller PLC comprises a host CPU, and be connected with described host CPU at least one from CPU, described host CPU and carry out exchanges data by communication protocol from CPU, described host CPU be connected by general-purpose interface from CPU, described general-purpose interface comprises full duplex single-ended interface, half-duplex difference type interface and full duplex difference type interface, described full duplex single-ended interface comprises the interface and two kinds interfaces of being with clock signal of not being with clock signal, wherein:
Describedly the data that receive are formatd processing, the data transmission after handling to described host CPU, and is carried out data output processing according to the data of described host CPU transmission from CPU;
Described host CPU carries out mathematics/logical operation, instruction parsing, system resource management according to described data from the CPU transmission, and the data transmission after will handling is to described from CPU;
Described format handle comprise with spot sampling in using various strong, weak signal is through decay or amplify, and is converted to unified digital signal, described signal comprises electric current, voltage, temperature, flow, liquid level, pressure.
Another purpose of the embodiment of the invention is to provide a kind of industrial control device that comprises above-mentioned programmable controller PLC.
Another purpose of the embodiment of the invention is to provide the extended method of a kind of aforesaid Programmable Logic Controller PLC, and described method comprises the steps:
One host CPU is set in Programmable Logic Controller PLC, and be connected with described host CPU at least one from CPU, describedly receive outside input data, and the input data of outside formatd processing from CPU;
Described host CPU carries out mathematics/logical operation, instruction parsing, system resource management to the data after handling from CPU;
Described Refresh Data output data after handling according to host CPU from CPU;
Described format is handled and is further comprised:
With spot sampling in using various strong, weak signal is through decay or amplify, and is converted to unified digital signal, described signal comprises electric current, voltage, temperature, flow, liquid level, pressure;
Wherein, described host CPU and carry out exchanges data by communication protocol from CPU, described host CPU be connected by general-purpose interface from CPU, described general-purpose interface comprises full duplex single-ended interface, half-duplex difference type interface and full duplex difference type interface, and described full duplex single-ended interface comprises the interface and two kinds interfaces of being with clock signal of not being with clock signal.
In embodiments of the present invention, by a host CPU is set in PLC or in its module, and and host CPU between carry out data interaction by general interface and communications protocol at least one from CPU, finish I/O processing, communications protocol processing etc. from CPU, and the data transmission after will handling is to host CPU, finish mathematics/logical operation, instruction parsing, system resource management etc. by host CPU, thereby the user can or be expanded from CPU according to actual conditions or demand change, effectively promoted the development of PLC.
Description of drawings
Fig. 1 is the Organization Chart of the programmable controller that provides of the embodiment of the invention;
Fig. 2 is the general-purpose interface type synoptic diagram of the programmable controller that provides of the embodiment of the invention;
Fig. 3 is that synoptic diagram is handled in the data formatting of the programmable controller that provides of the embodiment of the invention;
Fig. 4 is the system architecture figure of the programmable controller that provides of first embodiment of the invention;
Fig. 5 is the system architecture figure of the programmable controller that provides of second embodiment of the invention;
Fig. 6 is the system architecture figure of the programmable controller that provides of third embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In embodiments of the present invention, by a host CPU is set in PLC or in its module, and and host CPU between carry out data interaction by general interface and communications protocol at least one from CPU, finish I/O processing, communications protocol processing etc. from CPU, and the data transmission after will handling is to host CPU, finish mathematics/logical operation, instruction parsing, system resource management etc. by host CPU, thereby the user can or be expanded from CPU according to actual conditions or demand change, effectively promoted the development of PLC.
Fig. 1 shows the framework of the programmable controller that the embodiment of the invention provides, and details are as follows:
This programmable controller comprises a host CPU, and be connected with host CPU at least one from CPU.Wherein host CPU is a core CPU, and this host CPU carries out mathematics/logical operation, instruction parsing, system resource management etc. according to each data from the CPU transmission, is responsible for I/O processing, communications protocol processing etc. from CPU.In embodiments of the present invention, the client can be according to different actual demands, be provided with a plurality of be connected with host CPU from CPU, simultaneously also can for different function setting correspondences from CPU, as Communication processor, digital I/O processor, analog input/output processor, temperature controller, motion controller etc.Respectively from carrying out data interaction by general interface and communications protocol between CPU and the host CPU.
In embodiments of the present invention, from the communication of CPU and host CPU both can be serial line interface, it also can be parallel interface, promptly can be (several Kbit of per second) of low speed, also can be at a high speed (several Gbit of per second), as shown in Figure 2, be the general-purpose interface type that the embodiment of the invention provided, this general-purpose interface type comprises full duplex single-ended, half-duplex difference type and full duplex difference type.
Wherein, A is the full duplex single-ended among Fig. 2, the full duplex single-ended is divided into (a) again and is not with clock signal and (b) is with two kinds of clock signals, full duplex single-ended communication interface is fit to the closely application of low speed interconnection, communication speed is usually in zero scope to hundreds of KHz, as full duplex single-ended communication interface typical application is RS-232C, and the interface of band clock signal can be brought up to communication speed tens MHz, the general typical interface that adopts be Serial Peripheral Interface (Serial Peripheral Interface, SPI).B is the half-duplex difference type among Fig. 2, half-duplex difference type interface adopts the balance transmission technology can long distance communication, typical application has RS-485, CAN bus (CAN BUS), USB (universal serial bus) (Universal Serial BUS, USB) etc., this half-duplex difference type interface characteristic be transmission frequency rise is from short more more, communication speed is usually zero to hundreds of MHz.C is the full duplex difference type among Fig. 2, and full duplex difference type interface is used for point-to-point high-speed interconnect, and communication speed arrives between several GHz at hundreds of MHz usually.In embodiments of the present invention, according to the difference of specific design, host CPU provides varying number, dissimilar above-mentioned interface, and the user can select different host CPU modules according to the demand of practical application, and according to the Interface design of host CPU suitable from CPU.
As one embodiment of the present of invention, the resource that has oneself from CPU, host CPU respectively, can independently handle separately, and fuse by general-purpose interface, what each were different finishes exchanges data from the CPU end by communication protocol and host CPU, and this communication protocol can be general, as Modbus agreement, DeviceNet agreement, ICP/IP protocol etc., according to the application of reality, also can specify special-purpose communications protocol.From the CPU end back is handled in the input data formatting of being responsible for and submit to the host CPU unification to handle, the data retrieval after will being handled by host CPU more also refreshes output data.In embodiments of the present invention, at the inner custom protocol that adopts usually of PLC, PLC and external communication adopt puppy parc usually, make things convenient for intercommunication, interconnection.As shown in Figure 3, synoptic diagram is handled in the data formatting of the programmable controller that provides for the embodiment of the invention, the data formatting processing is the various signals with spot sampling in using, as electric current, voltage, temperature, flow, liquid level, pressure etc. various strong, weak signal is through decay or amplify, be converted to unified digital signal, typical scope is 12 unsigned values, and promptly the decimal value scope is 0~4095.
Therefore, both can realize from the CPU end by production firm, and the user according to the actual needs, also can customize realization by the user, hold after the data formatting processing from CPU, can carry out alternately with host CPU by general interface and communications protocol, therefore function renewal, the replacement from CPU end and host CPU end do not exert an influence mutually to both sides, simultaneously, can using cheaply by this distributed structure/architecture, CPU constitutes powerful PLC system.
Fig. 4 shows the system architecture of the programmable controller that first embodiment of the invention provides, and wherein host CPU is built in the host CPU module (being the core), and this host CPU is responsible for mathematical operation, logical operation, interpretation of programs.In embodiments of the present invention, in order to make the user can be according to different demands, be provided with difference in functionality from CPU, and make can communicating with the host CPU of host CPU module of setting from CPU, the various communication interfaces of configuration in the host CPU module are as RS-232C, RS-485 etc.From sampling and the data formatting processing and the data input/input processing of the mainly responsible digital quantity of CPU module, analog quantity,, finish from the difference in functionality of CPU and use by duplex single-ended band clock-type communication interface and host CPU module communication.Wherein, RS-232C is the communication interface of host CPU module and remote-control device, and RS-485 is the communication interface of host CPU module and remote-control device, and input/output interface mainly is responsible for the I/O of data.
Fig. 5 shows the system architecture of the programmable controller that second embodiment of the invention provides, only show the part relevant for convenience of explanation with the embodiment of the invention, this system can comprise core processing plate, communication disposable plates and I/O expansion board for being arranged at the unit of software unit, hardware cell or software and hardware combining in the PLC.
The core processing plate is built-in with host CPU, main mathematical operation, logical operation, the interpretation of programs be responsible for, and dispose various communication interfaces, in this core processing plate, also comprise processing module from CPU1, should be responsible for two-way CAN BUS communication protocol from CPU1 handles, and by duplexing single-ended band clock-type communication interface and host CPU communication, and should (expand StaticRAM from the extended memory that the CPU1 processing module has from CPU, promptly expand SRAM), this extended memory is mainly used in temporary transceive data.The core processing plate of this programmable controller also have communication expansion bus interface, communication interface, I/O expansion bus interface and input/output interface (General Purpose Input Output, GPIO).
The communication expansion board is built-in with from CPU2, Ethernet interface (TCP/IP) and communication expansion board interface (MODBUS, DEVICENET, PROFIBUS etc.).Ethernet interface and communication expansion board interface are used for access network, mainly are responsible for the processing of Ethernet protocol from CPU2 in this communication expansion board, and will data formatting handle the host CPU of submitting the core processing plate in the back and unify to handle.
The I/O expansion board, comprise from CPU3, the input and output expansion bus, handling in this input and output expansion board from the mainly responsible digital I/O of CPU3, the processing of various simulating signals and motion control, and the back is handled in the data formatting of I/O submit to core processing plate host CPU to unify to handle.
As one embodiment of the present of invention, in this PLC inner structure, can also directly handle from CPU1 and from the function that CPU# 2 was responsible for, and only the I/O that will carry out in the I/O expansion board be handled, as shown in Figure 6 by handling from CPU by host CPU.Host CPU mainly is responsible for also being responsible for the processing of processing of two-way CAN BUS communication protocol and Ethernet protocol outside mathematical operation, logical operation, the interpretation of programs.I/O expansion board consistent with the function from CPU3 was responsible for of I/O expansion board Fig. 5 from CPU1 do not repeat them here.
In embodiments of the present invention, by a host CPU is set in PLC or in its module, and and host CPU between carry out data interaction by general interface and communications protocol at least one from CPU, finish I/O processing, communications protocol processing etc. from CPU, and the data transmission after will handling is to host CPU, finish mathematics/logical operation, instruction parsing, system resource management etc. by host CPU, thereby the user can or be expanded from CPU according to actual conditions or demand change, effectively promoted the development of PLC.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (4)
1. a programmable controller (PLC), it is characterized in that, described programmable controller (PLC) comprises a host CPU, and be connected with described host CPU at least one from CPU, described host CPU and carry out exchanges data by communication protocol from CPU, described host CPU be connected by general-purpose interface from CPU, described general-purpose interface comprises full duplex single-ended interface, half-duplex difference type interface and full duplex difference type interface, described full duplex single-ended interface comprises the interface and two kinds interfaces of being with clock signal of not being with clock signal, wherein:
Describedly the data that receive are formatd processing, the data transmission after handling to described host CPU, and is carried out data output processing according to the data of described host CPU transmission from CPU;
Described host CPU carries out mathematics/logical operation, instruction parsing, system resource management according to described data from the CPU transmission, and the data transmission after will handling is to described from CPU;
Described format handle comprise with spot sampling in using various strong, weak signal is through decay or amplify, and is converted to unified digital signal, described signal comprises electric current, voltage, temperature, flow, liquid level, pressure.
2. programmable controller as claimed in claim 1 is characterized in that, described communication protocol is puppy parc or self-defining specialized protocol, and described puppy parc is Modbus agreement, DeviceNet agreement or ICP/IP protocol.
3. industrial control device that comprises claim 1 or 2 described programmable controllers (PLC).
4. the extended method of a programmable controller as claimed in claim 1 (PLC) is characterized in that, described method comprises the steps:
In programmable controller (PLC), a host CPU is set, and be connected with described host CPU at least one from CPU, describedly receive outside input data, and the input data of outside formatd processing from CPU;
Described host CPU carries out mathematics/logical operation, instruction parsing, system resource management to the data after handling from CPU;
Described Refresh Data output data after handling according to host CPU from CPU;
Described format is handled and is further comprised:
With spot sampling in using various strong, weak signal is through decay or amplify, and is converted to unified digital signal, described signal comprises electric current, voltage, temperature, flow, liquid level, pressure;
Wherein, described host CPU and carry out exchanges data by communication protocol from CPU, described host CPU be connected by general-purpose interface from CPU, described general-purpose interface comprises full duplex single-ended interface, half-duplex difference type interface and full duplex difference type interface, and described full duplex single-ended interface comprises the interface and two kinds interfaces of being with clock signal of not being with clock signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810142402XA CN101344773B (en) | 2008-08-13 | 2008-08-13 | Programmable controller PLC and its expansion method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810142402XA CN101344773B (en) | 2008-08-13 | 2008-08-13 | Programmable controller PLC and its expansion method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101344773A CN101344773A (en) | 2009-01-14 |
CN101344773B true CN101344773B (en) | 2010-11-10 |
Family
ID=40246788
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200810142402XA Expired - Fee Related CN101344773B (en) | 2008-08-13 | 2008-08-13 | Programmable controller PLC and its expansion method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101344773B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102279582B (en) * | 2011-05-09 | 2013-08-07 | 王盛学 | Multi-unit combined controller |
DE102011053757A1 (en) | 2011-09-19 | 2013-03-21 | Schneider Electric Automation Gmbh | Method for generating and handling applications for components of a control system |
CN102708081B (en) * | 2012-04-27 | 2014-10-22 | 南大傲拓科技江苏有限公司 | User programmable PLC (programmable logic controller) serial communication extension module |
CN102692891A (en) * | 2012-05-31 | 2012-09-26 | 山西联华伟业科技有限公司 | Programmable logic controller based on various communication buses |
CN102902645B (en) * | 2012-08-30 | 2015-10-28 | 深圳市英威腾电气股份有限公司 | Based on I/O expansion board and the signal processing method thereof of serial peripheral agreement |
CN104102162A (en) * | 2014-08-04 | 2014-10-15 | 昆明联诚科技股份有限公司 | Embedded logic controller |
CN107123334A (en) * | 2017-06-27 | 2017-09-01 | 小叶子(北京)科技有限公司 | A kind of intelligent piano learning machine and its control method |
CN109270888A (en) * | 2018-11-28 | 2019-01-25 | 杭州智尔科技有限公司 | A kind of Internet of Things programmable logic controller (PLC) and method |
CN111679611A (en) * | 2020-06-24 | 2020-09-18 | 航天新长征大道科技有限公司 | Modbus bus controller and control method thereof |
CN115047819B (en) * | 2022-05-17 | 2023-05-09 | 南京昇榕智能科技有限公司 | PLC system, PLC data transmission method and device |
-
2008
- 2008-08-13 CN CN200810142402XA patent/CN101344773B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN101344773A (en) | 2009-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101344773B (en) | Programmable controller PLC and its expansion method | |
CN104753958A (en) | Card and method for converting communication protocols | |
CN104065545A (en) | RS485 bus communication method based on Modbus protocol and power electronic system based on communication method | |
CN104156333A (en) | FPGA-based UART multi-interface extension system and method | |
CN112398714B (en) | Backboard bus master station, system and data communication method thereof | |
CN101013312A (en) | Private chip for implementing bus controller function in ring bus numerical control system | |
Sun et al. | Design and development of Modbus/MQTT gateway for industrial IoT cloud applications using Raspberry Pi | |
CN102520689A (en) | Embedded controller based on Godson processor and FPGA (Field Programmable Gate Array) technology | |
CN106657115B (en) | Frequency converter control system and protocol conversion card thereof | |
CN202351691U (en) | Embedded controller based on loongson processor and field programmable gate array (FPGA) technology | |
Xu et al. | Profibus automation technology and its application in DP slave development | |
Ye et al. | Wireless industrial communication system based on Profibus-DP and ZigBee | |
CN202472346U (en) | Bus PLC (Programmable Logic Controller) with multi-communication protocol | |
CN102722975A (en) | Method and system for reading data of electricity meter based on PROFIBUS | |
Xueqin et al. | Design of Multi-channel Temperature Control Inspection System Based on PLC | |
CN115903634B (en) | Motion control chip supporting follow-up function and control method thereof | |
CN205427578U (en) | Support PLC touch control integrated machine of man -machine interface configuration | |
CN201107618Y (en) | Digital type multifunctional touch controller | |
CN109635458A (en) | A kind of design method of general Internet of Things AnyRouter | |
CN220603889U (en) | Analog current output control circuit and card type bus IO module | |
CN204790496U (en) | Intelligent object of PLC core bus agreement extension PPI communication port | |
CN205486081U (en) | Embedded outside memory bus extension profinet bus device of CPU | |
CN117056268B (en) | SPI interface circuit and SPI communication method for measuring instrument | |
Shi-Lei et al. | Design and Application of Communication Module in Intelligent Temperature Transmitter Based on Freemodbus | |
Peng et al. | Design and development of Modbus/RTU master monitoring system based on embedded PowerPC platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20101110 Termination date: 20130813 |