CN2585317Y - Protocal switching means between on-site bus and serial interface device - Google Patents

Protocal switching means between on-site bus and serial interface device Download PDF

Info

Publication number
CN2585317Y
CN2585317Y CN 02290386 CN02290386U CN2585317Y CN 2585317 Y CN2585317 Y CN 2585317Y CN 02290386 CN02290386 CN 02290386 CN 02290386 U CN02290386 U CN 02290386U CN 2585317 Y CN2585317 Y CN 2585317Y
Authority
CN
China
Prior art keywords
bus
serial
serial interface
field bus
fieldbus
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
CN 02290386
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.)
Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and 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 Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN 02290386 priority Critical patent/CN2585317Y/en
Application granted granted Critical
Publication of CN2585317Y publication Critical patent/CN2585317Y/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

The utility model discloses a protocol conversion device between a field bus and a serial interface device. The utility model is characterized in that a microcontroller is connected with a field bus protocol chip, a static memory, and a nonvolatile memory through an inside bus, the field bus protocol chip and a photoelectric isolation circuit are orderly connected with a field bus interface, and the inside bus is connected with a serial interface for be connected with a serial port device. The utility model has the advantages that an ordinary serial interface device can be integrated into a field bus system with no need for adding other software and hardware, a high-level control software interface and the serial interface device do not need to be modified, the system cost and the engineering difficulty are reduced, and the system compatibility is enhanced on the basis of little influence on the system performance.

Description

Protocol conversion apparatus between fieldbus and serial interface devices
Technical field
The utility model belongs to computer field bus peripherals field, and specifically, the utility model relates to the protocol conversion apparatus between a kind of fieldbus and serial interface devices.
Background technology
In the industrial automation field, exist a large amount of instrument that has serial line interface and equipment, collection is from physical quantitys such as the pressure of industry spot, flow, displacement, temperature, convert electric signal to by sensor, handling back being sent in the upper equipment by digital serial interface goes, perhaps receive order and data by serial line interface from upper equipment, given task is finished in control executive component work.Usually can constitute the master slave control system by a upper equipment and a plurality of serial line interface instrumentation.
Recent two decades comes, and field bus control system is widely adopted, and fieldbus is to connect digital, the transmitted in both directions of smart devices and automated system, the communication network of multiple-branching construction.But field bus control system has good opening, interoperability, interchangeability integration.
Though it is increasing to have the instrumentation of field-bus interface, but Industry Control scene in reality, above-mentioned serial line interface instrumentation still is being extensive use of, so need a kind of method and a kind of device, can be sent to the data of serial interface devices in the field bus control system and go, and can not cause the control system performance decrease basically.The purpose of this utility model just provides method for converting protocol and the implement device thereof between a kind of fieldbus and serial interface devices.
The related fieldbus of the utility model all refers to a main subclass PROFIBUS-DP (Decentralized Periphery) of PROFIBUS (Process Fieldbus) fieldbus, and this is a kind of field bus protocol standard that worldwide obtains widespread use.The agreement particular content of PROFIBUS-DP can no longer describe in detail here referring to EN50170 Volume 2.
It is several that the serial line interface that extensively adopts in various instrumentations mainly contains RS-232, RS-422, RS-485 etc. at present.
RS-232 (ANSI/EIA-RS232) is based upon connected in series on the IBM-PC machine, and it has many purposes, and as connecting mouse, modulator-demodular unit and industrial instrument, RS-232 are defined as the point-to-point connection between serial port and the peripheral hardware.
RS-422 (EIA RS-422-A) uses differential electric signal, rather than the used unbalance over the ground signal of RS-232, use two lines to be respectively applied in differential transfer and send and receive, such structure has greatly improved the ability of interference free performance and long Distance Transmission.Antijamming capability and long transmittability strong in the industrial environment have great superiority.
RS-485 (EIA-485) is the RS-422 that has improved, because it brings up to 32 to the receiving equipment number from 10, and having defined under peak load is to guarantee the correct necessary electrical specification of voltage signal, and antijamming capability and many master station capabilities make RS-485 especially favourable when the network that requires a plurality of distribution apparatus and PC or other controllers to form carries out data aggregation.
Utility model patent " method of field apparatus and field bus system and control field apparatus thereof the " (application number: provided a kind of equipment that analog signalling is transformed into field bus system 98107141.4) that the sharp light of soil bridge was submitted on March 5th, 1998.But the content that relates to fieldbus and digital serial interface protocol conversion is not arranged as yet in the patent documentation of having announced.
Summary of the invention
The purpose of this utility model is to provide the protocol conversion apparatus between a kind of fieldbus and serial interface devices, existing serial interface devices can be integrated in the field bus system, under the prerequisite that does not influence system performance, improves the compatibility of system greatly.
For realizing above-mentioned utility model purpose, protocol conversion apparatus between a kind of fieldbus and serial interface devices, its structure is: microcontroller links to each other with field bus protocol chip, static memory, nonvolatile memory by internal bus, field bus protocol chip, photoelectric isolating circuit and field-bus interface are linked in sequence, and also are connected to the serial line interface that connects for serial equipment on internal bus.
Compare with the conversion of analog interface with fieldbus, the utility model has been realized the protocol conversion of fieldbus and serial line interface, and has solved following technical matters:
(1) can comprise that to the communications parameter of serial line interface baud rate, data bit, position of rest, parity bit etc. are provided with by fieldbus.
(2) fieldbus and serial line interface are operated in the coupling of data rate under the different communication baud rates.
(3) protocol conversion between field bus protocol and the serial line interface host-host protocol.
In a word, adopt the utility model device not need to add other software and hardware, can be integrated into common serial interface devices in the field bus system and go, not need to revise upper Control Software interface and serial interface devices, reduce system cost and engineering difficulty.In a word, the utility model has improved the compatibility of system greatly under the prerequisite that does not influence system performance.
Description of drawings
Fig. 1 is the main program block diagram of the utility model embodiment;
Fig. 2 is the fieldbus interrupt routine block diagram of the utility model embodiment;
Fig. 3 has provided the status mechanism of the PROFIBUS-DP fieldbus slave station of interrupt routine realization;
Fig. 4 is the hardware configuration synoptic diagram of the utility model embodiment;
Fig. 5 has provided the utility model embodiment residing position in a field bus system.
Embodiment
Below in conjunction with accompanying drawing the utility model is described in further detail.
In Fig. 1, master routine at first reads the supplemental characteristic that is stored in the nonvolatile memory and according to supplemental characteristic initialization field-bus interface and serial line interface; Supplemental characteristic comprises: the baud rate of serial line interface, data bit, position of rest, parity check bit, and definition of the transmission mode of serial transmission protocol and field-bus interface parameter etc.The field-bus interface parameter comprises station address, message buffer pointer and length etc.
Master routine is waited for the interrupt request that the field bus protocol chip sends and enters interrupt routine that this interrupt routine receives the parametrization message and the configuration of fieldbus main website equipment and checks message (Config-Check).Correct handle the exchanges data state that enters behind the message with fieldbus main website equipment, and turn back to master routine.
Master routine begins to receive from the data message of fieldbus main website equipment and judges that this data message belongs to supplemental characteristic or process data.
If data message belongs to supplemental characteristic, then supplemental characteristic is stored in the nonvolatile memory, replace original supplemental characteristic.When device restarted next time, new supplemental characteristic came into force.
Be process data if data message does not belong to supplemental characteristic, this message is put into output buffer.From output buffer, take out process data according to the first-in first-out principle, the device address and the function code that provide according to process data, according to the transport mode translations message format of the given serial data transport protocol of supplemental characteristic, and send to the serial interface devices of given address.Start timer then, wait for the response message that receives from serial interface devices.
After receiving response message, carry out data check and judge whether correct reception, if incorrect the reception sent re-send request may to this serial interface devices from serial interface devices.If correctly receive message, then from message, take out the data that fieldbus main website equipment needs, put into the input block.
When timer surpasses the reply data of not receiving serial interface devices when limiting preset time yet, error message is write the diagnosis message buffer, and notice fieldbus main website equipment reads the diagnosis message.
Master routine sends to the data in the input block on the fieldbus according to the principle of first-in first-out then.
Master routine carries out the reception and the conversion of data message according to the described flow process circulation of Fig. 1.
Fig. 2 has provided the process flow diagram of an interrupt routine, when field bus protocol chip microcontroller when microcontroller sends interrupt request is carried out this interrupt routine, parametrization message, configuration that interrupt routine receives from the fieldbus main website are checked message, address setting message etc. and are carried out corresponding setting, thereby make protocol conversion apparatus enter normal exchanges data state.
Fig. 3 has provided the status mechanism of the PROFIBUS-DP fieldbus slave station of interrupt routine realization.This status mechanism has been described the behavior in all cases of PROFIBUS-DP fieldbus slave station, and in order to guarantee its consistance, its main state is as follows:
(1) " energising " state
At " energising " state, slave station receives the 2 class main websites message that " tributary address is set ", to change tributary address.Slave station has non-volatile storer and stores tributary address.
(2) " wait parametrization " state
Behind the internal triggering, slave station enters " wait parametrization " state, waits for the parameter message is set.Simultaneously, under this state, slave station can also receive " obtaining configuration " and " slave station diagnosis " message, but refusal is handled other messages, can not carry out data communication.
(3) " wait configuration " state
If parametrization is correct, slave station enters " wait configuration " state, waits for configuration inspection message.Configuration is checked message regulation input and output byte count.Also can receive " obtaining configuration " and " slave station diagnosis " message in addition.
(4) " exchanges data " state
When parametrization and configuration be received, slave station entered " exchanges data " state, can carry out data communication with main website.
The main hardware parts of protocol conversion apparatus have been described in Fig. 4, comprise microcontroller (7), link to each other with field bus protocol chip (1), static memory (6), nonvolatile memory (4) by internal bus (4), field bus protocol chip (1), photoelectric isolating circuit (2) and field-bus interface (3) are linked in sequence, and also are connected to the serial line interface (8) that connects for serial equipment on internal bus.Specifically be described below:
(1) microcontroller: microcontroller inside has program storage and data-carrier store, and outside need connects corresponding clock circuit, reset circuit and watchdog circuit cooperating.Adopt 8051 Series of MCU in the present embodiment.
(2) field bus protocol chip: the field bus protocol chip is realized the data link layer protocol and the physical layer protocol of PROFIBUS-DP bus, finishes the transmission-receiving function of bus message, carries out the processing of message with microcontroller, and converts the serial line interface data message to.There is multiple specialized protocol chip available, SPC3 (the SIEMENS PROFIBUS CONTROLLER) protocol chip that adopts SIEMENS company to produce in the present embodiment, SPC3 can handle the various communication tasks of PROFIBUS-DP agreement independently, can detect baud rate automatically from 9.6K to 12M, be integrated with RAM, mode register, status register, interrupt register and various buffer pointer and the buffer zone etc. of 1.5K, with the exchange data using three impact damper mechanism works of user and main website, guarantee the communication speed of system and the reliability of exchanges data.
(3) photoelectric isolating circuit: adopting photoelectric isolating circuit mainly is in order to eliminate the interference from zero line, can to adopt opto-coupler chip such as HCPL7720, HCPL0720, HCPL7721, realizations such as HCPL0721.
(4) field-bus interface: be made up of fieldbus bus driver and D type socket, fieldbus driver one side links to each other with D type socket, and opposite side joins by photoelectric isolating circuit and field bus protocol chip.D type socket is used for connecting the fieldbus cable.
(5) serial line interface: realized interfaces such as RS-232, RS-422, RS-485 in the present embodiment, adopted the RS-232 driver chip, the Transistor-Transistor Logic level of serial signal is transformed into the RS-232 level.Adopt the RS-422/RS-485 chip for driving, serial signal is transformed into the RS-422/RS-485 differential signal.
(6) nonvolatile memory, the parameter that is used for preserving protocol conversion apparatus,
(7) static memory is used as the inputoutput buffer of data message.
Fig. 5 has provided a PROFIBUS-DP fieldbus networks topological structure having used the utility model embodiment.Protocol conversion apparatus (11) on the one hand as of PROFIBUS-DP fieldbus (10) from station equipment, commonly be connected on the fieldbus jointly with other from station equipment (12), carry out exchanges data with PROFIBUS-DP main website equipment (9), be connected to again on the serial interface bus (13) simultaneously, communicate with various serial interface devices (14).
Above-mentioned narration has provided an embodiment of the present utility model, and the utility model is not limited to these details.Those skilled in the art can carry out suitable modification according to method and step that the utility model provides.

Claims (1)

1. the protocol conversion apparatus between fieldbus and serial interface devices, it is characterized in that: microcontroller (7), link to each other with field bus protocol chip (1), static memory (6), nonvolatile memory (4) by internal bus (4), field bus protocol chip (1), photoelectric isolating circuit (2) and field-bus interface (3) are linked in sequence, and also are connected to the serial line interface (8) that connects for serial equipment on internal bus.
CN 02290386 2002-12-13 2002-12-13 Protocal switching means between on-site bus and serial interface device Expired - Fee Related CN2585317Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 02290386 CN2585317Y (en) 2002-12-13 2002-12-13 Protocal switching means between on-site bus and serial interface device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 02290386 CN2585317Y (en) 2002-12-13 2002-12-13 Protocal switching means between on-site bus and serial interface device

Publications (1)

Publication Number Publication Date
CN2585317Y true CN2585317Y (en) 2003-11-05

Family

ID=33749626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 02290386 Expired - Fee Related CN2585317Y (en) 2002-12-13 2002-12-13 Protocal switching means between on-site bus and serial interface device

Country Status (1)

Country Link
CN (1) CN2585317Y (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088444A (en) * 2009-12-03 2011-06-08 北京华控技术有限责任公司 PROFIBUS DP and PROFIBUS PA protocol conversion gateway module

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088444A (en) * 2009-12-03 2011-06-08 北京华控技术有限责任公司 PROFIBUS DP and PROFIBUS PA protocol conversion gateway module

Similar Documents

Publication Publication Date Title
AU645553B2 (en) An equivalent network interface module for connecting a programmable logic controller to a high speed communications network
CN1169063C (en) Protocol converting method and device between in-situ bus and serial interface equipment
CN1801020A (en) Embedded field bus protocol interface device and implementation method
CN103095538A (en) Multi-class industrial Ethernet bus integrated master station
CN1791103A (en) Field bus communication adapter with configurable characteristic
CN1969270A (en) Bus controller for handling split transactions
JPH034351A (en) System-bus-data-link device
CN105243044A (en) Serial port based management system and management method
CN106888141A (en) A kind of efficient CAN communication means
CN1160618C (en) Programmable controller
CN101414177A (en) System for converting serial port to Ethernet based on field bus data acquisition
CN101895462B (en) Serial communication gateway
CN1715956A (en) Double collecting machine system and it double collecting method for double machine hot back-up
CN2585317Y (en) Protocal switching means between on-site bus and serial interface device
CN101047447A (en) Point-to-point industrial series real-time communication system based on optical fibre and its control method
CN1798114A (en) CAN bus - bridge of Ethernet network
CN101867570A (en) CAN-based communication method in embedded software reliability test
US8554966B2 (en) Method for data exchange
CN114168519A (en) Working robot control system based on serial bus communication technology
CN1151443C (en) Device for switching from non-software drive memory interface to software drive interface
CN1976354A (en) Universal industrial protocol Ethernet adapter and software thereof
CN1581126A (en) IIC bus control system and method for realizing same
CN104133447A (en) Engineering machine control system and engineering machine
CN212061144U (en) Expansion system based on ASI bus
CN201266317Y (en) On-site bus serial communication and Ethernet ascendency complementary system

Legal Events

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