CN110213136B - Communication control method and system - Google Patents
Communication control method and system Download PDFInfo
- Publication number
- CN110213136B CN110213136B CN201910548209.4A CN201910548209A CN110213136B CN 110213136 B CN110213136 B CN 110213136B CN 201910548209 A CN201910548209 A CN 201910548209A CN 110213136 B CN110213136 B CN 110213136B
- Authority
- CN
- China
- Prior art keywords
- heartbeat signal
- transmission device
- fault
- communication
- communication network
- 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
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
-
- 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/10—Active monitoring, e.g. heartbeat, ping or trace-route
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
Abstract
The application discloses a communication control method and a system, wherein the method comprises the following steps: configuring a communication control word and a state word between the automation device and the transmission device, and establishing a communication network; presetting any bit in any control word in a transmission device as a heartbeat signal bit, and setting any external fault bit as an active judgment fault response mode; activating a self-defining function block inside the transmission device, and configuring two time relay function blocks; generating a heartbeat signal according to the time relay functional block; connecting the heartbeat signal to a heartbeat signal position, and transmitting the heartbeat signal to an automation device through a communication network; the automatic device feeds back the heartbeat signal to a corresponding control word in the transmission device; the transmission device judges whether the heartbeat signal is abnormal or not; if the fault is abnormal, the fault response mode is actively judged to carry out preset fault processing, and if the fault response mode is normal, the transmission device normally operates. The method and the device can find the fault in the communication equipment in time, and improve the safety and reliability of the whole production system.
Description
Technical Field
The present application relates to the field of automatic control technologies, and in particular, to a communication control method and system.
Background
The automatic control technology is widely applied to industrial production, and gradually realizes industrial automation. In industrial automation, an automation device is in communication connection with a transmission device, and the automation device controls the start, stop, rotation speed, rotation direction and the like of the transmission device through communication. Currently, DP (fully known as PROFIBUS-DP) communication, MPI (Multi Point Interface) communication, and ethernet communication are commonly used.
In actual production, a solidified program is arranged in the transmission device and used for detecting typical communication faults, such as network line disconnection or short circuit, network terminal resistance abnormity, communication partner loss and the like, and controlling the transmission device to enter a fault handling link after the communication faults are detected. Taking DP communication as an example, the multiple levels of DP communication devices are connected in communication, and send periodic communication messages with a preset format to each other within a fixed time interval. When the transmission device detects the DP communication fault, the DP communication fault is mainly detected by checking whether the communication message is 'available' or 'unavailable' through the curing program, when the 'available' communication message is found, the DP communication is normal, when the 'unavailable' communication message is found, the DP communication is abnormal, and the curing program controls the transmission device to enter a fault processing link.
Hardware and software adopted by each level of DP communication equipment and a platform at the development bottom layer are possibly different, so that the compatibility of the DP communication equipment has certain uncertainty. Although each level of DP communication device can implement the conventional DP communication function, some unconventional working condition processing may have differences or some bugs. For example, when the predetermined format and time interval of the communication message satisfy the conditions and the timeliness of the communication message does not satisfy, that is, when the upper-level DP communication device or the automation device is in the endless loop state, the internal curing program of the transmission device cannot detect the DP communication fault, and further cannot make any response, which results in serious consequences.
Disclosure of Invention
The application provides a communication control method and a communication control system, which are used for solving the technical problem that communication faults in industrial automation cannot be detected in time in the prior art.
In order to solve the technical problem, the embodiment of the application discloses the following technical scheme:
in a first aspect, an embodiment of the present application discloses a communication control method, where the method includes:
configuring a communication control word and a state word between the automation device and the transmission device, and establishing a communication network;
presetting any bit in any control word in the transmission device as a heartbeat signal bit, and setting any external fault bit as an active judgment fault response mode;
activating the self-defining function block inside the transmission device, and configuring two time relay function blocks;
generating a heartbeat signal according to the time relay functional block;
connecting the heartbeat signal to the heartbeat signal position, and transmitting the heartbeat signal to the automation device through the communication network;
the automation device feeds the received heartbeat signal back to a corresponding control word in the transmission device through the communication network;
the transmission device judges whether the heartbeat signal is abnormal or not;
and if the failure response mode is abnormal, the active judgment failure response mode carries out preset failure processing, and if the failure response mode is normal, the transmission device operates normally.
Optionally, in the communication control method, if the fault is abnormal, the actively determining the fault response mode to perform the preset fault processing includes:
the active judgment fault response mode detects the fault type of the communication network;
and according to the fault type of the communication network, the transmission device continuously operates or automatically stops.
Optionally, in the communication control method, the generating a heartbeat signal according to the time relay function block includes:
the two time relay functional blocks generate the heartbeat signal, wherein the heartbeat signal is a pulse sequence with a fixed pulse width of 200ms and a duty ratio of 1: 1.
Optionally, in the communication control method, the determining, by the actuator, whether the heartbeat signal is abnormal includes:
and judging whether the high level duration or the low level duration of the heartbeat signal in the control word is more than 200 ms.
Optionally, in the communication control method, the method includes:
if the high level duration time or the low level duration time is longer than 200ms, the communication network is abnormal, and the active judgment fault response mode carries out preset fault processing;
and if the high level duration time or the low level duration time is less than or equal to 200ms, the communication network is normal, and the transmission device operates normally.
In a second aspect, an embodiment of the present application discloses a communication control system, including:
the communication network building module is used for configuring communication control words and state words between the automation device and the transmission device and building a communication network;
a preprocessing module for presetting any bit in any control word in the transmission device as a heartbeat signal bit, and setting any external fault bit as an active judgment fault response mode
The activation function module is used for activating the self-defined function block inside the transmission device and configuring two time relay function blocks;
the heartbeat signal generating module is used for generating a heartbeat signal according to the time relay functional block;
the signal active transmission module is used for connecting the heartbeat signal to the heartbeat signal position and transmitting the heartbeat signal to the automation device through the communication network;
the signal feedback module is used for feeding back the received heartbeat signal to a corresponding control word in the transmission device by the automation device through the communication network;
and the judging module is used for judging whether the heartbeat signal is abnormal or not by the transmission device, if so, actively judging a fault response mode to perform preset fault processing, and if so, normally operating the transmission device.
Optionally, in the communication control system, the determining module includes:
the fault detection unit is used for actively judging the type of the network communication fault detected by the fault response mode;
and the processing unit is used for continuously operating or automatically stopping the transmission device according to the type of the communication fault.
Optionally, in the communication control system, the heartbeat signal generating module is configured to generate a heartbeat signal as a pulse sequence with a fixed pulse width of 200ms and a duty ratio of 1: 1.
Compared with the prior art, the beneficial effect of this application is:
the application provides a communication control method and a communication control system, wherein a communication network is firstly established between an automation device and a transmission device, namely, a communication control word and a state word between the automation device and the transmission device are configured, then, any bit in any control word in the transmission device is preset as a heartbeat signal bit for connecting a heartbeat signal, and any external fault bit in the transmission device is set as an active fault judgment response mode for controlling the transmission device to carry out fault processing. And then, by activating the self-defined function block inside the transmission device and configuring the two time relay function blocks, generating a heartbeat signal under the action of the two time relay function blocks, connecting the heartbeat signal to a heartbeat signal position reserved in the state word, transmitting the heartbeat signal to an automation device through a communication network, and feeding the received heartbeat signal back to a corresponding control word in the transmission device through the communication network by the automation device. And finally, the transmission device judges whether the heartbeat signal is abnormal or not, if the communication network has a fault, the heartbeat signal is abnormal, the active judgment fault response mode carries out preset fault processing, if the communication network is normal, the heartbeat signal is normal, and the transmission device operates normally. In the communication control in this application, transmission can initiatively produce the heartbeat signal to initiatively send the heartbeat signal to automation equipment, whether normal communication network is judged to the heartbeat signal that rethread automation equipment fed back, and this application can in time discover the trouble in the communications facilities, has improved whole production system's fail safe nature.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a communication control method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a heartbeat signal under a normal state according to an embodiment of the present invention;
fig. 3 is a heartbeat signal in an abnormal state according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic flow chart of a communication control method according to an embodiment of the present invention. With reference to fig. 1, the communication control method in the present application includes the following steps:
step S110: configuring a communication control word and a state word between the automation device and the transmission device, and establishing a communication network;
step S120: presetting any bit in any control word in the transmission device as a heartbeat signal bit, and setting any external fault bit as an active judgment fault response mode;
in the application, a communication network between the automation device and the transmission device is established through communication equipment at all levels, so that the communication function between the automation device and the transmission device is realized, namely, communication control words and state words between the automation device and the transmission device are configured according to the conventional configuration. The automatic device can be an L1-grade automatic system such as a PLC controller, and the transmission device can be an L0-grade system such as a frequency converter.
Generally, the actuator is set by some defaults when setting communication, such as control word 1, control word 2, state word 1, state word 2, etc., signals such as start/stop are generally set in control word 1, control word 2 can be generally self-defined, can be freely combined and flexibly distributed, each bit in the state word represents one piece of information for feeding back running, stop and fault lamp states, and a certain bit can be selected in state word 2 in the application and preset as a heartbeat signal bit for connecting heartbeat signals. In addition, the transmission device is usually provided with 3 external fault positions which can be defined by users, and an optional position in the application can be set as an active fault judgment response mode for actively judging communication faults and controlling the transmission device to perform fault processing.
Step S130: activating the self-defining function block inside the transmission device, and configuring two time relay function blocks;
step S140: generating a heartbeat signal according to the time relay functional block;
in the application, the functional blocks such as an and gate, an or gate, an RS trigger and the like inside the transmission device are activated first, and then two time relay functional blocks are particularly required to be configured. Referring to fig. 2, a heartbeat signal in a normal state is provided according to an embodiment of the present invention. As shown in fig. 2, under the action of two time relay functional blocks, a heartbeat signal is generated, which is a pulse sequence with a fixed pulse width of 200ms and a duty ratio of 1:1, that is, every 200ms in the pulse sequence is a period, and a high level "1" and a low level "0" in each period respectively occupy 100 ms.
Step S150: connecting the heartbeat signal to the heartbeat signal position, and transmitting the heartbeat signal to the automation device through the communication network;
step S160: the automation device feeds the received heartbeat signal back to a corresponding control word in the transmission device through the communication network;
the heartbeat signal generated by the time relay function block is connected to the heartbeat signal position in the state word and is actively transmitted to the automation device through the communication network, and the automation device feeds back the heartbeat signal to the corresponding control word in the transmission device through the communication network after receiving the heartbeat signal. As shown in fig. 2, the heartbeat signal is bit (15) connected to the status word 2, i.e. 15 th bit of the status word, and the heartbeat signal fed back is bit (15) transmitted to the control word 2.
Step S170: the transmission device judges whether the heartbeat signal is abnormal or not;
and judging whether the high level duration or the low level duration of the heartbeat signal in the control word is greater than 200ms, referring to fig. 3, which is the heartbeat signal in the abnormal state provided by the embodiment of the present invention. If the high level duration time or the low level duration time is longer than 200ms, the communication network is abnormal, that is, a heartbeat signal normal "1" fault shown in fig. 3 or a heartbeat signal normal "0" fault, and the active judgment fault response mode performs preset fault processing; and if the high level duration time or the low level duration time is less than or equal to 200ms, the communication network is normal, and the transmission device operates normally.
And when the heartbeat signal is judged to be abnormal, the active judgment fault response mode can detect the fault type of the network communication, and the transmission device continues to operate or automatically stops according to the fault type of the communication network. If the detected network communication fault does not affect normal production, the transmission device can ignore the fault and continue production, otherwise, the transmission device automatically stops and is overhauled.
Based on the same technical concept, the embodiment of the invention also provides a communication control system. The system comprises:
the communication network building module is used for configuring communication control words and state words between the automation device and the transmission device and building a communication network;
a preprocessing module for presetting any bit in any control word in the transmission device as a heartbeat signal bit, and setting any external fault bit as an active judgment fault response mode
The activation function module is used for activating the self-defined function block inside the transmission device and configuring two time relay function blocks;
the heartbeat signal generating module is used for generating a heartbeat signal according to the time relay functional block;
the signal active transmission module is used for connecting the heartbeat signal to the heartbeat signal position and transmitting the heartbeat signal to the automation device through the communication network;
the signal feedback module is used for feeding back the received heartbeat signal to a corresponding control word in the transmission device by the automation device through the communication network;
and the judging module is used for judging whether the heartbeat signal is abnormal or not by the transmission device, if so, actively judging a fault response mode to perform preset fault processing, and if so, normally operating the transmission device.
Further, the judging module comprises:
the fault detection unit is used for actively judging the type of the network communication fault detected by the fault response mode;
and the processing unit is used for continuously operating or automatically stopping the transmission device according to the type of the communication fault.
Further, the heartbeat signal generating module is configured to generate a pulse sequence with a fixed pulse width of 200ms and a duty ratio of 1: 1.
In the communication control in this application, transmission can initiatively produce the heartbeat signal to initiatively send the heartbeat signal to automation equipment, whether normal communication network is judged to the heartbeat signal that rethread automation equipment fed back, that is to say, whether normal communication network is judged through the heartbeat signal timing. The method is equivalent to adding an active judgment mechanism in the transmission device, can timely find faults in the communication equipment, and triggers a fault protection function when a communication network is abnormal, so that the safety and reliability of the whole production system are improved. In addition, the communication control method and the system are low in cost, simple and reliable, and small in maintenance amount.
Since the above embodiments are all described by referring to and combining with other embodiments, the same portions are provided between different embodiments, and the same and similar portions between the various embodiments in this specification may be referred to each other. And will not be described in detail herein.
It is noted that, in this specification, relational terms such as "first" and "second," and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a circuit structure, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such circuit structure, article, or apparatus. Without further limitation, the presence of an element identified by the phrase "comprising an … …" does not exclude the presence of other like elements in a circuit structure, article or device comprising the element.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
The above-described embodiments of the present application do not limit the scope of the present application.
Claims (8)
1. A method for controlling communications, the method comprising:
configuring a communication control word and a state word between the automation device and the transmission device, and establishing a communication network;
presetting any bit in any control word in the transmission device as a heartbeat signal bit, and setting any external fault bit as an active judgment fault response mode;
activating the self-defining function block inside the transmission device, and configuring two time relay function blocks;
generating a heartbeat signal according to the time relay functional block;
connecting the heartbeat signal to the heartbeat signal position, and transmitting the heartbeat signal to the automation device through the communication network;
the automation device feeds the received heartbeat signal back to a corresponding control word in the transmission device through the communication network;
the transmission device judges whether the heartbeat signal is abnormal or not;
and if the failure response mode is abnormal, the active judgment failure response mode carries out preset failure processing, and if the failure response mode is normal, the transmission device operates normally.
2. The communication control method according to claim 1, wherein if the fault is abnormal, the actively determining the fault response mode performs a predetermined fault process, including:
the active judgment fault response mode detects the fault type of the communication network;
and according to the fault type of the communication network, the transmission device continuously operates or automatically stops.
3. The communication control method according to claim 1, wherein the generating a heartbeat signal according to the time relay function block includes:
the two time relay functional blocks generate the heartbeat signal, wherein the heartbeat signal is a pulse sequence with a fixed pulse width of 200ms and a duty ratio of 1: 1.
4. The communication control method according to claim 3, wherein the determining, by the actuator, whether the heartbeat signal is abnormal includes:
and judging whether the high level duration or the low level duration of the heartbeat signal in the control word is more than 200 ms.
5. The communication control method according to claim 4, wherein the method comprises:
if the high level duration time or the low level duration time is longer than 200ms, the communication network is abnormal, and the active judgment fault response mode carries out preset fault processing;
and if the high level duration time or the low level duration time is less than or equal to 200ms, the communication network is normal, and the transmission device operates normally.
6. A communication control system, the system comprising:
the communication network building module is used for configuring communication control words and state words between the automation device and the transmission device and building a communication network;
a preprocessing module for presetting any bit in any control word in the transmission device as a heartbeat signal bit, and setting any external fault bit as an active judgment fault response mode
The activation function module is used for activating the self-defined function block inside the transmission device and configuring two time relay function blocks;
the heartbeat signal generating module is used for generating a heartbeat signal according to the time relay functional block;
the signal active transmission module is used for connecting the heartbeat signal to the heartbeat signal position and transmitting the heartbeat signal to the automation device through the communication network;
the signal feedback module is used for feeding back the received heartbeat signal to a corresponding control word in the transmission device by the automation device through the communication network;
and the judging module is used for judging whether the heartbeat signal is abnormal or not by the transmission device, if so, actively judging a fault response mode to perform preset fault processing, and if so, normally operating the transmission device.
7. The communication control system according to claim 6, wherein the judging module comprises:
the fault detection unit is used for actively judging the type of the network communication fault detected by the fault response mode;
and the processing unit is used for continuously operating or automatically stopping the transmission device according to the type of the communication fault.
8. The communication control system according to claim 6, wherein the heartbeat signal generating module is configured to generate the heartbeat signal as a pulse sequence having a fixed pulse width of 200ms and a duty cycle of 1: 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910548209.4A CN110213136B (en) | 2019-06-24 | 2019-06-24 | Communication control method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910548209.4A CN110213136B (en) | 2019-06-24 | 2019-06-24 | Communication control method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110213136A CN110213136A (en) | 2019-09-06 |
CN110213136B true CN110213136B (en) | 2022-03-04 |
Family
ID=67794213
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910548209.4A Active CN110213136B (en) | 2019-06-24 | 2019-06-24 | Communication control method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110213136B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112866057B (en) * | 2021-01-11 | 2023-03-10 | 北京科技大学设计研究院有限公司 | Method for determining a communication disconnection between a transmission and an automation controller in a Profinet network |
CN114200904B (en) * | 2021-12-14 | 2024-10-15 | 杭州和利时自动化有限公司 | Method, device and medium for triggering effective shut-down of SIS |
CN114167845B (en) * | 2021-12-23 | 2023-12-05 | 广东嘉腾机器人自动化有限公司 | Communication offline diagnosis method and system for PLC and equipment |
CN116112529B (en) * | 2023-04-03 | 2023-06-09 | 三一汽车起重机械有限公司 | Multi-mode signal transmission method and device and engineering machinery |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102817778B (en) * | 2012-09-14 | 2015-02-04 | 国电联合动力技术有限公司 | Method and device for preventing PLC (programmable logic controller) control system of fan from crashing |
CN104201652B (en) * | 2014-09-10 | 2017-02-15 | 广州金升阳科技有限公司 | Power protection control method |
CN108038019B (en) * | 2017-12-25 | 2021-06-11 | 曙光信息产业(北京)有限公司 | Automatic fault recovery method and system for substrate management controller |
CN109887125B (en) * | 2019-02-02 | 2021-12-14 | 北京主线科技有限公司 | Fault detection method and device |
-
2019
- 2019-06-24 CN CN201910548209.4A patent/CN110213136B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN110213136A (en) | 2019-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110213136B (en) | Communication control method and system | |
CN100571173C (en) | A kind of detection method of network node abnormality | |
AU2014339273B2 (en) | Bus system, and method for operating such a bus system | |
US8665700B2 (en) | Fault detection and mitigation for in-vehicle LAN network management | |
US11063855B2 (en) | Monitoring of the data transmission in a client/server-based device access system | |
JPH10228426A (en) | Bus system and operating method for bus system | |
CN107360239A (en) | A kind of client connection status detection method and system | |
CN105502119A (en) | Elevator light curtain failure self-inspection method and device | |
CN101877646A (en) | Protection switching method and node equipment | |
CN110198245A (en) | Equipment fault self-checking method | |
CN108762118A (en) | Fault handling method and device between a kind of communication apparatus | |
CN112822039B (en) | Main and standby mode switching method for dual-machine hot standby system | |
CN105490837A (en) | Network monitoring processing method and device | |
WO2021127805A1 (en) | Functional safety device for frequency converter | |
CN212343793U (en) | Backup processing system of RS485 ring network | |
CN107959600B (en) | Method for monitoring network communication fault | |
CN115597184B (en) | Method and device for protecting against wrong connection, air conditioner and storage medium | |
CN107241267B (en) | OAM switching method and network equipment | |
CN113900424B (en) | Fault positioning method and device, electronic equipment and related system | |
CN108958019A (en) | Safe adapter, tandem type safe control loop and method of controlling security | |
JPH02217099A (en) | Load controller | |
CN219259226U (en) | Elevator operation monitoring device with self-checking function | |
CN112180828B (en) | Method for detecting communication state of PLC and third-party equipment | |
CN115766411A (en) | Method for accurately judging and switching double machine states of multiplexing process bus | |
CN115903450A (en) | Method for processing controller state, related equipment and computer readable medium |
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 |