CN114374598B - Method and system for solving problem of occupied Ethernet network port - Google Patents

Method and system for solving problem of occupied Ethernet network port Download PDF

Info

Publication number
CN114374598B
CN114374598B CN202111633364.XA CN202111633364A CN114374598B CN 114374598 B CN114374598 B CN 114374598B CN 202111633364 A CN202111633364 A CN 202111633364A CN 114374598 B CN114374598 B CN 114374598B
Authority
CN
China
Prior art keywords
control module
ports
detection control
module
ethernet 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
Application number
CN202111633364.XA
Other languages
Chinese (zh)
Other versions
CN114374598A (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.)
Cec Jiutian Intelligent Technology Co ltd
Original Assignee
Cec Jiutian Intelligent Technology 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 Cec Jiutian Intelligent Technology Co ltd filed Critical Cec Jiutian Intelligent Technology Co ltd
Priority to CN202111633364.XA priority Critical patent/CN114374598B/en
Publication of CN114374598A publication Critical patent/CN114374598A/en
Application granted granted Critical
Publication of CN114374598B publication Critical patent/CN114374598B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • 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]

Abstract

The invention relates to the technical field of communication, and discloses a method for solving the problem that an Ethernet network port is occupied, which comprises the steps of developing a machine PLC using an Ethernet module and configuring the Ethernet network port; newly adding a communication message format; developing relevant code data of the equipment module control module according to the communication message format, and newly adding configuration of a plurality of groups of Ethernet network ports in the equipment module control module according to the relevant code data; developing relevant code data of the detection control module according to the communication message format, and newly adding time configuration in the development detection control module according to the relevant code data; and adding alarm configuration to the detection control module, and adding alarm processing logic of the detection control module to form a total processing rule for solving the problem that the Ethernet network ports are occupied. The invention also discloses a system for solving the problem that the Ethernet network port is occupied. The invention is used for the situation that the accidental unknown reasons disconnect when the data acquisition is carried out through the Ethernet module in the factory.

Description

Method and system for solving problem of occupied Ethernet network port
Technical Field
The invention relates to the technical field of communication, in particular to a method and a system for solving the problem that an Ethernet network port is occupied, which are used for the situation that the Ethernet module on a production machine is disconnected due to accidental unknown reasons when data acquisition is carried out in an automatic factory, the situation that a TCP/IP port is occupied, and the situation that a production control program and equipment are subjected to real-time data acquisition and real-time data interaction.
Background
As the degree of factory automation and the degree of digitization continue to increase, the production data of products is becoming more and more important, and many systems for analyzing production have been developed. The data collection of these analysis systems is generally collected by a production control program or a data collection system through a PLC of the machine. Some of these are communicated using ethernet modules. The existing production control program or data acquisition system already supports the operation of acquiring data from a machine station in a TCP/IP mode, but in the actual production environment, the situation that TCP/IP disconnection happens sporadically and irregularly, and the situation that ports are always occupied after disconnection exists. The existing method for solving the problem is simple and rough, and is to directly enter a production line, find out the PLC, restart the PLC and establish communication connection with a production control program or a data acquisition system again.
At present, when real-time data of a machine is collected in an Ethernet mode, because a PLC of the machine can control actions of the machine and save the data except communication with a production control program, the PLC internal program and the data are complex, and the traditional processing mode has great influence on the collection of the production data, and has the following defects:
1. ports are occupied and reconnection is impossible after communication interruption in the conventional processing mode.
2. The existing processing mode has a large influence on production activities, the problem can be solved by the traditional restarting PLC operation, but the PLC cannot perform restarting action in the production process, and the restarting can be performed after the production activities are completed, so that data in the process can not be basically collected.
3. The abnormal situation happens very accidentally, and the long-time operation is not possible, and the abnormal situation can also happen multiple times in a short time, so that an operator cannot always pay attention to the states of communication and data acquisition in real time.
4. The traditional treatment mode is operated manually, and risks are easy to occur when the operation is improper.
5. When real-time process data cannot be reported for a long time, the process data is not obvious due to no data support, and the production process may be affected, so that bad products are formed.
Therefore, in order to solve the above-mentioned problems, a technical method is needed to solve the problem that communication cannot be established due to occupied network ports after network interruption for unknown reasons. The method can eliminate the abnormality of the current manual processing, avoid frequent operation of restarting the PLC, and solve the problem that the data cannot be acquired before restarting the PLC. The aim of automatically processing the problem in a short time can be achieved through the transformation of a software program, and the problem caused by the fact that an operator cannot pay attention to the communication state or the data acquisition state in real time is avoided. Excessive manual operation of PLC or machine equipment can be avoided, and risks caused by improper operation are avoided. The problem of bad risks of products caused by the fact that data acquisition cannot be performed for a long time can be avoided.
Disclosure of Invention
The invention aims to provide a method and a system for solving the problem that an Ethernet network port is occupied, which are used for the situation that the connection is disconnected due to accidental unknown reasons when the Ethernet module on a production machine is used for data acquisition in an automatic factory, the situation that a TCP/IP port is occupied, and the situation that a production control program and equipment are used for real-time data acquisition and real-time data interaction.
The invention is realized by the following technical scheme: a method of resolving an ethernet network port being occupied, comprising the steps of:
s1, developing a machine PLC program using an Ethernet module, judging whether the configuration of Ethernet ports of the machine is larger than the set number, if so, entering a step S3, and if not, entering a step S2; the set number is at least four;
s2, configuring Ethernet network ports, opening at least a set number of Ethernet network ports, configuring two ports as normal connection ports, and configuring the rest ports as reserved ports;
s3, a communication message format is newly added between the detection control module and the equipment module control module, wherein the communication message format comprises a disconnection alarm message;
s4, developing relevant code data of the equipment module control module according to the newly-added communication message format, and newly-adding configuration of a plurality of groups of Ethernet network ports in the equipment module control module according to the relevant code data;
s5, developing relevant code data of the detection control module according to the newly-added communication message format, and newly-adding time configuration in seconds in the development of the detection control module according to the relevant code data;
s6, alarming according to newly increased time configuration of the detection control module, after triggering an alarm, recording the alarm message locally after the detection control module sends out the disconnection alarm message, and adding alarm processing logic of the detection control module to form a total processing rule for solving the problem that the Ethernet network port is occupied;
s7, testing the steps S1-S6, and updating and deploying the equipment module control module, the machine PLC program and the detection control module when the testing function is normal and no abnormality exists.
In order to better implement the present invention, further, the method developed in step S1 includes:
when the Ethernet network port which is currently connected is changed, carrying out forced Reset logic on the Ethernet network port which is originally connected;
when the Reset logic judges that the Ethernet network port establishes a new communication connection, the original Ethernet network port state is changed back to the Release state to be connected.
In order to better implement the present invention, further, step S3 includes:
and defining specific production line information and specific machine information in the communication message format.
In order to better implement the present invention, further, step S4 includes:
s4.1, newly adding a column of a current connection Ethernet network port in a database machine information table, wherein the initial value of the column is port information of the current connection establishment;
s4.2, when the equipment module control module receives the newly added communication message format in the step S3 sent by the detection control module, the equipment module control module analyzes specific production line information and specific machine information in the communication message format, acquires site information of the machine in a local database through the production line information and the machine information, and acquires currently used port information in the database;
s4.3, acquiring configuration of the station through station information, so as to acquire all ports configured by the station;
s4.4, traversing all ports after obtaining all ports, comparing elements in all ports with the currently used ports obtained from the database, and establishing connection with the Ethernet module of the machine by using a first group of ports different from the currently used ports in the database after comparison;
and S4.5, after the connection is established successfully, updating the current port information of the machine in the database to the port information of the newly established connection.
In order to better implement the present invention, further, step S5 includes:
the trigger logic of the newly added communication message format in the development detection control module is that when the data stop reporting exceeds the newly added time configuration, the development detection control module sends the newly added communication message format in the step S3 to the equipment module control module;
and controlling the lower system and equipment according to the development detection control module.
To better implement the present invention, further, the alarm configuration in step S6 includes:
when the detection control module does not receive the alarm generated by the data acquisition and monitoring control module reported by the machine station, the detection control module automatically triggers the transmission of a disconnection alarm message to the equipment module control module according to the newly added communication message format in the step S3.
In order to better implement the present invention, further, the total processing rule for solving the problem that the ethernet network port is occupied in step S6 includes:
in the production operation process, the machine station sends real-time production data between the detection control module and the equipment module control module through a TCP/IP network communication protocol;
when the communication of the equipment module control module is abnormal, displaying that the data acquisition fails, detecting that the control module does not receive the transmitted data and triggering an alarm, and sending disconnection alarm information to the equipment module control module;
the equipment module control module tries to establish connection with other ports after receiving the disconnection alarm information;
the machine station reestablishes connection through other ports and sends data to the equipment module control module, the equipment module control module processes and forwards the data to the detection control module, and the detection control module processes the data and presents the data to a user.
In order to better realize the invention, the invention further provides a system for solving the problem that the Ethernet network port is occupied, which comprises a machine, a data acquisition and monitoring control module, a detection control module and an equipment module control module, wherein:
the machine is used for developing a machine PLC program using the Ethernet module, judging whether the configuration of the Ethernet network ports of the machine is larger than the set number, if not, configuring the Ethernet network ports, opening at least the set number of Ethernet network ports, configuring two ports as normal connection ports, and configuring the rest ports as reserved ports;
the detection control module is used for developing related code logic between the detection control module and the equipment module control module according to the newly added communication message format, configuring alarm time of the detection control module, wherein the time configuration unit is seconds, after the alarm is triggered by overtime without reporting data, the detection control module sends a disconnection alarm message to the equipment module control module and then records the disconnection alarm message locally, and the alarm processing logic of the detection control module is added to form a total processing rule for solving the problem that an Ethernet network port is occupied;
and the equipment module control module is used for newly adding a communication message format between the detection control module and the equipment module control module, developing relevant code logic of the detection control module according to the newly added communication message format and adding configuration of a plurality of ports to the equipment module control module. And adding machine network port information in the database for recording the current port, and adding logic for automatically switching to a reserved port to connect with the machine after receiving the disconnection alarm message.
Compared with the prior art, the invention has the following advantages:
(1) The invention solves the problem that communication cannot be established due to the occupied network port after the network is interrupted due to unknown reasons by switching the connection ports;
(2) The method eliminates the abnormal mode of the current manual processing, can avoid frequent restarting of the PLC operation, and solves the problem that the data cannot be acquired before restarting the PLC;
(3) According to the invention, the aim of automatically processing the problem in a short time is fulfilled by modifying a software program, and the problem caused by the fact that an operator cannot pay attention to a communication state or a data acquisition state in real time is avoided;
(4) The invention avoids excessive manual operation of PLC or machine equipment and avoids risks caused by improper operation;
(5) The invention avoids the problem that the product has bad risk because the data acquisition can not be carried out for a long time;
(6) The invention automatically solves the problems of network disconnection, network port occupation and unsuccessful network connection establishment of the Ethernet module in a manner of carrying out network connection state on a specific machine by monitoring upper FDC data, switching the Ethernet port by FDC information and carrying out Reset on the Ethernet port of the Ethernet module by a PLC program.
Drawings
The invention is further described with reference to the following drawings and examples, and all inventive concepts of the invention are to be considered as being disclosed and claimed.
Fig. 1 is a flowchart of a monitoring method for abnormal conditions of products based on continuous batches according to the present invention.
FIG. 2 is a flow chart of a conventional processing method when an abnormality occurs in a product.
Detailed Description
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it should be understood that the described embodiments are only some embodiments of the present invention, but not all embodiments, and therefore should not be considered as limiting the scope of protection. All other embodiments, which are obtained by a worker of ordinary skill in the art without creative efforts, are within the protection scope of the present invention based on the embodiments of the present invention.
In the description of the present invention, it should be noted that, unless explicitly stated and limited otherwise, the terms "disposed," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; or may be directly connected, or may be indirectly connected through an intermediate medium, or may be communication between two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
Example 1:
in the monitoring method based on abnormal conditions of continuous batch products, as shown in fig. 1 and 2, compared with the traditional processing mode of abnormal conditions of the products, the upper detection Control module (FDC, fault Detection Control is a component part of a production quality Control module in the manufacturing industry) in the production line is used for collecting real-time status detection data of a factory, fault detection and other data, and several modes, such as CC-Link IE, HSMS, or ethernet acquisition mode of a PLC are used for collecting real-time production data of the machine station by the production Control program, or the ethernet acquisition mode of the PLC is used for collecting ethernet of the machine station by the system between the MES (manufacturing execution system) and the automation equipment. The machine station PLC Ethernet (Ethernet prescribes the connection line including physical layer, electronic signal and content of medium access layer protocol) communication module is configured with IP and port and connected into factory network for connection of production control program. The invention is applied to the situations that after a production control program establishes TCP/IP (TCP/IP transmission protocol, namely transmission control/network protocol, also called network communication protocol) with a machine, the TCP/IP transmission protocol is the most basic communication protocol in the use of a network, the TCP/IP transmission protocol prescribes the standard and the method for communication of all parts in the Internet, a port of a PLC end with unknown reasons cannot be reconnected after being disconnected, and the port is occupied. The number of the Ethernet ports of the station-end PLC is set to be greater than two, 4 ports are used for example, at least 4 ports are opened (2 ports are needed when a single connection is established), and the station-end Ethernet ports are configured to be at least four. There is no conventional way to open ports as needed for the production control program to disconnect when an exception occurs. Configuration is performed on the ethernet module network ports of the machine side PLC (if the configuration of the ethernet module network ports of the machine side is already more than 4, this step can be omitted), at least 4 network ports (2 ports are needed for single connection) are opened, for example, the original PLC is set to be 4001 and 4002 opened by TCPIP, and is changed to be 4001,4002, 4003,4004 and …, wherein two ports are normal connection ports, and the rest ports are reserved ports.
The network port occupation or reconnection operation in abnormal connection is realized through software modification by modifying the detection control module, the production control program and the machine end PLC program. When reconnection occurs between the production control program and the machine, the machine end needs a port originally connected with the Reset, time configuration is added in the detection control module, and if the time set by the time configuration is exceeded, an alarm is triggered.
When the PLC is abnormal, the difficulty of confirming specific reasons is very high, even the TCP/IP handshake process is analyzed before, the abnormal situation is difficult to explain by a PLC former factory, after communication abnormality each time, connection cannot be reestablished due to the fact that a port is occupied is the symptom of a problem, when the problem occurs each time, personnel are required to enter the site for confirmation, the PLC is restarted under the condition that the production state is not available, the PLC is required to be restarted when a certain machine is restarted, the time is long, and the use, maintenance and the like of equipment are greatly influenced. Since the exact cause of this situation cannot be explained and the situation where the network port is occupied is actually present, trying other ports to connect can better circumvent this problem, so that the cause is skipped and then the problem can be solved at the least cost, when a connection is established with a new port, it can be Reset to make the originally occupied port be released, and the ports can be reused when the problem occurs again later, and the problem is solved in a semi-automatic, manual manner by personnel, but the effect is not ideal, so the automatic scheme provided by the embodiment can solve the problem.
And finally, after the development step is finished, testing is carried out in an office, and when the testing function works normally and has no abnormality, the BC program and the machine-side PLC program FDC module are updated and deployed.
Example 2:
in this embodiment, a machine PLC program using an ethernet module is developed, and logic for forcing Reset of an originally connected port when a currently established connection port is changed is developed, that is, in order to change the state of the originally connected port back to the state to be connected if a new communication connection is established, the present embodiment further optimizes on the basis of embodiment 1.
Other portions of this embodiment are the same as those of embodiment 1, and thus will not be described in detail.
Example 3:
in this embodiment, the FDC does not develop a specific message for the BC program in response to the abnormal condition of the machine in the conventional method, but only alarms on the interface of the FDC system. The message formats mentioned in the present invention are all newly added as required.
In the conventional project, the communication message between BC and FDC does not include the message that the FDC notifies BC that a certain device is disconnected, and in this embodiment, since the connection state with the device is monitored by reporting data to the FDC end, a communication message (disconnection alarm message) format needs to be added to BC-FDC, for example, the new message format is as follows:
a specific production line, a specific machine, needs to be defined within the message.
Other portions of this embodiment are the same as those of embodiment 1, and thus will not be described in detail.
Example 4:
the embodiment further optimizes on the basis of embodiment 1, develops BC program related code according to the format of the defined newly added message interface, newly adds configuration at the BC program end, changes to be able to configure multiple groups of Ethernet ports, for example, as shown in the example of the configuration format in fig. 2, newly adds a field of the currently connected port in the table of the database machine information, the initial value of the field is the port information of the currently established connection, as shown in the example of the configuration format "< ConnectionInfo, localName =" L11 "connectionttype=" Ethernet "ipaddress=" 10.41.128.51 "mellecPort=" 4001,4002 "reservPort=" 4003,4004 "reservPort2=" 4005,4006">", its content is MelsecPort, reservedPort1, reservdport 2 …, and the code logic of BC is: when the BC receives the message as described in step three sent by the FDC module, the BC parses the line and machine information in the message, and drags the site information of the machine in the local database through the line and machine information, and obtains the currently used port information in the database as shown in the example of the configuration format "< ConnectionInfo, localName =" L11 "connectionttype=" Ethernet "ipaddress=" 10.41.128.51 "melbecport=" 4001,4002 "reservport=" 4003,4004 "reservort2=" 4005,4006">", the content of which is MelsecPort, reservedPort1, reservodport 2 …, and in the example of the configuration format of the site information obtained through the site information: localname= "L11" so as to obtain all configured ports of the L11 site, and after all ports are obtained, traversing the ports to make its element compare with the currently used port obtained from the database, where in this embodiment, the element refers to traversing all ports in the configuration document, where two ports are a group, that is, one element. And after the connection is established successfully, the current port information of the machine in the database is updated to be the port information of the newly established connection.
Other portions of this embodiment are the same as those of embodiment 1, and thus will not be described in detail.
Example 5:
in this embodiment, the FDC program related code is developed according to the defined format of the newly added message interface, the time configuration is newly added, the unit of the time configuration is seconds, the trigger logic of the newly added related message is that when the reporting of the data stops exceeding the time configuration, the FDC sends the message described in the third step to the BC, and in a period of time, the BC program itself does not process any data in the data transmission process, and when the BC does not report the data at the machine side, the BC itself does not report errors, so that the logic of the monitoring data is placed in the upper FDC module, and the lower system and the equipment are controlled in such a way. The lower system in this embodiment refers to a BC system, and the apparatus refers to production equipment.
Other portions of this embodiment are the same as those of embodiment 1, and thus will not be described in detail.
Example 6:
in this embodiment, when the FDC module is newly added to the FDC module and when the FDC module does not receive an alarm from the data acquisition and monitoring control module (SCADA, supervisory Control And Data Acquisition) reported by the machine, the logic for sending a disconnection alarm message to the BC according to the format of the newly added message interface is automatically triggered, so that the BC switches ports for connection, the FDC module performs local recording after sending the message, and the FDC program logic is added according to the processing mode of the embodiment, so as to finally obtain the total processing rule for solving the problem that the ethernet network ports are occupied. In this embodiment, the newly added communication message format is exemplified by XML format, and the message includes the information of the production line of the machine and the ID of the specific machine. And finally, the newly added communication message format sends a disconnection warning message to the BC program in the equipment module control module.
Other portions of this embodiment are the same as those of embodiment 1, and thus will not be described in detail.
Example 7:
the embodiment is further optimized on the basis of the embodiment 1, and the actual working mode is as follows: data within the production line is normally collected in real time. For some reason, communication between the BC and the device is interrupted, and the BC attempts to connect to fail because the current port of the ethernet module is still occupied. The FDC detects the interruption of data acquisition, gives an alarm to the user and gives a disconnection alarm message to the BC. The BC receives the disconnection alert sent by the FDC and starts to attempt to establish a connection with the other ports of the ethernet module. The BC reestablishes the connection with the new port of the ethernet module and begins to re-acquire data and upload to the FDC system. The station PLC end performs Reset operation on the originally occupied 2 ports, and the problem that the network ports are occupied is solved. Other portions of this embodiment are the same as those of embodiment 1, and thus will not be described in detail.
Example 8:
the embodiment provides a system for solving the problem that an Ethernet network port is occupied, which is matched with a method for solving the problem that the Ethernet network port is occupied, and in the system, when the Ethernet port of a PLC Ethernet module is occupied, the connection port is switched to solve the problem; monitoring upper FDC data to perform network connection state on a specific machine; switching the Ethernet ports through the FDC information; carrying out Reset on an Ethernet port of the Ethernet module through a PLC program; the method automatically solves the problems that the network of the Ethernet module is disconnected, the network ports are occupied, and the network connection is not successfully established. Other portions of this embodiment are the same as those of embodiment 1, and thus will not be described in detail.
The foregoing description is only a preferred embodiment of the present invention, and is not intended to limit the present invention in any way, and any simple modification and equivalent variation of the above embodiment according to the technical matter of the present invention falls within the scope of the present invention.

Claims (7)

1. A method for resolving an occupation of an ethernet network port, comprising the steps of:
s1, developing a machine PLC program using an Ethernet module, judging whether the configuration of Ethernet network ports of the machine is larger than the set number, if so, entering a step S3, and if not, entering a step S2; the set number is at least four;
s2, configuring Ethernet network ports, opening at least a set number of Ethernet network ports, configuring two ports as normal connection ports, and configuring the rest ports as reserved ports;
s3, a communication message format is newly added between the detection control module and the equipment module control module, wherein the communication message format comprises a disconnection alarm message;
s4, developing relevant code data of the equipment module control module according to the newly-added communication message format, and newly-adding configuration of a plurality of groups of Ethernet network ports in the equipment module control module according to the relevant code data;
s5, developing relevant code data of the detection control module according to the newly-added communication message format, and newly-adding time configuration in seconds in the development of the detection control module according to the relevant code data;
s6, alarming according to newly increased time configuration of the detection control module, after triggering an alarm, recording the alarm message locally after the detection control module sends out the disconnection alarm message, and adding alarm processing logic of the detection control module to form a total processing rule for solving the problem that the Ethernet network port is occupied;
the total processing rule for solving the problem that the ethernet network port is occupied in the step S6 includes: in the production operation process, the machine station sends real-time production data between the detection control module and the equipment module control module through a TCP/IP network communication protocol; when the communication of the equipment module control module is abnormal, the data acquisition fails, the detection control module does not receive the transmitted data and triggers an alarm, and disconnection alarm information is sent to the equipment module control module; the equipment module control module tries to establish connection with other ports after receiving the disconnection alarm information; the machine station reestablishes connection through other ports and sends data to the equipment module control module, the equipment module control module processes and forwards the data to the detection control module, and the detection control module processes the data and presents the data to a user;
s7, testing the steps S1-S6, and updating and deploying the equipment module control module, the machine PLC program and the detection control module when the testing function is normal and no abnormality exists.
2. The method for solving the problem of occupied ports of the ethernet network according to claim 1, wherein the method developed in step S1 comprises: when the Ethernet network port which is currently connected is changed, carrying out forced Reset logic on the Ethernet network port which is originally connected; when the Reset logic judges that the Ethernet network port establishes a new communication connection, the original Ethernet network port state is changed back to the Release state to be connected.
3. A method for resolving an occupied ethernet network port according to claim 1, wherein said step S3 comprises: and defining specific production line information and specific machine information in the communication message format.
4. The method for solving the problem of occupied ports of the ethernet network according to claim 1, wherein said step S4 comprises:
s4.1, newly adding a column of a current connection Ethernet network port in a database machine information table, wherein the initial value of the column is port information of the current connection establishment; s4.2, when the equipment module control module receives the newly added communication message format in the step S3 sent by the detection control module, the equipment module control module analyzes specific production line information and specific machine information in the communication message format, acquires site information of the machine in a local database through the production line information and the machine information, and acquires currently used port information in the database; s4.3, acquiring configuration of the station through station information, so as to acquire all ports configured by the station; s4.4, traversing all ports after obtaining all ports, comparing elements in all ports with the currently used ports obtained from the database, and establishing connection with the Ethernet module of the machine by using a first group of ports different from the currently used ports in the database after comparison; and S4.5, after the connection is established successfully, updating the current port information of the machine in the database to the port information of the newly established connection.
5. The method for solving the problem of occupied ports of the ethernet network according to claim 1, wherein said step S5 comprises: the trigger logic of the newly added communication message format in the development detection control module is that when the data stop reporting exceeds the newly added time configuration, the development detection control module sends the newly added communication message format in the step S3 to the equipment module control module; and controlling the lower system and equipment according to the development detection control module.
6. The method according to claim 1, wherein the alarm configuration in step S6 comprises: when the detection control module does not receive the alarm generated by the data acquisition and monitoring control module reported by the machine station, the detection control module automatically triggers the transmission of a disconnection alarm message to the equipment module control module according to the newly added communication message format in the step S3.
7. The system for solving the problem that the Ethernet network port is occupied is characterized by comprising a machine station, a data acquisition and monitoring control module, a detection control module and an equipment module control module, wherein:
the machine is used for developing a machine PLC program using the Ethernet module, judging whether the configuration of the Ethernet network ports of the machine is larger than the set number, if not, configuring the Ethernet network ports, opening at least the set number of Ethernet network ports, configuring two ports as normal connection ports, and configuring the rest ports as reserved ports;
the detection control module is used for developing related code logic between the detection control module and the equipment module control module according to the newly added communication message format, configuring alarm time of the detection control module, wherein the time configuration unit is seconds, after the alarm is triggered by overtime without reporting data, the detection control module sends a disconnection alarm message to the equipment module control module and then records the disconnection alarm message locally, and the alarm processing logic of the detection control module is added to form a total processing rule for solving the problem that an Ethernet network port is occupied;
the device module control module is used for newly adding a communication message format between the detection control module and the device module control module, developing relevant code logic of the detection control module according to the newly added communication message format, and adding configuration of a plurality of ports on the device module control module;
adding machine network port information in the database for recording the current port, and adding logic for automatically switching to a reserved port for connection with the machine after receiving the disconnection alarm message;
the total processing rule for solving the problem that the Ethernet network port is occupied comprises the following steps: in the production operation process, the machine station sends real-time production data between the detection control module and the equipment module control module through a TCP/IP network communication protocol; when the communication of the equipment module control module is abnormal, the data acquisition fails, the detection control module does not receive the transmitted data and triggers an alarm, and disconnection alarm information is sent to the equipment module control module; the equipment module control module tries to establish connection with other ports after receiving the disconnection alarm information; the machine station reestablishes connection through other ports and sends data to the equipment module control module, the equipment module control module processes and forwards the data to the detection control module, and the detection control module processes the data and presents the data to a user.
CN202111633364.XA 2021-12-28 2021-12-28 Method and system for solving problem of occupied Ethernet network port Active CN114374598B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111633364.XA CN114374598B (en) 2021-12-28 2021-12-28 Method and system for solving problem of occupied Ethernet network port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111633364.XA CN114374598B (en) 2021-12-28 2021-12-28 Method and system for solving problem of occupied Ethernet network port

Publications (2)

Publication Number Publication Date
CN114374598A CN114374598A (en) 2022-04-19
CN114374598B true CN114374598B (en) 2023-07-21

Family

ID=81141922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111633364.XA Active CN114374598B (en) 2021-12-28 2021-12-28 Method and system for solving problem of occupied Ethernet network port

Country Status (1)

Country Link
CN (1) CN114374598B (en)

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5428555A (en) * 1993-04-20 1995-06-27 Praxair, Inc. Facility and gas management system
JP2004064325A (en) * 2002-07-26 2004-02-26 Omron Corp Plc remote monitor/control system and its remote monitor control method
CN101146014A (en) * 2006-09-13 2008-03-19 洛克威尔自动控制技术股份有限公司 Fault-tolerant Ethernet network
CN103124224A (en) * 2011-10-05 2013-05-29 洛克威尔自动控制技术股份有限公司 Multiple-fault-tolerant Ethernet network for industrial control
CN104253716A (en) * 2013-06-28 2014-12-31 华为技术有限公司 Equipment abnormal state notification method and device
CN105162630A (en) * 2015-09-02 2015-12-16 深圳市华茂欧特科技有限公司 Intelligent system for diagnosing programmable controller Ethernet communication failures
CN105515180A (en) * 2015-07-14 2016-04-20 国家电网公司 Intelligent substation communication network dynamic monitoring system and monitoring method thereof
CN106603359A (en) * 2016-11-25 2017-04-26 北京龙鼎源科技股份有限公司 Communication control method of PLC system and apparatus thereof
CN106685722A (en) * 2016-12-30 2017-05-17 广州市兴世电子有限公司 Novel remote debugging configuration tool of hot melt adhesive machine flowmeter to PLC (programmable logic controller) control system
CN106788594A (en) * 2016-12-05 2017-05-31 深圳市图焌科技有限公司 A kind of PLC device link protection change method and PLC device
CN107168227A (en) * 2017-06-01 2017-09-15 杭州电子科技大学 The communicating control method and device of many kernel Embedded PLCs
CN107342894A (en) * 2017-06-22 2017-11-10 光大环保能源(常州)有限公司 A kind of communication system and its control system and implementation method for waste incinerator
CN108540571A (en) * 2018-04-24 2018-09-14 中电九天智能科技有限公司 High Availabitity Internet of Things manufacturing execution system based on industry internet and production method
KR102050312B1 (en) * 2019-03-28 2019-12-02 탑시스템주식회사 Supporting method, apparatus and computer-readable medium of multi communication type and protocol between systems using embedded cpu included in programmable logic controller
CN110554672A (en) * 2019-09-17 2019-12-10 中电九天智能科技有限公司 System and method for uploading mass state data
JP2019219894A (en) * 2018-06-20 2019-12-26 株式会社明電舎 Switching scheme of plc dual system, switching method of plc dual system
CN110663006A (en) * 2017-03-24 2020-01-07 西门子股份公司 Resilient failover for industrial programmable logic controllers
CN111416731A (en) * 2020-02-12 2020-07-14 杭州电子科技大学 Alarm system and method based on cloud collaborative edge node self-adaptive configuration deployment
WO2020222845A1 (en) * 2019-05-02 2020-11-05 Siemens Aktiengesellschaft External module for network connection to programmable logic controller (plc) backplane

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7185045B2 (en) * 2002-07-15 2007-02-27 Sixnet, Llc Ethernet interface device for reporting status via common industrial protocols
US8949382B2 (en) * 2003-02-26 2015-02-03 Siemens Industry, Inc. Systems, devices, and methods for network wizards
US20160197769A1 (en) * 2015-01-06 2016-07-07 Kiban Labs, Inc. System and method for filtering events at an iot hub
CN108123900A (en) * 2016-11-30 2018-06-05 杭州海康威视数字技术股份有限公司 Ethernet switch and its remote transmission method
TWI658712B (en) * 2017-09-13 2019-05-01 財團法人資訊工業策進會 Gateway and method of determining machines to be networked at gateway

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5428555A (en) * 1993-04-20 1995-06-27 Praxair, Inc. Facility and gas management system
JP2004064325A (en) * 2002-07-26 2004-02-26 Omron Corp Plc remote monitor/control system and its remote monitor control method
CN101146014A (en) * 2006-09-13 2008-03-19 洛克威尔自动控制技术股份有限公司 Fault-tolerant Ethernet network
CN103124224A (en) * 2011-10-05 2013-05-29 洛克威尔自动控制技术股份有限公司 Multiple-fault-tolerant Ethernet network for industrial control
CN104253716A (en) * 2013-06-28 2014-12-31 华为技术有限公司 Equipment abnormal state notification method and device
CN105515180A (en) * 2015-07-14 2016-04-20 国家电网公司 Intelligent substation communication network dynamic monitoring system and monitoring method thereof
CN105162630A (en) * 2015-09-02 2015-12-16 深圳市华茂欧特科技有限公司 Intelligent system for diagnosing programmable controller Ethernet communication failures
CN106603359A (en) * 2016-11-25 2017-04-26 北京龙鼎源科技股份有限公司 Communication control method of PLC system and apparatus thereof
CN106788594A (en) * 2016-12-05 2017-05-31 深圳市图焌科技有限公司 A kind of PLC device link protection change method and PLC device
CN106685722A (en) * 2016-12-30 2017-05-17 广州市兴世电子有限公司 Novel remote debugging configuration tool of hot melt adhesive machine flowmeter to PLC (programmable logic controller) control system
CN110663006A (en) * 2017-03-24 2020-01-07 西门子股份公司 Resilient failover for industrial programmable logic controllers
CN107168227A (en) * 2017-06-01 2017-09-15 杭州电子科技大学 The communicating control method and device of many kernel Embedded PLCs
CN107342894A (en) * 2017-06-22 2017-11-10 光大环保能源(常州)有限公司 A kind of communication system and its control system and implementation method for waste incinerator
CN108540571A (en) * 2018-04-24 2018-09-14 中电九天智能科技有限公司 High Availabitity Internet of Things manufacturing execution system based on industry internet and production method
JP2019219894A (en) * 2018-06-20 2019-12-26 株式会社明電舎 Switching scheme of plc dual system, switching method of plc dual system
KR102050312B1 (en) * 2019-03-28 2019-12-02 탑시스템주식회사 Supporting method, apparatus and computer-readable medium of multi communication type and protocol between systems using embedded cpu included in programmable logic controller
WO2020222845A1 (en) * 2019-05-02 2020-11-05 Siemens Aktiengesellschaft External module for network connection to programmable logic controller (plc) backplane
CN110554672A (en) * 2019-09-17 2019-12-10 中电九天智能科技有限公司 System and method for uploading mass state data
CN111416731A (en) * 2020-02-12 2020-07-14 杭州电子科技大学 Alarm system and method based on cloud collaborative edge node self-adaptive configuration deployment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Profibus-DP在日立三电控制系统的应用;王东红;张晓明;邸洪双;;控制工程(第02期);全文 *

Also Published As

Publication number Publication date
CN114374598A (en) 2022-04-19

Similar Documents

Publication Publication Date Title
JP4842332B2 (en) I / O devices with configuration functionality, fault isolation functionality, and redundant fault assistance functionality
US6898542B2 (en) On-line device testing block integrated into a process control/safety system
EP1395884B1 (en) Enhanced hart device alerts in a process control system
CN1115846C (en) Local network with redundancy properties, especially ethernet network and redundancy
CN102810244B (en) The system and method removed for alarm equipment
CN110417623B (en) Fault diagnosis method for Ethernet switch of intelligent substation
CN114374598B (en) Method and system for solving problem of occupied Ethernet network port
CN107979495B (en) Gradient processing method for alarm storm in network management system
CN109104325B (en) Train network data transmission method, system and device based on CANopen protocol
US7191228B1 (en) Health checker for EMS CORBA notification listener
KR100908131B1 (en) Fault detection device and method using log filtering and fault detection system using the device
CN110620813A (en) Equipment fault alarm system and method based on NBIoT
DE102023115224A1 (en) DEVICES AND METHODS FOR NON-INFRUITIVE REPLACEMENT OF SIMPLEX I/O COMPONENTS
CN113466584B (en) Fault diagnosis positioning method for tripping and closing monitoring
CN114448504A (en) Optical module fault processing method, electronic equipment and computer readable storage medium
CN110971467A (en) Network centralized management system
CN107959600B (en) Method for monitoring network communication fault
CN112134727A (en) Network shutdown operation data exchange method based on container technology
JP3398702B2 (en) Communications system
EP3754880A1 (en) Method and system for detecting and mitigating cabling issues with devices in substation automation systems
CN117061316A (en) Apparatus and method for identifying device communication failures in a communication network
JPH0581202A (en) Instantaneous fault detection system for communication network equipment
JPH09130414A (en) Network management system
CN112286130A (en) PLC (programmable logic controller) wireless communication fault detection system and method
CN114338487A (en) Low-voltage intelligent circuit breaker communication protocol testing device and testing method

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