CN101841542A - Method for realizing PROFIBUS master station communication protocol based on FPGA (Field Programmable Gate Array) technology - Google Patents

Method for realizing PROFIBUS master station communication protocol based on FPGA (Field Programmable Gate Array) technology Download PDF

Info

Publication number
CN101841542A
CN101841542A CN 201010165868 CN201010165868A CN101841542A CN 101841542 A CN101841542 A CN 101841542A CN 201010165868 CN201010165868 CN 201010165868 CN 201010165868 A CN201010165868 A CN 201010165868A CN 101841542 A CN101841542 A CN 101841542A
Authority
CN
China
Prior art keywords
message
byte
programmable gate
gate array
field programmable
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.)
Granted
Application number
CN 201010165868
Other languages
Chinese (zh)
Other versions
CN101841542B (en
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.)
BEIJING D&S FIELDBUS TECHNOLOGY Co Ltd
Original Assignee
BEIJING D&S FIELDBUS TECHNOLOGY 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 BEIJING D&S FIELDBUS TECHNOLOGY Co Ltd filed Critical BEIJING D&S FIELDBUS TECHNOLOGY Co Ltd
Priority to CN 201010165868 priority Critical patent/CN101841542B/en
Publication of CN101841542A publication Critical patent/CN101841542A/en
Application granted granted Critical
Publication of CN101841542B publication Critical patent/CN101841542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention relates to a method for realizing PROFIBUS master station communication protocol based on an FPGA (Field Programmable Gate Array)technology. In the method, firstly, a field programmable gate array (FPGA) waits for a micro control unit to send the master station information; secondly, the micro control unit sends the master station information to the FPGA; thirdly, the FPGA starts the bus message monitoring; fourthly, the FPGA receives and analyzes the message; fifthly, the micro control unit determines the message to be sent according to the field bus communication standard; sixthly, the FPGA sends the messages by package; and seventhly, the FPGA turns from a message sending state into a message receiving state; and then, the method returns to the step 4. The method realizes high-speed communication between a PROFIBUS master station and a PROFIBUS slave station by using the FPGA technology and increases the communication rate up to 12 Mbit/s.

Description

Realize the method for PROFIBUS master station communication protocol based on the FPGA technology
Technical field
The present invention relates to does not a kind ofly need to use the special-purpose PROFIBUS main website protocol chip (ASPC2) of Siemens Company, but realizes the method for industrial field bus PROFIBUS master station communication protocol by on-site programmable gate array FPGA.This method can be applied to the design of PROFIBUS main website, realizes the communication cycle DPV0 of PROFIBUS and the communication function of acyclic communication DPV1.
Background technology
At present, existing two kinds of schemes can be selected when exploitation PROFIBUS main website: a kind of method is to adopt the solution of the special-purpose main website protocol chip of micro-control unit (MCU)+Siemens Company (ASPC2), and its agreement has cured among special chip (ASPC2).
Another kind method is to adopt the solution of micro-control unit (MCU)+software, utilizes software programming to realize fieldbus international standard PROFIBUS-DP master station communication protocol;
Stipulate that transmission rate reaches as high as 12Mbit/s in the industrial field bus PROFIBUS communication international standard.
Use first kind of scheme, can reach the specification requirement in the standard fully, but that special chip is subjected to technology is underground, restrictions such as patent protection, also there is great risk in the chip supply that relies on the rival in market competition.
Use second kind of scheme to realize the PROFIBUS-DP master station communication protocol, because traffic rate is subjected to the restriction transmission rate of micro-control unit (MCU) operating frequency to be up to 1.5Mbit/s, micro-control unit is except determining to send content of message according to the field bus communication standard, also to receive the work of message, analytic message, the waste bus time, can not the fast processing data flow, thereby can't reach the highest 12Mbit/S of transmission rate.
Summary of the invention
For addressing the above problem, the purpose of this invention is to provide a kind of method that realizes the PROFIBUS master station communication protocol based on the FPGA technology, come data flow between the fast processing PROFIBUS master-salve station by the on-site programmable gate array FPGA technology, shared the major part work of micro-control unit MCU, realize the high-speed communication of PROFIBUS main website and slave station, traffic rate can reach 12Mbit/s.
For achieving the above object, the present invention is by the following technical solutions:
The present invention is a kind of method based on FPGA technology realization PROFIBUS master station communication protocol, and it is characterized in that: this method may further comprise the steps:
Step is 1.: field programmable gate array waits for that in the back initialization that powers on micro-control unit sends master information;
Step is 2.: micro-control unit sends master information to the master information register of field programmable gate array, and master information is made of main website station address, baud rate, timer time value;
Step is 3.: micro-control unit sends to field programmable gate array and is initialized to function signal, confirm that master information sends to finish, receive be initialized to function signal after, field programmable gate array starts bus message to be monitored, and waits for that message receives;
Step is 4.: micro-control unit is opened the current timer in the field programmable gate array, field programmable gate array is being waited for bus data in the timer time scope of front opening, and bus data is the message that receives of main website self or the message of slave station response;
If field programmable gate array does not receive bus data in the timer time scope, then then produce interrupt request singal in the back at current timer, and interrupt request singal sent to micro-control unit, simultaneously, the reception end signal position of the status register one of field programmable gate array remains on initial condition;
Micro-control unit reads the value of the reception end signal position of field programmable gate array internal state register one after receiving interrupt request singal, the value of this reception end signal position is 0, and then micro-control unit judges that this interrupt signal is that overtime nothing receives interruption;
If field programmable gate array receives bus data in the timer time scope, but heading is not one of 0x68,0x10,0xDC, 0xe5, then then produce interrupt request singal in the back at current timer, and interrupt request singal sent to micro-control unit, simultaneously, the reception end signal position of the status register one of field programmable gate array remains on initial condition;
Micro-control unit reads the value of the reception end signal position of field programmable gate array internal state register one after receiving interrupt request singal, the value of this reception end signal position is 0, and then micro-control unit judges that this interrupt signal is that overtime nothing receives interruption;
If field programmable gate array receives bus data in the timer time scope, and heading is one of 0x68,0x10,0xDC, 0xe5, then field programmable gate array is after receiving complete frame data, stop current timer timing, no longer because timer expiry sends interrupt request singal to micro-control unit, simultaneously, the serial received processing module of field programmable gate array is judged the message kind according to the heading that receives, and carries out following parsing then respectively:
If heading is 0x68, field programmable gate array just judges by second, third byte that reads message whether message has size error: if second, third byte length equates, just thinking does not have size error, with the Gao Siwei maintenance initial value of status register two; If second, third byte length is unequal, just thinking has size error, and high four positions of status register two are worth accordingly; Field programmable gate array has judged whether the type of message mistake by reading the 4th byte of message; If the 4th byte is identical with heading, just there is not the type of message mistake, with the Gao Siwei maintenance initial value of status register two; If the 4th byte and heading are inequality, the type of message mistake is just arranged, high four positions of status register two are worth accordingly; Field programmable gate array judges by reading the 5th byte whether this message issues this main website, if the 5th byte is identical with the main website address value that micro-control unit sends in the master information register, just think that this message issues this main website, if the main website address value that the 5th byte and micro-control unit send in the master information register is inequality, just think that this message do not issue this main website; Field programmable gate array judges whether to be the message of transmitting-receiving certainly by reading the 6th byte, if the 6th byte is identical with the main website address value, just thinks from the message of receiving and dispatching; If the 6th byte and main website address value are inequality, just think the message that slave station is sent out; Field programmable gate array continues to read all the other bytes of the 6th byte back according to message length then; Field programmable gate array is done even parity check to the penult byte that receives and is judged, the even parity check judgment mode is: field programmable gate array with the check of the frame that calculates with the message that receives in the penult byte relatively judged whether check errors: if identical, just judge no even parity check mistake, the Gao Siwei of status register two is kept initial value, if it is different, just judging has the even parity check mistake, and high four positions of status register two are worth accordingly; Frame is checked and is since the 5th byte, until the arithmetic sum of 2 complement on n ns of third from the bottom byte, after field programmable gate array was received last byte 0x16, message received and finishes;
If heading is 0x10, field programmable gate array judges by reading second byte whether this message issues this main website: if second byte is identical with the main website address value that micro-control unit sends in the master information register, just think that this message issues this main website; If the main website address value that second byte and micro-control unit send in the master information register is inequality, just think that this message do not issue this main website; Field programmable gate array judges whether to be the message of transmitting-receiving certainly by reading the 3rd byte: if the 3rd byte is identical with the main website address value, just think from the message of receiving and dispatching; If the 3rd byte and main website address value are inequality, just think the message that slave station is sent out; Field programmable gate array continues to read the 4th byte and the 5th byte then, field programmable gate array is done even parity check to the 5th byte that receives and is judged, the even parity check judgment mode is: field programmable gate array with the check of the frame that calculates and with the message that receives in the 5th byte relatively, judged whether check errors: if identical, just judge no even parity check mistake, with the Gao Siwei maintenance initial value of status register two; If different, just judging has the even parity check mistake, and high four positions of status register two are worth accordingly; Frame is checked and is since second byte, until the arithmetic sum of 2 complement on n ns of the 4th byte, after field programmable gate array was received the 6th byte, message received and finishes;
If heading is 0xDC, field programmable gate array judges by reading second byte whether this message issues this main website, if second byte is identical with the main website address value that micro-control unit sends in the master information register, just think that this message issues this main website; If the main website address value that second byte and micro-control unit send in the master information register is inequality, just think that this message do not issue this main website; Field programmable gate array judges whether to be the message of transmitting-receiving certainly by reading the 3rd byte, if the 3rd byte is identical with the main website address value, just thinks from the message of receiving and dispatching; If the 3rd byte and main website address value are inequality, just think the message that slave station is sent out; After field programmable gate array was received the 3rd byte, message received and finishes;
If heading is 0xe5, then message receives and finishes,
After message received and finishes, field programmable gate array to input buffer module, sent interrupt request singal to micro-control unit with storage, and the reception stop bits with status register one is set to 1 simultaneously;
Step is 5.: after micro-control unit receives the interrupt request singal that field programmable gate array sends, read the status register one of field programmable gate array, the value of status register two, judge and have or not message to receive, whether message is correct, and according to connecing the definite message that sends of field bus communication standard, micro-control unit sends message information to field programmable gate array message information register then, if the message that sends has the data cell part, then micro-control unit sends the data cell part to the output buffer module of field programmable gate array simultaneously, then, micro-control unit sends message to field programmable gate array and sends request signal;
Step is 6.: send request signal when field programmable gate array receives message, can read the transmission type of message in the message information of message information register inside;
If sending message is type one, field programmable gate array just reads the first seven byte of this message successively from the message information register, whenever read a byte, just send a byte, when field programmable gate array reads the 5th byte, begin to calculate frame check and, when sending the 7th byte, field programmable gate array just sends data cell from output buffer module reading of data unit and by parallel serial conversion module, after data cell sends and finishes, field programmable gate array stop to calculate frame check and, then transmit frame check and, send message-ending character at last again, frame is checked and is since the 5th byte, until the arithmetic sum of 2 complement on n ns of third from the bottom byte;
If sending message is type two, field programmable gate array just reads preceding nine bytes of this message successively from the message information register, whenever read a byte, just send a byte, when field programmable gate array reads the 5th byte, begin to calculate frame check and, when sending the 9th byte, field programmable gate array just sends data cell from output buffer module reading of data unit and by parallel serial conversion module, after data cell sends and finishes, field programmable gate array stop to calculate frame check and, then transmit frame check and, send message-ending character at last again, frame is checked and is since the 5th byte, until the arithmetic sum of 2 complement on n ns of third from the bottom byte;
If sending message is type three, field programmable gate array just reads preceding four bytes of this message successively from the message information register, whenever read a byte, just send a byte, when field programmable gate array reads second byte, begin to calculate frame check and, when sending the 4th byte, field programmable gate array stop to calculate frame check and, then transmit frame check and, send message-ending character at last again, frame is checked and is since second byte, until the arithmetic sum of 2 complement on n ns of the 4th byte;
If sending message is type four, field programmable gate array just reads first three byte of this message successively from the message information register, whenever read a byte, just sends a byte;
If sending message is type five, field programmable gate array just directly sends 0xe5;
So far message sends and finishes, and field programmable gate array is set to 1 with the transmission stop bits in the status register one;
Step is 7.: micro-control unit is opened the current timer in the field programmable gate array, and field programmable gate array changes the reception message status over to by sending message status, returns step 4., waits for that message receives.
The present invention has following positive beneficial effect:
This method realizes transmission and the reception that bus data flows by on-site programmable gate array FPGA, alleviates the burden of micro-control unit MCU serial communication; By on-site programmable gate array FPGA identification PROFIBUS message data stream, and realize data between the PROFIBUS principal and subordinate string and with and the string conversion, on-site programmable gate array FPGA born and sent message, received message, whether complete to the message that receives, whether correctly analyze with verification and calculate, therefore save bus time, improved bus communication speed; The present invention realizes the PROFIBUS master station communication by the on-site programmable gate array FPGA technology, can satisfy the specification requirement of international standard regulation fully.
Description of drawings
Fig. 1 is the hardware structure diagram of main website of the present invention.
Fig. 2 is by the software programming high-level schematic functional block diagram that forms of programmable gate array FPGA at the scene.
Fig. 3 is a workflow diagram of the present invention.
Embodiment
Please refer to Fig. 1, in the present invention, main website hardware mainly comprises on-site programmable gate array FPGA chip and micro controller unit MCU, and wherein the main signal end of on-site programmable gate array FPGA chip use is:
Serial received RXD, serial send TXD, request sends RTS, low address line ADD[7:0], high address line ADD[15:8], data wire DATA[7:0] with interrupt requests RE_OK.
The main signal end that MCU uses is: read signal/RD, write signal/WR, address be low allow ALE,
Address date multiplexing line AD[7:0] with high address line A[15:8], initialization finish signal Init_ok with send request signal SEND_REQ.
Serial ports differential signal line A, the B of IL485 chip are connected with slave station.
The design selects the on-site programmable gate array FPGA of the cyclone series of U.S. A Ertela Altera for use.Outside 485 networks send to on-site programmable gate array FPGA serial interface closing in RXD with signal by A and B line, on-site programmable gate array FPGA receives and serial data is converted to parallel data, receive to micro-control unit MCU and send interrupt request singal RE_OK, after micro-control unit MCU receives this interrupt request singal RE_OK, the response interrupt requests, call corresponding interrupt requests program, by/the RD reading of data, and whether decision sends transmission request signal SEND_REQ to on-site programmable gate array FPGA.
If micro-control unit MCU sends the transmission request signal to on-site programmable gate array FPGA, the packing data that on-site programmable gate array FPGA sends micro-control unit MCU also is converted to serial data, sends signal TXD and RTS sends to external network with data through A and the B line of IL485 by serial ports.
The address date multiplexing line AD[7:0 of micro-control unit MCU] be connected to the low address line ADD[7:0 of on-site programmable gate array FPGA by latch] as address low level signal, low address line ADD[7:0 simultaneously] be connected to the data wire DATA[7:0 of on-site programmable gate array FPGA], under read signal/RD, write signal/WR control, as data-signal.
Please refer to Fig. 2, in order to realize the communication between the PROFIBUS master-salve station, the present invention utilizes software that on-site programmable gate array FPGA is carried out the sub-module design, finishes every function of interface, and internal module comprises:
Bus interface module: bus interface module is micro-control unit MCU and the mutual passage of on-site programmable gate array FPGA, sequential requirement according to external random access memory (XRAM) expansion module of micro-control unit MCU, the bus interface of design on-site programmable gate array FPGA is to satisfy the implementing reading and writing of micro-control unit MCU to it.
Phase-locked loop module: the clock input frequency multiplication that is mainly used in the 48MHz of outside is 192MHz (working clock frequency that serial ports is the highest).
The serial clock generation module: this module is dynamically adjusted the frequency of serial ports sampling clock according to different baud rate settings, calibrates sampled point simultaneously.
Timer module: be used for the master station call duration time.
Also conversion of string (the serial input is handled) module: this module is to be used for realizing when FPGA receives data string and conversion, the end of judgment frame simultaneously (do not allow between the frame character of PROFIBUS-DP message at interval, have then think at interval frame end).
The serial received processing module: this module is according to the byte input after the conversion of serial input module and handles enable signal, judge type of message, message length, carry out frame check and FCS verification, open relevant timer, various reception false judgment, work at present state are judged, to receive data and write buffer memory, notice MCU.
Input buffer module: input-buffer is on-site programmable gate array FPGA storage inside (RAM) district, is used to deposit the data that receive.
The registers group module: this module is integrated in on-site programmable gate array FPGA inside, can be by the module of micro-control unit MCU read-write, make on-site programmable gate array FPGA be in specific state thereby one side micro-control unit MCU can be provided with the on-site programmable gate array FPGA internal register, micro-control unit MCU can judge the operation of current needs according to the state of on-site programmable gate array FPGA internal register on the other hand.
The registers group module comprises: status register one, status register two, master information register, control register, message information register.
Output buffer module: output buffers also is the RAM district of on-site programmable gate array FPGA inside, is used for the temporary data that soon sent by on-site programmable gate array FPGA.
Send processing module: this module mainly comprises judges definition status and accepting state, according to type of message, message length and message information packing message, and carries out even parity check and calculates.
And string conversion (serial output) module: this module is mainly finished the also string conversion that will send data, exports to string line simultaneously by turn.
Please refer to Fig. 3, the present invention is a kind of method based on FPGA technology realization PROFIBUS master station communication protocol, may further comprise the steps:
Step is 1.: on-site programmable gate array FPGA waits for that in the back initialization that powers on micro-control unit MCU sends master information,
Step is 2.: micro-control unit MCU sends master information to the master information register of on-site programmable gate array FPGA, master information is made of main website station address, baud rate, timer time value, the main website station address is the unique address that this main website communicates by letter on bus, span is 0~126, in the present embodiment, the main website station address is 3
Baud rate be main website with from the traffic rate of point on bus, span is 9600~12Mbit/s, in the present embodiment, baud rate is 187.5Kbit/s,
The timer time value is the operating time that is used for main website and slave station on the controlling bus, in the present embodiment,
Timer time value=200tbit,
Step is 3.: micro-control unit MCU sends to on-site programmable gate array FPGA and is initialized to function signal Init_ok, confirming that master information sends finishes, receive be initialized to function signal Init_ok after, on-site programmable gate array FPGA starts bus message and monitors, the wait message receives
Step is 4.: micro-control unit MCU puts 1 with the control register of on-site programmable gate array FPGA, thereby open the current timer in the on-site programmable gate array FPGA, on-site programmable gate array FPGA is being waited for bus data in the timer time scope of front opening, and bus data is the message that receives of main website self or the message of slave station response;
If on-site programmable gate array FPGA does not receive bus data in the timer time scope, then then produce interrupt request singal RE_OK in the back at current timer, and interrupt request singal sent to micro-control unit MCU, simultaneously, the reception end signal position RE_OV of the status register one of on-site programmable gate array FPGA remains on initial condition (value of initial condition is 0)
Eight positions are arranged as shown in Table 1 in the status register one,
Zero-bit D0 is used for sign and receives end, and first D1 is used for the sign transmission and finishes second to the 7th reservation.
Form 1
Micro-control unit MCU is after receiving interrupt request singal RE_OK, read the value of the reception end signal position RE_OV of on-site programmable gate array FPGA internal state register one, the value of this reception end signal position RE_OV is 0, and micro-control unit MCU judges that this interrupt signal is that overtime nothing receives interruption.
If field programmable gate array receives bus data in the timer time scope,
But heading is not one of 0x68,0x10,0xDC, 0xe5, then then produce interrupt request singal in the back at current timer, and interrupt request singal RE_OK sent to micro-control unit, simultaneously, the reception end signal position RE_OV of the status register one of field programmable gate array remains on initial condition
Micro-control unit MCU is after receiving interrupt request singal RE_OK, read the value of the reception end signal position RE_OV of on-site programmable gate array FPGA internal state register one, the value of this reception end signal position is 0, and then micro-control unit MCU judges that this interrupt signal is that overtime nothing receives interruption
If on-site programmable gate array FPGA receives bus data in the timer time scope, and heading is one of 0x68,0x10,0xDC, 0xe5, then on-site programmable gate array FPGA is after receiving complete frame data, stop current timer timing, no longer because timer expiry sends interrupt request singal to micro-control unit MCU, simultaneously, the serial received processing module of on-site programmable gate array FPGA is judged the message kind according to the heading that receives, and carries out following parsing then respectively:
If heading is 0x68, on-site programmable gate array FPGA just judges by second, third byte that reads message whether message has size error:
Heading is the message of 0x68, and its data structure can be as shown in Table 2:
Form 2
??68 ??x ??X ??68 ??DA ??SA ??FC ??DSAP ??SSAP ??DU ??FCS ??16
First byte is heading 0x68, second, third byte is message length x, the 4th byte is that message defines symbol 0x68, the 5th byte is destination address DA, and the 6th byte is source address SA, and the 7th byte is function code FC, the 8th byte is destination service access point DSAP, the 9th byte is source service access point SSAP, and the tenth byte to third from the bottom byte is data cell: the penult byte is frame check and FCS, and last byte is end mark 0x16.
Heading is the message of 0x68, and its data structure can also be as shown in Table 3:
Form 3
??68 ??x ??X ??68 ??DA ??SA ??FC ??DU ??FCS ??16
First byte is heading 0x68, second, third byte is message length x, the 4th byte is that message defines symbol 0x68, the 5th byte is destination address DA, the 6th byte is source address SA, the 7th byte is function code FC, and the 8th byte to third from the bottom byte is data cell: the penult byte is frame check and FCS, and last byte is end mark 0x16.
For heading is two kinds of messages of 0x68, and on-site programmable gate array FPGA judges by second, third byte that reads message whether message has size error:
If second, third byte length equates that just thinking does not have size error, with the Gao Siwei maintenance initial value of status register two, initial value is 0.
If second, third byte length is unequal, just thinking has size error, high four positions of status register two are worth accordingly, and for example, be 2 with high four positions of status register two.
Eight positions are arranged as shown in Table 4 in the status register two,
Form 4
Figure GDA0000021161220000081
Low four D0, D1, D2, D3 are used to indicate the timer state, and high four D4, D5, D6, D7 are used to indicate the message error type, for example:
The value of Gao Siwei is that 1 representative receives character even parity check mistake,
The value of Gao Siwei is that 2 representatives receive the message length mistake,
The value of Gao Siwei is 3 to represent the type of message mistake,
On-site programmable gate array FPGA has judged whether the type of message mistake by reading the 4th byte of message:
If the 4th byte is identical with heading, just there is not the type of message mistake, with the Gao Siwei maintenance initial value of status register two; Initial value is 0.
If the 4th byte and heading are inequality, the type of message mistake is just arranged, high four positions of status register two are worth accordingly, for example, be 3 with high four positions of status register two.On-site programmable gate array FPGA judges by reading the 5th byte (destination address DA) whether this message issues this main website:
If the 5th byte is identical with the main website address value that micro-control unit MCU sends in the master information register, just think that this message issues this main website;
If the main website address value that the 5th byte and micro-control unit MCU send in the master information register is inequality, just think that this message do not issue this main website;
On-site programmable gate array FPGA by read the 6th byte (source address SA) judge whether into certainly the transmitting-receiving message,
If the 6th byte is identical with the main website address value, just think message from transmitting-receiving,
If the 6th byte and main website address value are inequality, just think the message that slave station is sent out,
On-site programmable gate array FPGA continues to read all the other bytes of the 6th byte back according to message length then,
On-site programmable gate array FPGA is done even parity check to the penult byte that receives and is judged that the even parity check judgment mode is:
On-site programmable gate array FPGA with the check of the frame that calculates and with the message that receives in the penult byte relatively, judged whether check errors:
If identical, just judge no even parity check mistake, with the Gao Siwei maintenance initial value of status register two, initial value is 0,
If different, just judging has the even parity check mistake, and high four positions of status register two are worth accordingly, and this value is 1, and frame check and FCS are since the 5th byte, up to the arithmetic sum of 2 complement on n ns of third from the bottom byte; For example:
Message length x=0x05
Destination address DA=0x03,
Source address SA=0x01,
Function code FC=0x7d,
Data cell DU has 2 bytes
First byte=0x12 of data cell DU
Second byte=0x34 of data cell DU
0x03+0x01+0x7d+0x12+0x34=0xc7
Then frame is checked and FCS=0xc7
After on-site programmable gate array FPGA was received last byte 0x16, message received and finishes;
If heading is 0x10, on-site programmable gate array FPGA judges by reading second byte (destination address DA) whether this message issues this main website;
Heading be 0x10 data structure as shown in Table 5:
Form 5
??10 ??DA ??SA ??FC ??FCS ??16
The implication of function code (FC) representative as shown in Table 6
Form 6
??b5 ??b4 Note
??0 ??0 Slave station
??0 ??1 Do not prepare to enter the main website of logic token ring
??1 ??0 Preparation enters the main website of logic token ring
??1 ??1 Main website in the logic token ring
If second byte (destination address DA) is identical with the main website address value that micro-control unit MCU sends in the master information register, just think that this message issues this main website; If the main website address value that second byte (destination address DA) and micro-control unit MCU send in the master information register is inequality, just think that this message do not issue this main website;
On-site programmable gate array FPGA by read the 3rd byte (source address SA) judge whether into certainly the transmitting-receiving message,
If the 3rd byte (source address SA) is identical with the main website address value, just think message from transmitting-receiving;
If the 3rd byte (source address SA) is inequality with the main website address value, just think the message that slave station is sent out;
On-site programmable gate array FPGA continues to read the 4th byte (function code) and the 5th byte (frame check and) then, on-site programmable gate array FPGA to the 5th byte receiving (frame check and) do even parity check and judge that the even parity check judgment mode is:
On-site programmable gate array FPGA has judged whether check errors with the 5th byte comparison in the frame check that calculates and FCS and the message that receives:
If identical, just judge no even parity check mistake, with the Gao Siwei maintenance initial value of status register two; Initial value is 0,
If different, just judging has the even parity check mistake, and high four positions of status register two are worth accordingly; This value is 1, and frame check and FCS are since second byte, until the arithmetic sum of 2 complement on n ns of the 4th byte,
After on-site programmable gate array FPGA was received the 6th byte, message received and finishes,
If heading is 0xDC, its data structure as shown in Table 7,
Form 7
??DC ??DA ??SA
If heading is 0xDC, on-site programmable gate array FPGA judges by reading second byte (destination address DA) whether this message issues this main website:
If second byte is identical with the main website address value that micro-control unit MCU sends in the master information register, just think that this message issues this main website,
If the main website address value that second byte and micro-control unit MCU send in the master information register is inequality, just think that this message do not issue this main website,
On-site programmable gate array FPGA by read the 3rd byte (source address SA) judge whether into certainly the transmitting-receiving message,
If the 3rd byte is identical with the main website address value, just think message from transmitting-receiving;
If the 3rd byte and main website address value are inequality, just think the message that slave station is sent out;
After on-site programmable gate array FPGA was received the 3rd byte source address SA, message received and finishes;
If heading is 0xe5, then receive and finish, heading be its data structure of 0xe5 as shown in Table 8,
Form 8
??E5
On-site programmable gate array FPGA all arrives input buffer module with storage after message receives end, MCU sends interrupt request singal to micro-control unit, and the reception stop bits with status register one is set to 1 simultaneously;
Step is 5.: after micro-control unit MCU receives the interrupt request singal RE_OK that on-site programmable gate array FPGA sends, read the status register one of on-site programmable gate array FPGA, the value of status register two, judge and have or not message to receive, whether message is correct, and according to the definite message that sends of field bus communication standard, micro-control unit MCU sends message information to on-site programmable gate array FPGA message information register then, if the message that sends has the data cell part, then micro-control unit MCU sends the data cell part to the output buffer module of on-site programmable gate array FPGA simultaneously, then, micro-control unit MCU sends message to on-site programmable gate array FPGA and sends request signal SEND_REQ
Step is 6.: sends request signal SEND_REQ when on-site programmable gate array FPGA receives message, can read the transmission type of message in the message information of message information register inside,
If sending message is type one, on-site programmable gate array FPGA just reads the first seven byte of this message successively from the message information register, these seven bytes are represented respectively: heading 0x68, message length x, message length x, message defines symbol 0x68, destination address DA, source address SA, function code FC, whenever read a byte, just send a byte, when on-site programmable gate array FPGA reads the 5th byte (destination address DA), begin to calculate frame check and FCS, when sending the 7th byte, on-site programmable gate array FPGA just sends data cell from output buffer module reading of data unit and by parallel serial conversion module, after data cell sends and finishes, on-site programmable gate array FPGA stops to calculate frame check and FCS, transmit frame check and FCS send message-ending character 0x16 at last more then; Frame check and FCS are since the 5th byte, until the arithmetic sum of 2 complement on n ns of third from the bottom byte;
The data structure of this message as shown in Table 9,
Form 9
??68 ??x ??X ??68 ??DA ??SA ??FC ??DU ??FCS ??16
If sending message is type two, on-site programmable gate array FPGA just reads preceding nine bytes of this message successively from the message information register, these nine bytes are represented respectively: heading 0x68, message length x, message length x, message defines symbol 0x68, destination address DA, source address SA, function code FC, destination service access point DSAP, source service access point SSAP, whenever read a byte, just send a byte, when on-site programmable gate array FPGA reads the 5th byte, begin to calculate frame check and FCS, when sending the 9th byte, on-site programmable gate array FPGA just sends data cell from output buffer module reading of data unit and by parallel serial conversion module, after data cell sends and finishes, on-site programmable gate array FPGA stops to calculate frame check and FCS, transmit frame check and FCS send message-ending character 0x16 at last more then; Frame check and FCS are since the 5th byte, until the arithmetic sum of 2 complement on n ns of third from the bottom byte;
The data structure of this message as shown in Table 10,
Form 10
??68 ??x ??X ??68 ??DA ??SA ??FC ??DSAP ??SSAP ??DU ??FCS ??16
If sending message is type three,
On-site programmable gate array FPGA just reads preceding four bytes of this message successively from the message information register, these four bytes are represented respectively: heading 0x10, destination address DA, source address SA, function code FC, whenever read a byte, just send a byte, when on-site programmable gate array FPGA reads second byte, begin to calculate frame check and FCS, when sending the 4th byte, on-site programmable gate array FPGA stops to calculate frame check and FCS, transmit frame is checked and FCS then, send message-ending character 0x16 at last again, frame check and FCS are since second byte, until the arithmetic sum of 2 complement on n ns of the 4th byte;
The data structure of this message as shown in Table 11,
Form 11
??10 ??DA ??SA ??FC ??FCS ??16
If sending message is type four,
On-site programmable gate array FPGA just reads first three byte of this message successively from the message information register, these three bytes are represented respectively: heading 0xDC, destination address DA, source address SA, whenever read a byte, and just send a byte,
The data structure of this message as shown in Table 12,
Form 12
??DC ??DA ??SA
If sending message is type five,
On-site programmable gate array FPGA just directly sends 0xe5,
The data structure of this message as shown in Table 13,
Form 13
??E5
So far message sends and finishes, and on-site programmable gate array FPGA is set to 1 with the transmission stop bits TR_OV in the status register one,
Step is 7.: micro-control unit MCU opens the current timer in the on-site programmable gate array FPGA, and on-site programmable gate array FPGA changes the reception message status over to by sending message status, returns step 4., waits for that message receives.

Claims (1)

1. the present invention is a kind of method based on FPGA technology realization PROFIBUS master station communication protocol, and it is characterized in that: this method may further comprise the steps:
Step is 1.: field programmable gate array waits for that in the back initialization that powers on micro-control unit sends master information;
Step is 2.: micro-control unit sends master information to the master information register of field programmable gate array, and master information is made of main website station address, baud rate, timer time value;
Step is 3.: micro-control unit sends to field programmable gate array and is initialized to function signal, confirm that master information sends to finish, receive be initialized to function signal after, field programmable gate array starts bus message to be monitored, and waits for that message receives;
Step is 4.: micro-control unit is opened the current timer in the field programmable gate array, field programmable gate array is being waited for bus data in the timer time scope of front opening, and bus data is the message that receives of main website self or the message of slave station response;
If field programmable gate array does not receive bus data in the timer time scope, then then produce interrupt request singal in the back at current timer, and interrupt request singal sent to micro-control unit, simultaneously, the reception end signal position of the status register one of field programmable gate array remains on initial condition; Micro-control unit reads the value of the reception end signal position of field programmable gate array internal state register one after receiving interrupt request singal, the value of this reception end signal position is 0, and then micro-control unit judges that this interrupt signal is that overtime nothing receives interruption;
If field programmable gate array receives bus data in the timer time scope, but heading is not one of 0x68,0x10,0xDC, 0xe5, then then produce interrupt request singal in the back at current timer, and interrupt request singal sent to micro-control unit, simultaneously, the reception end signal position of the status register one of field programmable gate array remains on initial condition; Micro-control unit reads the value of the reception end signal position of field programmable gate array internal state register one after receiving interrupt request singal, the value of this reception end signal position is 0, and then micro-control unit judges that this interrupt signal is that overtime nothing receives interruption;
If field programmable gate array receives bus data in the timer time scope, and heading is one of 0x68,0x10,0xDC, 0xe5, then field programmable gate array is after receiving complete frame data, stop current timer timing, no longer because timer expiry sends interrupt request singal to micro-control unit, simultaneously, the serial received processing module of field programmable gate array is judged the message kind according to the heading that receives, and carries out following parsing then respectively:
If heading is 0x68, field programmable gate array just judges by second, third byte that reads message whether message has size error: if second, third byte length equates, just thinking does not have size error, with the Gao Siwei maintenance initial value of status register two; If second, third byte length is unequal, just thinking has size error, and high four positions of status register two are worth accordingly; Field programmable gate array has judged whether the type of message mistake by reading the 4th byte of message; If the 4th byte is identical with heading, just there is not the type of message mistake, with the Gao Siwei maintenance initial value of status register two; If the 4th byte and heading are inequality, the type of message mistake is just arranged, high four positions of status register two are worth accordingly; Field programmable gate array judges by reading the 5th byte whether this message issues this main website, if the 5th byte is identical with the main website address value that micro-control unit sends in the master information register, just think that this message issues this main website, if the main website address value that the 5th byte and micro-control unit send in the master information register is inequality, just think that this message do not issue this main website; Field programmable gate array judges whether to be the message of transmitting-receiving certainly by reading the 6th byte, if the 6th byte is identical with the main website address value, just thinks from the message of receiving and dispatching; If the 6th byte and main website address value are inequality, just think the message that slave station is sent out; Field programmable gate array continues to read all the other bytes of the 6th byte back according to message length then; Field programmable gate array is done even parity check to the penult byte that receives and is judged, the even parity check judgment mode is: field programmable gate array with the check of the frame that calculates with the message that receives in the penult byte relatively judged whether check errors: if identical, just judge no even parity check mistake, the Gao Siwei of status register two is kept initial value, if it is different, just judging has the even parity check mistake, and high four positions of status register two are worth accordingly; Frame is checked and is since the 5th byte, until the arithmetic sum of 2 complement on n ns of third from the bottom byte, after field programmable gate array was received last byte 0x16, message received and finishes;
If heading is 0x10, field programmable gate array judges by reading second byte whether this message issues this main website: if second byte is identical with the main website address value that micro-control unit sends in the master information register, just think that this message issues this main website; If the main website address value that second byte and micro-control unit send in the master information register is inequality, just think that this message do not issue this main website; Field programmable gate array judges whether to be the message of transmitting-receiving certainly by reading the 3rd byte: if the 3rd byte is identical with the main website address value, just think from the message of receiving and dispatching; If the 3rd byte and main website address value are inequality, just think the message that slave station is sent out; Field programmable gate array continues to read the 4th byte and the 5th byte then, field programmable gate array is done even parity check to the 5th byte that receives and is judged, the even parity check judgment mode is: field programmable gate array with the check of the frame that calculates and with the message that receives in the 5th byte relatively, judged whether check errors: if identical, just judge no even parity check mistake, with the Gao Siwei maintenance initial value of status register two; If different, just judging has the even parity check mistake, and high four positions of status register two are worth accordingly; Frame is checked and is since second byte, until the arithmetic sum of 2 complement on n ns of the 4th byte, after field programmable gate array was received the 6th byte, message received and finishes;
If heading is 0xDC, field programmable gate array judges by reading second byte whether this message issues this main website, if second byte is identical with the main website address value that micro-control unit sends in the master information register, just think that this message issues this main website; If the main website address value that second byte and micro-control unit send in the master information register is inequality, just think that this message do not issue this main website; Field programmable gate array judges whether to be the message of transmitting-receiving certainly by reading the 3rd byte, if the 3rd byte is identical with the main website address value, just thinks from the message of receiving and dispatching; If the 3rd byte and main website address value are inequality, just think the message that slave station is sent out; After field programmable gate array was received the 3rd byte, message received and finishes;
If heading is 0xe5, then message receives and finishes,
After message received and finishes, field programmable gate array to input buffer module, sent interrupt request singal to micro-control unit with storage, and the reception stop bits with status register one is set to 1 simultaneously;
Step is 5.: after micro-control unit receives the interrupt request singal that field programmable gate array sends, read the status register one of field programmable gate array, the value of status register two, judge and have or not message to receive, whether message is correct, and according to connecing the definite message that sends of field bus communication standard, micro-control unit sends message information to field programmable gate array message information register then, if the message that sends has the data cell part, then micro-control unit sends the data cell part to the output buffer module of field programmable gate array simultaneously, then, micro-control unit sends message to field programmable gate array and sends request signal;
Step is 6.: send request signal when field programmable gate array receives message, can read the transmission type of message in the message information of message information register inside;
If sending message is type one, field programmable gate array just reads the first seven byte of this message successively from the message information register, whenever read a byte, just send a byte, when field programmable gate array reads the 5th byte, begin to calculate frame check and, when sending the 7th byte, field programmable gate array just sends data cell from output buffer module reading of data unit and by parallel serial conversion module, after data cell sends and finishes, field programmable gate array stop to calculate frame check and, then transmit frame check and, frame is checked and is since the 5th byte, until the arithmetic sum of 2 complement on n ns of third from the bottom byte sends message-ending character at last again;
If sending message is type two, field programmable gate array just reads preceding nine bytes of this message successively from the message information register, whenever read a byte, just send a byte, when field programmable gate array reads the 5th byte, begin to calculate frame check and, when sending the 9th byte, field programmable gate array just sends data cell from output buffer module reading of data unit and by parallel serial conversion module, after data cell sends and finishes, field programmable gate array stop to calculate frame check and, then transmit frame check and, frame is checked and is since the 5th byte, until the arithmetic sum of 2 complement on n ns of third from the bottom byte sends message-ending character at last again;
If sending message is type three, field programmable gate array just reads preceding four bytes of this message successively from the message information register, whenever read a byte, just send a byte, when field programmable gate array reads second byte, begin to calculate frame check and, when sending the 4th byte, field programmable gate array stop to calculate frame check and, then transmit frame check and, frame is checked and is since second byte, until the arithmetic sum of 2 complement on n ns of the 4th byte sends message-ending character at last again;
If sending message is type four, field programmable gate array just reads first three byte of this message successively from the message information register, whenever read a byte, just sends a byte;
If sending message is type five, field programmable gate array just directly sends 0xe5;
So far message sends and finishes, and field programmable gate array is set to 1 with the transmission stop bits in the status register one;
Step is 7.: micro-control unit is opened the current timer in the field programmable gate array, and field programmable gate array changes the reception message status over to by sending message status, returns step 4., waits for that message receives.
CN 201010165868 2010-05-07 2010-05-07 Method for realizing PROFIBUS master station communication protocol based on FPGA (Field Programmable Gate Array) technology Active CN101841542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010165868 CN101841542B (en) 2010-05-07 2010-05-07 Method for realizing PROFIBUS master station communication protocol based on FPGA (Field Programmable Gate Array) technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010165868 CN101841542B (en) 2010-05-07 2010-05-07 Method for realizing PROFIBUS master station communication protocol based on FPGA (Field Programmable Gate Array) technology

Publications (2)

Publication Number Publication Date
CN101841542A true CN101841542A (en) 2010-09-22
CN101841542B CN101841542B (en) 2012-11-07

Family

ID=42744665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010165868 Active CN101841542B (en) 2010-05-07 2010-05-07 Method for realizing PROFIBUS master station communication protocol based on FPGA (Field Programmable Gate Array) technology

Country Status (1)

Country Link
CN (1) CN101841542B (en)

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377778A (en) * 2011-10-17 2012-03-14 中国人民解放军国防科学技术大学 Remote asymmetric end communication method based on Ethernet
CN102833142A (en) * 2012-09-10 2012-12-19 天津理工大学 Profibus-DP slave station device on basis of FDGA (Field Programmable Gate Array)
CN103077137A (en) * 2011-10-25 2013-05-01 北京大豪科技股份有限公司 Interrupt control method and interrupt control unit
CN103577372A (en) * 2013-11-13 2014-02-12 曙光信息产业(北京)有限公司 Method for achieving multiplexing of I/O pins in FPGA on basis of D latch
CN103809547A (en) * 2012-11-14 2014-05-21 沈阳高精数控技术有限公司 Control system and method of servo driver field bus interface
CN104022934A (en) * 2014-05-28 2014-09-03 中山火炬职业技术学院 PROFIBUS-DP protocol-based communication equipment communication method
CN104021108A (en) * 2014-05-28 2014-09-03 中山火炬职业技术学院 Communication equipment based on PROFIBUS-DP protocol
CN104022932A (en) * 2014-05-28 2014-09-03 中山火炬职业技术学院 Communication apparatus
CN104486247A (en) * 2014-12-16 2015-04-01 北京东土科技股份有限公司 Data transmission method and device based on serial server
CN104572377A (en) * 2015-01-27 2015-04-29 南京大全自动化科技有限公司 Device debugging platform and method based on interface bus technology
CN104601569A (en) * 2015-01-13 2015-05-06 国家电网公司 Method for improving communication message usage rate in PROFINET protocol
CN105262542A (en) * 2015-09-18 2016-01-20 北京鼎实创新科技股份有限公司 Realization method of optical fiber interface conversion module used of PROFIBUS
CN105425681A (en) * 2015-12-16 2016-03-23 中国电子信息产业集团有限公司第六研究所 Multifunctional communication interface data diagnosis and signal driving card
CN107612800A (en) * 2017-09-14 2018-01-19 北京鼎实创新科技股份有限公司 A kind of implementation method and control device of the Y type conversion equipments of connection PROFIBUS redundant networks and Monobus network
CN108228528A (en) * 2017-12-28 2018-06-29 苏州联视泰电子信息技术有限公司 A kind of miniaturization digiverter and application based on FPGA
CN109150680A (en) * 2018-08-30 2019-01-04 青岛科技大学 A kind of adaptive determining address networking circuit and method suitable for RS485 bus
CN109901469A (en) * 2019-03-12 2019-06-18 北京鼎实创新科技股份有限公司 A method of PROFIBUS-PA bus communication is realized based on FPGA technology
CN110177013A (en) * 2019-05-16 2019-08-27 浙江理工大学 A kind of EtherCAT master-salve station design and implementation methods based on FPGA
CN110519138A (en) * 2019-08-12 2019-11-29 北京和利时***工程有限公司 A kind of realization method and system of Profibus-DP master station protocol
CN110687854A (en) * 2019-11-05 2020-01-14 杭州和利时自动化有限公司 PA bus controller and PA bus control system
CN111123760A (en) * 2019-11-22 2020-05-08 北京讯风光通信技术开发有限责任公司 Communication bus method for realizing master-slave automatic control by utilizing determined time sequence
CN112637248A (en) * 2021-03-09 2021-04-09 厚普清洁能源股份有限公司 Ship-end and shore-end equipment communication processing method for LNG filling wharf boat
CN113890785A (en) * 2021-11-03 2022-01-04 西安热工研究院有限公司 Communication system and method for field bus hybrid networking
CN114726674A (en) * 2022-04-06 2022-07-08 北京鼎实创新科技股份有限公司 FPGA-based PROFIBUS bus process data extraction method
CN116974233A (en) * 2023-09-19 2023-10-31 西安热工研究院有限公司 Dual-channel Profibus-DP master station system and design method
CN118117780A (en) * 2024-04-28 2024-05-31 华南师范大学 Self-adaptive wireless charging method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002060130A1 (en) * 2001-01-23 2002-08-01 Mitsubishi Denki Kabushiki Kaisha Data communication device and data communication method
CN101374115A (en) * 2008-09-28 2009-02-25 北京鼎实创新科技有限公司 Rapid discriminating multiport control method based on PROFIBUS packet
CN201274492Y (en) * 2008-09-28 2009-07-15 北京鼎实创新科技有限公司 PROFIBUS hub with relay function

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002060130A1 (en) * 2001-01-23 2002-08-01 Mitsubishi Denki Kabushiki Kaisha Data communication device and data communication method
CN101374115A (en) * 2008-09-28 2009-02-25 北京鼎实创新科技有限公司 Rapid discriminating multiport control method based on PROFIBUS packet
CN201274492Y (en) * 2008-09-28 2009-07-15 北京鼎实创新科技有限公司 PROFIBUS hub with relay function

Cited By (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377778A (en) * 2011-10-17 2012-03-14 中国人民解放军国防科学技术大学 Remote asymmetric end communication method based on Ethernet
CN103077137A (en) * 2011-10-25 2013-05-01 北京大豪科技股份有限公司 Interrupt control method and interrupt control unit
CN102833142A (en) * 2012-09-10 2012-12-19 天津理工大学 Profibus-DP slave station device on basis of FDGA (Field Programmable Gate Array)
CN103809547A (en) * 2012-11-14 2014-05-21 沈阳高精数控技术有限公司 Control system and method of servo driver field bus interface
CN103577372A (en) * 2013-11-13 2014-02-12 曙光信息产业(北京)有限公司 Method for achieving multiplexing of I/O pins in FPGA on basis of D latch
CN104022934A (en) * 2014-05-28 2014-09-03 中山火炬职业技术学院 PROFIBUS-DP protocol-based communication equipment communication method
CN104021108A (en) * 2014-05-28 2014-09-03 中山火炬职业技术学院 Communication equipment based on PROFIBUS-DP protocol
CN104022932A (en) * 2014-05-28 2014-09-03 中山火炬职业技术学院 Communication apparatus
CN104486247A (en) * 2014-12-16 2015-04-01 北京东土科技股份有限公司 Data transmission method and device based on serial server
CN104601569A (en) * 2015-01-13 2015-05-06 国家电网公司 Method for improving communication message usage rate in PROFINET protocol
CN104601569B (en) * 2015-01-13 2018-08-14 国家电网公司 A method of improving communication message utilization rate in PROFINET agreements
CN104572377A (en) * 2015-01-27 2015-04-29 南京大全自动化科技有限公司 Device debugging platform and method based on interface bus technology
CN105262542A (en) * 2015-09-18 2016-01-20 北京鼎实创新科技股份有限公司 Realization method of optical fiber interface conversion module used of PROFIBUS
CN105262542B (en) * 2015-09-18 2017-07-07 北京鼎实创新科技股份有限公司 A kind of implementation method of the optical fiber interface modular converter for PROFIBUS
CN105425681A (en) * 2015-12-16 2016-03-23 中国电子信息产业集团有限公司第六研究所 Multifunctional communication interface data diagnosis and signal driving card
CN107612800A (en) * 2017-09-14 2018-01-19 北京鼎实创新科技股份有限公司 A kind of implementation method and control device of the Y type conversion equipments of connection PROFIBUS redundant networks and Monobus network
CN108228528A (en) * 2017-12-28 2018-06-29 苏州联视泰电子信息技术有限公司 A kind of miniaturization digiverter and application based on FPGA
CN109150680A (en) * 2018-08-30 2019-01-04 青岛科技大学 A kind of adaptive determining address networking circuit and method suitable for RS485 bus
CN109150680B (en) * 2018-08-30 2020-10-16 青岛科技大学 Self-adaptive address-determining networking circuit and method suitable for RS485 bus
CN109901469A (en) * 2019-03-12 2019-06-18 北京鼎实创新科技股份有限公司 A method of PROFIBUS-PA bus communication is realized based on FPGA technology
CN109901469B (en) * 2019-03-12 2020-08-21 北京鼎实创新科技股份有限公司 Method for realizing PROFIBUS-PA bus communication based on FPGA technology
CN110177013B (en) * 2019-05-16 2021-10-15 浙江理工大学 FPGA-based EtherCAT master-slave station design and implementation method
CN110177013A (en) * 2019-05-16 2019-08-27 浙江理工大学 A kind of EtherCAT master-salve station design and implementation methods based on FPGA
CN110519138B (en) * 2019-08-12 2021-12-07 北京和利时***工程有限公司 Profibus-DP master station protocol implementation method and system
CN110519138A (en) * 2019-08-12 2019-11-29 北京和利时***工程有限公司 A kind of realization method and system of Profibus-DP master station protocol
CN110687854B (en) * 2019-11-05 2021-07-30 杭州和利时自动化有限公司 PA bus controller and PA bus control system
CN110687854A (en) * 2019-11-05 2020-01-14 杭州和利时自动化有限公司 PA bus controller and PA bus control system
CN111123760A (en) * 2019-11-22 2020-05-08 北京讯风光通信技术开发有限责任公司 Communication bus method for realizing master-slave automatic control by utilizing determined time sequence
CN112637248A (en) * 2021-03-09 2021-04-09 厚普清洁能源股份有限公司 Ship-end and shore-end equipment communication processing method for LNG filling wharf boat
CN113890785A (en) * 2021-11-03 2022-01-04 西安热工研究院有限公司 Communication system and method for field bus hybrid networking
CN114726674A (en) * 2022-04-06 2022-07-08 北京鼎实创新科技股份有限公司 FPGA-based PROFIBUS bus process data extraction method
CN114726674B (en) * 2022-04-06 2023-12-29 北京鼎实创新科技股份有限公司 PROFIBUS bus process data extraction method based on FPGA
CN116974233A (en) * 2023-09-19 2023-10-31 西安热工研究院有限公司 Dual-channel Profibus-DP master station system and design method
CN116974233B (en) * 2023-09-19 2024-01-19 西安热工研究院有限公司 Dual-channel Profibus-DP master station system and design method
CN118117780A (en) * 2024-04-28 2024-05-31 华南师范大学 Self-adaptive wireless charging method and system
CN118117780B (en) * 2024-04-28 2024-06-28 华南师范大学 Self-adaptive wireless charging method and system

Also Published As

Publication number Publication date
CN101841542B (en) 2012-11-07

Similar Documents

Publication Publication Date Title
CN101841542B (en) Method for realizing PROFIBUS master station communication protocol based on FPGA (Field Programmable Gate Array) technology
CN100521637C (en) Optical fiber-based high speed serial industrial real-time communication bus system and its control method
CN100524119C (en) Interface of programmable logic controller and expansion module
CN105959288A (en) Network protocol conversion method for power grid system and intercommunication method of power grid system
CN105337421A (en) Protocol conversion method and mutual communication method in intelligent power network system
CN102780705B (en) Ethernet-(controller area network) CAN protocol converter
CN102685037B (en) Gateway device
CN102857397A (en) Multi-master asynchronous duplex differential bus and communication method
CN104484306B (en) Master-slave synchronisation serial communication bus and its implementation based on differential signal
CN205959200U (en) A latch circuit for I2C bus data transmission
CN102316113B (en) POWERLINK and HDLC protocol conversion equipment and realization method thereof
CN101794152A (en) Embedded controller with LVDS serial interface and control method thereof
CN105262789A (en) FPGA (Field Programmable Gate Array)-based MAC (Media Access Control) layer to MAC layer communication system and control method
CN102291337B (en) Gateway for switching communication based on EtherCAT (Ethernet for Control and Automation Technology) protocol and Profibus-DP (Process Field Bus-Decentralized Periphery) protocol and communication method thereof
CN105243039A (en) Serial port communication system and method
Rui et al. Gateway system for CAN and FlexRay in automotive ECU networks
CN107346298A (en) The method and system of protocol conversion between a kind of parallel bus and UART bus
CN101374115B (en) Rapid discriminating multiport control method based on PROFIBUS packet
CN101072064B (en) Ethernet relay device and method
Zhang et al. Development for protocol conversion gateway of PROFIBUS and Modbus
CN101415027A (en) Communication module based on HDLC protocol, and control method for data real time forwarding and storage
CN100422977C (en) Processor array
CN101237430A (en) Communication gateway between two entities
CN100393060C (en) Data communication method for device interior
CN105515925A (en) UART multi-master real-time communication 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
C14 Grant of patent or utility model
GR01 Patent grant