CN112866057B - Method for determining a communication disconnection between a transmission and an automation controller in a Profinet network - Google Patents
Method for determining a communication disconnection between a transmission and an automation controller in a Profinet network Download PDFInfo
- Publication number
- CN112866057B CN112866057B CN202110033236.5A CN202110033236A CN112866057B CN 112866057 B CN112866057 B CN 112866057B CN 202110033236 A CN202110033236 A CN 202110033236A CN 112866057 B CN112866057 B CN 112866057B
- Authority
- CN
- China
- Prior art keywords
- variable
- transmission device
- automatic system
- communication
- transmission
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40221—Profibus
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
Abstract
The invention provides a method for judging communication disconnection between a transmission device and an automatic controller in a Profinet network, belonging to the technical field of industrial communication. The method comprises the steps of firstly defining an int variable A in a communication message sent to a transmission device by an automatic system, then assigning a value to the variable through a program to enable the variable to be continuously updated, then defining an int variable B in the communication message sent to the automatic system by the transmission device, feeding back the value of the variable A sent by the automatic system to the automatic system through the variable B by the transmission device, judging that the communication between the transmission device and the automatic system is disconnected when the variable B received by the automatic system is not changed in Nms, and cancelling the speed given sent to the transmission device by the automatic system and giving an alarm. The method judges whether the communication state with the transmission device is normal or not by judging whether the number sent to the transmission device by the automatic system fed back by the transmission device changes or not, and can avoid accidents caused by communication disconnection.
Description
Technical Field
The invention relates to the technical field of industrial communication, in particular to a method for judging communication disconnection between a transmission device and an automatic controller in a Profinet network.
Background
Profinet field buses are increasingly used in industrial fields, in which the content of the buffer in the automation system for data fed back by the gear is different when the gear is disconnected from the automation controller compared to conventional Profibus DP networks, in which the content of the buffer is entirely changed to 0, whereas in the Profinet network the content of the buffer remains in the state before the disconnection of the communication. Therefore, in the Profinet network, if the automatic system only reads the status word fed back by the transmission and the content of speed feedback, the automatic system cannot judge when the transmission is disconnected from the automatic system. If the transmission is in rotation before disconnection, tracking in the automation system with the speed of the transmission will be erroneous.
Disclosure of Invention
The invention aims to solve the technical problem of providing a method for judging the communication disconnection between a transmission device and an automatic controller in a Profinet network.
The method includes the steps that an int variable A is defined in a communication message sent to a transmission device by an automatic system, then the int variable A is assigned by a program to be continuously updated, an int variable B is defined in the communication message sent to the automatic system by the transmission device, the transmission device feeds back the received value of the variable A sent by the automatic system to the automatic system through the variable B, when the variable B received by the automatic system is not changed in Nms, the communication between the transmission device and the automatic system is judged to be disconnected, and the speed given by the automatic system to the transmission device is cancelled and an alarm is given.
The method specifically comprises the following steps:
(1) Defining an int variable a in a communication message sent by an automation system to a transmission;
(2) The automation system process sequence assigns values to the variable A to enable the variable A to be updated continuously;
(3) Defining an int variable B in a communication message sent by a transmission device to an automation system;
(4) The transmission device feeds back the received value of the variable A sent by the automatic system to the automatic system through the variable B;
(5) When the variable B received by the automatic system is not changed within N ms, the communication between the transmission device and the automatic system is judged to be disconnected;
(6) The speed setting given by the automatic system to the transmission is cancelled and alarmed.
Wherein, the step (2) is specifically as follows: let variable A add 1 within each scanning period (scanning period time is set by CPU according to actual need, such as 10 ms) when A>A max Then, A is assigned to 0 max The value range of (A) is 10000-30000.
The value range of N in the step (5) is 500-2000.
The technical scheme of the invention has the following beneficial effects:
in the scheme, whether the communication state with the transmission device is normal is judged by judging whether the constantly-changing number sent to the transmission device by the automatic system fed back by the transmission device changes, and when the communication is disconnected, the speed given to the transmission device by the automatic system is cancelled and an alarm is given, so that accidents caused by communication disconnection can be avoided.
Drawings
FIG. 1 is a schematic diagram of the determination process of the method of the present invention.
Detailed Description
To make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
The invention provides a method for judging the communication disconnection between a transmission device and an automatic controller in a Profinet network.
As shown in figure 1, the method comprises the steps of firstly defining an int variable A in a communication message sent by an automatic system to a transmission device, then assigning a value to the int variable A through a program to enable the int variable A to be continuously updated, then defining an int variable B in the communication message sent by the transmission device to the automatic system, feeding back the value of the variable A received from the automatic system to the automatic system through the int variable B by the transmission device, judging that the communication between the transmission device and the automatic system is disconnected when the variable B received from the automatic system is not changed all the time within Nms, and giving a speed given and cancelled by the automatic system to the transmission device and giving an alarm. In the figure, bc is the value of B received in the automation system in the last cycle.
In practical application, the method comprises the following steps:
(1) Defining an int variable a in a communication message sent by an automation system to a transmission;
(2) The automation system process sequence assigns values to the variable A to enable the variable A to be updated continuously;
(3) Defining an int variable B in a communication message sent by a transmission device to an automation system;
(4) The transmission device feeds back the received value of the variable A sent by the automatic system to the automatic system through the variable B;
(5) When the variable B received by the automatic system is not changed within N ms, the communication between the transmission device and the automatic system is judged to be disconnected;
(6) The speed setting given by the automatic system to the transmission is cancelled and alarmed.
The method has been successfully applied to the control of the transmission in the Profinet network of a certain hot rolling mill and is well received by users.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (2)
1. A method for determining a communication disconnection of a transmission from an automation controller in a Profinet network, characterized in that: the method comprises the following steps:
(1) Defining an int variable a in a communication message sent by an automation system to a transmission;
(2) The automation system process sequence assigns values to the variable A to enable the variable A to be updated continuously;
(3) Defining an int variable B in a communication message sent by a transmission device to an automation system;
(4) The transmission device feeds back the received value of the variable A sent by the automatic system to the automatic system through the variable B;
(5) When the variable B received by the automatic system is not changed within N ms, the communication between the transmission device and the automatic system is judged to be disconnected;
(6) Canceling and alarming the speed setting sent by the automatic system to the transmission device;
the value range of N in the step (5) is 500-2000;
the step (2) is specifically as follows: let variable A self-add 1 every scanning cycle, when A>A max Then, A is assigned to 0 max The value range of (a) is 10000-30000.
2. Method for determining a communication disconnection of a transmission from an automation controller in a Profinet network according to claim 1, characterised in that: and the time of each scanning period is set through the CPU according to actual needs.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110033236.5A CN112866057B (en) | 2021-01-11 | 2021-01-11 | Method for determining a communication disconnection between a transmission and an automation controller in a Profinet network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110033236.5A CN112866057B (en) | 2021-01-11 | 2021-01-11 | Method for determining a communication disconnection between a transmission and an automation controller in a Profinet network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112866057A CN112866057A (en) | 2021-05-28 |
CN112866057B true CN112866057B (en) | 2023-03-10 |
Family
ID=76002603
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110033236.5A Active CN112866057B (en) | 2021-01-11 | 2021-01-11 | Method for determining a communication disconnection between a transmission and an automation controller in a Profinet network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112866057B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2463734A1 (en) * | 2010-12-07 | 2012-06-13 | Siemens Aktiengesellschaft | Automation device and method for evaluation of a diagnostic message from an I/O module |
CN105450469A (en) * | 2015-12-01 | 2016-03-30 | 许继电气股份有限公司 | Method for detecting faults of rapid communication bus in industrial equipment |
CN107734001A (en) * | 2017-09-25 | 2018-02-23 | 龙尚科技(上海)有限公司 | A kind of method whether disconnected that judges to communicate based on timing asynchronous mechanism |
CN110213136A (en) * | 2019-06-24 | 2019-09-06 | 山信软件股份有限公司 | A kind of communicating control method and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111581081B (en) * | 2020-04-21 | 2022-03-22 | 深圳震有科技股份有限公司 | Automatic test system and method |
-
2021
- 2021-01-11 CN CN202110033236.5A patent/CN112866057B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2463734A1 (en) * | 2010-12-07 | 2012-06-13 | Siemens Aktiengesellschaft | Automation device and method for evaluation of a diagnostic message from an I/O module |
CN105450469A (en) * | 2015-12-01 | 2016-03-30 | 许继电气股份有限公司 | Method for detecting faults of rapid communication bus in industrial equipment |
CN107734001A (en) * | 2017-09-25 | 2018-02-23 | 龙尚科技(上海)有限公司 | A kind of method whether disconnected that judges to communicate based on timing asynchronous mechanism |
CN110213136A (en) * | 2019-06-24 | 2019-09-06 | 山信软件股份有限公司 | A kind of communicating control method and system |
Non-Patent Citations (1)
Title |
---|
Profinet通讯技术在西门子驱动系统中的应用;闻佳华等;《起重运输机械》;20131120(第11期);第39-42页 * |
Also Published As
Publication number | Publication date |
---|---|
CN112866057A (en) | 2021-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5602829A (en) | Method and apparatus for adjusting throughput of transmission data to be transmitted to network | |
CN109361585B (en) | Method for automatically setting baud rate and address of child node by main node | |
CN104852825A (en) | Bus communication test method and system | |
KR101334017B1 (en) | Apparatus of checking a validity of message on network for a vehicle and method of thereof | |
CN112866057B (en) | Method for determining a communication disconnection between a transmission and an automation controller in a Profinet network | |
CN114500151B (en) | Motion control communication system and communication method based on CAN bus | |
KR20180074128A (en) | Diagnosis message routing system and method for gateway of vehicle | |
JP2019097088A (en) | Serial communication system | |
CN112165422A (en) | One-master multi-slave temperature control system and address automatic matching method | |
CN117424774A (en) | Communication anti-interference method and device, electronic equipment and storage medium | |
CN112738224A (en) | Data processing system and method supporting triggered communication | |
CN115242839B (en) | Method and device for cascade data transmission of Internet of things, electronic equipment and storage medium | |
WO2002101992A1 (en) | Communication apparatus and method for supporting carrier sense multiple access/collision detection | |
WO2021229694A1 (en) | Attack detection device, attack detection method, and program | |
CN110536186B (en) | Remote sensing control method and device, electronic equipment and storage medium | |
CN107959600B (en) | Method for monitoring network communication fault | |
KR102595722B1 (en) | Communication network, method and apparatus for identifying node connected thereto | |
CN112685340B (en) | Method and device for automatically starting EtherCat redundancy function | |
CN102025579A (en) | Field bus communication method convenient to expand | |
CN112838972B (en) | Enabling control method, device and equipment based on RS-485 transceiver and storage medium | |
CN114189762B (en) | 5G-based distribution network encryption terminal remote control system and method | |
US7620728B2 (en) | Method of monitoring the communication in a network | |
US8619778B2 (en) | Method for automatic address allocation to a communication partner and a communication partner | |
CN112769666B (en) | PLC inter-station communication method | |
CN113949706B (en) | Method and system for selecting mobile edge computing node |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |