CN201435738Y - PROFIBUS-DP and CAN field bus protocol converter - Google Patents

PROFIBUS-DP and CAN field bus protocol converter Download PDF

Info

Publication number
CN201435738Y
CN201435738Y CN2009201208406U CN200920120840U CN201435738Y CN 201435738 Y CN201435738 Y CN 201435738Y CN 2009201208406 U CN2009201208406 U CN 2009201208406U CN 200920120840 U CN200920120840 U CN 200920120840U CN 201435738 Y CN201435738 Y CN 201435738Y
Authority
CN
China
Prior art keywords
bus
profibus
interface circuit
microcontroller
protocol
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.)
Expired - Fee Related
Application number
CN2009201208406U
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.)
Zhejiang Tengen Electric Co Ltd
Original Assignee
Zhejiang Tengen Electric 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 Zhejiang Tengen Electric Co Ltd filed Critical Zhejiang Tengen Electric Co Ltd
Priority to CN2009201208406U priority Critical patent/CN201435738Y/en
Application granted granted Critical
Publication of CN201435738Y publication Critical patent/CN201435738Y/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Abstract

The utility model provides a PROFIBUS-DP and CAN field bus protocol converter which comprises a CAN bus interface circuit, a PROFIBUS-DP bus interface circuit and a dual-port RAM interface circuit. The CAN bus interface circuit is used for realizing the receiving, sending and controlling of CAN bus data, the PROFIBUS-DP bus interface circuit is used for realizing the receiving, sending and controlling of PROFIBUS bus data, and the dual-port RAM interface circuit is used for controlling the exchanging of the two bus data. The CAN bus interface circuit comprises a first microcontroller, a CAN bus transceiver and a first high-speed photoelectric coupler. The first microcontroller is connected with the dual-port RAM interface circuit. The PROFIBUS-DP bus interface circuit comprises a second microcontroller and a PROFIBUS-DP communication controller protocol chip. The second microcontroller is connected with the dual-port RAM interface circuit. The PROFIBUS-DP and CAN field bus protocol converter realizes compatibility and data sharing between two bus equipment, and upgrades the function complementation between the equipment.

Description

PROFIBUS-DP and CAN field bus protocol transducer
(1) technical field
The utility model relates to a kind of field bus protocol transducer.
(2) background technology
Fieldbus is the communication system that connects digital, two-way, the multistation of smart devices and automated system.Mainly solve digital communication between the field apparatus such as intelligent instrumentation, controller, actuator of industry spot and the information problem of transmission between these field control equipment and the advanced control system (ACS).
At the mid-80, in order to satisfy the application demand of different automatic fields, the fieldbus of different technical characteristics has appearred having.Each fieldbus all has the application of oneself, and is all trying hard to expand its application, to expand its technical monopoly scope.But every kind of fieldbus is a background with one or several large multinational company all, and the interests of company and the development of bus are closely bound up.The result of these company's competitions is multiple total line coordination coexistences.According to incompletely statistics, more than 200 kind of fieldbus arranged at present in the world, and wherein the fieldbus of occuping market main flow there are tens kinds.
The diversity of fieldbus, when providing more products to select for the bus apparatus user, compatibility issue between the bus apparatus that has been the bus user band also.Factory selects for use in the processes such as reconstruction and original different product of field device bus standard possibly in enlarging, and these equipment can not be realized data sharing to each other owing to use different fieldbus, ask the advantage that has complementary functions so just reduced equipment.Therefore at the objective fact of multiple bus coexistence, inquiring into how to solve different field bus systems interconnected has important practical sense.
CAN (ControllerAreaNetwork controller local area network) is released by German BOSCH company the earliest, it is widely used in discrete control field, its bus specification is formulated to international standard by ISO International Standards Organization, has obtained the support of companies such as Intel, Motorola, NEC.Short frame structure is adopted in the signal transmission of CAN, and the transmission time is short, has automatic closing function, has stronger antijamming capability, and communication distance can reach 10KM/5Kbps/s farthest, and communication speed reaches as high as 40M/1Mbp/s, and number of network node reality can reach 110.At present existing many companies have developed the communication chip that meets the CAN agreement.
PROFIBUS is the standard for Fieldbus of German standard (DIN19245) and European standard (EN50170).Form by PROFIBUS--DP, PROFIBUS-FMS, PROFIBUS-PA series.DP is the low-cost communication of a kind of high speed, is used to disperse high speed data transfer between peripheral hardware, is applicable to the process automation field.The defeated speed of PROFIBUS is 9.6Kbit/s to 12Mbit/s, and maximum transmission distance is 1200m under 9.6Kbit/s, and little at 12Mbit/s is 200m, can adopt repeater to extend to 10km, and transmission medium is twisted-pair feeder or optical cable, can articulate 127 websites at most.The great advantage of comparing PROFIBUS with other field bus system is that it has stable international standard EN50170 and guarantees, and has generality through the practical application checking.Market survey confirms, PROFIBUS accounts for the market of open industrial field bus system above 40% in Germany and European market.
Fieldbus is the communication system that connects digital, two-way, the multistation of smart devices and automated system.The diversity of fieldbus, when providing more products to select for the bus apparatus user, compatibility issue between the bus apparatus that has been the bus user band also.Factory selects for use in the processes such as reconstruction and original different product of field device bus standard possibly in enlarging, and these equipment can not be realized data sharing, so just reduced the advantage that equipment room has complementary functions to each other owing to use different fieldbus.
(3) summary of the invention
Can not be compatible in order to overcome in the prior art between the different bus equipment, can not realize data sharing, reduced the deficiency that equipment room has complementary functions, the utility model provides a kind of and has solved protocol conversion between PROFIBUS-DP and the CAN, can realize two kinds of compatibility, data sharings between the bus apparatus, promoted PROFIBUS-DP and CAN field bus protocol transducer that equipment room has complementary functions.
The technical scheme that its technical problem that solves the utility model adopts is:
A kind of PROFIBUS-DP and CAN field bus protocol transducer, described field bus protocol transducer comprises: in order to the data transmit-receive of realization CAN bus and the CAN bus interface circuit of control; In order to the transmitting-receiving of realization PROFIBUS bus data and the PROFIBUS-DP bus interface circuit of control; And, in order to the dual port RAM interface circuit of the exchange of controlling two kinds of bus datas; Described CAN bus interface circuit comprises first microcontroller, CAN bus transceiver and first high-speed photoelectric coupler, the CAN fieldbus connects described CAN bus transceiver, described CAN bus transceiver connects described first high-speed photoelectric coupler, described first high-speed photoelectric coupler connects described first microcontroller, and described first microcontroller connects described dual port RAM interface circuit; Described PROFIBUS-DP bus interface circuit comprises second microcontroller, PROFIBUS-DP communication controler protocol chip, second high-speed photoelectric coupler and RS485 bus transceiver, the PROFIBUS bus connects described RS485 bus transceiver, described RS485 bus transceiver connects described second high-speed photoelectric coupler, described second high-speed photoelectric coupler connects described PROFIBUS-DP communication controler protocol chip, described PROFIBUS-DP communication controler protocol chip connects described second microcontroller, and described second microcontroller connects described dual port RAM interface circuit.
Further, described PROFIBUS-DP communication controler protocol chip comprises mode register, status register, interrupt register, various buffer pointer and buffering area.
Further again, described PROFIBUS-DP communication controler protocol chip also comprises the protection watchdog timer that is used for forbidding PROFIBUS-DP communication when processor breaks down.
Technical conceive of the present utility model is: for these two kinds of widely used fieldbus, its data link layer and application layer protocol are distinct, realize the interconnected of them, need to adopt gateway to carry out protocol conversion. gateway is to be used to realize the equipment of data link layer with the network interconnection on upper strata, it is equivalent to a protocol converter, protocol conversion layering in gateway is carried out one by one. and gateway will unpack at different protocol layers from the data that field bus device sends, obtain user data, and then successively pack according to another field bus protocol, send at last on this field bus device.
The beneficial effects of the utility model mainly show: solved protocol conversion between PROFIBUS-DP and the CAN, can realize two kinds of compatibility, data sharings between the bus apparatus, promoted equipment room and had complementary functions.
(4) description of drawings
Fig. 1 is PROFIBUS-DP and CAN protocol converter system construction drawing;
Fig. 2 is a microcontroller P87C591 built-in function block diagram;
Fig. 3 is based on the whole hardware structure diagram of CAN bus interface of P87C591;
Fig. 4 is a SPC3 internal structure schematic diagram;
Fig. 5 is based on the whole hardware block diagram of PROFIBUS bus interface of SPC3;
Fig. 6 is a twoport ram CY7C026 structure chart;
Fig. 7 is the dual port RAM interface circuit;
Fig. 8 is the data forwarding program.
(5) embodiment
Below in conjunction with accompanying drawing the utility model is further described.
With reference to Fig. 1-Fig. 8, a kind of PROFIBUS-DP and CAN field bus protocol transducer, described field bus protocol transducer comprises: in order to the data transmit-receive of realization CAN bus and the CAN bus interface circuit of control; In order to the transmitting-receiving of realization PROFIBUS bus data and the PROFIBUS-DP bus interface circuit of control; And, in order to the dual port RAM interface circuit of the exchange of controlling two kinds of bus datas; Described CAN bus interface circuit comprises first microcontroller, CAN bus transceiver and first high-speed photoelectric coupler, the CAN fieldbus connects described CAN bus transceiver, described CAN bus transceiver connects described first high-speed photoelectric coupler, described first high-speed photoelectric coupler connects described first microcontroller, and described first microcontroller connects described dual port RAM interface circuit; Described PROFIBUS-DP bus interface circuit comprises second microcontroller, PROFIBUS-DP communication controler protocol chip, second high-speed photoelectric coupler and RS485 bus transceiver, the PROFIBUS bus connects described RS485 bus transceiver, described RS485 bus transceiver connects described second high-speed photoelectric coupler, described second high-speed photoelectric coupler connects described PROFIBUS-DP communication controler protocol chip, described PROFIBUS-DP communication controler protocol chip connects described second microcontroller, and described second microcontroller connects described dual port RAM interface circuit.
Described PROFIBUS-DP communication controler protocol chip comprises mode register, status register, interrupt register, various buffer pointer and buffering area.
Described PROFIBUS-DP communication controler protocol chip also comprises the protection watchdog timer that is used for forbidding PROFIBUS-DP communication when processor breaks down.
Present embodiment is based on the gateway designs method of dual-cpu structure, and two CPU in the system handle separately and control the data of two kinds of bus protocols, and the information that will need to transmit is placed in the dual port RAM realization information sharing and transmission.This method is controlled easily, and software is simple, has alleviated the CPU burden, has strengthened reliability.The hardware of system can be divided into three parts according to function, and the one, the CAN bus interface circuit is finished the data transmit-receive and the control of CAN bus; The 2nd, the PROFIBUS-DP bus interface circuit is finished the transmitting-receiving and the control of PROFIBUS bus data; The 3rd, the dual port RAM interface circuit is used for finishing the exchange of two kinds of bus datas.As shown in Figure 1.
CAN bus interface circuit: whole hardware configuration such as Fig. 3 of CAN bus interface. circuit mainly is made of 3 parts: the first microcontroller P87C591, CAN bus transceiver TJA1050 and the first high-speed photoelectric coupler 6N137.P87C591 realize communication tasks such as the reception of CAN bus data and transmission, also be responsible for simultaneously with PROFIBUS bus interface oral-lateral exchanges data.P87C591 is 8 high-performance microcontrollers of a monolithic, has the CAN controller in the sheet, is to derive from from 80C51 microcontroller family.It has adopted powerful 80C51 instruction set and has successfully comprised the powerful PeliCAN function of PHILIPS semiconductor SJA1000CAN controller, supports to have the CAN 2.0B agreement of a lot of new features.
In order to strengthen the antijamming capability of CAN bus node, the TX0 of microcontroller P87C591 is not directly to link to each other with RXD with the TXD of TJA1050 with RX0, but link to each other with TJA1050 by behind the high speed photo coupling 6N137, so well realized the internodal electrical isolation of each CAN on the bus, wherein two the power supply VCC and the VDD that are adopted of optocoupler partial circuit isolates fully.What should specify is that two power supplys that the optocoupler partial circuit is adopted must be isolated fully, otherwise adopt optocoupler also just to lose meaning.
The PROFIBUS-DP bus interface circuit: the hardware circuit of PROFIBUS-DP bus interface is made of 4 parts, the second microcontroller P89V51RB2, PROFIBUS-DP communication controler protocol chip SPC3, second high-speed photoelectric coupler HCPL7101 and the 6N137, RS485 bus driving circuits.P89V51RB2 mainly is responsible for control SPC3, and the conversion that realizes the PROFIBUS-DP bus data is with shared.
P89V51RB2 is a 80C51 microcontroller, comprises the data RAM of 16kB Flash and 1024 bytes.Its typical characteristics is its X2 mode option.Utilize this characteristic, can make the clock frequency operation of application program with traditional 80C51 clock frequency (each machine cycle comprises 12 clocks) or X2 mode (each machine cycle comprises 6 clocks), select the X2 mode can under identical clock frequency, obtain 2 times throughput, can well support the baud rate of PROFIBUS 12M.
SPC3 (SIMENS PROFIBUS CONTROLER) is a kind of PROFIUBS-DP of being used for opened industrial fieldbus intelligent interface chip, can be widely used in the interface microcontroller in industrial automation and the building management automation.Complete DP agreement that SPC 3 is integrated is comprising mode register, status register, interrupt register, various buffer pointer and buffering area etc.Be integrated with a protection watchdog timer (WatchDog) among the SPC3, when application processor breaks down, PROFIBUS-DP communication will be under an embargo, and so just be unlikely to jeopardize ancillary equipment.In addition, SPC3 also has the automatic identification baud rate (function of 9.6k~12Mbps).
In order to reach the 12Mbps baud rate, the isolating device of TxD, RxD signal is selected the 12M high speed photo coupling HCPL7101 of HewlettPackard company for use, the isolating device of RTS signal has selected for use 6N137.485 bus driver chip to adopt SN75ALS176, can guarantee that the maximum baud rate of bus reaches 12Mbps.
Fig. 5 is the circuit diagram of PROFIBUS-DP communication controler to the RS485 bus driver.
The dual port RAM interface circuit: two CPU in the system handle separately and control the data of two kinds of bus protocols, and the information of needs transmission is placed in the dual port RAM, realize information sharing and transmission.
Dual port RAM is to have two covers fully independently data wire, address wire and read-write control line on a SRAM memory, and allow two independently system simultaneously this memory is carried out the visit of randomness.Selected device CY7C026 in the system for use.
CY7C026 is 16K * 16 high speed twoport static RAM (SRAM)s that CYPRESS company produces, and access speed is less than 25ns.By the semaphore marker of chip, left and right two-port can realize sharing of resources of chip.Because address bus and the data/address bus of MCU are multiplexing, therefore adopt latch to carry out address latch, hardware architecture is as shown in Figure 7.
Software design can be divided into two parts, a part is responsible for the data communication of CAN bus, another part is responsible for the data communication of PROFIBUS-DP bus, and the program of each side is divided into three functional modules, is respectively: the initialize routine of protocol chip, reception data program, transmission data program.
For making dual port RAM realize the application of peak efficiency, the memory space of 16KB is designed to the circle queue shape of 2 8KB sizes.From the data on the bus is at random, therefore receives the mode of interrupting that adopts.The a certain moment needs only and successfully receives frame data, will interrupt to the MCU application of being responsible for the port, carries out Data Receiving, and data are sent into circle queue.Data handling procedure such as Fig. 8.

Claims (3)

1, a kind of PROFIBUS-DP and CAN field bus protocol transducer, it is characterized in that: described field bus protocol transducer comprises: in order to the data transmit-receive of realization CAN bus and the CAN bus interface circuit of control; In order to the transmitting-receiving of realization PROFIBUS bus data and the PROFIBUS-DP bus interface circuit of control; And, in order to the dual port RAM interface circuit of the exchange of controlling two kinds of bus datas;
Described CAN bus interface circuit comprises first microcontroller, CAN bus transceiver and first high-speed photoelectric coupler, the CAN fieldbus connects described CAN bus transceiver, described CAN bus transceiver connects described first high-speed photoelectric coupler, described first high-speed photoelectric coupler connects described first microcontroller, and described first microcontroller connects described dual port RAM interface circuit;
Described PROFIBUS-DP bus interface circuit comprises second microcontroller, PROFIBUS-DP communication controler protocol chip, second high-speed photoelectric coupler and RS485 bus transceiver, the PROFIBUS bus connects described RS485 bus transceiver, described RS485 bus transceiver connects described second high-speed photoelectric coupler, described second high-speed photoelectric coupler connects described PROFIBUS-DP communication controler protocol chip, described PROFIBUS-DP communication controler protocol chip connects described second microcontroller, and described second microcontroller connects described dual port RAM interface circuit.
2, PROFIBUS-DP as claimed in claim 1 and CAN field bus protocol transducer is characterized in that: described PROFIBUS-DP communication controler protocol chip comprises mode register, status register, interrupt register, various buffer pointer and buffering area.
3, PROFIBUS-DP as claimed in claim 2 and CAN field bus protocol transducer is characterized in that: described PROFIBUS-DP communication controler protocol chip also comprises the protection watchdog timer that is used for forbidding PROFIBUS-DP communication when processor breaks down.
CN2009201208406U 2009-05-22 2009-05-22 PROFIBUS-DP and CAN field bus protocol converter Expired - Fee Related CN201435738Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009201208406U CN201435738Y (en) 2009-05-22 2009-05-22 PROFIBUS-DP and CAN field bus protocol converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009201208406U CN201435738Y (en) 2009-05-22 2009-05-22 PROFIBUS-DP and CAN field bus protocol converter

Publications (1)

Publication Number Publication Date
CN201435738Y true CN201435738Y (en) 2010-03-31

Family

ID=42054552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009201208406U Expired - Fee Related CN201435738Y (en) 2009-05-22 2009-05-22 PROFIBUS-DP and CAN field bus protocol converter

Country Status (1)

Country Link
CN (1) CN201435738Y (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055590A (en) * 2010-12-02 2011-05-11 河南省电力公司南阳供电公司 RS-485 router with communication protocol conversion function
CN103188350A (en) * 2011-12-29 2013-07-03 上海电科电器科技有限公司 Integrated communication adapter
CN103513620A (en) * 2012-06-27 2014-01-15 上海华建电力设备股份有限公司 PROFIBUS-DP1 master station communication server and realization method thereof
CN105700486A (en) * 2014-11-25 2016-06-22 四川宝石机械专用车有限公司 Digital controller applicable to fracturing pump trucks
CN105939253A (en) * 2016-04-14 2016-09-14 江汉大学 Industrial wireless gateway device and protocol conversion method thereof
CN108897298A (en) * 2018-09-07 2018-11-27 广州朔月电子科技有限公司 Wisdom agricultural Internet of things system
CN110687854A (en) * 2019-11-05 2020-01-14 杭州和利时自动化有限公司 PA bus controller and PA bus control system
CN112305948A (en) * 2019-07-26 2021-02-02 中核陕西铀浓缩有限公司 Special communication protocol conversion card and communication conversion method thereof

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055590A (en) * 2010-12-02 2011-05-11 河南省电力公司南阳供电公司 RS-485 router with communication protocol conversion function
CN103188350A (en) * 2011-12-29 2013-07-03 上海电科电器科技有限公司 Integrated communication adapter
CN103188350B (en) * 2011-12-29 2016-07-06 上海电科电器科技有限公司 Integrated communication adapter
CN103513620A (en) * 2012-06-27 2014-01-15 上海华建电力设备股份有限公司 PROFIBUS-DP1 master station communication server and realization method thereof
CN105700486A (en) * 2014-11-25 2016-06-22 四川宝石机械专用车有限公司 Digital controller applicable to fracturing pump trucks
CN105939253A (en) * 2016-04-14 2016-09-14 江汉大学 Industrial wireless gateway device and protocol conversion method thereof
CN108897298A (en) * 2018-09-07 2018-11-27 广州朔月电子科技有限公司 Wisdom agricultural Internet of things system
CN112305948A (en) * 2019-07-26 2021-02-02 中核陕西铀浓缩有限公司 Special communication protocol conversion card and communication conversion method thereof
CN110687854A (en) * 2019-11-05 2020-01-14 杭州和利时自动化有限公司 PA bus controller and PA bus control system

Similar Documents

Publication Publication Date Title
CN201435738Y (en) PROFIBUS-DP and CAN field bus protocol converter
CN101345629B (en) Double on-site bus interface converter
CN100521637C (en) Optical fiber-based high speed serial industrial real-time communication bus system and its control method
CN105939253A (en) Industrial wireless gateway device and protocol conversion method thereof
CN102231718B (en) Gateway of communication between Ethernet for control and automation technology (EtherCAT) and CAN, and communication method thereof
CN201303348Y (en) Universal multi-serial bus converter
CN103825883A (en) Multi-protocol conversion equipment based on wireless ZigBee, CAN bus and MODBUS/TCP and realization method thereof
CN103218337B (en) Based on wishbone bus realize main and master and slave with from the SOC (system on a chip) communicated and method
CN103714024A (en) Multi-serial port parallel processing framework based on SoC (System on a Chip) FPGA (Field Programmable Gata Array)
CN103049414A (en) Method for converting and transmitting data between FC (fiber channel) bus and CAN (controller area network) bus
CN203705861U (en) Multi-serial port parallel processing framework based on FPGA
CN102291337B (en) Gateway for switching communication based on EtherCAT (Ethernet for Control and Automation Technology) protocol and Profibus-DP (Process Field Bus-Decentralized Periphery) protocol and communication method thereof
CN102420877A (en) Multi-mode high-speed intelligent asynchronous serial port communication module and realizing method thereof
CN106873541A (en) A kind of EtherCAT Distributed Servo kinetic control systems based on DSP
CN204423250U (en) A kind of X86 embedded type CPU mainboard with multipath high-speed intelligent CAN
CN107171920A (en) A kind of bus gateway apparatus for being used to realize NCUC and POWERLINK interconnections
CN201170857Y (en) Programmable logic controller
CN201860344U (en) System supporting various fieldbus protocols
CN102263709A (en) Gateway for realizing communication transformation between EtherCAT (Ethernet for control and automation technology) and RS485 and communication method thereof
CN101931642A (en) Multi-network control system communication management method
CN202918326U (en) Intelligent multi-serial switch
CN202206415U (en) Gateway for communication conversion between Ethernet CAT (Ethernet for Control and Automation Technology) protocol and Profibus-DP (Process Field Bus-Decentralized Periphery) protocol
CN202353595U (en) Gateway for EtherCAT (Ethernet for control and automation technology) and RS485 communication switching
CN202351638U (en) Data acquisition device based on controller area network (CAN) bus
CN202093355U (en) Programmable logic controller (PLC) Ethernet communication module

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100331

Termination date: 20140522