CN106789258A - The collocation method of EPA - Google Patents
The collocation method of EPA Download PDFInfo
- Publication number
- CN106789258A CN106789258A CN201611210710.2A CN201611210710A CN106789258A CN 106789258 A CN106789258 A CN 106789258A CN 201611210710 A CN201611210710 A CN 201611210710A CN 106789258 A CN106789258 A CN 106789258A
- Authority
- CN
- China
- Prior art keywords
- protocol
- station
- slave station
- device information
- packet
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 230000003139 buffering effect Effects 0.000 claims description 2
- 238000004891 communication Methods 0.000 description 7
- 238000006243 chemical reaction Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000013461 design Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000007711 solidification Methods 0.000 description 1
- 230000008023 solidification Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
- H04L12/40013—Details regarding a bus controller
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/4013—Management of data rate on the bus
-
- 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/08—Configuration management of networks or network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/627—Controller area network [CAN] identifiers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Communication Control (AREA)
Abstract
The present invention relates to industrial Ethernet technology field, a kind of collocation method of EPA is disclosed.In the present invention, the method includes:After initialization terminates, the retrieval bag of generation is sent to bus by the first agreement main website;Each first protocol slave station receives retrieval bag from bus successively according to the order of physical connection;Wherein, previous first protocol slave station is sent to next first protocol slave station retrieval bag after by the correspondence position of facility information write-in retrieval bag;After all first protocol slave stations are by respective facility information write-in retrieval bag, retrieval bag is back to the first agreement main website;The facility information of each first protocol slave station is extracted in the retrieval bag received from the first agreement main website, the facility information according to each first protocol slave station for extracting carries out configuration.Using the collocation method of EPA of the present invention so that without addition device description file manually, you can be automatically performed configuration.
Description
Technical Field
The invention relates to the technical field of industrial Ethernet, in particular to a configuration method of industrial Ethernet.
Background
The existing high-speed Ethernet bus, taking EtherCAT as an example, has the advantages of high speed, rich application layer protocols, high synchronization performance and the like, and is more and more widely applied to the field of general industrial control.
In implementing the present invention, the inventors of the present application found that: in the existing ethernet bus, when a master station performs configuration, it needs to use a device description file to acquire slave station information, and the device description file may need to be manually added by a user, and each time the number or type of slave station devices changes, it needs to manually modify configuration at the master station device side to continue using. For example, for an EtherCAT ethernet type, when configuring, a user needs to add a device description file in the upper EtherCAT master station software and configure according to the topology of the current EtherCAT network to enable the bus to normally work. In ETG _ broadcast _ cn.pdf, Page 13 provides a detailed description of the above situation, and will not be described herein.
The same disadvantages exist in other industrial field buses, and the master station software side needs to manually configure the configuration to be used.
Disclosure of Invention
An object of an embodiment of the present invention is to provide a method for configuring an industrial ethernet, so that configuration can be automatically completed without manually adding a device description file.
In order to solve the above technical problem, an embodiment of the present invention provides a method for configuring an industrial ethernet, including: after the initialization is finished, the first protocol master station sends the generated retrieval packet to the bus; each first protocol slave station receives the retrieval packets from the bus in sequence according to the order of physical connection; after the previous first protocol slave station writes the equipment information into the corresponding position of the retrieval packet, sending the retrieval packet to the next first protocol slave station; after all the first protocol slave stations write respective device information into a retrieval packet, returning the retrieval packet to the first protocol master station; and extracting the equipment information of each first protocol slave station from the retrieval packet received by the first protocol master station, and carrying out configuration according to the extracted equipment information of each first protocol slave station.
Compared with the prior art, the first protocol master station sends the generated retrieval packet to the bus after initialization, and the first protocol slave stations sequentially receive the retrieval packet from the bus according to the order of physical connection, wherein the previous first protocol slave station writes the device information into the corresponding position of the retrieval packet and then sends the retrieval packet to the next first protocol slave station until all the first protocol slave stations write the respective device information into the retrieval packet. The retrieval packet is then returned to the first protocol master. And extracting the equipment information of each first protocol slave station from the retrieval packet received by the first protocol master station, and carrying out configuration by using the equipment information of each first protocol slave station. In the industrial ethernet of the present embodiment, when the industrial ethernet is configured, the slave stations write the respective device information into the search packet transmitted by the master station, thereby avoiding the manual addition of the device description file of each slave station on the master station side, and since the slave stations receive the search packet from the bus in the physical connection order, the master station can obtain the topology of each slave station according to the order in which the device information of each slave station is written into the search packet. After the device information and the topology structure of each slave station are obtained, the configuration can be completed. Therefore, the configuration method of the industrial ethernet according to the present embodiment enables network configuration without adding a slave device description file.
Further, after extracting the device information of each of the first protocol slave stations from the search packet received from the first protocol master station, the method further includes: establishing an equipment information area and a comprehensive data area according to the extracted equipment information; the device information area comprises device information of the first protocol slave stations, and the comprehensive data area is used for caching states and data of the first protocol slave stations. Therefore, the application program can directly read the data and the state of each first protocol slave station from the established equipment information area and the comprehensive data area, and a foundation is laid for simplification of an application layer protocol.
In addition, the device information includes one or any combination of the following information: the first protocol is the slave station node type, the extension type, the link chip version number, the MCU version number, the writing length of the first protocol from the station and the reading length of the first protocol from the station.
In addition, the device information of each of the first protocol slave stations in the device information area is stored as one data structure body. Thereby facilitating the application to quickly read the device information of the slave stations of the first protocol.
In addition, the comprehensive data area is used for buffering the state and data of the slave stations in the first protocol in each cycle period. Thereby, the state and data of each first protocol slave station can be updated to the integrated data area in real time.
In addition, the comprehensive data area is used for an application program to acquire the state and data of each slave station in the first protocol.
In addition, the comprehensive data area is used for an application program to acquire the state and data of each slave station in the first protocol. The application program directly reads the equipment information, the state and the data of each first protocol slave station in the equipment information area and the comprehensive data area, thereby greatly simplifying an application layer.
In addition, when the first protocol master station is also used as a second protocol slave station, the master station device of the first protocol master station is also used for operating the protocol of the second protocol slave station. Therefore, gateway equipment between the first protocol and the second protocol can be saved, and the data synchronism is improved.
In addition, the retrieval package adopts any one of the following data structures: the search packet comprises M multiplied by N bytes; m is the number of bytes used for storing the equipment information of each first protocol slave station, and N is the number of preset first protocol slave stations; or, the search packet comprises a plurality of bytes; and the first protocol slave stations sequentially write the respective equipment information into the bytes according to the front and back sequence.
Drawings
Fig. 1 is a flow chart of a configuration method of an industrial ethernet according to a first embodiment of the present invention;
fig. 2 is a diagram illustrating an operation flow of a master station in a configuration method of an industrial ethernet network according to a first embodiment of the present invention;
fig. 3 is a flowchart of a configuration method of an industrial ethernet according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
The first embodiment of the invention relates to a configuration method of an industrial ethernet, and the specific flow of the configuration method is shown in fig. 1. The embodiment of fig. 1 may be applied to master and slave station configurations of various industrial ethernet networks, such as EtherCAT, Powerlink, and the like. In the method of the embodiment of fig. 1, in the communication establishment phase of the industrial ethernet, the slave device (slave station) notifies the master device of its own device information according to the search packet of the master device (master station), the master device establishes a model of the entire network according to the device information provided by each slave device, thereby completing the configuration function, and then switches into the circular communication mode.
Specifically, the configuration method of the industrial ethernet network of fig. 1 includes:
step 101: after the initialization is finished, the first protocol master station transmits the generated retrieval packet to the bus.
In step 101, the protocol used by the industrial ethernet composed of the first protocol master station and each first protocol slave station is referred to as a first protocol, and for convenience of description, the first protocol may be referred to as this protocol, and the protocol used by another upper-layer industrial ethernet composed of the first protocol master station as a slave station is referred to as a second protocol. The present embodiment does not specifically limit the networking method of the industrial ethernet network.
In step 101, after the master station and each slave station in the industrial ethernet with the first protocol are powered on, the master station with the first protocol and each slave station with the first protocol enter an initialization state, and after the initialization is finished, the master station with the first protocol is ready to send an automatic retrieval packet. Wherein the search packet is used to store device information of each of the first protocol slave stations. The retrieval package may adopt any one of the following data structures: for example, the search packet includes M times N bytes, and M, N are positive integers, where M is the number of bytes used for storing the slave device information of each first protocol, and N is the number of preset first protocol slaves, so that the device information of each first protocol slave can be collected by using M times N fixed number of bytes. In the search packet of the present embodiment, M is, for example, 8, that is, 8 bytes for storing device information are allocated to each slave station in the first protocol, N is, for example, 63, and N is usually the maximum number of loads (slave stations) supported in the first protocol. The values of M and N may be set according to actual needs, and the numerical values are not specifically limited in this embodiment. After configuring the retrieval packet, the first protocol master station delivers the data frame of the retrieval packet to the link layer chip and sends the data frame to the bus by the link layer chip.
In this embodiment, the device information of each first protocol slave station includes, for example, one of the following information or any combination thereof: the first protocol is the slave station node type, the extension type, the link chip version number, the MCU (Main computing Unit) version number, the writing length of the first protocol slave station, and the reading length of the first protocol slave station. The device information in this embodiment is used to replace the device description file added on the software side of the first protocol master station in the prior art, so the device information that needs to be written in the retrieval packet may be configured with reference to the device description file.
In another embodiment, the bytes in the search packet may not be grouped, so that the first protocol slave stations may sequentially write the respective device information into the bytes included in the search packet from front to back in the order in which the search packet is received. When writing the device information of each first protocol slave station, for example, the node type of each first protocol slave station may be written first, and the first protocol master station may determine the number of the first protocol slave stations according to the node type.
Step 102: and the first protocol slave stations receive the retrieval packets from the buses in sequence according to the physical connection sequence, wherein the former first protocol slave station sends the retrieval packets to the next first protocol slave station after writing the equipment information into the corresponding position of the retrieval packet.
Step 103: and after all the first protocol slave stations write the respective equipment information into the retrieval packet, returning the retrieval packet to the first protocol master station.
Step 104: and extracting the equipment information of each first protocol slave station from the retrieval packet received by the first protocol master station, and carrying out configuration according to the extracted equipment information of each first protocol slave station.
In step 102, the network topology of the first protocol master and each first protocol slave is, for example, a line structure or a ring structure. When each first protocol slave station receives and writes respective device information, a first node (namely, the first protocol slave station determined according to the physical connection sequence) receives a retrieval packet, the first node summarizes the device information of the first node into 8 bytes of data, writes the data into the first node position in the retrieval packet, and then sends the retrieval packet to a next node (namely, the node determined according to the physical connection sequence) through a bus. And so on until the last first protocol slave station in the network writes its own device information into the retrieval packet. In step 103, in the linear structure, the last first protocol slave station (node) automatically forwards the search packet in which the own device information is written back to the previous node, each node does not process the search packet any more, but directly forwards the search packet back to the previous node in sequence, and finally returns the search packet to the master station; in the ring structure, the last first protocol slave station (node) forwards the search packet with its own device information written to the master station in the network physical connection sequence. The master station may determine the network topology from the first protocol slave station returning the search packet, for example, when the search packet is returned from the first protocol slave station in the search packet to the master station, the network topology may be determined as a line type, and when the search packet is returned from the last first protocol slave station in the search packet to the master station, the network topology may be determined as a ring type. In practice, the network topology may be determined based on the order of the first protocol slaves in the search packet and the first protocol slaves returning the search packet to the first protocol master. It should be understood that a person skilled in the art may design various detection methods of the network topology corresponding to the actual network topology, and the determination method of the network topology is not particularly limited in this embodiment.
In step 104, the first protocol master station extracts the device information of each first protocol slave station in the network from the received search packet. For example, the device information of each first protocol slave is extracted in a structure in which 8 bytes correspond to one first protocol slave.
Fig. 2 is a diagram illustrating an exemplary operation flow of a primary station of a first protocol industrial ethernet network. Next, an application of the method for configuring an industrial ethernet according to the present embodiment will be described with reference to fig. 2.
Specifically, as shown in fig. 2, the operation flow of the first protocol master station includes:
step 201: and (5) initializing. In the initialization stage, the first protocol master station device is used for setting a time register, sending a control register and the like, the first protocol master station sends a communication reset packet, and after the communication reset packet is reset, the first protocol master station device waits for 10 milliseconds to complete initialization.
Step 202: and sending the automatic retrieval packet. The first protocol master prepares a retrieval packet and sends the retrieval packet to the bus.
Step 203: and receiving a retrieval packet. After filling the device information into the search packet, each first protocol slave station in the network returns the search packet to the master station, and at this time, the first protocol master station can receive the returned search packet.
Step 204: and sending the plate number setting packet.
Step 205: and receiving the plate number setting packet.
Step 206: and sending the time synchronization packet.
Step 207: a time synchronization packet is received.
Step 208: wait 10 milliseconds.
Step 209: entering a cycle communication period.
In step 209, in each cycle communication period, the first protocol master station determines whether there is a serial data packet to be transmitted or received, and whether there is a P2P data packet to be transmitted or received, and transmits or receives the serial data packet or the P2P data packet according to the determination result.
In summary, after the first protocol master station is initialized, the first protocol master station does not need to obtain the device description file of each slave station from the software side, but the slave stations write their respective device information into the search packet by sending the search packet (configuration frame), so as to obtain the device information of each slave station. Therefore, the configuration method of the industrial ethernet according to this embodiment can simplify the operation steps on the master device side, and does not require a user to perform configuration on the master device of the control system, and only requires the master device to issue a configuration frame (search packet), and the master device automatically models the device information and the device type of the slave device according to the information of the return frame (search packet returned by the slave station), thereby achieving fast configuration and improving user experience.
A second embodiment of the present invention relates to a method for configuring an industrial ethernet network. The second embodiment is an improvement on the first embodiment, and the main improvements are as follows: in the second embodiment, the integrated data area and the device information area are created based on the device information of each slave station extracted in the first embodiment, the device information of each slave station is stored in the device information area, the data and status of each slave station are stored in the integrated data area, and then the device information area and the integrated data area are provided for the application program to access, so that the industrial ethernet application layer can be simplified.
Specifically, as shown in fig. 3, the method for configuring an industrial ethernet network according to the present embodiment includes:
step 301: after the initialization is finished, the first protocol master station transmits the generated retrieval packet to the bus.
Step 302: each first protocol slave station receives the search packets from the bus in sequence in the order of physical connection. And after writing the equipment information into the corresponding position of the retrieval packet, the previous first protocol slave station sends the retrieval packet to the next first protocol slave station.
Step 303: and after all the first protocol slave stations write the respective equipment information into the retrieval packet, returning the retrieval packet to the first protocol master station.
Step 304: and extracting the equipment information of each first protocol slave station from the retrieval packet received by the first protocol master station, and carrying out configuration according to the extracted equipment information of each first protocol slave station.
Wherein, after step 304, the first protocol master and each first protocol slave enter a cyclic communication cycle.
Step 305: and establishing an equipment information area and a comprehensive data area according to the extracted equipment information.
In step 305, the first protocol master station stores the extracted device information of each first protocol slave station in the device information area, and the device information of each first protocol slave station in the device information area is stored as one data structure. In the data structure, the device information of each of the first protocol slave stations is organized in association with each other, and for example, the type, input/output length, and the like of each of the first protocol slave stations are stored in association with each other. And meanwhile, establishing a comprehensive data area of each first protocol slave station according to the extracted equipment information, wherein the comprehensive data area is used for caching the state and data of each first protocol slave station. In the present embodiment, the integrated data area stores pure status and real-time data of each node. The method can uniformly organize the data of each slave node according to the node sequence and the data length. Specifically, the comprehensive data area is used for caching the state and data of the slave stations in the first protocol in each cycle period. It can be seen that in step 305, the status and data of each slave station in the network are obtained by establishing the device information area and the integrated data area of each slave station in the first protocol, and updating the status and data of each slave station in the integrated data area in real time.
In this embodiment, the integrated data area may be directly used for the application to acquire the status and data of each slave station in the first protocol, and the device information area may be directly used for the application to acquire the device information of each slave station in the first protocol. Therefore, the device information area and the integrated data area of the present embodiment can be used to implement an open application layer protocol.
The implementation of the industrial ethernet application layer of the present embodiment is compared with the prior art to illustrate the features of the open application layer of the present embodiment. At present, most of the mainstream industrial ethernet protocols of the industrial ethernet mainly use the existing industrial field bus protocols, such as CANopen, DeviceNet, Profibus, etc., and the industrial ethernet has the advantages of mature and reliable protocols, rich functions and perfect subprotocols. But also because the protocol is mature and reliable, the data flexibility is limited and the openness is poor. Therefore, the development of the sub-device must follow the relevant protocol standard, if the development does not follow the relevant protocol standard, the device cannot be normally used, or the sub-protocol is abnormal in function due to the fact that a certain sub-protocol is not followed, and the like.
As can be seen from the foregoing description, in the present embodiment, the application program can directly acquire the device information from the device information area, and acquire the status and data of each slave station from the integrated data area. And operating the data corresponding to the comprehensive data area according to the acquired equipment information. Therefore, the application layer data of the present embodiment is very flexible.
It should be noted that, in practical applications, the first protocol master station of this embodiment may also be reused as the second protocol slave station, and at this time, the master station device of the first protocol master station is also used to run the protocol of the second protocol slave station. As can be seen from the foregoing description, the application layer protocol of the first protocol master station in this embodiment is simple, the performance consumption of the state machine on the first protocol master station device (e.g., MCU) is low, and it is ensured that the MCU has sufficient capability to run application programs of other protocols. Therefore, the embodiment can realize that the master device is taken as a slave device of another mainstream industrial ethernet, thereby realizing the conversion of two protocols, such as the conversion of the protocol to EtherCAT or Powerlink.
Therefore, applications of the application layer implementation proposed by the present embodiment include, but are not limited to, the following situations:
1. and the master station MCU and the application program are distributed across subnets.
Specifically, the master station MCU serves as a master station of the high-speed bus system and also serves as a slave station of other bus systems such as EtherCAT or Powerlink.
2. The data on the master station MCU can be directly forwarded to other bus systems such as EtherCAT and the like, and are processed by application programs on the other bus systems.
3. The master MCU described earlier is used to perform protocol conversion between the two bus systems.
4. The master station MCU can also be used as the master control of the whole system, cross-protocol conversion is not needed, and an application program on the master station MCU can directly operate data.
5. The online configuration information area (device information area and integrated data area). According to the introduction of the self-configuration function of the master station and the slave station, the data provided by the master station MCU includes the device information, status, data, etc. of each slave station, and these data are circular data areas, so that the current configuration information can be provided to the application program in real time and online, and the trouble of manual configuration is reduced.
6. The device information area and the comprehensive data area can also be used for bus diagnosis, and the application program can acquire the current bus state and the like by comparing the configuration information of two adjacent periods.
7. The comprehensive data area is only used for storing the state and data of each slave station, and the comprehensive data area is continuous without intervals, so that redundant information is reduced, and the utilization efficiency of the data can be improved.
8. And the application program operates the data in the comprehensive data area according to the node sequence and the data length according to the equipment information provided by the equipment information area.
As can be seen from the above situation, the open application layer protocol of the present embodiment has the following features:
the application layer protocol of the present embodiment has no concept of fixed mapping and object. The whole system does not relate to solidification concepts such as objects, object dictionaries and the like, and all data organization is composed of two parts: 1. device information area, 2, integrated data area. The application program does not need to do work such as storage, an explanation object dictionary and the like, obtains the equipment information of the equipment information area, and operates the data corresponding to the comprehensive data area according to the equipment information.
The application layer protocol is not affected by the system level topology. The system-level topology here refers to the topology of the entire control system and not just the topology of the present high-speed bus system. For example, when the high-speed bus system is used as a subnet of other bus systems, the application layer program can be distributed on other bus systems; if no other bus system exists, the application layer program is distributed on the master station MCU.
According to the open application layer protocol provided by the application, the application layer does not have a fixed protocol, and only slave node information including station numbers, data lengths, data addresses and the like is required to be provided. The application layer protocol development completely conforms to the equipment information, the data area is concise, invalid data or configuration data are few, and the utilization rate of the bandwidth is improved. Meanwhile, the master device can be used as the slave device of the mainstream industrial Ethernet, the bus performance of other protocols cannot be reduced, and the data synchronism is well ensured.
Therefore, the open application layer protocol of the embodiment can solve the problems that in the existing industrial ethernet, an application layer program needs to strictly follow each protocol standard, so that the application is complex, and a standard slave station with high purchase price is needed, and can also solve the problem of bus performance loss caused by cross-protocol conversion.
In summary, with the configuration method for the industrial ethernet provided by this embodiment, the master device obtains the information of the slave device through the configuration frame, configures the network topology by itself, and can flexibly present the application layer data, so as to adapt to various other industrial ethernet buses, thereby providing a flexible and powerful cross-protocol conversion function. And the application layer has the characteristic of flexible distribution, can be distributed on the application layers of other bus systems, also can be distributed on the master station MCU, fixed concepts such as solidified object dictionaries are not available at the same time, and the application program can complete the control of the slave nodes by operating two equipment information and a comprehensive data area.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the steps contain the same logical relationship, which is within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
Those skilled in the art can understand that all or part of the steps in the method of the foregoing embodiments may be implemented by a program to instruct related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.
Claims (10)
1. A method for configuring an industrial ethernet network, comprising:
after the initialization is finished, the first protocol master station sends the generated retrieval packet to the bus;
each first protocol slave station receives the retrieval packets from the bus in sequence according to the order of physical connection; after the previous first protocol slave station writes the equipment information into the corresponding position of the retrieval packet, sending the retrieval packet to the next first protocol slave station; after all the first protocol slave stations write respective device information into a retrieval packet, returning the retrieval packet to the first protocol master station;
and extracting the equipment information of each first protocol slave station from the retrieval packet received by the first protocol master station, and carrying out configuration according to the extracted equipment information of each first protocol slave station.
2. The industrial ethernet configuration method according to claim 1, wherein after extracting the device information of each of the first protocol slave stations from the search packet received from the first protocol master station, the method further comprises:
establishing an equipment information area and a comprehensive data area according to the extracted equipment information; the device information area comprises device information of the first protocol slave stations, and the comprehensive data area is used for caching states and data of the first protocol slave stations.
3. The method according to claim 1, wherein the device information comprises one or any combination of the following information:
the first protocol is the slave station node type, the extension type, the link chip version number, the MCU version number, the writing length of the first protocol from the station and the reading length of the first protocol from the station.
4. The method according to claim 2, wherein the device information of each of the first protocol slave stations in the device information area is stored as a data structure.
5. The industrial ethernet configuration method of claim 2, wherein the integrated data area is used for buffering the status and data of the first protocol slave stations in each cycle period.
6. The method of claim 5, wherein the integrated data area is used for an application program to obtain the status and data of each of the first protocol slave stations.
7. The method of claim 2, wherein the device information area is used for an application program to obtain the device information of each slave station in the first protocol.
8. The method of claim 1, wherein when the first protocol master station is further configured as a second protocol slave station, the master device of the first protocol master station is further configured to run a protocol of the second protocol slave station.
9. The industrial ethernet configuration method according to claim 1, wherein the search packet adopts any one of the following data structures:
the search packet comprises M multiplied by N bytes; m is the number of bytes used for storing the equipment information of each first protocol slave station, and N is the number of preset first protocol slave stations; or,
the retrieval packet comprises a plurality of bytes; and the first protocol slave stations sequentially write the respective equipment information into the bytes according to the front and back sequence.
10. The method of claim 8, wherein the second protocol comprises any one of:
EtherCAT、Powerlink。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611210710.2A CN106789258A (en) | 2016-12-24 | 2016-12-24 | The collocation method of EPA |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611210710.2A CN106789258A (en) | 2016-12-24 | 2016-12-24 | The collocation method of EPA |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106789258A true CN106789258A (en) | 2017-05-31 |
Family
ID=58920521
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611210710.2A Pending CN106789258A (en) | 2016-12-24 | 2016-12-24 | The collocation method of EPA |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106789258A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108919762A (en) * | 2018-07-06 | 2018-11-30 | 东莞市李群自动化技术有限公司 | Control method and device based on Industrial Ethernet |
CN109450763A (en) * | 2018-12-29 | 2019-03-08 | 上海新时达机器人有限公司 | A kind of bus expanding method, gateway and extended bus system |
CN109669372A (en) * | 2018-12-24 | 2019-04-23 | 苏州谷夫道自动化科技有限公司 | A kind of configuration method and device |
CN110166335A (en) * | 2019-04-02 | 2019-08-23 | 深圳市汇川技术股份有限公司 | EtherCAT slave station and slave station synchronous communication method, control system, equipment and storage medium |
CN110398943A (en) * | 2019-07-17 | 2019-11-01 | 上海电机学院 | A kind of multi-layer three-dimensional experiment platform of control system and its building method |
CN111176164A (en) * | 2019-12-30 | 2020-05-19 | 深圳市英威腾电气股份有限公司 | Method, device and medium for expanding multiple remote input and output modules |
CN111935196A (en) * | 2020-10-13 | 2020-11-13 | 之江实验室 | Protocol conversion method of Modbus and dnp3 based on EdgeX Foundation |
CN112405107A (en) * | 2020-11-26 | 2021-02-26 | 北京航空航天大学 | Numerical control machine tool communication heterogeneous feeding system and debugging method thereof |
CN113364638A (en) * | 2021-08-11 | 2021-09-07 | 浙江国利信安科技有限公司 | Method, electronic device and storage medium for EPA networking |
CN114268539A (en) * | 2021-12-22 | 2022-04-01 | 中国长江三峡集团有限公司 | Pre-processing method and system for automatically issuing and monitoring Powerlink master station configuration |
CN115801859A (en) * | 2022-11-10 | 2023-03-14 | 广东美的智能科技有限公司 | Connection method between configuration equipment, industrial control device and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101018115A (en) * | 2007-02-13 | 2007-08-15 | 张承瑞 | Real time synchronization network based on the standard Ethernet and its operating method |
CN201066852Y (en) * | 2007-02-13 | 2008-05-28 | 山东大学 | Real time synchronization network based on standard Ethernet |
CN102347879A (en) * | 2011-05-23 | 2012-02-08 | 大连理工计算机控制工程有限公司 | D-BUS high-speed bus technology based on ring type Ethernet and auxiliary network |
CN105356991A (en) * | 2015-11-21 | 2016-02-24 | 中国船舶重工集团公司第七一六研究所 | Driver real-time synchronization communication device |
-
2016
- 2016-12-24 CN CN201611210710.2A patent/CN106789258A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101018115A (en) * | 2007-02-13 | 2007-08-15 | 张承瑞 | Real time synchronization network based on the standard Ethernet and its operating method |
CN201066852Y (en) * | 2007-02-13 | 2008-05-28 | 山东大学 | Real time synchronization network based on standard Ethernet |
CN102347879A (en) * | 2011-05-23 | 2012-02-08 | 大连理工计算机控制工程有限公司 | D-BUS high-speed bus technology based on ring type Ethernet and auxiliary network |
CN105356991A (en) * | 2015-11-21 | 2016-02-24 | 中国船舶重工集团公司第七一六研究所 | Driver real-time synchronization communication device |
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11609556B2 (en) | 2018-07-06 | 2023-03-21 | Qkm Technology (Dong Guan) Co., Ltd. | Control method and device based on industrial ethernet |
WO2020007372A1 (en) * | 2018-07-06 | 2020-01-09 | 东莞市李群自动化技术有限公司 | Control method and device employing industrial ethernet |
CN108919762A (en) * | 2018-07-06 | 2018-11-30 | 东莞市李群自动化技术有限公司 | Control method and device based on Industrial Ethernet |
CN109669372B (en) * | 2018-12-24 | 2021-01-19 | 苏州谷夫道自动化科技有限公司 | Configuration method and device |
CN109669372A (en) * | 2018-12-24 | 2019-04-23 | 苏州谷夫道自动化科技有限公司 | A kind of configuration method and device |
WO2020134607A1 (en) * | 2018-12-24 | 2020-07-02 | 苏州谷夫道自动化科技有限公司 | Configuration method and apparatus |
CN109450763A (en) * | 2018-12-29 | 2019-03-08 | 上海新时达机器人有限公司 | A kind of bus expanding method, gateway and extended bus system |
CN109450763B (en) * | 2018-12-29 | 2021-07-23 | 上海新时达机器人有限公司 | Bus expansion method, gateway and bus expansion system |
CN110166335A (en) * | 2019-04-02 | 2019-08-23 | 深圳市汇川技术股份有限公司 | EtherCAT slave station and slave station synchronous communication method, control system, equipment and storage medium |
CN110166335B (en) * | 2019-04-02 | 2021-08-27 | 深圳市汇川技术股份有限公司 | EtherCAT slave station and slave station synchronous communication method, control system, equipment and storage medium |
CN110398943A (en) * | 2019-07-17 | 2019-11-01 | 上海电机学院 | A kind of multi-layer three-dimensional experiment platform of control system and its building method |
CN111176164A (en) * | 2019-12-30 | 2020-05-19 | 深圳市英威腾电气股份有限公司 | Method, device and medium for expanding multiple remote input and output modules |
CN111176164B (en) * | 2019-12-30 | 2021-03-30 | 深圳市英威腾电气股份有限公司 | Method, device and medium for expanding multiple remote input and output modules |
CN111935196A (en) * | 2020-10-13 | 2020-11-13 | 之江实验室 | Protocol conversion method of Modbus and dnp3 based on EdgeX Foundation |
CN111935196B (en) * | 2020-10-13 | 2021-03-23 | 之江实验室 | Protocol conversion method of Modbus and dnp3 based on EdgeX Foundation |
CN112405107A (en) * | 2020-11-26 | 2021-02-26 | 北京航空航天大学 | Numerical control machine tool communication heterogeneous feeding system and debugging method thereof |
CN112405107B (en) * | 2020-11-26 | 2021-09-28 | 北京航空航天大学 | Numerical control machine tool communication heterogeneous feeding system and debugging method thereof |
CN113364638B (en) * | 2021-08-11 | 2021-11-02 | 浙江国利信安科技有限公司 | Method, electronic device and storage medium for EPA networking |
CN113364638A (en) * | 2021-08-11 | 2021-09-07 | 浙江国利信安科技有限公司 | Method, electronic device and storage medium for EPA networking |
CN114268539A (en) * | 2021-12-22 | 2022-04-01 | 中国长江三峡集团有限公司 | Pre-processing method and system for automatically issuing and monitoring Powerlink master station configuration |
CN114268539B (en) * | 2021-12-22 | 2023-09-12 | 中国长江三峡集团有限公司 | Preprocessing method and system for automatically issuing and monitoring Powerlink master station configuration |
CN115801859A (en) * | 2022-11-10 | 2023-03-14 | 广东美的智能科技有限公司 | Connection method between configuration equipment, industrial control device and system |
CN115801859B (en) * | 2022-11-10 | 2024-06-04 | 广东美的智能科技有限公司 | Connection method, industrial control device and system between configuration equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106789258A (en) | The collocation method of EPA | |
CN107703878B (en) | A kind of PLC distributed remote I/O expansion module | |
CN105450489A (en) | HEBus efficient fieldbus system for preferably realizing shortest message in output and communication method | |
WO2018188070A1 (en) | Conversion apparatus and control system | |
JP3216630B2 (en) | Communication control device | |
CN113364638B (en) | Method, electronic device and storage medium for EPA networking | |
CN111585862A (en) | Method and device for realizing network intercommunication between EtherCAT and TSN | |
CN107168161A (en) | EtherCAT master-salve station communication systems based on ROS systems | |
JPWO2018179125A1 (en) | Network configuration information generating method and communication device | |
KR100981461B1 (en) | Communication chip and method for controlling the access to data in a message store in a communication chip by means of a message manager | |
CN114285695B (en) | Communication method, device, apparatus, system and storage medium | |
CN111930757A (en) | Data processing method, system, encapsulation node and decapsulation node | |
CN114629844A (en) | Message forwarding method and device and electronic equipment | |
CN110417573A (en) | A kind of method and system of data transmission | |
CN108512737B (en) | Data center IP layer interconnection method and SDN controller | |
CN107294746B (en) | Method and equipment for deploying service | |
AU2021277366A1 (en) | Port status configuration method, apparatus,and system, and storage medium | |
CN109634902B (en) | Data transmission method, device and system suitable for PCIE bus | |
CN105281944B (en) | Method for setting network protocol address and service management system | |
EP4170972A1 (en) | Message forwarding method, device and system | |
WO2015141014A1 (en) | Method of constructing software-defined pci express (pci-e) switch | |
JP5534711B2 (en) | Information processing apparatus, information processing method, and program | |
CN106803804A (en) | The method and apparatus of transmitting message | |
CN115001627B (en) | InfiniBand network subnet management message processing method and system | |
CN114866510B (en) | Cross-network and off-site interconnection communication method and system based on InfiniBand network |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170531 |
|
RJ01 | Rejection of invention patent application after publication |