CN105429836B - A kind of real-time ethernet EtherCAT main station system - Google Patents

A kind of real-time ethernet EtherCAT main station system Download PDF

Info

Publication number
CN105429836B
CN105429836B CN201510934286.5A CN201510934286A CN105429836B CN 105429836 B CN105429836 B CN 105429836B CN 201510934286 A CN201510934286 A CN 201510934286A CN 105429836 B CN105429836 B CN 105429836B
Authority
CN
China
Prior art keywords
master station
ethercat
microprocessor
ethernet
real
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510934286.5A
Other languages
Chinese (zh)
Other versions
CN105429836A (en
Inventor
黄兵
范文斌
宋栋
董敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cec Intelligent Technology Co ltd
Original Assignee
No6 Research Institute Of China Electronics Corp
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 No6 Research Institute Of China Electronics Corp filed Critical No6 Research Institute Of China Electronics Corp
Priority to CN201510934286.5A priority Critical patent/CN105429836B/en
Publication of CN105429836A publication Critical patent/CN105429836A/en
Application granted granted Critical
Publication of CN105429836B publication Critical patent/CN105429836B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40019Details regarding a bus master
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/403Bus networks with centralised control, e.g. polling

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention belongs to Ethernet auto-control technical fields, are related to a kind of real-time ethernet EtherCAT main station system.The EtherCAT main station system includes: microprocessor, master station module, ethernet controller, program storage, data storage.The microprocessor is connected by data/address bus with master station module, ethernet controller, program storage and data storage.The present invention parses EtherCAT master station protocol using dedicated EtherCAT Industrial Ethernet module, main website is promoted from hardware responds real-time, solves the problem of soft protocol stack of the main website because using the general-purpose operating systems such as Windows, Linux, Android in the prior art, real-time is affected as EtherCAT bus response bottleneck.

Description

Real-time Ethernet EtherCAT main station system
Technical Field
The invention belongs to the field of EtherCAT (Ethernet control automation technology), and particularly relates to an industrial real-time Ethernet EtherCAT master station system.
Background
EtherCAT is proposed by the company beifu in germany, and has been widely used at present due to its characteristics of high network real-time performance, flexible topological structure, simple system configuration, etc. EtherCAT adopts a master-slave mode structure, and a master station can be a common PC. The control period is sent from the master station, which sends downlink telegrams. The data frame traverses all the slave station devices, each device analyzes a message addressed to a local machine when the data frame passes through, reads data or writes data into a specified position in the message according to a command in a message header, and the slave station hardware adds 1 to a working counter of the message to indicate that the data is processed. After accessing the last slave station located in the logical position of the whole system, the slave station directly transmits the processed data frame to the master station as an uplink telegram. And after receiving the uplink telegram, the master station processes the return data and finishes one-time communication.
At present, the EtherCAT master station is mainly implemented by adopting a solution based on a PC under a Windows operating system by germany befort corporation, and certainly, an embedded solution based on a Linux operating system and an Android operating system is also available. EtherCAT is used as an industrial field bus, and has the remarkable characteristic of response real-time performance, but if a main station adopts a soft protocol stack on a general operating system (such as Windows, Linux and Android), the protocol analysis process of the EtherCAT needs to be called by the operating system, the real-time performance of the EtherCAT is influenced, and the EtherCAT bus response bottleneck is also formed.
Disclosure of Invention
In order to solve the problem of response bottleneck of an EtherCAT bus in the prior art, the invention provides a real-time Ethernet EtherCAT master station system.
In order to achieve the purpose, the invention adopts the following technical scheme:
a real-time Ethernet EtherCAT master station system comprises: the system comprises a microprocessor, a master station module, an Ethernet controller, a program memory and a data memory; and the microprocessor is connected with the master station module, the Ethernet controller, the program memory and the data memory through a data bus. Wherein,
the microprocessor realizes control calling of the EtherCAT main station, and comprises communication between the EtherCAT main station and upper computer network configuration software, initialization of the main station module according to instructions of the upper computer network configuration software, and network configuration.
The main station module provides a dual-port RAM which is used as an external RAM of the microprocessor, and the communication function of the EtherCAT main station system is realized.
And the Ethernet controller provides a communication interface between the microprocessor and the upper computer.
The program memory is used for storing a master station control call and an upper computer communication function code, and storing network configuration data (XML file) for the master station module to use.
And the data memory is used for storing data of the master station control calling program and the operation of the upper computer communication function program.
Further, the microprocessor employs a SPARC V832 bit CPU.
Further, the program memory adopts FLASH.
Further, the data memory adopts SDRAM.
Further, the master station module adopts an industrial Ethernet module COMX100 CN-RE.
Furthermore, the master station module provides a diagnosis interface for inter-protocol firmware downloading and factory diagnosis.
Compared with the prior art, the invention has the following beneficial effects:
the invention adopts the special EtherCAT industrial Ethernet module to analyze the EtherCAT master station protocol, improves the response real-time performance of the master station from hardware, and solves the problem that the real-time performance of the master station in the prior art is influenced to become the response bottleneck of the EtherCAT bus because the master station adopts the soft protocol stack of general operating systems such as Windows, Linux, Android and the like.
Drawings
FIG. 1 is a block diagram of a real-time Ethernet EtherCAT master station system;
FIG. 2 is a wiring diagram of the microprocessor and master station module of an embodiment.
Detailed Description
The invention is further illustrated with reference to the following figures and examples.
A real-time ethernet EtherCAT master station system, whose composition block diagram is shown in fig. 1, includes: the system comprises a microprocessor, a master station module, an Ethernet controller, a program memory and a data memory; and the microprocessor is connected with the main station module, the Ethernet controller, the program memory and the data memory through data lines.
The microprocessor realizes control calling of the EtherCAT master station, and comprises functions of communication between the master station and upper computer network configuration software, initialization of an EtherCAT master station module according to instructions of the upper computer network configuration software, network configuration and the like. The microprocessor adopts domestic SPARC V832 bit CPU, and the main frequency can reach 100MHZAnd the external data line can have 32-bit and 16-bit modes, and the storage space and the IO space can be set independently, so that the plate-level memories all adopt the 32-bit mode.
The main station module provides a dual-port RAM, and realizes the main station protocol communication function of the EtherCAT main station system. The master station module adopts a German Helouvern industry Ethernet module COMX100 CN-RE. The COMX100CN-RE module is connected with a microprocessor SPARCV8 to realize the function of an EtherCAT master station. The connection diagram of the COMX100CN-RE module and the SPARC V8 is shown in FIG. 2. The COMX100CN-RE module provides a main device interface which is DPM (Dual Port Memery) and realizes an application program interface of EtherCAT master station related communication through the DPM. The master station module acts as an external RAM to the microprocessor to which it is connected in hardware. In addition, the COMX100CN-RE module also provides a Diagnostic Interface for inter-protocol firmware download (with corresponding WINDOWS software) and factory diagnostics. The Diagnostic Interface hardware provides a UART Interface and a USB Interface. The embodiment adopts a UART mode and can realize RS232 mode communication through 1 path of RS232 transceivers. The microprocessor and the COMX100CN-RE module are hung in an IO area of the microprocessor through a DPM interface, a 16-bit mode is adopted, the microprocessor is a large-end mode U, when the microprocessor is connected with a small-end peripheral COMX, the hardware is connected with data lines in a high-low eight-bit exchange mode, and the chip selection is IO chip selection after IOCS is expanded. Because COMX read-write time sequence requires to utilize the effective BRDYN signal of low level, and microprocessor SPARC V8 peripheral IO BUSY signal is effective for the high level, the two need realize logical matching through a NOT gate.
The Ethernet controller adopts 2 Ethernet control chips MAC0 and MAC1 for providing a communication interface with an upper computer so as to realize the communication configuration management related to the EtherCAT master station.
The program memory is used for storing the main station control call and the upper computer communication function codes and storing network configuration data (XML files) for the main station module to use; the data memory is used for storing data of the master station control calling program and the upper computer communication function program. The program memory ROM adopts FLASH; the data memory RAM adopts SDRAM. In order to maximize the ROM space, 32 bit wide external expansion ROM spliced by two groups of 2 pieces of 16 bit wide FLASH is respectively connected to two ROM address spaces of ROMSN0 and ROMSN1 of a microprocessor. The microprocessor supports 32-bit SDRAM, therefore, the external RAM is also designed to be spliced into 32-bit SDARM by two pieces of 16-bit SDRAM.
The embodiment needs to be extended with 3 peripherals: two ethernet controllers MAC0 and MAC1, one COMX. Since the microprocessor selected by this embodiment has only 1 channel of IO chip select signal IOSN, the IO chip select signal needs to be extended to implement the function of managing 3 IO peripherals. The IOSN signal of the microprocessor gated by the 2-4 decoder is controlled by two address lines A24 and A25 of the CPU, so that 4 chip selection extensions are realized, the first two extension IO chip selections are allocated to MAC0 and MAC1, and the third extension IO chip selection is allocated to COMX.
The present invention is not limited to the above-described embodiments, and any obvious modifications or alterations to the above-described embodiments may be made by those skilled in the art without departing from the spirit of the present invention and the scope of the appended claims.

Claims (3)

1. The utility model provides a real-time ethernet etherCAT master station system, its characterized in that etherCAT master station system includes: the system comprises a microprocessor, a master station module, an Ethernet controller, a program memory and a data memory; the microprocessor is connected with the master station module, the Ethernet controller, the program memory and the data memory through a data bus; wherein,
the microprocessor realizes control calling of the EtherCAT master station, and comprises communication between the EtherCAT master station system and upper computer network configuration software, initialization of the master station module according to instructions of the upper computer network configuration software, and network configuration;
the main station module provides a dual-port RAM which is used as an external RAM of the microprocessor to realize the communication function of the EtherCAT main station system;
the Ethernet controller provides a communication interface between the microprocessor and the upper computer;
the program memory is used for storing a master station control call and an upper computer communication function code, and storing network configuration data for the master station module to use;
the data memory is used for storing data of the master station control calling program and the operation of the upper computer communication function program;
the data memory adopts SDRAM;
the master station module adopts an industrial Ethernet module COMX100 CN-RE;
the main station module provides a diagnosis interface for downloading firmware between protocols and performing factory diagnosis.
2. The real-time ethernet EtherCAT master station system of claim 1, wherein said microprocessor employs a SPARC V832 bit CPU.
3. The real-time ethernet EtherCAT master station system according to claim 1, wherein said program memory employs FLASH.
CN201510934286.5A 2015-12-15 2015-12-15 A kind of real-time ethernet EtherCAT main station system Active CN105429836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510934286.5A CN105429836B (en) 2015-12-15 2015-12-15 A kind of real-time ethernet EtherCAT main station system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510934286.5A CN105429836B (en) 2015-12-15 2015-12-15 A kind of real-time ethernet EtherCAT main station system

Publications (2)

Publication Number Publication Date
CN105429836A CN105429836A (en) 2016-03-23
CN105429836B true CN105429836B (en) 2019-06-14

Family

ID=55507785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510934286.5A Active CN105429836B (en) 2015-12-15 2015-12-15 A kind of real-time ethernet EtherCAT main station system

Country Status (1)

Country Link
CN (1) CN105429836B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106059877B (en) * 2016-07-18 2022-03-15 中电智能科技有限公司 EtherCAT main station module based on SPARC framework CPU
CN106506303A (en) * 2016-10-11 2017-03-15 西安电子科技大学 A kind of main station system of controller real-time ethernet EtherCAT
CN110620712B (en) * 2019-09-03 2021-08-20 武汉久同智能科技有限公司 Method for realizing real-time EtherCAT master station of Window platform
CN111711476B (en) * 2020-04-26 2022-04-19 四川润泽经伟信息技术有限公司 Real-time frame synchronization system and method based on satellite communication countermeasure system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201601689U (en) * 2009-11-24 2010-10-06 中国北车股份有限公司大连电力牵引研发中心 Master station device for controller area network application layer protocol
CN101964737A (en) * 2010-11-08 2011-02-02 国电南瑞科技股份有限公司 Protocol conversion device based on PROFIBUS-DP master station field bus
CN104238517A (en) * 2014-09-16 2014-12-24 西安西热控制技术有限公司 PROFIBUS-DPV1 main communication station and method
CN104552311A (en) * 2014-12-05 2015-04-29 杭州新松机器人自动化有限公司 EtherCAT-based intelligent industrial robot bus module and operating method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201601689U (en) * 2009-11-24 2010-10-06 中国北车股份有限公司大连电力牵引研发中心 Master station device for controller area network application layer protocol
CN101964737A (en) * 2010-11-08 2011-02-02 国电南瑞科技股份有限公司 Protocol conversion device based on PROFIBUS-DP master station field bus
CN104238517A (en) * 2014-09-16 2014-12-24 西安西热控制技术有限公司 PROFIBUS-DPV1 main communication station and method
CN104552311A (en) * 2014-12-05 2015-04-29 杭州新松机器人自动化有限公司 EtherCAT-based intelligent industrial robot bus module and operating method thereof

Also Published As

Publication number Publication date
CN105429836A (en) 2016-03-23

Similar Documents

Publication Publication Date Title
CN105429836B (en) A kind of real-time ethernet EtherCAT main station system
US9479592B2 (en) Remote management for a computing device
CN108351859B (en) Direct memory access for endpoint devices
CN106681949B (en) Direct memory operation implementation method based on consistency acceleration interface
CN114531422A (en) Bus address automatic allocation and identification method, electronic device, storage medium and program product
CN108199941B (en) CAN bus communication method based on CAN2.0B
CN100383544C (en) Method and apparatus for real-time monitoring level signal
CN106814657A (en) Embedded real-time EtherCAT main websites construction method based on ARM
CN109062834B (en) DMA-based SPI communication method, electronic equipment, storage medium and device
CN205212859U (en) System of real -time ethernet etherCAT main website
CN110247936B (en) Communication protocol conversion card and communication protocol conversion system
US11502991B2 (en) Efficiently collecting and distributing multicast data
CN105245424B (en) The method that PROFIBUS DP and PROFINET communication network are interconnected by shared memory
WO2020073614A1 (en) Communication method and device for air conditioner, outdoor unit, indoor unit, and air conditioner
US11288223B2 (en) Bridge chip with function of expanding external devices and associated expansion method
CN106372019B (en) A kind of processing method and timeout treatment device of system bus devices response timeout
CN109032029B (en) External communication method, system and device for industrial server and industrial server
CN203754167U (en) Handheld terminal for elevator debugging and maintenance
CN102708079A (en) Data transmission controlling method and system applied to microcontroller
CN203387692U (en) Wireless gateway equipment capable of data conversion of ZigBee signal with Wi-Fi signal
CN216623029U (en) Auxiliary data processing device and system for programmable logic controller
CN112333067B (en) Communication system and method for parallel operation of multiple controller systems
CN204178365U (en) Transformational structure between LBE bus and isa bus
JP7294912B2 (en) control system
US20130290486A1 (en) Communication device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190710

Address after: 102209 Room 622, Building A, China Electronic Information Security Industry Base, Southern Science City, Changping District, Beijing

Co-patentee after: CHINA ELECTRONICS CORPORATION 6TH Research Institute

Patentee after: CEC INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: No. 25 Tsinghua East Road, Haidian District, Beijing 100085

Patentee before: CHINA ELECTRONICS CORPORATION 6TH Research Institute

CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Song Liding

Inventor after: Huang Bing

Inventor after: Fan Wenbin

Inventor after: Song Dong

Inventor after: Dong Min

Inventor before: Huang Bing

Inventor before: Fan Wenbin

Inventor before: Song Dong

Inventor before: Dong Min

TR01 Transfer of patent right

Effective date of registration: 20240902

Address after: 102200 room 622, building a, China electronic information security industry base, South District, future science city, Changping District, Beijing

Patentee after: CEC INTELLIGENT TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: 102209 room 622, building a, China electronic information security industry base, South District, future science city, Changping District, Beijing

Patentee before: CEC INTELLIGENT TECHNOLOGY Co.,Ltd.

Country or region before: China

Patentee before: CHINA ELECTRONICS CORPORATION 6TH Research Institute