CN102339027A - Network asynchronous callback-based distributed upper computer control method and device for programmable logic controller (PLC) equipment - Google Patents
Network asynchronous callback-based distributed upper computer control method and device for programmable logic controller (PLC) equipment Download PDFInfo
- Publication number
- CN102339027A CN102339027A CN2011101687667A CN201110168766A CN102339027A CN 102339027 A CN102339027 A CN 102339027A CN 2011101687667 A CN2011101687667 A CN 2011101687667A CN 201110168766 A CN201110168766 A CN 201110168766A CN 102339027 A CN102339027 A CN 102339027A
- Authority
- CN
- China
- Prior art keywords
- equipment
- plc
- slave station
- station computer
- master 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.)
- Pending
Links
Images
Abstract
The invention provides a network asynchronous callback-based distributed upper computer control method and a network asynchronous callback-based distributed upper computer control device for programmable logic controller (PLC) equipment. The control method comprise the following steps that: a master station computer is connected with the PLC equipment and a slave station computer; the slave station computer sends an equipment operation command out and transmits the equipment operation command to the master station computer by an asynchronous call method; the master station computer controls the PLC equipment; the PLC equipment performs the equipment operation command, and the like. The control device comprises the master station computer, a PLC communication card, the slave station computer and the PLC equipment. In the invention, by the asynchronous call method, a slave station program returns immediately, the operation efficiency of the slave station program of the slave station computer can be greatly improved, and the utilization rate of a central processing unit (CPU) can be reduced; a callback interface is utilized, so that an interface implementation method of the slave station computer is directly stimulated by a callback interface method after the master station computer acquires an equipment actuating state feedback; and the method and the device have the advantages of low CPU occupancy rate, high program operation performance and the like.
Description
Technical field
The invention belongs to automation equipment control field, be specifically related to a kind of distributed PC control method and control device of asynchronous readjustment Network Based of PLC equipment.
Background technology
PLC equipment refers to the (programmable logic controller (PLC) by PLC; Programmable Logic Controller) equipment of control, comparatively common PLC equipment comprises the automation equipment of various electromechanical integration such as piler and the conveyor in the automatic stereowarehouse.The upper computer control system of the PLC equipment that generally uses at present, is made up of a computing machine (hereinafter to be referred as host computer), plc communication card, PC control software.Through the plc communication card PLC equipment is connected with host computer, carries out control PLC equipment through PC control software.But this control mode only limits to use a host computer to carry out the PLC device control, and when the user need use many host computers to carry out distributed control, this traditional control mode was just inapplicable.
Summary of the invention
In order to overcome the shortcoming that existing PLC device control host computer procedure can not satisfy Distributed Application; The present invention proposes a kind of distributed PC control method and control device of asynchronous readjustment Network Based of PLC equipment; Can not only realize control to PLC equipment; And, can realize the distributed control mode of forming by many host computers through adopting network asynchronous readjustment technology.
Adopted network asynchronous readjustment mode has been introduced among the communication mode of main website and slave station; Through network asynchronous callback function; Make main website after handling the slave station sent request, can execution result be fed back to slave station through asynchronous mode, reached slave station and need not to carry out the technique effect that polling operation can obtain the operating result feedback.In application process; Has the meaning that to carry out advantages such as distributed PC control, cpu busy percentage is low, program run efficient high, secondary development is simple and first distributed PC control mode introduced the automation equipment control system of electromechanical integration such as PLC equipment.
The distributed PC control method of the asynchronous readjustment Network Based of a kind of PLC equipment that the present invention proposes specifically may further comprise the steps:
Step 1: a master station computer is passed through the plc communication card, and use field bus protocol to link to each other with one or more PLC equipment, the main website program run is on master station computer;
Step 2: through Ethernet, use ICP/IP protocol to link to each other with master station computer in one or more slave station computing machine, the slave station program operates in respectively on the slave station computing machine;
Step 3: user or outside initial conditions send the operation of equipment order through the subscriber interface module of the slave station program of any slave station computing machine;
Step 4: the slave station program of slave station computing machine passes to the operation of equipment order main website program of master station computer through asynchronous invoking method;
Step 5: directly control all PLC equipment that are connected with master station computer after the main website program receiving equipment operational order of master station computer;
Step 6:PLC equipment actuating equipment operational order, the main website program of master station computer receives PLC equipment and carries out feedback information;
Step 7: the main website program of master station computer is carried out feedback information through calling the callback interface method and send to all slave station computing machines or send the slave station program of the slave station computing machine of operation of equipment order with PLC equipment;
Step 8: the slave station program of slave station computing machine is shown to PLC equipment execution feedback information the user or feeds back to outside input through upgrading subscriber interface module.
The distributed PC control device of the asynchronous readjustment Network Based of a kind of PLC equipment that the present invention proposes comprises master station computer, plc communication card, slave station computing machine and PLC equipment; The number of described PLC equipment is one or more, and the number of slave station computing machine is one or more; Master station computer is equipped with the plc communication card, and master station computer uses field bus protocol to be connected with each PLC equipment, and master station computer uses ICP/IP protocol to be connected with every slave station computing machine also through Ethernet.
Described master station computer is provided with communication main station module, plc data treatment conversion module and plc data module for reading and writing, forms the main website program through communication main station module, plc data treatment conversion module and plc data module for reading and writing.Described slave station computing machine is provided with communication slave station module, control command processing module and subscriber interface module, forms the slave station program through communication slave station module, control command processing module and subscriber interface module.
The advantage that the present invention has is:
(1) the distributed PC control method and the control device of the asynchronous readjustment Network Based of a kind of PLC equipment of the present invention's proposition; The slave station program of slave station computing machine sends to master station computer through network asynchronous callback method with the operation of equipment order; Owing to use asynchronous invoking method; Therefore the slave station program can be returned immediately, so that carry out other operations, and needn't as the synchronization call mode, can't continue to carry out other operations because of the execution result of waiting facilities.In this way, the slave station program of slave station computing machine can improve operational efficiency greatly, and effectively reduces CPU usage.
(2) the distributed PC control method and the control device of the asynchronous readjustment Network Based of a kind of PLC equipment of the present invention's proposition; The main website program of master station computer can directly feed back to the slave station program with executing state through calling the callback interface method after obtaining equipment executing state feedback.Owing to used callback interface; Make the slave station computing machine need not poll implementation status as traditional method call; But after master station computer obtains equipment executing state feedback; Through calling the callback interface method, the interface implementation method of slave station computing machine directly obtains to excite, and has following of traditional poll method of calling and is beyond one's reach that CPU usage is low, program run performance advantages of higher.
Description of drawings
Fig. 1: the structural representation of the distributed PC control device of the asynchronous readjustment Network Based of a kind of PLC equipment that the present invention proposes;
Fig. 2: the middle master station computer and the slave station computing machine of the distributed PC control device of the asynchronous readjustment Network Based of a kind of PLC equipment that the present invention proposes get structural representation.
Among the figure: the 1-master station computer; 2-slave station computing machine; 3-PLC equipment; The 4-PLC communication card;
The 5-Ethernet; The 6-field bus protocol; 7-callback interface method; The 8-asynchronous invoking method;
101-communication main station module; 102-PLC data processing modular converter; The 103-PLC data read-write module;
201-communication slave station module; 202-control command processing module; The 203-subscriber interface module.
Embodiment
To combine accompanying drawing that the present invention is elaborated below.
The distributed PC control method of the asynchronous readjustment Network Based of a kind of PLC equipment that the present invention proposes may further comprise the steps:
Step 1: a master station computer 1 is passed through plc communication card 4, and use field bus protocol 6 (like Profibus bus or CAN bus) to link to each other with one or more PLC equipment 3, the main website program run is on master station computer 1.Can confirm the number of continuous PLC equipment 3 according to on-the-spot needs, promptly what operating terminals the user needs be configured, as 1~5.When described PLC equipment 3 was Siemens PLC C equipment, plc communication card 4 used the supporting plc communication card of Siemens, and like 5613 cards, if use other brands PLC, other supporting plc communication cards 4 of corresponding selection get final product.
Step 2: through Ethernet 5, use ICP/IP protocol to link to each other with master station computer 1 in one or more slave station computing machine 2, the slave station program operates in respectively on the slave station computing machine 2.
Step 3: user or outside initial conditions send the operation of equipment order through the subscriber interface module of the slave station program of slave station computing machine 2 (any gets final product), and specific instructions comprises that equipment goes out library command, equipment is gone into library command, device standby order and trouble shooting order etc.
Step 4: the slave station program of slave station computing machine 2 passes to the operation of equipment order main website program of master station computer 1 through asynchronous invoking method 8.This transmittance process adopts network (Ethernet) transmission mode.
Step 5: directly control all PLC equipment 3 that are connected with master station computer 1 after the main website program receiving equipment operational order of master station computer 1.
Step 6:PLC equipment 3 actuating equipment operational orders, the main website program of master station computer 1 receives PLC equipment 3 and carries out feedback information.
Step 7: the main website program of master station computer 1 is carried out feedback information through calling callback interface method 7 (Callback with PLC equipment 3; Do not return execution result after being specially call method through the rreturn value mode; But through realizing concrete callback interface; Mode through event-handling method is returned execution result) send to the slave station program of slave station computing machine 2, can only send to a slave station computing machine 2 sending the operation of equipment order, also can issue all slave station computing machines 2.
Step 8: the slave station program of slave station computing machine 2 is shown to PLC equipment 3 execution feedback informations the user or feeds back to outside input through upgrading subscriber interface module.
The distributed PC control device of the asynchronous readjustment Network Based of a kind of PLC equipment that the present invention also proposes comprises master station computer 1, plc communication card 4, slave station computing machine 2 and PLC equipment 3.The number of described PLC equipment 3 is one or more, does not specifically have restricted number, as 1~5; The number of slave station computing machine 2 is one or more, does not have restricted number, generally confirms according to demand.Master station computer 1 is equipped with plc communication card 4; Master station computer 1 uses field bus protocol 6 to be connected with each PLC equipment 3; Master station computer 1 is also through Ethernet 5; Use ICP/IP protocol to be connected, and the slave station program of slave station computing machine 2 pass to the operation of equipment order main website program of master station computer 1 through asynchronous invoking method 8 with every slave station computing machine 2.The main website program of master station computer 1 is carried out feedback information through calling the slave station program that callback interface method 7 sends to slave station computing machine 2 with PLC equipment 3.
Described master station computer 1 is provided with communication main station module 101, plc data treatment conversion module 102 and plc data module for reading and writing 103; Form the main website program through above-mentioned three modules; Slave station computing machine 2 is provided with communication slave station module 201, control command processing module 202 and subscriber interface module 203, forms the slave station program through above-mentioned three modules.
The hardware of described master station computer 1 satisfies CPU frequency more than or equal to 1.6GHz, and memory size is more than or equal to 1GB, and hard-disk capacity has the self-adaptation Ethernet card more than or equal to 20GB.
Described master station computer 1 operating system is Windows XP (sp2/sp3) or Windows 7, for only supporting the operating system of 32 versions.
Described master station computer 1 software systems have the .Net of installation Framework 4.0 running environment.
Described slave station computing machine 2 hardware satisfy CPU frequency more than or equal to 1.6GHz, and memory size is more than or equal to 1GB, and hard-disk capacity has from fitting ether and answers network interface card more than or equal to 20GB.
Slave station computing machine 2 operating systems are Windows XP (sp2/sp3) or Windows 7, for supporting 32 and 64 edition systems.
Slave station computing machine 2 software systems have the .Net of installation Framework 4.0 running environment.
Claims (9)
1. the distributed PC control method of the asynchronous readjustment Network Based of a PLC equipment is characterized in that: may further comprise the steps:
Step 1: a master station computer is passed through the plc communication card, and use field bus protocol PLC equipment to link to each other, the main website program run is on master station computer;
Step 2: through Ethernet, use ICP/IP protocol to link to each other with master station computer in the slave station computing machine, the slave station program operates in respectively on the slave station computing machine;
Step 3: user or outside initial conditions send the operation of equipment order through the subscriber interface module of the slave station program of any slave station computing machine;
Step 4: the slave station program of slave station computing machine passes to the operation of equipment order main website program of master station computer through asynchronous invoking method;
Step 5: directly control all PLC equipment that are connected with master station computer after the main website program receiving equipment operational order of master station computer;
Step 6:PLC equipment actuating equipment operational order, the main website program of master station computer receives PLC equipment and carries out feedback information;
Step 7: the main website program of master station computer is carried out feedback information through calling the callback interface method and send to all slave station computing machines or send the slave station program of the slave station computing machine of operation of equipment order with PLC equipment;
Step 8: the slave station program of slave station computing machine is shown to PLC equipment execution feedback information the user or feeds back to outside input through upgrading subscriber interface module.
2. the distributed PC control method of the asynchronous readjustment Network Based of a kind of PLC equipment according to claim 1 is characterized in that: the operation of equipment order in the described step 3 comprises that equipment goes out library command, equipment is gone into library command, device standby order and trouble shooting order.
3. the distributed PC control device of the asynchronous readjustment Network Based of a PLC equipment is characterized in that: comprise master station computer, plc communication card, slave station computing machine and PLC equipment; Master station computer is equipped with the plc communication card; Master station computer uses field bus protocol to be connected with each PLC equipment; Master station computer is also passed through Ethernet; Use ICP/IP protocol to be connected with every slave station computing machine, and the slave station program of slave station computing machine passes to master station computer with the operation of equipment order through asynchronous invoking method, master station computer PLC equipment execution feedback information sends to the slave station computing machine through calling the callback interface method.
4. the distributed PC control device of the asynchronous readjustment Network Based of a kind of PLC equipment according to claim 3; It is characterized in that: described master station computer is provided with communication main station module, plc data treatment conversion module and plc data module for reading and writing, forms the main website program through communication main station module, plc data treatment conversion module and plc data module for reading and writing.
5. according to the distributed PC control device of the asynchronous readjustment Network Based of claim 3 or 4 described a kind of PLC equipment; It is characterized in that: the hardware of described master station computer satisfies CPU frequency more than or equal to 1.6GHz; Memory size is more than or equal to 1GB; Hard-disk capacity has the self-adaptation Ethernet card more than or equal to 20GB.
6. according to the distributed PC control device of the asynchronous readjustment Network Based of claim 3 or 4 described a kind of PLC equipment; It is characterized in that: described master station computer operating system is Windows XP or Windows 7; For only supporting the operating system of 32 versions, have the .Net of installation Framework 4.0 running environment.
7. the distributed PC control device of the asynchronous readjustment Network Based of a kind of PLC equipment according to claim 3; It is characterized in that: described slave station computing machine is provided with communication slave station module, control command processing module and subscriber interface module, forms the slave station program through communication slave station module, control command processing module and subscriber interface module.
8. according to the distributed PC control device of the asynchronous readjustment Network Based of claim 3 or 7 described a kind of PLC equipment; It is characterized in that: described slave station computer hardware satisfies CPU frequency more than or equal to 1.6GHz; Memory size is more than or equal to 1GB; Hard-disk capacity has from fitting ether and answers network interface card more than or equal to 20GB.
9. according to the distributed PC control device of the asynchronous readjustment Network Based of claim 3 or 7 described a kind of PLC equipment; It is characterized in that: described slave station computer operating system is Windows XP or Windows 7; For supporting 32 and 64 edition systems, have the .Net of installation Framework 4.0 running environment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101687667A CN102339027A (en) | 2011-06-22 | 2011-06-22 | Network asynchronous callback-based distributed upper computer control method and device for programmable logic controller (PLC) equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101687667A CN102339027A (en) | 2011-06-22 | 2011-06-22 | Network asynchronous callback-based distributed upper computer control method and device for programmable logic controller (PLC) equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102339027A true CN102339027A (en) | 2012-02-01 |
Family
ID=45514813
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011101687667A Pending CN102339027A (en) | 2011-06-22 | 2011-06-22 | Network asynchronous callback-based distributed upper computer control method and device for programmable logic controller (PLC) equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102339027A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102739491A (en) * | 2012-07-13 | 2012-10-17 | 上海三一精机有限公司 | Ethernet communication master station implementation method |
CN111123826A (en) * | 2019-12-26 | 2020-05-08 | 浙江机电职业技术学院 | Data transmission method and device and electronic equipment |
CN114740796A (en) * | 2022-04-26 | 2022-07-12 | 傲拓科技股份有限公司 | Large PLC system with distributed processors |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004213345A (en) * | 2002-12-27 | 2004-07-29 | Omron Corp | Information monitor supporting device and tool, and information monitoring system |
US20050216101A1 (en) * | 2004-03-15 | 2005-09-29 | Omron Corporation | Analog input slave and monitoring system |
CN101174363A (en) * | 2007-09-30 | 2008-05-07 | 中国铝业股份有限公司 | Return water temperature capturing and monitoring method for intermediate frequency stove of charcoal ink factory |
CN201716588U (en) * | 2010-07-22 | 2011-01-19 | 上海工程技术大学 | Industrial production data collection system based on OPC technology |
-
2011
- 2011-06-22 CN CN2011101687667A patent/CN102339027A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004213345A (en) * | 2002-12-27 | 2004-07-29 | Omron Corp | Information monitor supporting device and tool, and information monitoring system |
US20050216101A1 (en) * | 2004-03-15 | 2005-09-29 | Omron Corporation | Analog input slave and monitoring system |
CN101174363A (en) * | 2007-09-30 | 2008-05-07 | 中国铝业股份有限公司 | Return water temperature capturing and monitoring method for intermediate frequency stove of charcoal ink factory |
CN201716588U (en) * | 2010-07-22 | 2011-01-19 | 上海工程技术大学 | Industrial production data collection system based on OPC technology |
Non-Patent Citations (2)
Title |
---|
乔加新: "OPC客户端与OPC服务器的交互方式的研究", 《信息技术》, no. 8, 31 August 2005 (2005-08-31) * |
范爱华: "OPC技术在石化污水处理中的应用", 《国内外机电一体化技术》, no. 5, 31 October 2001 (2001-10-31) * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102739491A (en) * | 2012-07-13 | 2012-10-17 | 上海三一精机有限公司 | Ethernet communication master station implementation method |
CN102739491B (en) * | 2012-07-13 | 2015-01-14 | 上海三一精机有限公司 | Ethernet communication master station implementation method |
CN111123826A (en) * | 2019-12-26 | 2020-05-08 | 浙江机电职业技术学院 | Data transmission method and device and electronic equipment |
CN114740796A (en) * | 2022-04-26 | 2022-07-12 | 傲拓科技股份有限公司 | Large PLC system with distributed processors |
CN114740796B (en) * | 2022-04-26 | 2023-09-12 | 傲拓科技股份有限公司 | Large-scale PLC system with distributed processor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9378070B2 (en) | Generic distributed processing unit for multi-agent systems | |
CN101355482B (en) | Equipment, method and system for implementing identification of embedded device address sequence | |
CN103532823A (en) | Message processing method, device and system for Internet of Things | |
CN100562850C (en) | Multi-processor load distribution-regulation method | |
CN103986786A (en) | Remote cloud desktop operation system | |
CN104899170A (en) | Distributed intelligent platform management bus (IPMB) connection method and ATCA (Advanced Telecom Computing Architecture) machine frame | |
CN106873541A (en) | A kind of EtherCAT Distributed Servo kinetic control systems based on DSP | |
CN102339027A (en) | Network asynchronous callback-based distributed upper computer control method and device for programmable logic controller (PLC) equipment | |
CN107066413B (en) | Method for processing data of multiple bus devices and bus system thereof | |
CN106489137A (en) | USB (universal serial bus) (USB) communication system and method | |
CN111371848A (en) | Request processing method, device, equipment and storage medium | |
CN112905313A (en) | Task processing method and device and electronic equipment | |
CN103997509A (en) | Service oriented architecture-based service processing method and apparatus | |
CN105573204A (en) | Multi-processor digital audio frequency matrix control device and method | |
CN103746843A (en) | Method and equipment for processing RPC (Remote Procedure Call Protocol) command | |
CN103353750A (en) | Multi-bus microwave metallurgical control system and method | |
CN103036668A (en) | Rack-mounted equipment tab configuration synchronization method based on a command line | |
CN110032455A (en) | Efficient communication overlapping is carried out by runing time cooperation | |
CN114938376A (en) | Industrial Internet of things based on priority processing data and control method thereof | |
CN103235570A (en) | Monitoring message communication system of distributed production equipment | |
CN110634230B (en) | Method for information interaction between application program of vending machine and hardware equipment | |
CN114237858A (en) | Task scheduling method and system based on multi-cluster network | |
CN102316073A (en) | Method for achieving UEFI (unified extensible firmware interface) BIOS (basic input output system) remote upgrade by utilizing sever and server | |
CN108337285A (en) | A kind of communication system and communication means | |
CN203164736U (en) | A fermentation technology production device monitoring information communication system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120201 |