WO2013033889A1 - Procédé de communication avec plc et ordinateur supérieur - Google Patents
Procédé de communication avec plc et ordinateur supérieur Download PDFInfo
- Publication number
- WO2013033889A1 WO2013033889A1 PCT/CN2011/079364 CN2011079364W WO2013033889A1 WO 2013033889 A1 WO2013033889 A1 WO 2013033889A1 CN 2011079364 W CN2011079364 W CN 2011079364W WO 2013033889 A1 WO2013033889 A1 WO 2013033889A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- plc
- communication
- communication protocol
- parameters
- read
- Prior art date
Links
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/15—Plc structure of the system
- G05B2219/15028—Controller and device have several formats and protocols, select common one
Definitions
- the present invention relates to the field of communications, and in particular, to a method for communicating with a PLC and a host computer. Background technique
- the mixing station generally uses the upper computer to communicate with the PLC connected to the upper computer.
- the upper computer interface program need to be developed for the upper computer, so that the upper computer can perform with the different types of PLC. Communication to achieve data read and write.
- the above communication methods have the following defects: (1) The versatility of the host computer is not high, and it can only communicate with the PLC of the common type. For a PLC of a very type, it is necessary to add a PLC for the very type of PLC in the host computer. Interface program, long development cycle, difficult to manage version; (2) This type of communication causes the control part of the mixing station to be inflexible during production and post-maintenance, and the production and maintenance costs increase. Summary of the invention
- the object of the present invention is to provide a method for communicating with a PLC and a host computer.
- the method and the host computer have high versatility, which makes the selection of the PLC more flexible.
- the present invention provides a host computer for communicating with a PLC, the host computer comprising: a receiving port for receiving a command for connecting the PLC; and a controller for receiving at the receiving port After the command, the pre-stored communication protocols and/or communication parameters for a plurality of PLC types are used one by one, and the PLC type identification information in the PLC is attempted to be read, and after the reading is successful, the PLC is determined.
- the communication protocol and the communication parameter are communication protocols and communication parameters used when successfully reading the PLC type identifier; and adopting the determined The communication protocol and communication parameters communicate with the PLC.
- the present invention also provides a method for communicating with a PLC, the method comprising: receiving a command to connect to the PLC; using a pre-stored communication protocol and/or communication parameters for a plurality of PLC types one by one, attempting Reading the PLC type identification information in the PLC, and after the reading is successful, determining the communication protocol and the communication parameter of the PLC as the communication protocol and the communication parameter used when successfully reading the PLC type identifier; The determined communication protocol and communication parameters are communicated with the PLC.
- the communication protocol and/or communication parameters of various types of PLCs can be uniformly encapsulated, and then the PLC type identification information in the PLC is attempted to realize the automatic identification of the PLC type and the communication parameters.
- the unified package of communication protocols and/or communication parameters of various types of PLCs enables the host computer to meet the communication with most types of PLCs, improving the versatility of the host computer and the flexibility of PLC selection.
- the automatic identification of communication protocols and/or communication parameters of various types of PLCs also eliminates the need to manually select PLC types and communication parameters to improve communication efficiency.
- FIG. 1 is a schematic structural view of a host computer provided by the present invention.
- FIG. 1 is a schematic structural view of a host computer provided by the present invention.
- the present invention provides a host computer for communicating with a PLC, the host computer comprising: a receiving port 10 for receiving a command for connecting the PLC; and a controller 20 for After receiving the command, the receiving port adopts a pre-stored communication protocol and/or communication parameters for a plurality of PLC types one by one, and attempts to read the PLC type identification information in the PLC, and after the reading is successful, determine
- the communication protocol and communication parameters of the PLC are communication protocols and communication parameters used when successfully reading the PLC type identifier; and communicating with the PLC by using the determined communication protocol and communication parameters.
- the communication protocol may include a TCP/IP communication protocol and a serial communication protocol, etc.
- the communication parameters may include one or more of the following: an IP address, a port number, a serial port number, a baud rate, and an MPI address.
- the present invention is not limited thereto, and communication protocols and communication parameters required for communication with any type of PLC are applicable thereto.
- the receiving port 10 may further receive a PLC type of the PLC; the controller 20 may further be configured to adopt the stored communication parameters one by one in a case of adopting a communication protocol corresponding to the received PLC type.
- the controller 20 may further be configured to adopt the stored communication parameters one by one in a case of adopting a communication protocol corresponding to the received PLC type.
- Trying to read the PLC type identification information in the PLC, and after the reading is successful determining that the communication protocol of the PLC is the communication protocol corresponding to the received PLC type, and the communication parameter of the PLC is successfully read.
- the pass adopted by the PLC type identification Letter parameters Thereby, in the case that the PLC type is known, the communication protocol corresponding to the PLC type is used, and the communication parameters corresponding to the communication protocol are tried one by one, compared to each communication protocol and each corresponding one of them is tried one by one.
- the communication parameters can reduce the time required to determine the communication protocol and communication parameters, and improve the speed of establishing a connection between
- the receiving port 10 can also receive communication parameters of the PLC; the controller
- the 20 can also be used to adopt the stored communication protocol one by one, attempt to read the PLC type identification information in the PLC, and determine the communication protocol of the PLC after the reading is successful, using the received communication parameters.
- the communication parameter of the PLC is the received communication parameter.
- the present invention provides a method for communicating with a PLC, the method comprising: receiving a command to connect to the PLC; adopting a pre-stored communication protocol for a plurality of PLC types one by one and / or communication parameters, try to read the PLC type identification information in the PLC, and after the reading is successful, determine the communication protocol and communication parameters of the PLC are the communication protocols used when successfully reading the PLC type identification and Communication parameters; and communicating with the PLC using the determined communication protocol and communication parameters.
- the communication parameter may include one or more of the following: an IP address, a port number, a serial port number, a baud rate, and an MPI address.
- the method may further include: receiving a PLC type of the PLC; the step of determining a communication protocol and/or a communication parameter of the PLC includes: in a case of adopting a communication protocol corresponding to the received PLC type, Using the stored communication parameters one by one, attempting to read the PLC type identification information in the PLC, and after the reading is successful, determining that the communication protocol of the PLC is the communication protocol corresponding to the received PLC type, the PLC Communication parameters for successful reading The communication parameters used in the description of the PLC type.
- the method may further include: receiving a communication parameter of the PLC; the step of determining a communication protocol and/or a communication parameter of the PLC includes: using the stored communication parameter one by one, using the stored one by one a communication protocol, attempting to read the PLC type identification information in the PLC, and after the reading is successful, determining that the communication protocol of the PLC is a communication protocol used when successfully reading the PLC type identifier, the PLC
- the communication parameters are the received communication parameters.
- the communication protocol and/or communication parameters of various types of PLCs can be uniformly encapsulated, and then the PLC type identification information in the PLC is attempted to realize the automatic identification of the PLC type and the communication parameters.
- the unified package of communication protocols and/or communication parameters of various types of PLCs enables the host computer to meet the communication with most types of PLCs, improving the versatility of the host computer and the flexibility of PLC selection.
- the automatic identification of communication protocols and/or communication parameters of various types of PLCs also eliminates the need to manually select PLC types and communication parameters to improve communication efficiency.
- the mixing station control system needs to develop different versions of the upper computer interface program for the upper computer each time, and the workload is quite large, the efficiency is low, and the failure rate is high.
- the solution of the invention any replacement of different types of PLCs can be realized without changing the upper computer, and the working efficiency is greatly improved.
- the specific application of the present invention is not limited to a mixing station, and any field in which such communication with a PLC is required may be employed.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Communication Control (AREA)
Abstract
L'invention porte sur un procédé de communication avec un PLC et un ordinateur supérieur. Le procédé consiste à : recevoir une instruction de connexion à un PLC ; tenter de lire des informations d'identificateur de type de PLC à l'intérieur du PLC au moyen de protocoles de communication prestockés et/ou de paramètres de communication pour divers types de PLC un par un, et après que la lecture a été réussie, déterminer le protocole de communication et le paramètre de communication du PLC comme étant le protocole de communication et le paramètre de communication employés lors de la lecture réussie de l'identificateur de type de PLC ; et communiquer avec le PLC au moyen du protocole de communication et du paramètre de communication déterminés. L'encapsulation uniforme des protocoles de communication et/ou des paramètres de communication de divers types de PLC peut permettre à un ordinateur supérieur de communiquer avec la plupart des types de PLC, ce qui améliore l'universalité de l'ordinateur supérieur et la flexibilité de sélection de PLC. De plus, l'identification automatique des protocoles de communication et/ou des paramètres de communication de divers types de PLC peut éliminer le travail de sélection manuelle d'un type de PLC ou d'un paramètre de communication, améliorant l'efficacité de communication.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2011/079364 WO2013033889A1 (fr) | 2011-09-06 | 2011-09-06 | Procédé de communication avec plc et ordinateur supérieur |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2011/079364 WO2013033889A1 (fr) | 2011-09-06 | 2011-09-06 | Procédé de communication avec plc et ordinateur supérieur |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2013033889A1 true WO2013033889A1 (fr) | 2013-03-14 |
Family
ID=47831433
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2011/079364 WO2013033889A1 (fr) | 2011-09-06 | 2011-09-06 | Procédé de communication avec plc et ordinateur supérieur |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2013033889A1 (fr) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102018006724A1 (de) | 2017-09-18 | 2019-03-21 | Sew-Eurodrive Gmbh & Co Kg | Antriebssystem zur Durchführung eines Testverfahrens und Verfahren zum Testen eines Antriebssystems |
US11778072B2 (en) | 2018-08-27 | 2023-10-03 | Phoenix Contact Gmbh & Co. Kg | Control and data transfer system for supporting different communication protocols and an adapter module |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101013313A (zh) * | 2007-01-15 | 2007-08-08 | 大连光洋科技工程有限公司 | 用于伺服控制的总线协议解析芯片 |
CN101178596A (zh) * | 2006-11-09 | 2008-05-14 | 南通明兴科技开发有限公司 | 一种监控系统中上位机与plc的通讯方法 |
CN101262486A (zh) * | 2008-04-18 | 2008-09-10 | 清华大学 | 基于嵌入式平台的Modbus总线分析系统 |
CN201903776U (zh) * | 2010-09-10 | 2011-07-20 | 中国电器科学研究院 | 一种表面处理生产线现场总线控制系统 |
CN102354191A (zh) * | 2011-09-06 | 2012-02-15 | 中联重科股份有限公司 | 一种用于与plc进行通信的方法及上位机 |
-
2011
- 2011-09-06 WO PCT/CN2011/079364 patent/WO2013033889A1/fr active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101178596A (zh) * | 2006-11-09 | 2008-05-14 | 南通明兴科技开发有限公司 | 一种监控系统中上位机与plc的通讯方法 |
CN101013313A (zh) * | 2007-01-15 | 2007-08-08 | 大连光洋科技工程有限公司 | 用于伺服控制的总线协议解析芯片 |
CN101262486A (zh) * | 2008-04-18 | 2008-09-10 | 清华大学 | 基于嵌入式平台的Modbus总线分析系统 |
CN201903776U (zh) * | 2010-09-10 | 2011-07-20 | 中国电器科学研究院 | 一种表面处理生产线现场总线控制系统 |
CN102354191A (zh) * | 2011-09-06 | 2012-02-15 | 中联重科股份有限公司 | 一种用于与plc进行通信的方法及上位机 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102018006724A1 (de) | 2017-09-18 | 2019-03-21 | Sew-Eurodrive Gmbh & Co Kg | Antriebssystem zur Durchführung eines Testverfahrens und Verfahren zum Testen eines Antriebssystems |
US11778072B2 (en) | 2018-08-27 | 2023-10-03 | Phoenix Contact Gmbh & Co. Kg | Control and data transfer system for supporting different communication protocols and an adapter module |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102354191B (zh) | 一种用于与plc进行通信的方法及上位机 | |
CN105260337B (zh) | 一种单片机的自动编址方法及系统 | |
EP2169978A1 (fr) | Equipement et procédé servant à mettre en place des fonctions adaptatives des protocoles de communication | |
CN101542980B (zh) | 用于操作兼容以太网的现场总线设备的方法 | |
CN104780054B (zh) | 一种用以控制局域网络唤醒或休眠的网关 | |
CN107926075A (zh) | 支持异构环境下的数据通信的系统和方法 | |
WO2013071709A1 (fr) | Carte de données large bande sans fil supportant l'accès réseau en modes 3g et wi-fi | |
CN104283749A (zh) | 基于rs-485半双工总线的通信系统及业务盘通信升级方法 | |
CN105704206A (zh) | 与led显示控制卡进行以太网通信的实现方法 | |
CN106982222A (zh) | 一种工业4.0环境下可配置的多协议数据接入方法及装置 | |
CN103580942A (zh) | 一种模拟串口测试方法和装置 | |
CN109981360A (zh) | 物联网设备站点开通方法、装置、系统及存储介质 | |
CN102710629B (zh) | 网络连接方法和系统 | |
CN112787893A (zh) | 远程诊断方法、装置、电子设备及存储介质 | |
WO2013033889A1 (fr) | Procédé de communication avec plc et ordinateur supérieur | |
US20080263191A1 (en) | Method and system for handling packet filtering information | |
CN103905498B (zh) | 服务信息管理方法及服务信息管理系统 | |
CN107566526A (zh) | 一种基于Web配置RTU参数的装置 | |
CN102737003B (zh) | 一种模拟usb设备的方法及装置 | |
CN104102607A (zh) | 基于VxWorks操作系统环境下的CAN总线驱动方法及系统 | |
CN111404739B (zh) | 一种串口网络化属性配置的系统 | |
WO2015058413A1 (fr) | Procédé de configuration de données, et serveur de gestion de réseau | |
CN104797004A (zh) | 主从设备间实现自动组网的方法 | |
WO2012065452A1 (fr) | Système domotique, son procédé de commande et dispositif de centre de traitement d'informations | |
CN104753746A (zh) | 一种接入设备的方法及控制服务器 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 11872084 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 11872084 Country of ref document: EP Kind code of ref document: A1 |