CN102833142A - Profibus-DP slave station device on basis of FDGA (Field Programmable Gate Array) - Google Patents

Profibus-DP slave station device on basis of FDGA (Field Programmable Gate Array) Download PDF

Info

Publication number
CN102833142A
CN102833142A CN2012103316967A CN201210331696A CN102833142A CN 102833142 A CN102833142 A CN 102833142A CN 2012103316967 A CN2012103316967 A CN 2012103316967A CN 201210331696 A CN201210331696 A CN 201210331696A CN 102833142 A CN102833142 A CN 102833142A
Authority
CN
China
Prior art keywords
circuit
bus
chip
prifibus
power supply
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
CN2012103316967A
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.)
Tianjin University of Technology
Original Assignee
Tianjin University of Technology
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 Tianjin University of Technology filed Critical Tianjin University of Technology
Priority to CN2012103316967A priority Critical patent/CN102833142A/en
Publication of CN102833142A publication Critical patent/CN102833142A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention relates to an embedded universal Prifibus-DP slave station device on the basis of a FDGA (Field Programmable Gate Array), which comprises a core unit, i.e. a protocol conversion module and a peripheral unit, wherein the protocol conversion module is used for analyzing a message, processing data and completing data exchange; and the peripheral unit is used for carrying out communication exchange of the data packaged according to a Profibus format with a Profibus-DP network, eliminating the interference of slave station equipment to a bus signal, improving the signal quality, converting a 24V power supply in a bus standard into a 5V power supply and indicating the working state of a communication device. The device has wide universality; and when peripheral equipment meets the specification of an interface circuit in a communication interface device, the communication interface device can be interconnected with any peripheral equipment to exchange Profibus-DP data information.

Description

A kind of Profibus-DP based on FPGA is from station arrangement
Technical field
The present invention relates to the industrial field bus communications field, particularly design a kind of have extensive versatility and open Profibus-DP communicator.
Background technology
Profibus-DP is a kind of field bus system of opening, because it has the traffic rate height, communication quality is reliable, and the simple advantage of networking has all obtained extensive use at each production field.But there is following problem in the DP that existing market exists from station arrangement:
1) all is to develop to a certain equipment specially, is integrated in device interior, do not have versatility.
2) can't get involved in the equipment of different manufacturers in the consolidated network.
3) poor to user's opening, the user is difficult to carry out secondary development according to the needs of oneself.
4) need special power supply power supply, be not easy to The field.
The shortcoming of existing P rofibus-DP slave station is can't be the distinct device configuration of different manufacturers in same Control Network; The reason that causes this shortcoming is exactly not comprehensive to the design of stipulations client layer; Hardware designs is also only considered a certain equipment, does not possess versatility.
Summary of the invention
The object of the invention is exactly to overcome the above-mentioned deficiency that prior art exists, and provides a kind of Profibus-DP based on FPGA from station arrangement, and this device has extensive versatility, can be linked into collaborative work in the consolidated network to the distinct device of different manufacturers.The power supply design that meets bus standard makes this device have better adaptability.Device also provides indicating circuit, makes things convenient for the staff to obtain the operating state of equipment at any time.
Universal embedded Prifibus-DP based on FPGA provided by the invention is that protocol conversion module and peripheral supporter constitute from station arrangement by core cell;
Protocol conversion module: be the core of Prifibus-DP from station arrangement, be responsible for explanation and execution to stipulations, be used to analyze message, deal with data is resolved or is encapsulated according to stipulations the data of needs transmission, accomplishes exchanges data; This module comprises interconnective fpga chip and SPC3 chip;
Fpga chip links to each other with external equipment through the I/O mouth; FPGA inserts Prifibus-DP bus network via protocol conversion module through the isolation protective circuit the peripheral supporter from the data that external equipment reads, and also is responsible for after protocol conversion module is resolved, sending to external equipment to the instruction that transmits via the Prifibus-DP bus network;
The SPC3 chip is controlled by FPGA in this device, is responsible for the PROFIBUS-DP stipulations are made an explanation;
The SPC3 chip is the product that is used to design intelligent DP slave station of SIEMENS company development; The major function that this chip need be used in communication process in integrated most of domestic consumers on the function; Main integrated Profibus-DP agreement all; Can accomplish the state machine of Profibus-DP automatically; Given up part specific function such as integrated analog functuion (RS-485 driver), FDL (Fieldbus Date Link) host-host protocol etc., on the basis of satisfying user's needs, minimized cost.
Peripheral supporter: comprise bus communication circuit, isolation protective circuit, power-switching circuit and outside indicating circuit; Isolation protective circuit is connected with the bus communication circuit is two-way on the one hand, is connected with protocol conversion module is two-way simultaneously on the other hand; The bus communication circuit is connected with the Prifibus-DP bus network; Power-switching circuit is connected with protocol conversion module is two-way respectively with outside indicating circuit;
Peripheral supporter is used for communicating the data of exchange according to the encapsulation of Profibus form with the Profibus network; Elimination is from the interference of station equipment to bus signals; Improve signal quality, convert the 24V power supply of bus standard into the 5V power supply, the operating state of indication communicator.
Described bus communication circuit is used for said being connected from station arrangement and Prifibus-DP bus network; The Prifibus-DP bus network adopts the RS-485 communication mechanism in physical layer, and described bus communication circuit is responsible for from exchange the Frame of corresponding format between station arrangement and the Prifibus-DP bus network with the RS-485 communication mode; The bus communication circuit has adopted the SN75ALS176D chip to design the RS-485 telecommunication circuit.
Described isolation protective circuit has adopted HCPL7101 chip and HCPL0601 chip to come the design isolated circuit; Wherein the Vo pin of two HCPL7101 connects the D and the R pin of transceiving chip SN75ALS176D chip in the bus communication circuit of peripheral supporter respectively; Be used for A, the B holding wire of RS-485 are isolated; The Vo pin of HCPL0601 connects the DE pin of SN75ALS176D chip; Be used for the RTS holding wire is isolated, to eliminate the interference of electromagnetic interference that this communicator produces in the course of the work to bus signals.
Described outside indicating circuit has been selected N channel field-effect pipe BSH103 and P-channel field-effect transistor (PEFT) pipe BSH203 for use; When supply power voltage is higher than 22V; BSH103 conducting and BSH203 ends indicates the power supply of this device normal, when voltage is lower than 22V; BSH203 conducting and BSH103 ends, the indication abnormity of power supply.
Described power-switching circuit has adopted FB2405 voltage conversion chip to come the designing power supply change-over circuit as core, and the 24V power source conversion of bus standard is supplied power from station arrangement for described for the 5V DC power supply.
Advantage of the present invention and beneficial effect:
Apparatus of the present invention have versatility widely, can be linked into collaborative work in the consolidated network to the distinct device of different manufacturers.Adopt the fpga chip of high-speed computational capability to design, this device is had than tradition from station arrangement data-handling capacity more efficiently.The online programmable ability of FPGA also makes the secondary development with the user of can upgrading easily of this device.Meet the power supply design of bus standard, make this device have better adaptability.This device also provides indicating circuit, makes things convenient for the staff to obtain the operating state of equipment at any time.
Description of drawings
Fig. 1 is the general structure block diagram of a kind of universal embedded Prifibus-DP based on FPGA provided by the invention from station arrangement;
Fig. 2 is the main pin line graph of the protocol conversion module shown in Fig. 1.
Embodiment
As shown in Figure 1, the universal embedded Prifibus-DP based on FPGA provided by the invention is that protocol conversion module and peripheral supporter constitute from station arrangement by core cell.Protocol conversion module comprises interconnective fpga chip and SPC3 chip; Described peripheral supporter comprises isolation protective circuit, bus communication circuit, power-switching circuit and outside indicating circuit.
FPGA is the control core and the arithmetic core of whole device, should combine SPC3 to carry out the computing encapsulation to writing the data of writing out, and also will monitor the operating state of whole device, and indicate through outside indicating circuit.
Isolation protective circuit is responsible for circuit level is protected, and eliminates the transmission of on-the-spot electromagnetic interference signal, and the signal transmission is stable and correct between assurance bus transfer circuit and the SPC3.
After powering on, at first FPGA is configured, configuration file is kept among the EPRAM, downloads to FPGA after powering on automatically and is configured.Under the control of FPGA, begin SPC3 is carried out initialization then: at first SPC3 is once resetted, set tributary address then, set interrupt priority level, close interruption; The house dog value is set, each register is set, accomplish initialization.After initialization was accomplished, SPC3 opened interruption, and communicator begins to get into operating state, and down, each functional unit moves in such a way in working order, accomplishes communication task.
Protocol conversion module: the main realization function of bearing stipulations.The data that slave unit is read encapsulate according to the form that stipulations require, and will carry out deblocking so that the reception of equipment according to stipulations from the data that bus receives.Handle the polling request of main website simultaneously, whether decision carries out exchanges data with main website according to the slave station state.
Isolation protective circuit is used for eliminating the influence to bus signals of various electromagnetic interference that the slave station communication device produces in transfer of data and processing procedure.Guarantee that the Profibus bus still can the high quality transmission data in many slave stations system.
Bus communication circuit: designed the RS-485 drive circuit, be connected with the Profibus bus is two-way.Be used for meeting the data of the encapsulation format of stipulations requirement with the Profibus bus switch.
Outside indicating circuit: the power supply status and the exchanges data state that are used to indicate the slave station device.When power supply during less than 22V, power indicating circuit is reported to the police, and alarm signal is removed behind the service restoration.When being in the bus exchanging data state from station arrangement, the exchanges data indicator light is lighted, and after data exchanging completed, indicator light breaks off.
Power-switching circuit: this adopts the 24V power supply of standard for Fieldbus from station arrangement; Convert the 3.3V power supply of required 5V power supply of protocol conversion chip SPC3 and FPGA into via power-switching circuit; Special power supply when on-the-spot installation apparatus has been saved in the design of power-switching circuit has strengthened the adaptability of device.
The concrete structure of each element circuit that apparatus of the present invention relate to is following:
Protocol conversion module is the core of design, is responsible for explanation and execution to stipulations.The data that FPGA imports into from external equipment reception information, the input protocol conversion module is handled by the stipulations requirement data under the cooperation of FPGA and SPC3, and is upload the data to bus network.Main website also gives external equipment by FPGA through the I/O mouth through after this unit decapsulation through the data that bus network transmits.
Isolation protective circuit has adopted HCPL7101 chip and HCPL0601 chip to come the design isolated circuit.Wherein HCPL7101 is used for A, the B holding wire of RS-485 are isolated, and HCPL0601 is used for the RTS holding wire is isolated, to eliminate the interference to bus signals of electromagnetic interference that this communicator produces in the course of the work.
The bus communication unit is used for being connected of this device and bus network.Bus network adopts the RS-485 communication mechanism in physical layer, and the Frame with RS-485 communication mode exchange corresponding format is responsible between device and bus network in this unit.The design has adopted the SN75L7101 chip to design the RS-485 communication unit.
Outside indicating circuit has been selected N channel field-effect pipe BSH103 and P-channel field-effect transistor (PEFT) pipe BSH203 for use, when supply power voltage is higher than 22V, and BSH103 conducting and BSH203 ends; Indicate the power supply of this device normal; When voltage is lower than 22V, BSH203 conducting and BSH103 ends, indication abnormity of power supply.
Power-switching circuit has adopted FB2405 voltage to transform chip to come the designing power supply change-over circuit as core, and to come be that this device is supplied power for the 5V DC power supply with the 24V power source conversion of bus standard.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.

Claims (3)

  1. One kind based on the universal embedded Prifibus-DP of FPGA from station arrangement, it is characterized in that described is that protocol conversion module and peripheral supporter constitute from station arrangement by core cell;
    Protocol conversion module: be the core of Prifibus-DP from station arrangement, be responsible for explanation and execution to stipulations, be used to analyze message, deal with data is resolved or is encapsulated according to stipulations the data of needs transmission, accomplishes exchanges data; This module comprises interconnective fpga chip and SPC3 chip;
    Fpga chip links to each other with external equipment through the I/O mouth; FPGA inserts Prifibus-DP bus network via protocol conversion module through the isolation protective circuit the peripheral supporter from the data that external equipment reads, and also is responsible for after protocol conversion module is resolved, sending to external equipment to the instruction that transmits via the Prifibus-DP bus network;
    The SPC3 chip is controlled by FPGA in this device, is responsible for the PROFIBUS-DP stipulations are made an explanation;
    Peripheral supporter: comprise bus communication circuit, isolation protective circuit, power-switching circuit and outside indicating circuit; Isolation protective circuit is connected with the bus communication circuit is two-way on the one hand, is connected with protocol conversion module is two-way simultaneously on the other hand; The bus communication circuit is connected with the Prifibus-DP bus network; Power-switching circuit is connected with protocol conversion module is two-way respectively with outside indicating circuit;
    Peripheral supporter is used for communicating the data of exchange according to the encapsulation of Profibus form with the Profibus network; Elimination is from the interference of station equipment to bus signals; Improve signal quality, convert the 24V power supply of bus standard into the 5V power supply, the operating state of indication communicator;
    The bus communication circuit is used for said being connected from station arrangement and Prifibus-DP bus network; The Prifibus-DP bus network adopts the RS-485 communication mechanism in physical layer, and described bus communication circuit is responsible for from exchange the Frame of corresponding format between station arrangement and the Prifibus-DP bus network with the RS-485 communication mode; The bus communication circuit has adopted the SN75ALS176D chip to design the RS-485 telecommunication circuit;
    Isolation protective circuit has adopted HCPL7101 chip and HCPL0601 chip to come the design isolated circuit; Wherein the Vo pin of two HCPL7101 connects D and the R pin of transceiving chip SN75ALS176D in the bus communication circuit of peripheral supporter respectively; Be used for A, the B holding wire of RS-485 are isolated; The Vo pin of HCPL0601 connects the DE pin of SN75ALS176D chip; Be used for the RTS holding wire is isolated, to eliminate the interference of electromagnetic interference that this communicator produces in the course of the work to bus signals.
  2. 2. according to claim 1 from station arrangement; It is characterized in that described outside indicating circuit selected N channel field-effect pipe BSH103 and P-channel field-effect transistor (PEFT) pipe BSH203 for use, when supply power voltage is higher than 22V, BSH103 conducting and BSH203 ends; Indicate the power supply of this device normal; When voltage is lower than 22V, BSH203 conducting and BSH103 ends, indication abnormity of power supply.
  3. 3. according to claim 1 and 2 from station arrangement; It is characterized in that described power-switching circuit has adopted FB2405 voltage to transform chip and come the designing power supply change-over circuit as core, the 24V power source conversion of bus standard is supplied power from station arrangement for described for the 5V DC power supply.
CN2012103316967A 2012-09-10 2012-09-10 Profibus-DP slave station device on basis of FDGA (Field Programmable Gate Array) Pending CN102833142A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012103316967A CN102833142A (en) 2012-09-10 2012-09-10 Profibus-DP slave station device on basis of FDGA (Field Programmable Gate Array)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012103316967A CN102833142A (en) 2012-09-10 2012-09-10 Profibus-DP slave station device on basis of FDGA (Field Programmable Gate Array)

Publications (1)

Publication Number Publication Date
CN102833142A true CN102833142A (en) 2012-12-19

Family

ID=47336118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012103316967A Pending CN102833142A (en) 2012-09-10 2012-09-10 Profibus-DP slave station device on basis of FDGA (Field Programmable Gate Array)

Country Status (1)

Country Link
CN (1) CN102833142A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780466A (en) * 2014-01-23 2014-05-07 唐山天舟自动化设备有限公司 Remote station based on PROFIBUS protocol and PROFIBUS-DP communication system with remote station
CN104572377A (en) * 2015-01-27 2015-04-29 南京大全自动化科技有限公司 Device debugging platform and method based on interface bus technology
CN105467893A (en) * 2015-12-16 2016-04-06 大连尚能科技发展有限公司 IO expansion module with PROFIBUS communication
CN106100957A (en) * 2016-06-12 2016-11-09 浙江正泰中自控制工程有限公司 A kind of Profibus DP communication manager supporting programmable algorithms
CN110687854A (en) * 2019-11-05 2020-01-14 杭州和利时自动化有限公司 PA bus controller and PA bus control system
CN112487749A (en) * 2020-11-23 2021-03-12 石家庄金士顿轴承科技有限公司 Profibus-DP and Modbus integration slave station device based on single chip microcomputer
CN114338273A (en) * 2021-12-30 2022-04-12 上海钜成锐讯科技有限公司 PROFIBUS-DP slave station control system based on FPGA

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1588473A (en) * 2004-09-28 2005-03-02 北京金自天正智能控制股份有限公司 Depth indicator for mine hoist
CN2757454Y (en) * 2004-04-23 2006-02-08 上海电器科学研究所(集团)有限公司 In-situ equipment communication controller
CN101841542A (en) * 2010-05-07 2010-09-22 北京鼎实创新科技有限公司 Method for realizing PROFIBUS master station communication protocol based on FPGA (Field Programmable Gate Array) technology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2757454Y (en) * 2004-04-23 2006-02-08 上海电器科学研究所(集团)有限公司 In-situ equipment communication controller
CN1588473A (en) * 2004-09-28 2005-03-02 北京金自天正智能控制股份有限公司 Depth indicator for mine hoist
CN101841542A (en) * 2010-05-07 2010-09-22 北京鼎实创新科技有限公司 Method for realizing PROFIBUS master station communication protocol based on FPGA (Field Programmable Gate Array) technology

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
闫霞: "《基于FPGA的PROFIBUS-DP从站接口研究》", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 15 August 2007 (2007-08-15) *
陈在平等: "基于FPGA的Profibus-DP智能从站设计", 《化工自动化及仪表》, vol. 39, no. 8, 10 August 2012 (2012-08-10) *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780466A (en) * 2014-01-23 2014-05-07 唐山天舟自动化设备有限公司 Remote station based on PROFIBUS protocol and PROFIBUS-DP communication system with remote station
CN104572377A (en) * 2015-01-27 2015-04-29 南京大全自动化科技有限公司 Device debugging platform and method based on interface bus technology
CN105467893A (en) * 2015-12-16 2016-04-06 大连尚能科技发展有限公司 IO expansion module with PROFIBUS communication
CN106100957A (en) * 2016-06-12 2016-11-09 浙江正泰中自控制工程有限公司 A kind of Profibus DP communication manager supporting programmable algorithms
CN106100957B (en) * 2016-06-12 2019-03-22 浙江正泰中自控制工程有限公司 A kind of Profibus-DP communication manager for supporting programmable algorithms
CN110687854A (en) * 2019-11-05 2020-01-14 杭州和利时自动化有限公司 PA bus controller and PA bus control system
CN110687854B (en) * 2019-11-05 2021-07-30 杭州和利时自动化有限公司 PA bus controller and PA bus control system
CN112487749A (en) * 2020-11-23 2021-03-12 石家庄金士顿轴承科技有限公司 Profibus-DP and Modbus integration slave station device based on single chip microcomputer
CN114338273A (en) * 2021-12-30 2022-04-12 上海钜成锐讯科技有限公司 PROFIBUS-DP slave station control system based on FPGA

Similar Documents

Publication Publication Date Title
CN102833142A (en) Profibus-DP slave station device on basis of FDGA (Field Programmable Gate Array)
CN101719922B (en) Device and method of protocol conversion between PROFIBUS-DP industrial fieldbus and wireless ZIGBEE
CN101964737B (en) Protocol conversion device based on PROFIBUS-DP master station field bus
CN107257250A (en) A kind of electric power wireless communication terminal based on Micro USB interfaces
CN203734702U (en) General data collection module based on OPC UA
CN107948059A (en) EtherCAT and Modbus protocol conversion gateways based on SPARC architecture microprocessors
CN102355507A (en) Novel serial communication interface with functions of self-detection and conflict detection
CN102331764A (en) Method and device for intelligently monitoring household based on CAN (Controller Area Network) bus
CN102932222A (en) Communication converter supporting recommended standard (RS) 485 and Modbus multi-master station data acquisition
CN207083082U (en) A kind of electric power wireless communication terminal based on Micro USB interfaces
CN102882754A (en) Repeated interrupt mode 485 direction control method
CN105743927B (en) A kind of CANopen and DP protocol data conversion method
CN101820695B (en) Embedded gateway of indoor photo sensor wireless network
CN201113374Y (en) Electrical power system microcomputer protecting measuring and controlling device based on double CPU structure
CN106161221A (en) A kind of intelligent gateway with master-slave controller
CN205647570U (en) EtherCAT and deviceNET's communication gateway
CN103546485B (en) Network card for DC600V train power supply device
CN206301189U (en) Shunting monitoring interface box
CN201654555U (en) Intelligent node module system applied to industrial valve control
CN204188979U (en) Based on the number connect test module of bus communication
CN202935897U (en) Sudden-stop lock switch position recognition device of belt conveyor
CN105955103A (en) HMI and PLC data communication method and device based on S7 protocol
CN206671863U (en) A kind of bus communication system for power plant auxiliary workshop PLC control system
CN207543138U (en) A kind of data transmission system of more industrial bus
CN202093347U (en) Interface module for EtherCAT bus numerical control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20121219