CN114390042A - Industrial communication method, industrial communication system, device, and storage medium - Google Patents

Industrial communication method, industrial communication system, device, and storage medium Download PDF

Info

Publication number
CN114390042A
CN114390042A CN202111627864.2A CN202111627864A CN114390042A CN 114390042 A CN114390042 A CN 114390042A CN 202111627864 A CN202111627864 A CN 202111627864A CN 114390042 A CN114390042 A CN 114390042A
Authority
CN
China
Prior art keywords
slave station
data frame
data
industrial communication
station
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
Application number
CN202111627864.2A
Other languages
Chinese (zh)
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.)
Shenzhen Inovance Technology Co Ltd
Original Assignee
Shenzhen Inovance 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 Shenzhen Inovance Technology Co Ltd filed Critical Shenzhen Inovance Technology Co Ltd
Priority to CN202111627864.2A priority Critical patent/CN114390042A/en
Publication of CN114390042A publication Critical patent/CN114390042A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

The invention discloses an industrial communication method, an industrial communication system, equipment and a storage medium, wherein the industrial communication method is applied to the industrial communication system, the industrial communication system comprises a master station, a first slave station and a second slave station, the master station is connected with the first slave station, the first slave station is connected with the second slave station, the first slave station is provided with a first frame processing unit, the second slave station is provided with a second frame processing unit, and the industrial communication method comprises the following steps: acquiring a data frame transmitted by the master station based on the first slave station; calling the first frame processing unit to upload first data content to the data frame so as to generate a target data frame; and transferring the target data frame to the second slave station, and calling the second frame processing unit to download the first data content from the target data frame. Therefore, the industrial communication method provided by the invention can realize data interaction among the slave stations in a determined, low-delay and high-synchronization mode.

Description

Industrial communication method, industrial communication system, device, and storage medium
Technical Field
The present invention relates to the field of industrial communication technologies, and in particular, to an industrial communication method, an industrial communication system, an apparatus, and a computer storage medium.
Background
With the gradual development of intelligent manufacturing, networking has become one of the trends of industrial automation, and more applications are gradually bussed. The application of the bus reduces the cost for users, enhances the reliability of the system, and simultaneously makes the system more simple and easy to maintain; on the other hand, an informatization channel is provided for future factory intellectualization through system networking, so that the 4.0 industrial basic guarantee is obtained. Industrial field buses represented by Ethercat (Ethernet industrial bus) and PN (Siemens industrial bus) solve the defects of the traditional control (such as a distributed system based on pulse control) system in the aspect of multi-axis synchronization, and improve the system performance to a certain extent; in some application scenarios, however, multi-axis synchronous control requires data interaction between multiple devices, i.e., slave-to-slave cross communication, due to the complexity of the system, which requires knowledge of certain characteristics of the axes having a synchronous relationship.
In the prior art, two schemes are generally adopted to realize data interaction between devices in multi-axis synchronous control. The first scheme is that a second set of buses is additionally added independently of the basic bus topology, and the second set of buses are used for realizing communication among the slave stations independently; however, this solution is complex in topology, requires two sets of network access, and has significant limitations from the number of slave communications. A unified network is adopted, data interaction among the slave stations needs to be conducted through unified coordination processing by the master station, namely the master station collects information of each slave station in a period and then transmits the data to each slave station respectively after an uncertain period; however, this scheme suffers from the real-time nature of data transfer and is not suitable for high performance control systems with uncertainty.
Therefore, how to realize data interaction between slave stations in a determined, low-delay and high-synchronization mode on the basis of adopting the same network topology is a difficult problem to be solved urgently in the technical field of industrial communication.
Disclosure of Invention
The invention mainly aims to provide an industrial communication method, an industrial communication system, equipment and a computer storage medium, aiming at realizing data interaction between slave stations in a determined, low-delay and high-synchronization mode on the basis of the same network topology.
In order to achieve the above object, the present invention provides an industrial communication method applied to an industrial communication system including a master station, a first slave station, and a second slave station, the master station being connected to the first slave station, the first slave station being connected to the second slave station, the first slave station being provided with a first frame processing unit, the second slave station being provided with a second frame processing unit, the industrial communication method including:
acquiring a data frame transmitted by the master station based on the first slave station;
calling the first frame processing unit to upload first data content to the data frame so as to generate a target data frame;
and transferring the target data frame to the second slave station, and calling the second frame processing unit to download the first data content from the target data frame.
Further, the step of invoking the first frame processing unit to upload data to the data frame may include:
acquiring first mapping information based on the first address mapping unit;
calling the first frame processing unit to upload the first data content to a preset logic area of the data frame according to the first mapping information;
the step of invoking the second frame processing unit to download data from the data frame may include:
acquiring second mapping information based on the second address mapping unit;
and calling the second frame processing unit to download the first data content from the preset logic area according to the second mapping information.
Further, the second slave station is further provided with a data storage unit, and the step of invoking the second frame processing unit to download data from the data frame may include:
acquiring storage information based on the data storage unit;
and calling the second frame processing unit to download the first data content from the data frame, and storing the first data content to a preset storage area according to the storage information.
Further, the master station is provided with a file configuration unit, and the industrial communication method further comprises:
calling the file configuration unit industrial communication system to generate a configuration file, wherein the configuration file comprises the first mapping information, the second mapping information and the storage information;
communicating the configuration file to the first secondary station and/or the second secondary station.
Further, the industrial communication method further comprises:
uploading second data content to the data frame based on the master station;
transferring the data frame to the first slave station, and calling the first frame processing unit to download the second data content from the data frame; and/or the like, and/or,
and transferring the data frame to the second slave station, and calling the second frame processing unit to download the second data content from the data frame.
Further, the industrial communication method further comprises:
and setting an interrupt signal for the first slave station and the second slave station, wherein the interrupt signal comprises a synchronization signal and an interaction signal, the synchronization signal is used for synchronizing the instruction execution actions of the first slave station and the second slave station, and the interrupt signal is used for checking and determining that the data frame is complete and error-free in the transmission process.
Further, the interactive signal comprises a first interactive signal and a second interactive signal, the first interactive signal is used for the verification and determination process of the data frame transmitted between the master station and the first slave station, and the second interactive signal is used for the verification and determination process of the data frame transmitted between the first slave station and the second slave station;
after the step of acquiring the data frame transmitted by the master station based on the first slave station, the method further comprises:
checking whether the data frame is complete and error-free;
if the data frame is complete and correct, the first interaction signal is sent;
after the step of communicating the target data frame to the second secondary station, further comprising:
checking whether the target data frame is complete and error-free;
and if the target data frame is complete and correct, sending the second interactive signal.
Further, to achieve the above object, the present invention also provides an industrial communication system comprising:
the master station is used for transmitting data frames to the first slave station and the second slave station;
a first slave station for acquiring a data frame transmitted by the master station; a first frame processing unit is called to upload first data content to the data frame so as to generate a target data frame;
a second secondary station for acquiring the target data frame communicated by the first secondary station; and calling a second frame processing unit to download the first data content from the target data frame.
Each functional module of the industrial communication system of the present invention implements the steps of the industrial communication method as described above when operating.
In addition, to achieve the above object, the present invention also provides a terminal device, including: a memory, a processor and an industrial communication program stored on the memory and executable on the processor, the industrial communication program when executed by the processor implementing the steps of the industrial communication method as described above.
Furthermore, to achieve the above object, the present invention also provides a computer storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the industrial communication method as described above.
Furthermore, an embodiment of the present invention further provides a computer program product, which includes an industrial communication program, and when the industrial communication program is executed by a processor, the steps of the industrial communication method described above are implemented.
The steps implemented when the industrial communication program running on the processor is executed may refer to the embodiments of the industrial communication method of the present invention, and are not described herein again.
The industrial communication method, the industrial communication system, the equipment and the computer storage medium provided by the invention are characterized in that the data frame sent by the main station is acquired based on the first slave station; calling the first frame processing unit to upload first data content to the data frame so as to generate a target data frame; and transferring the target data frame to the second slave station, and calling the second frame processing unit to download the first data content from the target data frame.
The data interaction method comprises the steps that a data frame is sent to a first slave station through a master station, after the data frame is obtained, the first slave station calls a first frame processing unit to upload first data content needing to be transmitted to a second slave station to the data frame, so that a corresponding target data frame is generated, the target data frame is continuously transmitted to the second slave station, after the target data frame is obtained, the second slave station calls a second frame processing unit to download the first data content uploaded by the first slave station from the target data frame, and therefore the data interaction between the first slave station and the second slave station is completed.
Therefore, the industrial communication method provided by the invention does not need to respectively realize data interaction between the master station and the slave station and data interaction between the slave station and the master station through two sets of network bus structures as in the prior art, and the situation that the data interaction between the slave stations needs to be processed by the master station, so that the delay of the data interaction is high can not occur, but the data interaction between the slave stations is directly carried out on the basis of a unified network topology structure, so that the data interaction between the slave stations can be realized in a determined, low-delay and high-synchronization mode.
Drawings
Fig. 1 is a schematic structural diagram of a hardware operating environment of a terminal device according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating an embodiment of an industrial communication method of the present invention;
FIG. 3 is a schematic diagram of a network topology according to an embodiment of the present invention;
FIG. 4 is a block diagram of an application of the network topology of FIG. 3 to implement slave cross-communication;
fig. 5 is a schematic structural diagram of an industrial communication system according to an embodiment of the present invention;
FIG. 6 is a flow diagram of a slave cross communication configuration to which an embodiment of the present invention relates;
fig. 7 is a schematic structural diagram of a data frame according to an embodiment of the present invention;
fig. 8 is a block diagram of a flow of data interaction between a master station and a slave station, and between a slave station and a slave station according to an embodiment of the present invention;
fig. 9 is a block diagram of an industrial communication system according to the present invention.
The objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment related to a terminal device according to an embodiment of the present invention.
It should be noted that fig. 1 is a schematic structural diagram of a hardware operating environment of the terminal device. The terminal equipment of the embodiment of the invention can be electronic terminals, PCs, portable computers and other terminal equipment for realizing file storage of the block chain.
As shown in fig. 1, the terminal device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may optionally be a memory industrial communication system separate from the processor 1001 described above.
Those skilled in the art will appreciate that the terminal device configuration shown in fig. 1 is not intended to be limiting of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a distributed task processing program. Among them, the operating system is a program that manages and controls the hardware and software resources of the sample terminal device, a handler that supports distributed tasks, and the execution of other software or programs.
In the terminal apparatus shown in fig. 1, the user interface 1003 is mainly used for data communication with each terminal; the network interface 1004 is mainly used for connecting a background server and performing data communication with the background server; and the processor 1001 may be configured to invoke the industrial communication program stored in the memory 1005 and perform the following operations:
acquiring a data frame transmitted by the master station based on the first slave station;
calling the first frame processing unit to upload first data content to the data frame so as to generate a target data frame;
and transferring the target data frame to the second slave station, and calling the second frame processing unit to download the first data content from the target data frame.
Further, the processor 1001 may invoke an industrial communication program stored in the memory 1005, and also perform the following operations:
acquiring first mapping information based on the first address mapping unit;
calling the first frame processing unit to upload the first data content to a preset logic area of the data frame according to the first mapping information;
acquiring second mapping information based on the second address mapping unit;
and calling the second frame processing unit to download the first data content from the preset logic area according to the second mapping information.
Further, the processor 1001 may invoke an industrial communication program stored in the memory 1005, and also perform the following operations:
acquiring storage information based on the data storage unit;
and calling the second frame processing unit to download the first data content from the data frame, and storing the first data content to a preset storage area according to the storage information.
Further, the processor 1001 may invoke an industrial communication program stored in the memory 1005, and also perform the following operations:
calling the file configuration unit industrial communication system to generate a configuration file, wherein the configuration file comprises the first mapping information, the second mapping information and the storage information;
communicating the configuration file to the first secondary station and/or the second secondary station.
Further, the processor 1001 may invoke an industrial communication program stored in the memory 1005, and also perform the following operations:
uploading second data content to the data frame based on the master station;
transferring the data frame to the first slave station, and calling the first frame processing unit to download the second data content from the data frame; and/or the like, and/or,
and transferring the data frame to the second slave station through the first slave station, and calling the second frame processing unit to download the second data content from the data frame.
Further, the processor 1001 may invoke an industrial communication program stored in the memory 1005, and also perform the following operations:
setting an interrupt signal for the first slave station and the second slave station, wherein the interrupt signal comprises a synchronization signal and an interaction signal;
instructions to synchronize the first slave station and the second slave station based on the synchronization signal perform an action;
determining whether the data frame communicated in the industrial communication system is complete and error-free based on the interaction signal.
Further, after the step based on the first slave station acquiring the data frame transmitted by the master station, the processor 1001 may call the industrial communication program stored in the memory 1005, and further perform the following operations:
checking whether the data frame is complete and error-free;
and if the data frame is complete and error-free, sending the first interactive signal so as to determine that the data frame transmitted between the master station and the first slave station is complete and error-free based on the first interactive signal.
Further, after the step of transferring the target data frame to the second slave station, the processor 1001 may call the industrial communication program stored in the memory 1005, and further perform the following operations:
checking whether the target data frame is complete and error-free;
and if the target data frame is complete and error-free, sending the second interactive signal so as to determine that the target data frame transmitted between the first slave station and the second slave station is complete and error-free based on the second interactive signal.
Based on the above-described structure, various embodiments of the industrial communication method of the present invention are proposed.
It should be noted that, in the prior art, two schemes are generally adopted to implement data interaction between devices in multi-axis synchronous control. The first scheme is that a second set of buses is additionally added independently of the basic bus topology, and the second set of buses are used for realizing communication among the slave stations independently; however, this solution is complex in topology, requires two sets of network access, and has significant limitations from the number of slave communications. A unified network is adopted, data interaction among the slave stations needs to be conducted through unified coordination processing by the master station, namely the master station collects information of each slave station in a period and then transmits the data to each slave station respectively after an uncertain period; however, this scheme suffers from the real-time nature of data transfer and is not suitable for high performance control systems with uncertainty.
Therefore, how to realize data interaction between slave stations in a determined, low-delay and high-synchronization mode on the basis of adopting the same network topology is a difficult problem to be solved urgently in the technical field of industrial communication.
Based on the above phenomena, embodiments of the industrial communication method of the present invention are proposed. It should be noted that, although a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different than that shown or described herein.
The first embodiment: referring to fig. 2, fig. 2 is a flowchart illustrating an industrial communication method according to a first embodiment of the present invention. An industrial communication method according to the present invention is applied to an industrial communication system that can be applied to a network topology as shown in fig. 3 and that employs a slave-to-slave cross communication framework as shown in fig. 4, the industrial communication system including a master station, a first slave station, and a second slave station, the master station being connected to the first slave station, the first slave station being connected to the second slave station, the first slave station being provided with a first frame processing unit, the second slave station being provided with a second frame processing unit, the industrial communication method including the steps of:
step S100, acquiring a data frame transmitted by the master station based on the first slave station.
A master station in an industrial communication system transmits a data frame capable of loading data content to a first slave station directly connected with and adjacent to the master station, and then the first slave station acquires the data frame capable of loading the data content.
Step S200, the first frame processing unit is invoked to upload first data content to the data frame, so as to generate a target data frame.
After receiving the data frame sent by the master station, the first slave station in the industrial communication system calls the first frame processing unit to upload the first data content needing to be transferred to the second slave station to the data frame, so that a target data frame is generated.
Step S300, transferring the target data frame to the second slave station, and invoking the second frame processing unit to download the first data content from the target data frame.
Referring to fig. 8, after generating a target data frame based on a data frame, a first slave station of the industrial communication system continuously transfers the target data frame containing first data content to a second slave station, and after receiving the target data frame, the second slave station calls a second frame processing unit to download the first data content from the target data frame, thereby completing a process of data interaction of the first slave station with the second slave station.
In this embodiment, it is assumed that the target data frame transfer flow is a master station, a first slave station, and a second slave station, and after the target data frame is transferred to the second slave station, the target data frame returns from the second slave station to the master station, at this time, the second slave station calls the second frame processing unit to upload data content to be transferred to the first slave station to the target data frame to generate a return data frame, and then transfers the return data frame to the first slave station, and the first slave station calls the first frame processing unit to download the data content from the return data frame, so as to complete a process of data interaction performed by the second slave station to the first slave station, and finally, transfers the return data frame to the master station, thereby completing the complete data frame transfer flow.
In this embodiment, a master station in an industrial communication system transmits a data frame capable of loading data content to a first slave station directly connected to and adjacent to the master station, and then the first slave station acquires the data frame capable of loading data content; after a first slave station in the industrial communication system receives a data frame sent by a master station, a first frame processing unit is called to upload first data content needing to be transmitted to a second slave station to the data frame, and therefore a target data frame is generated; the first slave station of the industrial communication system generates a target data frame based on the data frame and then transfers the target data frame containing first data content to the second slave station, the second slave station calls the second frame processing unit to download the first data content from the target data frame after receiving the target data frame, and when the target data frame returns from the second slave station to the master station, the second slave station uploads the data content needing to be transferred to the first slave station to the target data frame, so that a return data frame is generated based on the target data frame, when the return data frame passes through the first slave station after returning to the master station, the first slave station can download the data content uploaded by the second slave station, and the data interaction process between the first slave station and the second slave station is completed.
Therefore, the industrial communication method provided by the invention can complete data interaction among the slave stations in the same period on the basis of adopting the same network topology, namely, the data interaction among the slave stations can be realized in a determined, low-delay and high-synchronization mode.
Further, a second embodiment of the industrial communication method of the present invention is proposed based on the above-described first embodiment of the industrial communication method.
In the second embodiment of the industrial communication method of the present invention, the first slave station further includes a first address mapping unit, the second slave station further includes a second address mapping unit, and in step S200, the step of invoking the first frame processing unit to upload data to the data frame may include:
step S201, acquiring first mapping information based on the first address mapping unit.
It should be noted that, in this embodiment, the first mapping information corresponds to a preset logical area, the data frame has a plurality of logical areas for storing data contents, and the first mapping information includes information that a corresponding first data content should be uploaded in a certain logical area of the data frame.
Referring to fig. 5, the first slave station of the industrial communication system acquires information including that the first frame processing unit should upload the corresponding first data content in a certain logical area of the data frame according to the first address mapping unit.
Step S202, invoking the first frame processing unit to upload the first data content to a preset logic area of the data frame according to the first mapping information.
And the first slave station of the industrial communication system calls the first frame processing unit to upload the first data content needing to be transmitted to the second slave station to the corresponding logic area in the data frame for storage according to the first mapping information, so that the second slave station can read the first data content in the corresponding logic area and does not influence other stored data content in the data frame.
It can be understood that, when the data frame is returned to the master station by the second slave station and is routed to the first slave station, the first slave station acquires the mapping information according to the first address mapping unit, and downloads the data content uploaded by the second slave station and needing to be transferred to the first slave station in the logic area corresponding to the data frame according to the mapping information.
In this embodiment, in step S300, the step of invoking the second frame processing unit to download data from the data frame may include:
step S301, obtaining second mapping information based on the second address mapping unit.
It should be noted that, in this embodiment, the second mapping information corresponds to a preset logical area, the data frame has a plurality of logical areas for storing data contents, and the second mapping information includes information that the second frame processing unit should download the corresponding first data contents in a certain logical area of the data frame.
The second slave station of the industrial communication system acquires information including a first data content to be downloaded in a certain logical area of the data frame, based on the second address mapping unit.
Step S302, invoking the second frame processing unit to download the first data content from the preset logic area according to the second mapping information.
And the second slave station of the industrial communication system calls the second frame processing unit to download the first data content uploaded by the first slave station in the corresponding logic area in the data frame according to the second mapping information, so that the data transfer from the first slave station to the second slave station is completed.
It can be understood that, when the data frame is returned to the master station by the second slave station and is routed to the first slave station, the first slave station acquires the mapping information according to the first address mapping unit, and downloads the data content uploaded by the second slave station and needing to be transferred to the first slave station in the logic area corresponding to the data frame according to the mapping information.
In this way, in the present embodiment, by providing the first address mapping unit in the first slave station and providing the second address mapping unit in the second slave station, the first slave station can accurately upload/download the data content in the logical area corresponding to the data frame according to the mapping information provided by the first address mapping unit, and the second slave station can accurately download/upload the data content in the logical area corresponding to the data frame according to the mapping information provided by the second address mapping unit, the reliability of the data interaction process between the first slave station and the second slave station is improved.
Further, a third embodiment of the industrial communication method of the present invention is proposed based on the above-described first embodiment of the industrial communication method.
In a third embodiment of the industrial communication method of the present invention, the second slave station further includes a data storage unit, and in the step S300, the step of invoking the second frame processing unit to download data from the data frame further includes:
step S303, obtaining storage information based on the data storage unit.
In this embodiment, the storage information corresponds to a preset storage area, the second slave station is provided with a plurality of storage areas for storing data contents, and the storage information includes information that the second frame processing unit should store the first data contents uploaded to the data frame by the first slave station into a certain storage area.
Referring to fig. 5, the second slave station of the industrial communication system acquires information including that the first data content should be stored in a certain storage area from the data storage unit.
Step S304, invoking the second frame processing unit to download the first data content from the data frame, and storing the first data content to a preset storage area according to the storage information.
And the second slave station of the industrial communication system calls the second frame processing unit to download the first data content in the data frame to the corresponding storage area for storage according to the storage information, so that the storage management of the data content in the second slave station is realized.
It can be understood that, in this embodiment, the first slave station is also provided with a data storage unit, and when the data frame is returned to the master station and passes through the first slave station by the second slave station, the first slave station acquires the storage information according to the data storage unit, and calls the first frame processing unit to download the data content uploaded by the second slave station in the data frame to the corresponding storage area for storage according to the storage information.
In this way, in the present embodiment, by providing the first address mapping unit in the first slave station and providing the second address mapping unit in the second slave station, the first slave station can accurately upload/download the data content in the logical area corresponding to the data frame according to the mapping information provided by the first address mapping unit, and the second slave station can accurately download/upload the data content in the logical area corresponding to the data frame according to the mapping information provided by the second address mapping unit, the reliability of the data interaction process between the first slave station and the second slave station is improved.
Further, a fourth embodiment of the industrial communication method of the present invention is proposed based on the above-described first embodiment of the industrial communication method.
In a fourth embodiment of the industrial communication method of the present invention, the master station is provided with a file configuration unit, and the industrial communication method further includes:
step a1, invoking the file configuration unit industrial communication system to generate a configuration file, wherein the configuration file includes the first mapping information, the second mapping information, and the storage information.
Referring to fig. 6, in this embodiment, the first slave station (or the second slave station) calls the first frame processing unit (or the second frame processing unit) to download the data content from the logic area corresponding to the data frame according to the mapping information provided by the address mapping unit, and stores the data content in the corresponding storage area according to the storage information provided by the data storage unit, where the address mapping unit and the data storage unit are provided by the master station during the configuration process. That is, the master station is provided with a file configuration unit, and the file configuration unit is used for calculating the relevant parameters of the address mapping unit and the data storage unit in the process of realizing the analysis and synthesis of the master station configuration file according to the selected data object, the station of cross communication and the type of cross communication, and generating the corresponding configuration file.
Step A2, transferring the configuration file to the first slave station and/or the second slave station.
After generating the configuration file containing the relevant parameters of the address mapping unit and the data storage unit, the master station transmits the configuration file to the corresponding slave stations, namely the first slave station and the second slave station, so that the first slave station and the second slave station carry out the configuration of the address mapping unit and the data storage unit according to the configuration file generated by the master station.
In this way, the present embodiment provides specific steps for configuring the address mapping unit and the data storage unit of the slave station, that is, the master station provides the basis for the cross communication of the slave stations, thereby improving the practicability of the industrial communication method of the present invention.
Further, a fifth embodiment of the industrial communication method of the present invention is proposed based on the above-described first embodiment of the industrial communication method.
In a fifth embodiment of the industrial communication method of the present invention, the industrial communication method further includes:
and B1, uploading second data content to the data frame based on the main station.
The master station of the industrial communication system uploads data content to be communicated to the first slave station/second slave station to a data frame.
And step B2, transferring the data frame to the first slave station, and calling the first frame processing unit to download the second data content from the data frame.
The master station of the industrial communication system sends the data frame to the direction of the master station, the first slave station and the second slave station for transmission, so that when the data frame passes through the first slave station, the first slave station can download the corresponding data content required by the master station to be transmitted to the first slave station from the data frame and simultaneously upload the data content required by the first slave station to be transmitted to the second slave station.
And step B3, transferring the data frame to the second slave station through the first slave station, and calling the second frame processing unit to download the second data content from the data frame.
The master station of the industrial communication system continuously transmits the data frames to the second slave station through the first slave station, so that the second slave station can download the corresponding data content which needs to be transmitted to the second slave station by the master station and the data content uploaded by the first slave station from the data frames, and upload the data content which needs to be transmitted to the first slave station by the second slave station to the data frames.
Referring to fig. 7, it can be understood that, during a data frame transmission period, data contents of the master station interacting with each slave station are preferentially allocated to logical positions in the data frame structure, and for data contents of each slave station to perform cross communication, the relevant logical positions need to be reserved in the data frame structure.
It should be noted that, in the fourth embodiment, the master station transfers the configuration file to the first slave station/the second slave station to implement the configuration of the address mapping unit and the data storage unit of the first slave station/the second slave station, which may also be implemented in the form of this embodiment, that is, the master station uploads the configuration file to the data frame and transfers the data frame to the first slave station and the second slave station in sequence, so that the first slave station and the second slave station receive the configuration file through the transfer of the data frame, and thus the configuration of the address mapping unit and the data storage unit is completed according to the configuration file.
Therefore, the embodiment can realize data interaction between the slave stations through the data frames while the master station transmits data contents to the slave stations through the form of transmitting the data frames, thereby realizing data interaction between the slave stations in a determined, low-delay and high-synchronization form on the basis of adopting the same network topology, and improving the practicability of the industrial communication method.
Further, a sixth embodiment of the industrial communication method of the present invention is proposed based on the above-described first embodiment of the industrial communication method.
In a sixth embodiment of the industrial communication method of the present invention, the industrial communication method further includes:
step C1, setting interrupt signals for the first slave station and the second slave station, wherein the interrupt signals include synchronization signals and interaction signals.
The industrial communication system uploads data to be interacted in a forward frame transmission direction (a master station, a first slave station and a second slave station), downloads the data to be interacted in a reverse frame transmission direction (a second slave station, a first slave station and the master station), and data interaction needs to be completed in the same data frame transmission period, so that data time sequence processing is constrained.
Step C2, synchronizing instructions of the first slave station and the second slave station to perform an action based on the synchronization signal.
The industrial communication system interrupts and restores the instruction execution actions of the first slave station and the second slave station according to the synchronizing signal timing so as to enable the instruction execution actions of the first slave station and the second slave station to be synchronized.
Step C3, determining whether the data frame transferred in the industrial communication system is complete and error-free based on the interaction signal.
The first slave station and the second slave station of the industrial communication system inform the application layer to access or read through interactive signals after the data frame is determined to be complete and error-free.
Specifically, in a possible embodiment, after the step S100, the method further includes:
step D1, checking whether the data frame is complete.
The master station is connected with the first slave station, the master station transmits the data frame to the first slave station, and after the first slave station receives the data frame, whether the data frame is complete or not needs to be checked.
Step D2, if the data frame is complete and error-free, sending the first interactive signal to determine that the data frame transmitted between the master station and the first slave station is complete and error-free based on the first interactive signal;
if the first slave station determines that the data frame is correct, the first slave station (physical layer) transmits a first interactive signal to inform the device (application layer) to access the data content for the data frame.
It is to be understood that, in the present embodiment, in step S300, after the step of transferring the target data frame to the second slave station, the method further includes:
step E1, checking whether the target data frame is complete and error-free.
In this embodiment, the first slave station is connected to the second slave station, the first slave station transmits the data frame to the second slave station, and after receiving the data frame, the second slave station needs to check whether the data frame is complete.
Step E2, if the target data frame is complete and error-free, sending the second interactive signal to determine that the target data frame transferred between the first slave station and the second slave station is complete and error-free based on the second interactive signal.
The second slave station determines that the data frame is complete and error free, the second slave station (physical layer) sends a second interactive signal to inform the device (application layer) to access the data content for the data frame.
Thus, in the embodiment, three interrupt signals are set in the slave station, where the interrupt signals include a synchronization signal, a first interaction signal and a second interaction signal, so that when the industrial communication system completes data interaction in the same data frame transmission period, a constraint effect on data timing processing is achieved, and the practicability of the industrial communication method of the present invention is improved.
In addition, referring to fig. 9, an embodiment of the present invention further provides an industrial communication system, where the industrial communication system includes:
the master station is used for transmitting data frames to the first slave station and the second slave station;
a first slave station for acquiring a data frame transmitted by the master station; a first frame processing unit is called to upload first data content to the data frame so as to generate a target data frame;
a second secondary station for acquiring the target data frame communicated by the first secondary station; and calling a second frame processing unit to download the first data content from the target data frame.
Preferably, the first secondary station comprises:
the first address mapping unit is used for acquiring first mapping information;
and the first frame processing unit is used for uploading the first data content to a preset logic area of the data frame according to the first mapping information.
Preferably, the second secondary station comprises:
the second address mapping unit is used for acquiring the first mapping information;
and the second frame processing unit is used for downloading the first data content from the preset logic area according to the second mapping information.
Preferably, the second secondary station further comprises:
and the data storage unit is used for acquiring the storage information.
Preferably, the master station further comprises:
and the file configuration unit is used for generating a configuration file by an industrial communication system of the industrial communication system, wherein the configuration file comprises the first mapping information, the second mapping information and the storage information.
Preferably, the first secondary station further comprises:
the device comprises a signal setting unit, a signal processing unit and a control unit, wherein the signal setting unit is used for setting an interrupt signal, and the interrupt signal comprises a synchronous signal and an interactive signal.
Preferably, the second secondary station further comprises:
the device comprises a signal setting unit, a signal processing unit and a control unit, wherein the signal setting unit is used for setting an interrupt signal, and the interrupt signal comprises a synchronous signal and an interactive signal.
In addition, an embodiment of the present invention further provides a terminal device, where the terminal device includes: a memory, a processor and an industrial communication program stored on the memory and executable on the processor, which industrial communication program when executed by the processor implements the steps of the industrial communication method as described above.
The steps implemented when the industrial communication program running on the processor is executed may refer to the embodiments of the industrial communication method of the present invention, and are not described herein again.
Furthermore, an embodiment of the present invention further provides a storage medium applied to a computer, where the storage medium may be a non-volatile computer-readable storage medium, and the storage medium stores an industrial communication program, and the industrial communication program, when executed by a processor, implements the steps of the industrial communication method as described above.
The steps implemented when the industrial communication program running on the processor is executed may refer to the embodiments of the industrial communication method of the present invention, and are not described herein again.
Furthermore, an embodiment of the present invention further provides a computer program product, which includes an industrial communication program, and when the industrial communication program is executed by a processor, the steps of the industrial communication method described above are implemented.
The steps implemented when the industrial communication program running on the processor is executed may refer to the embodiments of the industrial communication method of the present invention, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on this understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for causing an industrial communication system to execute the methods according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An industrial communication method applied to an industrial communication system including a master station, a first slave station, and a second slave station, wherein the master station is connected to the first slave station, the first slave station is connected to the second slave station, the first slave station is provided with a first frame processing unit, and the second slave station is provided with a second frame processing unit, the industrial communication method comprising the steps of:
acquiring a data frame transmitted by the master station based on the first slave station;
calling the first frame processing unit to upload first data content to the data frame so as to generate a target data frame;
and transferring the target data frame to the second slave station, and calling the second frame processing unit to download the first data content from the target data frame.
2. The industrial communication method of claim 1, wherein the first slave station is further provided with a first address mapping unit, the second slave station is further provided with a second address mapping unit, and the step of invoking the first frame processing unit to upload data to the data frame may include:
acquiring first mapping information based on the first address mapping unit;
calling the first frame processing unit to upload the first data content to a preset logic area of the data frame according to the first mapping information;
the step of invoking the second frame processing unit to download data from the data frame may include:
acquiring second mapping information based on the second address mapping unit;
and calling the second frame processing unit to download the first data content from the preset logic area according to the second mapping information.
3. The industrial communication method of claim 1, wherein the second slave station is further provided with a data storage unit, and the step of invoking the second frame processing unit to download data from the data frame may comprise:
acquiring storage information based on the data storage unit;
and calling the second frame processing unit to download the first data content from the data frame, and storing the first data content to a preset storage area according to the storage information.
4. The industrial communication method according to claim 2 or 3, wherein the master station is provided with a file configuration unit, the industrial communication method further comprising:
calling the file configuration unit industrial communication system to generate a configuration file, wherein the configuration file comprises the first mapping information, the second mapping information and the storage information;
communicating the configuration file to the first secondary station and/or the second secondary station.
5. The industrial communication method of claim 1, further comprising:
uploading second data content to the data frame based on the master station;
transferring the data frame to the first slave station, and calling the first frame processing unit to download the second data content from the data frame; and/or the like, and/or,
and transferring the data frame to the second slave station through the first slave station, and calling the second frame processing unit to download the second data content from the data frame.
6. The industrial communication method of claim 1, further comprising:
setting an interrupt signal for the first slave station and the second slave station, wherein the interrupt signal comprises a synchronization signal and an interaction signal;
instructions to synchronize the first slave station and the second slave station based on the synchronization signal perform an action;
determining whether the data frame communicated in the industrial communication system is complete and error-free based on the interaction signal.
7. The industrial communication method of claim 6, wherein the interactive signal comprises a first interactive signal and a second interactive signal;
after the step of acquiring the data frame transmitted by the master station based on the first slave station, the method further comprises:
checking whether the data frame is complete and error-free;
if the data frame is complete and error-free, sending the first interactive signal so as to determine that the data frame transmitted between the master station and the first slave station is complete and error-free based on the first interactive signal;
after the step of communicating the target data frame to the second secondary station, further comprising:
checking whether the target data frame is complete and error-free;
and if the target data frame is complete and error-free, sending the second interactive signal so as to determine that the target data frame transmitted between the first slave station and the second slave station is complete and error-free based on the second interactive signal.
8. An industrial communication system, characterized in that the industrial communication system comprises:
the master station is used for transmitting data frames to the first slave station and the second slave station;
a first slave station for acquiring a data frame transmitted by the master station; a first frame processing unit is called to upload first data content to the data frame so as to generate a target data frame;
a second secondary station for acquiring the target data frame communicated by the first secondary station; and calling a second frame processing unit to download the first data content from the target data frame.
9. A terminal device, characterized in that the terminal device comprises: memory, a processor and an industrial communication program stored on the memory and executable on the processor, the industrial communication program when executed by the processor implementing the steps of the industrial communication method as claimed in any one of claims 1 to 7.
10. A computer storage medium, characterized in that the computer storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the industrial communication method according to any one of claims 1 to 7.
CN202111627864.2A 2021-12-28 2021-12-28 Industrial communication method, industrial communication system, device, and storage medium Pending CN114390042A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111627864.2A CN114390042A (en) 2021-12-28 2021-12-28 Industrial communication method, industrial communication system, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111627864.2A CN114390042A (en) 2021-12-28 2021-12-28 Industrial communication method, industrial communication system, device, and storage medium

Publications (1)

Publication Number Publication Date
CN114390042A true CN114390042A (en) 2022-04-22

Family

ID=81198574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111627864.2A Pending CN114390042A (en) 2021-12-28 2021-12-28 Industrial communication method, industrial communication system, device, and storage medium

Country Status (1)

Country Link
CN (1) CN114390042A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917316A (en) * 2010-09-13 2010-12-15 北京航空航天大学 Communication method and device for high-speed real-time industrial Ethernet
CN105450489A (en) * 2015-12-02 2016-03-30 大连理工计算机控制工程有限公司 HEBus efficient fieldbus system for preferably realizing shortest message in output and communication method
CN105656592A (en) * 2015-12-31 2016-06-08 深圳市汇川技术股份有限公司 Ethercat communication system master station and communication method
CN110166335A (en) * 2019-04-02 2019-08-23 深圳市汇川技术股份有限公司 EtherCAT slave station and slave station synchronous communication method, control system, equipment and storage medium
CN113238537A (en) * 2021-06-07 2021-08-10 宁波菲仕技术股份有限公司 High-speed industrial field bus based on Ethernet and data transmission method thereof
CN113746714A (en) * 2021-11-05 2021-12-03 深圳艾灵网络有限公司 Communication method, communication system and communication device based on master station and slave station

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917316A (en) * 2010-09-13 2010-12-15 北京航空航天大学 Communication method and device for high-speed real-time industrial Ethernet
CN105450489A (en) * 2015-12-02 2016-03-30 大连理工计算机控制工程有限公司 HEBus efficient fieldbus system for preferably realizing shortest message in output and communication method
CN105656592A (en) * 2015-12-31 2016-06-08 深圳市汇川技术股份有限公司 Ethercat communication system master station and communication method
CN110166335A (en) * 2019-04-02 2019-08-23 深圳市汇川技术股份有限公司 EtherCAT slave station and slave station synchronous communication method, control system, equipment and storage medium
CN113238537A (en) * 2021-06-07 2021-08-10 宁波菲仕技术股份有限公司 High-speed industrial field bus based on Ethernet and data transmission method thereof
CN113746714A (en) * 2021-11-05 2021-12-03 深圳艾灵网络有限公司 Communication method, communication system and communication device based on master station and slave station

Similar Documents

Publication Publication Date Title
US8046444B2 (en) Universal network adapter for industrial control networks
CN111026439A (en) Application program compatibility method, device, equipment and computer storage medium
EP3940998A1 (en) Control system, apparatus, and control method
CN114510452A (en) SOC (System on chip) integration method and device and electronic equipment
CN109471647A (en) A kind of update method of data, device, electronic equipment and readable medium
CN114285695B (en) Communication method, device, apparatus, system and storage medium
CN113572822A (en) Cloud terminal simulation control method and device, storage medium and electronic equipment
CN109840109B (en) Method and apparatus for generating software development toolkit
CN114390042A (en) Industrial communication method, industrial communication system, device, and storage medium
CN117041111A (en) Vehicle cloud function test method and device, electronic equipment and storage medium
CN115167874B (en) Automatic driving software mirror image deployment method and device, electronic equipment and readable medium
CN114489850B (en) Calling method and device of design software, computer equipment and storage medium
CN115562887A (en) Inter-core data communication method, system, device and medium based on data package
CN110532115B (en) System, method and apparatus for developing smart contracts
CN113946614A (en) iOS (Internet operating System) static library-based network data transmission method, device and system
CN114564241A (en) Hardware device access method and device, computer device and storage medium
CN110050291B (en) Aggregation platform, demand owner and methods thereof
CN115509146B (en) Distributed communication resource integration method for flight maintenance simulator
RU2815598C1 (en) Method of creating robotic systems
Thramboulidis et al. Field device specification for the development of function block oriented engineering support systems
CN115794659B (en) Distributed parallel testing method, device, equipment and medium for CFD software
CN111314457B (en) Method and device for setting virtual private cloud
US20230401273A1 (en) Method, server, and system for image deployment
WO2023044673A1 (en) Method and apparatus for deploying industrial edge application, and computer-readable storage medium
EP1999523B1 (en) Control and communication system including at least one automation unit

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