CN1735090A - Communication adapter of field bus equipment communication - Google Patents

Communication adapter of field bus equipment communication Download PDF

Info

Publication number
CN1735090A
CN1735090A CN 200410017039 CN200410017039A CN1735090A CN 1735090 A CN1735090 A CN 1735090A CN 200410017039 CN200410017039 CN 200410017039 CN 200410017039 A CN200410017039 A CN 200410017039A CN 1735090 A CN1735090 A CN 1735090A
Authority
CN
China
Prior art keywords
equipment
lower floor
adapter
communication
communication adapter
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
CN 200410017039
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.)
Shanghai Electrical Apparatus Research Institute Group Co Ltd
Original Assignee
Shanghai Electrical Apparatus Research Institute Group 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 Shanghai Electrical Apparatus Research Institute Group Co Ltd filed Critical Shanghai Electrical Apparatus Research Institute Group Co Ltd
Priority to CN 200410017039 priority Critical patent/CN1735090A/en
Publication of CN1735090A publication Critical patent/CN1735090A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

This invention relates to communication adapter for communication of field bus devices, which comprises a CPU, a main power source loop, a state indicating unit, a set unit for node address, a selection unit for device type, upper and lower layer signal processing units; wherein, the data transmission belongs to master-salve transmission structure; to increase communication speed and quality, it stores automatic detection program for baud rate, signaling process program and protocol matching process program in CPU. The invention can solve the IP conversion and matching problem and has well versatility.

Description

The communication adapter of field bus device communication
Technical field:
The present invention relates to a kind of DeviceNet field bus communication adapter, between Modbus agreement and DeviceNet agreement, carry out a kind of communication adapter of protocol conversion more precisely.
Background technology
Along with science and technology development, a kind of DeviceNet bussing technique is developed, in the looks that change some fields.
The DeviceNet bussing technique adopts data/address bus, as long as draw two or seldom several threads, just each field apparatus can be coupled together by main website, and for equipment provides configuration, functions such as supervision, control and diagnosis.
The development of bussing technique brings great impact to low-pressure electronic equipment product, and the product in low-voltage distribution field also can't insert the DeviceNet network at present, forms a DeviceNet bus-type distribution system.For equipment increases DeviceNet interface two kinds of ways basically: the one, adopt DeviceNet Interface design and design of product function to merge fully, a shared software and hardware resources: another way is that DeviceNet Interface design and design of product function are independently carried out, both carry out exchanges data by certain mode (serial port, parallel port or the like).These two kinds of ways cut both ways: first kind of way, and exchanges data is than very fast, but the CPU burden is heavier, and not having flexibility, equipment can't freely select whether to have the DeviceNet interface; Second kind of way, equipment can freely select whether to provide the DeviceNet interface, but has increased individual intermediate data exchange link, the assurance communication quality of adopting an effective measure.
Because the diversity of DeviceNet network data and the flexibility of exchange, two kinds of common problems of way are will be for different device designs different DeviceNet interface convertors.The DeviceNet network does not have complete, integrated protocol chip, so each device fabrication commercial city will study, develop the DeviceNet agreement, and the construction cycle is long, drops into also bigger.At present, DeviceNet adapter both domestic and external can only send to main website with some fixed data bag of equipment, and flexibility, practicality are very poor, and just part has realized the DeviceNet agreement can't embodying the DeviceNet network advantages.
Open as Shanghai dust energising gas limited company that halberd is disclosed to be entitled as " based on the slave unit communication adapter design of DeviceNet bus " (" single-chip microcomputer and embedded system application " 2000, (8) ,-38~41).Pump/valve control slave unit communication adapter of mentioning in the literary composition based on the DeviceNet bus is used for the communication equipment between intelligent pump/valve control and the DeviceNet network, is used for exchange I/O data and other setting datas between intelligent pump/valve control and DeviceNet network master.It is an independently slave unit communication adapter, comprises CPU, two-way RAM, controller transceiver, microswitch, power circuit.
Summary of the invention
The purpose of this invention is to provide a kind of effective, intelligent, general DeviceNet communication adapter, multiple field apparatus is made things convenient for, inserts the DeviceNet network at a high speed, in high quality, form an intelligent monitor system.
In order to achieve the above object, solution of the present invention is: this communication adapter comprises main CPU unit, main power source four tunnel, state indicating member, node address setup unit, device type selected cell, upper layer network signal processing unit and lower floor's device signal processing unit, the transfer of data of foregoing circuit are master/slave transmission structures.In order to improve traffic rate and communication quality, in the main CPU unit stored auto-baud trace routine, signal transmission flow program, signal receives process program, protocol conversion coupling process program.
The software and hardware that above-mentioned program constitutes combines, and just can solve procotol conversion and matching problem.
Effect of the present invention: adopt this kind adapter, its wiring and control mode can be saved number of conductors greatly, and be safe and reliable, and can effectively reduce the whole system investment, and tangible economic benefit is arranged.
Description of drawings:
Fig. 1 is the electrical principle block diagram of communication adapter of the present invention;
Fig. 2 is the line map of the electrical principle block diagram of communication adapter of the present invention;
Fig. 3 is an auto-baud trace routine flow chart of the present invention;
Fig. 4 is a main program flow chart of the present invention:
Fig. 5 is that equipment end signal of the present invention sends, and receives the flow chart of program.
Embodiment
Below in conjunction with drawings and Examples the present invention is further described.Comprise a main CPU unit 1, state indicating member 3, main power circuit 2, upper strata port A, upper layer network signal processing unit 4, lower floor's device signal processing unit 5, F layer port B, the transfer of data of foregoing circuit is a master/slave transmission structure, promptly from the DeviceNet Network Transmission to equipment interface.Main power circuit is connected power supply with upper layer network information process unit 4, main CPU unit 1, lower floor's device signal processing unit 5 respectively.
As shown in Figure 2, this is the concrete circuit of communication adapter electrical diagram.
Described main CPU unit 1 is selected the T89C51CC01 chip for use, and ISP downloads, and the storage RAM of 1K is arranged, and this CPU processing speed is very fast, and memory space is big, supports online programming, helps product up-gradation, needs only programming software again.
Described main power circuit 2 comprises filter circuit and switching mode pressurizer, is made up of elements such as resistance R, capacitor C, inductance L, and 5V is provided power supply in the line.
Described state indicating member is the circuit that two two golden indicator lights are used to refer to power supply status and network state, and in CPU element, the program of curing is controlled two groups of indicator lights according to power supply status and network state, and it comprises resistance R 6~R 9And light-emitting diode.
Described upper strata channel signal processor 4 and lower floor's channel signal processor 5 provide protocol conversion between network and the equipment, and data exchange channel is used for communicating by letter of upper layer network and lower floor's equipment.It is by integrated package U 2And capacitor C 6, C 9Form, by integrated package U 6, resistance R 12~R 16Form.
Described upper strata port A and the port B of lower floor, upper layer network is the main website of lower floor's equipment, by communicating by letter of main website initiation and slave station, slave station responds the request of main website.The order of transfer of data: upper layer signal processing unit 4 receives the request of upper layer network main website, solicited message by 1 pair of main website of main CPU unit makes an explanation, analyzes, protocol mode with reasonably asking to support with lower floor's equipment sends to lower floor's equipment by lower floor's device signal processing unit 5.
As Fig. 3~shown in Figure 5, this is the process program of several softwares.
As shown in Figure 3, this is an auto-baud trace routine flow chart.
This flow process detects the network baud rate by software mode.When starting, earlier baud rate is arranged to the 125K pattern, allow simultaneously to receive and wrong the interruption.If produce mistake on the CAN bus, higher baud rate just is arranged to baud rate by software.After continuous 2 information successfully received, the CAN chip had detected correct bit rate, enters normal transceiver mode, at this moment, promptly can work as the CAN node of other activation of system on this node.
As shown in Figure 4, this is the main program flow chart of communication adapter of the present invention, and this program relates to device data and exchanges problem.Main program comprises the following steps: that 901 main journeys begin to discern to 902 device types, test to 903 module network LED through the identification back, arrive the initialization of 905CAN control chip again to 906 intelligent chip MCU initialization to 904 DeviceNet communication initialization, refresh WatchDog Timer to 907, handle with the device data exchange to 908 at last.
As shown in Figure 5, this be communication adapter of the present invention with equipment end exchanges data flow chart, this flow process mainly comprises and sends requested part and handle receiving unit.The step of its transmission and reception is: step 101 is for request to be sent such as judging whether, whether step 101 is if not, be true to the significant response of step 110 judgment device just.If yes, just arrive step 102, step 102 if yes, just enter step 103 judgement (priority are the highest) to be sent such as control commands arranged, step 103 if yes, just enter step 104 and send request, send the intervalometer zero clearing, reclocking jumps to step 110 then, if step 103 is not, just enter step 105 and judged whether to set that to read configuration parameter request etc. to be sent, step 105 just enters step 106 and judges whether doublely not meet with a response if yes, step 106 if yes, just enter step 107 and from request queue, delete this and ask for instructions, forward step 110 then to, if step 106 is not to the upper layer network report, then enter step 109 and send respective request, whether send counting and add up, send the intervalometer zero clearing, then entering step 110 judgment device significant response sign is true; The real-time working request of data is read in transmission if step 105 not, then enters step 108, and this request of deletion from request queue, sends the intervalometer zero clearing, and whether enter step 110 judgment device significant response sign then is true; Step 110 if yes, then enter response of step 111 control command or read/write configuration parameter response, if step 110 is not, return requests to be sent such as step 101 has judged whether, step 111 if yes, then enter step 112 and from request queue, delete this request to upper layer network transmission response data, equipment correctly responds sign and thinks false, just return step 101 then and judge whether requests to be sent such as effective, if step 111 is not, just enter the step 113 Refresh Data real time data map section that receives, equipment correctly responds sign and thinks false, returns step 101 then again.It is pointed out that step 101 has request to be sent, is the request of DeviceNet that interrupt to receive by CAN, and carries out that protocol conversion obtains, and step 112 will be done protocol conversion when upper layer network sends response data.

Claims (8)

1, a kind of communication adapter that is used for the field bus device communication comprises a microprocessor (1), main power circuit (2), state indicating member (3) controller and information transceiver, it is characterized in that: set up upper strata port A and the port B of lower floor;
Described little processing (1) is cpu chip (1), and main power circuit (2) has been realized by the DeviceNet network power supply;
Described information transceiver is independently upper strata channel signal processing unit (4) and lower floor's channel signal processing unit (5);
Described state refers to that unit (3) is the indicating circuit that is used to refer to power supply status and network state with two bi-colour LEDs;
The foregoing circuit message transmission is a master/slave transmission structure, upper layer network is the main website of lower floor's equipment, by communicating by letter of main website initiation and slave station, slave station responds the request of main website, so data transfer sequence: upper layer signal processing unit (4) receives the request of upper layer network, handles by CPU (1), to reasonably ask, issue lower floor's equipment by lower floor's device signal processing unit (5),, send to main website by upper layer network processing unit (4) through CPU element (1) verification; Stored energy independent detection one-port is correctly lived the auto-baud trace routine of speed in the host CPU of this adapter, relates to the main program of exchanges data, can inquire about, and sends, and the equipment end signal of reception sends and the reception program.
2, communication adapter as claimed in claim 1 is characterized in that:
What described main CPU unit (1) was selected for use is that processing speed is fast, memory space big, the T89C51CC01 chip of support online programming.
3, communication adapter as claimed in claim 1 is characterized in that:
Described main power circuit comprises filter and switching mode pressurizer, is made up of resistance, electric capacity, inductance R, C, L, provides 5V power supply to adapter.
4, communication adapter as claimed in claim 1 is characterized in that:
Described upper strata channel signal processing unit (4) and lower floor's channel signal processing unit (5) provide protocol conversion between network and the equipment, data transaction passage, mainly by integrated package U 2And capacitor C 6, C 9And integrated package U 6, resistance R 12, R 13~R 16Form.
5, communication adapter as claimed in claim 1 is characterized in that:
Described upper strata port A and the port B of lower floor, its upper layer network is the main website of lower floor's equipment, by communicating by letter of main website initiation and slave station, and the request response, its composition comprises J 1And J 7
6, communication adapter as claimed in claim 1 is characterized in that:
Describedly being stored in auto-baud trace routine in the host CPU, is a kind of auto-baud trace routine that can detect correct bit rate, can make adapter turn to normal mode of operation.
7, communication adapter as claimed in claim 1 is characterized in that:
Described main program, it is a kind of program that relates to the equipment end exchanges data, comprise the following steps: that step 901 main program begins, to the identification of step 902 device type, test to step 903 module/network LED through the identification back, arrive step 906 intelligent chip MCU initialization to step 904 DeviceNet communication initialization again to the initialization of step 905CAN control chip, refresh WatchDog Timer, arrive step 908 and equipment end data exchange processing at last to step 907.
8, communication adapter as claimed in claim 1 is characterized in that:
Described adapter and equipment end data exchange program, comprise the program that sends requested part and handle receiving unit, its effect is the equipment that sends to that will interrupt receiving by CAN and carried out protocol conversion, and the reply data of receiving equipment is delivered upper strata channel signal processing unit (4).
CN 200410017039 2004-03-18 2004-03-18 Communication adapter of field bus equipment communication Pending CN1735090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200410017039 CN1735090A (en) 2004-03-18 2004-03-18 Communication adapter of field bus equipment communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200410017039 CN1735090A (en) 2004-03-18 2004-03-18 Communication adapter of field bus equipment communication

Publications (1)

Publication Number Publication Date
CN1735090A true CN1735090A (en) 2006-02-15

Family

ID=36077285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200410017039 Pending CN1735090A (en) 2004-03-18 2004-03-18 Communication adapter of field bus equipment communication

Country Status (1)

Country Link
CN (1) CN1735090A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241636B (en) * 2008-01-14 2010-06-16 威胜集团有限公司 Communication protocols converter for electrical energy metering, charging and meter reading system
CN1976355B (en) * 2006-11-28 2011-04-20 上海电器科学研究所(集团)有限公司 Configurable communication adapter for field bus technique use
CN101548247B (en) * 2006-11-09 2011-07-27 罗斯蒙德公司 Adapter for providing digital communication between a field device and a computer
CN1964363B (en) * 2006-11-28 2011-12-14 上海电器科学研究所(集团)有限公司 Configurable I/O module with multiple bus interface
CN102783093A (en) * 2010-02-26 2012-11-14 株式会社自动网络技术研究所 Communication connectors, communication harness, and communication system
CN105450595A (en) * 2014-08-13 2016-03-30 上海华建电力设备股份有限公司 DeviceNet and MODBUS protocol conversion device and implement method
CN105573200A (en) * 2015-12-16 2016-05-11 大连尚能科技发展有限公司 Communication apparatus for wind power converter, and communication method
CN105824267A (en) * 2015-01-05 2016-08-03 沈阳新松机器人自动化股份有限公司 Intelligent power supply for robot servo driver
CN110046110A (en) * 2019-04-24 2019-07-23 嘉应学院 A kind of method and adapter that terminal is set on site

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101548247B (en) * 2006-11-09 2011-07-27 罗斯蒙德公司 Adapter for providing digital communication between a field device and a computer
CN1976355B (en) * 2006-11-28 2011-04-20 上海电器科学研究所(集团)有限公司 Configurable communication adapter for field bus technique use
CN1964363B (en) * 2006-11-28 2011-12-14 上海电器科学研究所(集团)有限公司 Configurable I/O module with multiple bus interface
CN101241636B (en) * 2008-01-14 2010-06-16 威胜集团有限公司 Communication protocols converter for electrical energy metering, charging and meter reading system
CN102783093A (en) * 2010-02-26 2012-11-14 株式会社自动网络技术研究所 Communication connectors, communication harness, and communication system
CN105450595A (en) * 2014-08-13 2016-03-30 上海华建电力设备股份有限公司 DeviceNet and MODBUS protocol conversion device and implement method
CN105824267A (en) * 2015-01-05 2016-08-03 沈阳新松机器人自动化股份有限公司 Intelligent power supply for robot servo driver
CN105824267B (en) * 2015-01-05 2019-02-15 沈阳新松机器人自动化股份有限公司 A kind of intelligent power for robot servo driver
CN105573200A (en) * 2015-12-16 2016-05-11 大连尚能科技发展有限公司 Communication apparatus for wind power converter, and communication method
CN105573200B (en) * 2015-12-16 2019-02-15 大连尚能科技发展有限公司 A kind of communication device and communication means for wind electric converter
CN110046110A (en) * 2019-04-24 2019-07-23 嘉应学院 A kind of method and adapter that terminal is set on site

Similar Documents

Publication Publication Date Title
CN105610876B (en) Industrial control automation network communication protocol converter and communication protocol conversion method
CN100511323C (en) Intelligent traffic control system for controlling access connection traffic flow
CN103777613B (en) Principal and subordinate's information realtime interactive method and system
CN103490959B (en) A kind of dual-redundant CAN bus fault detection method
CN1735090A (en) Communication adapter of field bus equipment communication
CN1791103A (en) Field bus communication adapter with configurable characteristic
CN204856878U (en) Embedded M -BUS intelligence concentrator
CN2686217Y (en) Communication adapter for field equipment communication
CN103823775A (en) Serial port and Internet port smart converter
CN102255975A (en) Dual-port-random access memory (RAM)-based embedded common Ethernet/Internet protocol (IP) communication interface device
CN114726675A (en) 485 communication network and intelligent lighting system based on area detects conflict
CN1753407A (en) Communication adapter
CN104299429B (en) A kind of semaphore controlled based on spi bus
CN207319048U (en) Pipeline stall positions and remote alarming device
CN102724090A (en) Process field bus (PROFIBUS) DP/PA integrated embedded slave node communication device based on DP controller with integrated 8031 core (DPC31)
CN1976355B (en) Configurable communication adapter for field bus technique use
CN104424053A (en) ARM embedded type control system and control method based on redundancy architecture
CN114168519A (en) Working robot control system based on serial bus communication technology
CN1818817A (en) Bus-style controller
CN103019210B (en) A kind of bus connection system of flexible production line traffic control
CN2919703Y (en) Communication adapter
CN203178384U (en) Multi power supply identifying device based on BPL technology
CN106640167B (en) A kind of three machine monitoring systematic communication network of fully-mechanized mining working based on LabVIEW
CN206517433U (en) A kind of BACnet/IP DALI gateways
CN204390027U (en) A kind of Automatic gate control circuit

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

Open date: 20060215