CN112866057A - 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 PDF

Info

Publication number
CN112866057A
CN112866057A CN202110033236.5A CN202110033236A CN112866057A CN 112866057 A CN112866057 A CN 112866057A CN 202110033236 A CN202110033236 A CN 202110033236A CN 112866057 A CN112866057 A CN 112866057A
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.)
Granted
Application number
CN202110033236.5A
Other languages
Chinese (zh)
Other versions
CN112866057B (en
Inventor
裴红平
宗胜悦
王东艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
USTB Design and Research Institute Co Ltd
Original Assignee
USTB Design and Research Institute Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by USTB Design and Research Institute Co Ltd filed Critical USTB Design and Research Institute Co Ltd
Priority to CN202110033236.5A priority Critical patent/CN112866057B/en
Publication of CN112866057A publication Critical patent/CN112866057A/en
Application granted granted Critical
Publication of CN112866057B publication Critical patent/CN112866057B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40221Profibus
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total 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, and belongs 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

Method for determining a communication disconnection between a transmission and an automation controller in a Profinet network
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 provide 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 to a transmission device by an automation system;
(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 10ms) when A>AmaxThen, A is assigned to 0, AmaxThe 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
In order 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 to a transmission device by an automation system;
(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 transmission control in the Profinet network of a certain hot rolling mill and is favored 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 (4)

1. A method of determining a communication disconnection of a transmission from an automation controller in a Profinet network, characterized by: the method comprises the following steps:
(1) defining an int variable A in a communication message sent to a transmission device by an automation system;
(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.
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: the step (2) is specifically as follows: let variable A self-add 1 in each scanning period, when A>AmaxThen, A is assigned to 0, AmaxThe value range of (A) is 10000-30000.
3. 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 (5) the value range of N in the step (5) is 500-2000.
4. A method of determining a communication disconnection of a transmission from an automation controller in a Profinet network according to claim 2, characterized in that: and the time of each scanning period is set through the CPU according to actual needs.
CN202110033236.5A 2021-01-11 2021-01-11 Method for determining a communication disconnection between a transmission and an automation controller in a Profinet network Active CN112866057B (en)

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 true CN112866057A (en) 2021-05-28
CN112866057B 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 (5)

* Cited by examiner, † Cited by third party
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
CN111581081A (en) * 2020-04-21 2020-08-25 深圳震有科技股份有限公司 Automatic test system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
CN111581081A (en) * 2020-04-21 2020-08-25 深圳震有科技股份有限公司 Automatic test system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
闻佳华等: "Profinet通讯技术在西门子驱动系统中的应用", 《起重运输机械》 *

Also Published As

Publication number Publication date
CN112866057B (en) 2023-03-10

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
CN106789493B (en) Automobile software refreshing control method, system and gateway
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
CN112738224A (en) Data processing system and method supporting triggered communication
CN105045224A (en) Data transmission method and device
CN109215317B (en) Numerical control machine tool control method and system based on wireless network
US7539206B2 (en) Communication apparatus and method for supporting carrier sense multiple access/collision detection
KR20180074128A (en) Diagnosis message routing system and method for gateway of vehicle
CN112165422A (en) One-master multi-slave temperature control system and address automatic matching method
KR102595722B1 (en) Communication network, method and apparatus for identifying node connected thereto
CN112838972B (en) Enabling control method, device and equipment based on RS-485 transceiver and storage medium
CN112769666B (en) PLC inter-station communication method
CN102025579A (en) Field bus communication method convenient to expand
CN113949706B (en) Method and system for selecting mobile edge computing node
US8619778B2 (en) Method for automatic address allocation to a communication partner and a communication partner
EP1597679B1 (en) Method of monitoring the communication in a network
Aminaie et al. Profinet vs Profibus
CN116866408A (en) Communication method, device, equipment and medium based on DDS protocol
CN118042006A (en) Universal MQTT protocol implementation method
CN107894752B (en) Numerical control machine tool system based on multiple communication means
JP2004363761A (en) Data communication method
CN117424774A (en) Communication anti-interference method and device, electronic equipment and storage 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