CN114553973A - Device for converting protocol data into bus data - Google Patents

Device for converting protocol data into bus data Download PDF

Info

Publication number
CN114553973A
CN114553973A CN202210122045.0A CN202210122045A CN114553973A CN 114553973 A CN114553973 A CN 114553973A CN 202210122045 A CN202210122045 A CN 202210122045A CN 114553973 A CN114553973 A CN 114553973A
Authority
CN
China
Prior art keywords
circuit part
profibus
module
power supply
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.)
Pending
Application number
CN202210122045.0A
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.)
Handan Iron and Steel Group Co Ltd
HBIS Co Ltd Handan Branch
Original Assignee
Handan Iron and Steel Group Co Ltd
HBIS Co Ltd Handan Branch
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 Handan Iron and Steel Group Co Ltd, HBIS Co Ltd Handan Branch filed Critical Handan Iron and Steel Group Co Ltd
Priority to CN202210122045.0A priority Critical patent/CN114553973A/en
Publication of CN114553973A publication Critical patent/CN114553973A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40221Profibus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40228Modbus
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention relates to a device for converting protocol data into bus data, and belongs to the technical field of steel rail production electrical equipment. The technical scheme of the invention is as follows: the RS485 module part, the profibus-DP circuit part, the RS232 interface circuit part and the parameter storage circuit are respectively connected with the input end of the MCU main logic circuit part and respectively throw out an interface supporting a modbus _ RTU protocol to connect the protocol device externally, the output end of the MCU main logic circuit part is connected with the profibus-DP circuit part through a software part, and the profibus-DP circuit part supports the external DP protocol device externally; the software portion includes a single-chip microcomputer control program and a GSD file for the Siemens system. The digital signal processing system has a profibus bus interface, has a function of reading modbus protocol digital signals, and realizes the function of reading digital signals by using the existing PLC system.

Description

Device for converting protocol data into bus data
Technical Field
The invention relates to a device for converting protocol data into bus data, in particular to a device for converting modbus-RTU protocol data into Profibus bus data, and belongs to the technical field of steel rail production electrical equipment.
Background
As a profibus field bus becomes an international standard and is widely applied all over the world, field electric control equipment in a rolling line area is mainly connected by the profibus field bus, and the conventional PLC system is used for reading various data of field sensors or sending various control commands by connecting a master station through S7-400 or S7-300 and connecting a plurality of profibus-dp slave stations through the profibus. At present, sensors used for measurement on a rolling line site are basically analog quantity signals, and errors can be brought to accurate measurement due to systematic errors of temperature drift, zero drift, return difference and the like existing in the output of the analog quantity signals. The digital quantity signal sensor has no defects, along with the continuous progress of industrialization, a digitization technology is increasingly used, and the analog quantity signal output used at present is gradually replaced by digitization. And the existing various templates of the Siemens PLC system in the wire-rolling profibus environment cannot directly read digital quantity signals.
Disclosure of Invention
The invention aims to provide a device for converting protocol data into bus data, which combines the technologies used by rolling line electric control and instrument control, combines a Modbus communication protocol with a 32-bit STM32F103ZE microprocessor through the interpretation of a profibus bus protocol and the analysis of output signals of a digital sensor to manufacture a device, has a profibus bus interface, has the function of reading Modbus protocol digital signals, realizes the function of reading the digital signals by using the existing PLC system, and effectively solves the problems in the background technology.
The technical scheme of the invention is as follows: a device for converting protocol data into bus data, in particular to a device for converting modbus-RTU protocol data into Profibus bus data, which comprises a power supply module, an MCU main logic circuit part, an RS485 module part, a Profibus-dp circuit part, an RS232 interface circuit part, a parameter storage circuit and a software part, the power supply module respectively supplies power to the MCU main logic circuit part, the RS485 module part, the profibus-dp circuit part, the RS232 interface circuit part and the parameter storage circuit are respectively connected with the input end of the MCU main logic circuit part, interfaces supporting the modbus _ RTU protocol are respectively thrown out to connect the protocol equipment externally, the output end of the MCU main logic circuit part is connected with a profibus-DP circuit part through a software part, and the profibus-DP circuit part supports the external DP protocol equipment; the software portion includes a single-chip microcomputer control program and a GSD file for the Siemens system.
The power supply module comprises a 5V voltage-stabilized power supply and an isolation power supply, wherein the 5V voltage-stabilized power supply is converted into a 3.3V voltage-stabilized power supply to supply power for the MCU main logic circuit part and the RS232 interface circuit part; the 5V voltage-stabilized power supply supplies power to the RS485 module part and the profibus-dp circuit part by connecting an isolation power supply, and provides electrical isolation of power supply of front and rear systems.
The parameter storage circuit comprises an AT24C02 storage module and an IIC interface module, wherein the AT24C02 storage module is arranged in the MCU main logic circuit part and carries out read-write operation through the IIC interface module.
The profibus-dp circuit part adopts an SPC3 communication chip of Siemens, and the electrical isolation on the input and output channels adopts an ADM2486 chip.
The invention has the beneficial effects that: the Modbus communication protocol is combined with a 32-bit STM32F103ZE microprocessor by reading a profibus bus protocol and analyzing the output signal of a digital sensor in combination with the technologies used by rolling line electric control and instrument control to manufacture a device with a profibus bus interface and a function of reading a Modbus protocol digital signal, so that the function of reading the digital signal by using the existing PLC system is realized.
Drawings
FIG. 1 is a project flow diagram of the present invention;
FIG. 2 is a layout diagram of the present invention;
FIG. 3 is a block diagram of the power supply circuit of the present invention;
FIG. 4 is a connection block diagram of the present invention;
FIG. 5 is a schematic diagram of a portion of the MCU main logic circuit of the present invention;
FIG. 6 is a schematic diagram of a parameter storage circuit of the present invention;
FIG. 7 is a schematic diagram of a portion of the RS485 module of the present invention;
FIG. 8 is a schematic diagram of a portion of the RS232 interface circuit of the present invention;
FIG. 9 is a schematic diagram of a portion of a profibus-dp circuit of the present invention;
FIG. 10 is a circuit schematic of the terminal interface and reset of the present invention;
FIG. 11 is a key program screenshot of the present invention;
FIG. 12 is a pictorial representation of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions of the embodiments of the present invention with reference to the drawings of the embodiments, and it is obvious that the described embodiments are a small part of the embodiments of the present invention, rather than all embodiments, and all other embodiments obtained by a person of ordinary skill in the art without creative work based on the embodiments of the present invention belong to the protection scope of the present invention.
A device for converting protocol data into bus data comprises a power module, an MCU (microprogrammed control Unit) main logic circuit part, an RS485 module part, a profibus-DP circuit part, an RS232 interface circuit part, a parameter storage circuit and a software part, wherein the power module respectively supplies power to the MCU main logic circuit part, the RS485 module part, the profibus-DP circuit part, the RS232 interface circuit part and the parameter storage circuit part; the software portion includes a single-chip microcomputer control program and a GSD file for the Siemens system.
The power supply module comprises a 5V voltage-stabilized power supply and an isolation power supply, wherein the 5V voltage-stabilized power supply is converted into a 3.3V voltage-stabilized power supply to supply power for the MCU main logic circuit part and the RS232 interface circuit part; the 5V voltage-stabilized power supply supplies power to the RS485 module part and the profibus-dp circuit part by connecting an isolation power supply, and provides electrical isolation of power supply of front and rear systems.
The parameter storage circuit comprises an AT24C02 storage module and an IIC interface module, wherein the AT24C02 storage module is arranged in the MCU main logic circuit part and carries out read-write operation through the IIC interface module.
The profibus-dp circuit part adopts an SPC3 communication chip of Siemens, and the electrical isolation on the input and output channels adopts an ADM2486 chip.
In practical application, fig. 1 is a project flow chart, STEP7 of siemens is used as a programming tool, hardware and communication configuration is performed on a profibus master station and a profibus slave station through the software package, after the hardware is configured by using an hw C onf identity tool in the software package, programming is performed by using a programming language, and after the program is compiled, the compiled code is downloaded to a PLC through an M PI cable to be operated, so that a communication protocol conversion function is realized. And aiming at the module, a GSD file is manufactured and used for hardware configuration of the new project.
Fig. 2 is a layout (i.e. a GSD file screenshot of data module hardware), and the design concept is as follows: the functional modules are reasonably arranged, and the power supply module, the high-power circuit and the strong-current circuit are arranged at one corner of the circuit board, so that the interference of the power supply module, the high-power circuit and the strong-current circuit on other circuits is reduced; the circuit board adopts a double-layer board, and the shortest principle is ensured during wiring. The wiring turn is an obtuse angle, the power line is thickened, and data, address and control buses are separately wired.
Fig. 3 is a power supply circuit structure diagram, which adopts a voltage-stabilized power supply and an isolation power supply to supply power to each module respectively, so as to ensure the stability of a module power supply system and a signal transmission system. The 5V voltage-stabilized power supply adopts a power management chip with the model XL1507-5.0, the power management chip is wide in input voltage range from 4.5V to 40V, is a high-efficiency and high-voltage step-down DC-DC converter, fixes the switching frequency of 150KHz, can provide the highest 3A output current capability, has low ripple waves and excellent linear regulation rate and load regulation rate, and is internally provided with a fixed frequency oscillator and a frequency compensation circuit, so that the circuit design is simplified.
Fig. 4 is a connection block diagram of the present invention, in which an RS485 module portion, a Profibus-DP circuit portion, an RS232 interface circuit portion, and an IIC interface module are respectively connected to an MCU main logic circuit portion having an AT24C02 storage module, and respectively throw out an interface supporting a modbus _ RTU protocol to facilitate external connection of the protocol device, and the MCU main logic circuit portion is connected to the Profibus-DP circuit portion supporting external connection of DP protocol devices such as a PLC, a computer, and the like, thereby completing conversion of modbus-RTU protocol data to Profibus bus data.
FIG. 5 is a schematic diagram of a main logic circuit part of the MCU, and an STM32F103 type CPU adopting an ARM core. The processor is a latest generation of embedded ARM processor, provides a low-cost platform for realizing the requirements of the MCU, has few pins and low system power consumption, simultaneously provides excellent computing performance and an advanced interrupt system, and a built-in flash memory of 128k bytes is built in the CPU for storing programs and data.
FIG. 6 is a schematic diagram of a parameter storage circuit, which is a 2K-bit serial COMS E2PROM using AT24C02 chip, and has 256 8-bit bytes inside, and the device performs read-write operation through IIC interface module, and has a special write-protection function.
FIG. 7 is a schematic diagram of a portion of an RS485 module, including an isolation power supply and a digital communication isolation circuit. The module power supply and signal input adopt a photoelectric isolation mode, so that the stability and safety of the module signal are ensured.
Fig. 8 is a schematic diagram of a part of a circuit of an RS232 interface, which meets the requirements of a sensor access system with different interfaces.
FIG. 9 is a schematic diagram of a portion of a profibus-dp circuit. The partial circuit mainly adopts an SPC3 communication chip of Siemens. SPC3 is a chip packaged with profibus-dp protocol, the maximum transmission rate can reach 12M bps, SPC3 can automatically detect the transmission rate on the bus, the inside has 1.5K bytes of double RAM, only after the register and data area in the chip are initialized according to the correct method, the double RAM is read and written to complete the communication between the slave station and the master station. To improve the immunity of the system, the SPC3 internal circuitry must be electrically isolated from the physical interface. The electrical isolation on the input and output channels adopts an ADM2486 chip. The chip adopts the latest iCoupler isolation technology of ADI (analog device, inc), and has very obvious advantages compared with the traditional optical coupler: the wide-range temperature requirement of an industrial field is completely met, and the temperature reaches (-40 ℃ to +85 ℃); low power consumption; a transmission rate up to 20M bps; fewer peripheral components are required.
Fig. 10 is a schematic circuit diagram of the terminal interface and reset.
FIG. 11 is a key program screenshot.
FIG. 12 is a pictorial representation of the present invention, the workflow of which is: firstly, connection is carried out according to a real object in a figure, a DP plug in an original profibus protocol system is inserted into a port 1 of a module, a digital quantity instrument selects a new generation HTU21D temperature and humidity sensor of French Humirel corporation of modbus-RTU protocol, and a sensor cable is connected into a port 2 of the module. After the module is powered on, a digital quantity signal in the sensor is transmitted into the module, the digital signal is processed and converted into a profibus protocol through SPC3, and data are transmitted to the master station through the original profibus network. The invention can directly transmit the digital signal to the profibus network, and the module is used as a PLC slave station (the address can be set) to directly exchange data with the PLC.

Claims (4)

1. A protocol data changes the apparatus of the bus data, especially the apparatus that modbus-RTU protocol data changes Profibus bus data, characterized by that: the power supply module supplies power to the MCU main logic circuit part, the RS485 module part, the profibus-DP circuit part, the RS232 interface circuit part and the parameter storage circuit part respectively, the RS485 module part, the profibus-DP circuit part, the RS232 interface circuit part and the parameter storage circuit part are connected with the input end of the MCU main logic circuit part respectively, and throw out interfaces supporting a modbus _ RTU protocol respectively to connect the protocol equipment externally, the output end of the MCU main logic circuit part is connected with the profibus-DP circuit part through the software part, and the profibus-DP circuit part supports external DP protocol equipment; the software portion includes a single-chip microcomputer control program and a GSD file for the Siemens system.
2. The device for converting protocol data into bus data according to claim 1, wherein: the power supply module comprises a 5V voltage-stabilized power supply and an isolation power supply, wherein the 5V voltage-stabilized power supply is converted into a 3.3V voltage-stabilized power supply to supply power for the MCU main logic circuit part and the RS232 interface circuit part; the 5V voltage-stabilized power supply supplies power to the RS485 module part and the profibus-dp circuit part by connecting an isolation power supply, and provides electrical isolation of power supply of front and rear systems.
3. The device for converting protocol data into bus data according to claim 1, wherein: the parameter storage circuit comprises an AT24C02 storage module and an IIC interface module, wherein the AT24C02 storage module is arranged in the MCU main logic circuit part and carries out read-write operation through the IIC interface module.
4. The device for converting protocol data into bus data according to claim 2, wherein: the profibus-dp circuit part adopts an SPC3 communication chip of Siemens, and the electrical isolation on the input and output channels adopts an ADM2486 chip.
CN202210122045.0A 2022-02-09 2022-02-09 Device for converting protocol data into bus data Pending CN114553973A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210122045.0A CN114553973A (en) 2022-02-09 2022-02-09 Device for converting protocol data into bus data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210122045.0A CN114553973A (en) 2022-02-09 2022-02-09 Device for converting protocol data into bus data

Publications (1)

Publication Number Publication Date
CN114553973A true CN114553973A (en) 2022-05-27

Family

ID=81674316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210122045.0A Pending CN114553973A (en) 2022-02-09 2022-02-09 Device for converting protocol data into bus data

Country Status (1)

Country Link
CN (1) CN114553973A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103941680A (en) * 2014-03-31 2014-07-23 中海油工业自控(天津)有限公司 DCS data communication system of heterogeneous communication network
CN205545361U (en) * 2016-03-25 2016-08-31 四川零点自动化系统有限公司 ModbusRTU changes profibus -DP's protocol converter
US20170303013A1 (en) * 2016-04-14 2017-10-19 Abb S.P.A. Computerised platform for monitoring the operation of an electric power distribution grid

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103941680A (en) * 2014-03-31 2014-07-23 中海油工业自控(天津)有限公司 DCS data communication system of heterogeneous communication network
CN205545361U (en) * 2016-03-25 2016-08-31 四川零点自动化系统有限公司 ModbusRTU changes profibus -DP's protocol converter
US20170303013A1 (en) * 2016-04-14 2017-10-19 Abb S.P.A. Computerised platform for monitoring the operation of an electric power distribution grid

Similar Documents

Publication Publication Date Title
CN201540330U (en) Digital multifunctional network electrical measuring instrument
CN201886332U (en) Power electronic control system based on MCU and FPGA
CN114553973A (en) Device for converting protocol data into bus data
CN111245100A (en) Intelligent Internet of things single-phase multifunctional power monitoring terminal and method
Xiao et al. Design for wireless temperature and humidity monitoring system of the intelligent greenhouse
CN201945855U (en) Thermal error compensating device based on numerical controlling working table
CN210693974U (en) Bridge monitoring sensor system based on Can bus
CN204423064U (en) A kind of 8 road A/D converters supporting Modbus RTU slave station protocol
CN210380935U (en) Communication address self-setting system of digital weighing sensor
CN208458792U (en) A kind of data information acquisition device of construction site equipment
CN203660662U (en) Single-space five-in-one device for intelligent transformer station
CN207133340U (en) Novel guideway high accurate & multifunction electric power instrument
CN112180820A (en) Application method of Modbus RTU communication protocol in EDPF-NT Plus system
CN207113926U (en) A kind of humiture measurement mechanism based on LORA
Zhang et al. Research and design of embedded tank car monitoring system based on ARM9
CN206726000U (en) Signal-processing board
CN217159861U (en) Television system based on distributed power supply
CN111060727A (en) Electric energy meter
CN211429005U (en) Single-phase multi-functional electric power monitor terminal of intelligence thing networking
CN2653793Y (en) Household network intelligent terminal
CN202929748U (en) Circuit module of concentrator
CN217639994U (en) MCU mainboard for water and electricity control system IO module
CN218767884U (en) Hydraulic servo control box
CN216118685U (en) Power supply loop analysis tool based on CAN communication
CN218917970U (en) Practical multifunctional module PLC electric cabinet

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination