CN107612800A - A kind of implementation method and control device of the Y type conversion equipments of connection PROFIBUS redundant networks and Monobus network - Google Patents
A kind of implementation method and control device of the Y type conversion equipments of connection PROFIBUS redundant networks and Monobus network Download PDFInfo
- Publication number
- CN107612800A CN107612800A CN201710826655.8A CN201710826655A CN107612800A CN 107612800 A CN107612800 A CN 107612800A CN 201710826655 A CN201710826655 A CN 201710826655A CN 107612800 A CN107612800 A CN 107612800A
- Authority
- CN
- China
- Prior art keywords
- profibus
- bus
- message
- fpga chip
- monobus
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses the implementation method and control device of a kind of connection PROFIBUS redundant networks and the Y type conversion equipments of Monobus network, step:1. in PROFIBUS networks, Y type conversion equipments are connected to redundancy double character coupling, with Monobus network;2. two sets of respective independent packet parsing modules, timing monitoring module, PROFIBUS slave station status mechanisms, with switching control module built in the fpga chip in Y type conversion equipments;3. after upper electricity, all messages and controlling bus time of the fpga chip parsing in two redundancy PROFIBUS buses;4. the PROFIBUS master station communications on Y types conversion equipment itself the PROFIBUS slave stations and two redundant bus independent as two, receive required parameter;5. the fpga chip in Y type conversion equipments judges whether two redundant bus mistake occur by packet parsing and bus time monitoring, by being connected all the way with Monobus network for wherein normal work.The present invention realizes the interconnection technique problem between PROFIBUS redundancies double character coupling and nonredundancy Monobus network.
Description
Technical field
The invention belongs to a kind of Network Connection.Be applied particularly to PROFIBUS redundancies double character coupling with
PROFIBUS Monobus networks interconnect, and are to realize the side being connected to PROFIBUS nonredundancy slave stations in PROFIBUS redundant networks
Method.
Background technology
PROFIBUS redundancies double character coupling and PROFIBUS Monobus networks are all current widely used communication networks
Structure.
In order to reduce system failure time, ensure the normal operation of whole network, industrial field bus network is more and more
When selecting to use redundant network structure, and work as in a network, while redundance unit be present with nonredundancy equipment, by PROFIBUS
It is essential that redundancy two-way bus network is connected with each other with PROFIBUS single channel bus network.
Y type conversion equipments are the equipment by redundancy double character coupling and UNIBUS Interconnect, it is ensured that system operation
In, one of redundant bus of failure-free operation is transferred to PROFIBUS monobus, from the effective of PROFIBUS redundancy main stations
Communication data is forwarded to the slave station equipment of PROFIBUS Monobus networks, the communication data of the slave station equipment in Monobus network
Also PROFIBUS redundancy main stations can be uploaded to.
At present, existing a variety of ripe schemes that redundancy dual bus and monobus are connected using Y types conversion equipment, but its
Middle a part of Y types conversion equipment solves the problems, such as network interconnection using communication data area mapping mode, causes bus communication not do
To transparent transmission.PROFIBUS buses transparent transmission, bus message parsing, bus failure analysis, redundant bus switching are all these
The exploitation difficult point of class Y type conversion equipments.
The content of the invention
It is an object of the invention to provide the Y type conversion equipments of a kind of connection PROFIBUS redundant networks and Monobus network
Implementation method and control device, solving nonredundancy slave station can not work in redundant network, can not determine redundancy two-way bus
In which be in the technical problem such as no-failure operation state, bus message transparent transmission.
In order to realize foregoing invention purpose, the method applied in the present invention, its hardware device includes:Fpga chip and three sets
The separate drive circuit of periphery 485, comprises the following steps:
Step is 1.:Y type conversion equipments are connected to PROFIBUS redundancies double character coupling and PROFIBUS Monobus networks, from
Body is communicated as slave station on redundant bus with PROFIBUS redundancy main stations;
Step is 2.:Realized in fpga chip built in Y type conversion equipments each two separate packet parsing modules,
Timing monitoring module, PROFIBUS slave station status mechanism modules and a switching control module;
Step is 3.:After upper electricity, fpga chip parses all messages in two redundancy PROFIBUS buses and monitored
Bus time, judge whether to have received redundant message on redundant bus, each bus time in PROFIBUS buses is
It is no to meet standard requirement;
Step is 4.:On Y types conversion equipment itself the PROFIBUS slave stations and two redundant bus independent as two
PROFIBUS master station communications, receive required parameter;
Step is 5.:Switching control module in fpga chip, will currently without reason according to the working condition of two redundant bus
Barrier can be connected in the redundant bus of normal operation with monobus all the way;
Wherein step 1. in, Y type conversion equipments are connected to PROFIBUS redundancies double character coupling and PROFIBUS monobus
Network;
Y types conversion equipment is connected in two PROFIBUS redundancy dual bus as two independent slave stations, and two superfluous
Remaining bus is connected to fpga chip by two sets of independent drive circuits of periphery 485, sends two PROFIBUS redundancy main stations
Message can be received by fpga chip, fpga chip return message can be sent to PROFIBUS main websites;
Fpga chip is connected again by peripheral 485 drive circuits with PROFIBUS monobus, when fpga chip is by certain
When PROFIBUS redundant bus is connected with PROFIBUS monobus, the PROFIBUS main websites hair on this PROFIBUS redundant bus
The message sent can be transferred on PROFIBUS monobus by fpga chip, the report that the slave station on PROFIBUS monobus is replied
Text can be also relayed on the redundant bus of connection;
Wherein step 2. in, all functional modules are realized by fpga chip built-in in Y type conversion equipments;
Packet parsing module is responsible for parsing the bus message received on two PROFIBUS redundant bus, point
Analyse whether the type of message that receives is standard PROFIBUS messages, whether just whether its message length is correct, message checking and
Really etc., judge to whether there is error message in bus, and by analyzing the destination address in correct message, differentiating this message is
It is no to be sent to as Y types conversion equipment itself existing for slave station;
Timing monitoring module is responsible for monitoring and includes the message character pitch time, during various buses including the bus silence period
Between, and judge whether made a mistake in bus according to monitored results;
It is total in two redundancy PROFIBUS that PROFIBUS slave station status mechanism modules are responsible for handling built-in Y types conversion equipment
On line, all state transitions that should possess as PROFIBUS slave stations, receive and issue Y types turn from PROFIBUS redundancy main stations
The message of exchange device itself is simultaneously acted by communication standard, while parses the arrange parameter parameterized from main website in message, wherein
Include bus silence period maximum and error message number maximum;
Switching control module is responsible for according to packet parsing and timing monitored results, judges two redundancy PROFIBUS buses
In, which bar is in normal operating conditions, and Bing Jiangci roads bus is connected with PROFIBUS monobus.If currently connection bus is led to
Believe normal non-fault, current connection state is kept, without any switching.If currently monitoring failure in connection bus, cut
Change control module to cut off this road bus, another way redundant bus is connected with PROFIBUS monobus;
Wherein step 3. in, on Y type conversion equipments after electricity, packet parsing module inside fpga chip is parsed from two
All messages received on PROFIBUS redundant bus;
Timing monitoring module monitors various bus times simultaneously, silent with bus including the message character pitch time
Time;
Whether the message that judgement receives is correct, and its foundation is whether its type of message is PROFIBUS standard traffic reports
Text, its message length is no correct with message checking, and whether its message character pitch meets PROFIBUS standards;
Target address information in message, the differentiation from all bus messages received of packet parsing module
The message of Y types conversion equipment itself is given, and it is further parsed.
Wherein step 4. in, the PROFIBUS slave station status mechanisms in fpga chip, which are responsible for receiving and handled, is sent to Y types
The message of conversion equipment, message, parametrization message, configuration message, data exchange output are diagnosed wherein being communicated comprising PROFIBUS
Message etc.;
In the parametrization message received from PROFIBUS main websites, fpga chip obtains various required arrange parameters,
These parameters will be used for the criterion as bus failure by the switching control module in fpga chip, wherein during comprising bus silence
Between maximum, allow error message number maximum;
Receive diagnosis message, parametrization message, configuration message, by PROFIBUS communication correct initialization procedure it
Afterwards, the PROFIBUS slave station status mechanisms in fpga chip jump to data exchange state, receive from PROFIBUS main websites
Output data, and itself working condition and bus connection are uploaded to PROFIBUS main websites by input data;
If the bus message for being sent to Y types conversion equipment itself is wrong, the PROFIBUS slave station states in fpga chip
Mechanism will be unable to enter data exchange state.
Wherein step 5. in, which bar redundancy is switching control module is determined according to the working condition of two redundant bus
Bus is connected with monobus, and the criterion that certain redundant bus has failure includes have received in this bus more than permission mistake
Report the error message bar number of literary number maximum by mistake, Y types conversion equipment itself is not at data exchange as PROFIBUS slave stations
State, do not monitor that the time of any message has exceeded the bus silence period in bus;
Wherein error message number maximum is allowed to be come from what is received with bus silence period maximum
Obtained in the parametrization message of PROFIBUS main websites;
If currently connection redundant bus works in normal condition, fault-free in bus, switching control module keeps current
Connection status is without any switching;
If currently connection redundant bus breaks down, switching control module will be attempted to switch, by another redundant bus
It is connected with monobus;
If checking another redundant bus equally exists failure, switching can not be realized;
A kind of Y type conversion equipment control devices of connection PROFIBUS redundant networks and Monobus network, Y type conversion equipments
Function all realized by fpga chip, the module of multiple functions is realized in fpga chip, including:Packet parsing module, timing
Monitoring module, PROFIBUS slave station status mechanism modules and switching control module.
The Y type conversion equipments analyzed simultaneously the communication conditions of two separate buses are needed, are connected to two
On bar redundant bus, wherein packet parsing module, timing monitoring module are all mutual with PROFIBUS slave station status mechanism modules
Independent two sets;
Two packet parsing modules judge to whether there is error message in two buses, and will determine that result sends switching to
Control module;According to whether receiving the character from bus, packet parsing module sends bus activity situation to timing and supervised
Control module;
Two timing monitoring modules judge to whether there is bus time mistake in two buses, and will determine that result is sent to
Switching control module;
Two PROFIBUS slave station status mechanisms modules are used to realize Y types conversion equipment as slave station at two
Communications status in PROFIBUS buses redirects, and sends the real-time communication conditions of Y type conversion equipments to switching control module;
An only switching control module, this switching control module synthesis packet parsing module, timing in Y types conversion equipment
Whether the bus failure Information And Communication state that monitoring module and PROFIBUS slave station status mechanisms module provide, decision-making need
Switched between two redundant bus, the bus all the way of normal work is connected to Monobus network.
Two PROFIBUS slave station status mechanism modules possess identical tributary address and initial configuration information, Ye Jixu
It is completely the same from the parametrization message and configuration message that PROFIBUS main websites receive, after data exchange state is entered, with
The inputoutput data length that PROFIBUS main websites exchange is also completely the same.
The present invention has following positive beneficial effect:
This method realizes the parsing to message on redundant bus by fpga chip, by the timing monitoring to bus
After the judgement to self communication state, Y types conversion equipment has the ability to judge which current bar redundant bus is working on without reason
Barrier state.Y types conversion equipment can be worked another way just when the active redundancy bus currently connected breaks down
Normal redundant bus is connected on PROFIBUS monobus.Message in PROFIBUS buses will be in redundant network and nonredundancy
Transparent transmission between network, the communication delay that non-transparent transmission is brought is eliminated, avoid that data field mapping mode brings makes
With difficulty.
Brief description of the drawings
Fig. 1 is the network connection figure of the present invention.
Fig. 2 is the hardware structure diagram of the present invention.
Fig. 3 is the abstract module block diagram of the present invention.
Fig. 4 is the packet parsing module realization principle figure in fpga chip of the present invention.
Fig. 5 is the timing monitoring module realization principle figure in fpga chip of the present invention.
Fig. 6 is the PROFIBUS slave station status mechanism module realization principle figures in fpga chip of the present invention.
Fig. 7 is that the switching control module in fpga chip of the present invention carries out judgement schematic diagram.
Embodiment
Reference picture 1, in the present invention, Y type conversion equipments are connected to PROFIBUS redundancies double character coupling and PROFIBUS
Monobus network.
In PROFIBUS redundancy double character couplings, Y types conversion equipment as two mailing address identical independence from
Station is connected in two PROFIBUS buses, each independent to carry out standard PROFIBUS communications with two redundancy main stations;
In PROFIBUS Monobus networks, Y types conversion equipment exists not as PROFIBUS communication sites, mono- total with PROFIBUS
There is no master-slave communication between slave station in gauze network;Y type conversion equipments are two networks of connection so that bus message can be superfluous
The equipment of transparent transmission between remaining double character coupling and Monobus network.
During as standard PROFIBUS slave stations, diagnosis message of the Y types conversion equipment reception from PROFIBUS redundancy main stations,
Message, configuration message are parameterized, the arrange parameter from PROFIBUS main websites is obtained from parametrization message.Complete correctly
After PROFIBUS communication initialization processes, Y types conversion equipment can enter data exchange state, and the working condition of itself is reported
PROFIBUS main websites.
By parameterizing message, Y types conversion equipment can obtain the arrange parameter from PROFIBUS main websites, wherein including
Bus silence period maximum, it is allowed to error message number maximum.
By outgoing message, the output that Y types conversion equipment can be put into according to PROFIBUS main websites in outgoing message refers to
Order, switches over to the redundant bus currently connected, another redundant bus is switched to and is connected with Monobus network.
By incoming message, Y types conversion equipment can to the PROFIBUS main website notices instantaneous operating conditions of itself, wherein
Contain which current bar redundant bus has been connected on monobus, the type of error occurred on fault bus, switching times etc.
Information.
Message on two redundant bus is not forwarded to Monobus network by Y types conversion equipment simultaneously, a moment,
Only one can the trouble-free bus of normal work be connected to Monobus network.
Reference picture 2, in the present invention, the hardware of Y type conversion equipments mainly include fpga chip, and for being connected
PROFIBUS redundancy two-way buses and three sets of independent RS485 drive circuits of PROFIBUS monobus.
In present invention design, the model of fpga chip model XC7A50T, the RS485 driving chip used
ADM2486, with three groups of separate PROFIBUS_TXD between fpga chip and three RS485 driving chips,
PROFIBUS_RXD, PROFIBUS_RTS signal wire are connected.PROFIBUS buses are connected to A, B signal on 9 pin D type plugs
Line is connected with RS485 driving chips by A_P, A_N, RTS signal wires.
Message from two redundancy PROFIBUS main websites in PROFIBUS buses, its differential signal are inserted by 9 pin D types
Head, by A1/2_P, A1/2_N, RTS_1/2 signal wires enter RS485 driving chips, after being handled by RS485 chips, pass through
PROFIBUS_TXD_1/2, PROFIBUS_RXD_1/2, PROFIBUS_RTS_1/2 signal wire enter fpga chip, by FPGA
Chip is parsed.
The message from redundancy PROFIBUS main websites that Y types conversion equipment forwards to PROFIBUS monobus, these messages
By PROFIBUS_TXD_3, PROFIBUS_RXD_3, PROFIBUS_RTS_3 signal wires are transferred to RS485 driving chips, and
Eventually through A3_P, A3_N, RTS_3 signal wires are sent in PROFIBUS Monobus networks via 9 pin D type plugs.
The response message that Y types conversion equipment itself provides as slave station to PROFIBUS main websites, passes through PROFIBUS_TXD_
1/2, PROFIBUS_RXD_1/2, PROFIBUS_RTS_1/2 signal wire are transferred to RS485 driving chips, and eventually through A1/
2_P, A1/2_N, RTS_1/2 signal wire are sent in redundant bus network via 9 pin D type plugs.
Response message from PROFIBUS Monobus network slave station equipments, by A3_P, A3_N, RTS_3 signal wires enter
Enter RS485 driving chips, and entered by PROFIBUS_TXD_3, PROFIBUS_RXD_3, PROFIBUS_RTS_3 signal wires
Fpga chip.Fpga chip forwards these messages, by PROFIBUS_TXD_1/2, PROFIBUS_RXD_1/2,
PROFIBUS_RTS_1/2 signal wires are transferred to RS485 driving chips, and believe eventually through A1/2_P, A1/2_N, RTS_1/2
Number line is sent in redundant bus network via 9 pin D type plugs.
Reference picture 3, in the present invention, the function of Y type conversion equipments are all realized by fpga chip, real in FPGA chips
Show multiple functional modules, including:Packet parsing module, timing monitoring module and are cut at PROFIBUS slave station status mechanism modules
Change control module.
Because Y type conversion equipments are connected on two redundant bus, it is necessary to lead to separate to two buses simultaneously
Letter situation is analyzed, wherein packet parsing module, and timing monitoring module is all phase with PROFIBUS slave station status mechanism modules
Mutually independent two sets.
Two packet parsing modules judge to whether there is error message in two buses, and will determine that result sends switching to
Control module.According to whether receiving the character from bus, packet parsing module sends bus activity situation to timing and supervised
Control module.
Two timing monitoring modules judge to whether there is bus time mistake in two buses, and will determine that result is sent to
Switching control module.
Two PROFIBUS slave station status mechanisms modules are used to realize Y types conversion equipment as slave station at two
Communications status in PROFIBUS buses redirects, and sends the real-time communication conditions of Y type conversion equipments to switching control module.
An only switching control module, this module synthesis packet parsing module, timing monitoring module in Y types conversion equipment
Whether the bus failure Information And Communication state provided with PROFIBUS slave station status mechanisms module, decision-making need to need at two
Switched between redundant bus, the bus all the way of normal work is connected to Monobus network.
Reference picture 4, in the present invention, the packet parsing function of Y type conversion equipments is all by the packet parsing in fpga chip
Module is realized.
In fpga chip, realize two sets of independent packet parsing modules be used for parse connect on two redundancy dual bus
All messages received.PROFIBUS messages in bus have a multiple format, and specific message format is as shown in table 1:
Wherein,
SD:Starting delimiter, the bebinning character of PROFIBUS bus messages, for distinguishing the bus message class received
Type.
LE:Message length, the message length information in units of byte, its length computation scope include ....
LEr:Message length duplicate message, this byte should be identical with LE values, are used for judging to report as length redundancy
The correctness of text.
DA:Target station address, the mailing address for the targeted sites that this bus message is sent.
SA:Source address, send the mailing address of the Source Site of this bus message.
FC:Function code, the attribute information of message, the priority level of this message is marked, with basic function information.
DSAP:Destination service access point, the target service requests type of this bus message, used for distinguishing this bus message
In which kind of service.
SSAP:Source service access point, the source service request type of this bus message, it is equally used for distinguishing this bus message use
In which kind of service.
DU:Data cell, the specific data division of PROFIBUS bus messages.
FCS:Message checking, the verification of message data and, for determining whether this message correct.
ED:Terminate delimiter, last byte of PROFIBUS bus messages, represent that this message terminates.
When receiving a PROFIBUS bus message, the packet parsing module of fpga chip starts, to what is received
Each message is analyzed.This module is as shown in Figure 4 to the flow of packet parsing.
By SD bytes, packet parsing module can determine that this message is SD1, SD2, SD3, SD4, and several messages of SC
It is any in structure.Wherein,
SD1 messages are fixed length message, and its message length is fixed as 6 bytes, and packet parsing module is receiving SD1
After beginning delimiter, judge whether this message length is correct, if complete message is not 6 bytes, then it is assumed that this message error;Meter
Calculate and judge whether this message FCS is correct, if FCS verifications are incorrect, it is believed that this message error;Judge the last character section end
Whether delimiter is 16H, if this byte value is incorrect, it is believed that this message error.
SD2 messages are non-fixed length message, and its message length is not fixed, and packet parsing module is receiving SD2 starting demarcation
After symbol, LE, LEr length information bytes are continued to.If two length informations of LE, LEr are different, it is believed that this message error;
After determining that LE length informations are correct, complete SD2 messages are received according to this length, if the message physical length received with
LE length informations are not inconsistent, it is believed that this message error;Calculate and judge whether this message FCS is correct, if FCS verifications are incorrect, recognize
For this message error;Judge whether the last character section end delimiter is 16H, if this byte value is incorrect, it is believed that this report
Literary mistake.
SD3 messages are fixed length message, and its DU parts are usually 8 bytes, and its message length is then 14 bytes, message solution
Module is analysed after SD3 starting delimiters are received, judges whether this message length is correct, if complete message is not 14 words
Section, then it is assumed that this message error;Calculate and judge whether this message FCS is correct, if FCS verifications are incorrect, it is believed that this message is wrong
By mistake;Judge whether the last character section end delimiter is 16H, if this byte value is incorrect, it is believed that this message error.
SD4 messages are fixed length message, and its message length is 3 bytes, and packet parsing module is receiving SD1 startings calmly
After boundary's symbol, judge whether this message length is correct, if complete message is not 3 bytes, then it is assumed that this message error.
SC messages are fixed length message, only a byte, and packet parsing module judges this message when receiving SC messages
Whether it is single byte message that a numerical value is E5H, otherwise this message error.
By Target Station address D A, which message is packet parsing module can tell and be destined to Y types conversion equipment certainly
Body, which message are destined to the miscellaneous equipment in bus network.
Reference picture 5, in the present invention, the bus time monitoring function of Y type conversion equipments is all by the timing in fpga chip
Monitoring module is realized.
In fpga chip, realize two sets of independent timing monitoring modules be used for monitor two redundant bus on it is various
Time, two timers, character pitch timer and bus silence timer are included in each module.
Since being received the first character of message on redundant bus, timing monitoring module starts byte interval timer
Monitor each interval of message intercharacter.Whenever receiving message character from bus, timing monitoring module resets intercharacter
Every timer.If after a complete message character is received, Y type conversion equipments within the time as defined in communication standard not
New character, character pitch timer expiry are received again.Provided according to PROFIBUS communication standards, the total reports from a liner of PROFIBUS
Text should be continuously without interval, if monitoring, message character pitch provides more than communication standard, judges that mistake occurs in this message.
Since being received the last character of message on redundant bus, timing monitoring module starts the silent timing of bus
Silence period on device monitoring redundant bus, namely the time occurred in bus without any message.It is any to appear in bus
Message can all reset bus silence timer, if this timer expiry, the silence period in bus has exceeded Y types conversion equipment certainly
Body, by the arrange parameter bus silence period maximum permissible value received in parametrization message, judges occur in bus as slave station
Failure.
Reference picture 6, in the present invention, the communication function that Y types conversion equipment should possess as standard PROFIBUS slave stations is all
Realized by the PROFIBUS slave station status mechanisms module in fpga chip.
In fpga chip, two sets of independent PROFIBUS slave station status mechanism modules are realized, this module causes Y types to turn
Exchange device is possibly realized in redundancy two-way bus as the work of standard PROFIBUS slave stations.This module realizes standard
PROFIBUS slave station status mechanisms, the message of Y types conversion equipment itself is sent to from redundancy main station when fpga chip receives,
PROFIBUS slave station status mechanism modules can handle the message received, and jump to corresponding communications status, its state transition
Process meets PROFIBUS communication standards regulation, and particular state redirects as shown in Figure 6.
The two PROFIBUS slave station status mechanism modules possess identical tributary address and initial configuration information, namely
Need the parametrization message that is received from PROFIBUS main websites and configuration message completely the same, after data exchange state is entered,
The inputoutput data length exchanged with PROFIBUS main websites is also completely the same.
Whether reference picture 7, in the present invention, Y types conversion equipment switch over to the redundant bus that currently connects, make another
One redundant bus is connected on monobus to be judged by the switching control module in fpga chip.
In fpga chip, switching control module is realized, this module is responsible for when finding bus failure, and guarantee currently may be used
The redundant bus all the way of normal work is connected with Monobus network.
Switching control module thinks situations below, and bus can be considered there occurs failure, be unable to maintain that equipment in network it
Between proper communication, including:Packet parsing module has continuously received a plurality of error message in certain bus, continuous wrong
The bar number of wrong report text, which alreadys exceed, allows error message bar number maximum;Timing monitoring module finds that bus is silent for a long time, quiet
The silent time, which alreadys exceed, allows bus silence period maximum;Y types conversion equipment itself is as on slave station and this redundant bus
Master device be unable to maintain that proper communication, exit data exchange state.
In running, switching control module is switched over by following rule.
When finding certain redundant bus failure, switching control module judges whether this bus is currently connected to monobus net
Network.If being not attached to Monobus network, keep the current connection state of two redundant bus constant;If this fault bus is
The redundant bus of Monobus network is currently connected to, attempts to switch to another redundant bus.
Before another redundant bus is switched to, the current operating state of another redundant bus is inquired about, if exist
Communication failure.If another redundant bus is working properly, switching control module will connect bus switch, and so far normal work is superfluous
Remaining bus;If another redundant bus equally exists failure, switching control module keeps current connection state constant, not two
Switched between bar redundant bus.
When two redundant bus all have failure, packet parsing module and timing monitoring module continuous firing, analysis is always
Line signal intelligence, when one bus of any of which departs from malfunction, switching control module switches to PROFIBUS monobus
It is connected with this bus.
Table 1:
Claims (7)
1. a kind of implementation method of the Y type conversion equipments of connection PROFIBUS redundant networks and Monobus network, passes through FPGA cores
Piece parses bus message and carries out logic judgment, and its hardware device mainly includes:It is responsible for PROFIBUS communication protocols, packet parsing
With the fpga chip of logic judgment;
It is comprised the following steps that:
1., in the network at the same time comprising PROFIBUS redundancies dual bus and monobus, Y type conversion equipments are connected to two to step
Redundant bus and single channel bus, its own exists on two redundant bus as slave station, realizes redundancy double character coupling and list
Transparent transmission between bus network;
Step 2., in fpga chip realize packet parsing module, timing monitoring module, PROFIBUS slave station status mechanism modules with
Switching control module;
Packet parsing module is responsible for parsing the bus message received on two PROFIBUS redundancy dual bus, analyzes
Type of message, destination address and the message checking received, therefrom distinguish the communication report for being sent to Y types conversion equipment itself
Text, judge to whether there is error message in bus;
Timing monitoring module is responsible for the controlling bus time, and judges whether made a mistake in bus according to monitored results;
PROFIBUS slave station status mechanism modules are responsible for handling Y types conversion equipment in two redundancy PROFIBUS buses, as
All state transitions that PROFIBUS slave stations should possess;And Y type conversion equipments are obtained in the parameter message issued from redundancy main station
Required arrange parameter;
Switching control module is responsible for according to packet parsing and timing monitored results, judges in two redundancy PROFIBUS buses, which
One is in normal operating conditions, and Bing Jiangci roads bus is connected with PROFIBUS monobus;If currently connect total on-line monitoring
To failure, switching control module cuts off this road bus, another way redundant bus is connected with PROFIBUS monobus;
3., on Y type conversion equipments after electricity, fpga chip utilizes packet parsing module and timing monitoring module to step, parses from two
Whether the message received in bar redundancy PROFIBUS buses is correct, judges whether two redundant bus are operated in normal condition;
Fpga chip parses the message of itself being sent to as slave station and handled from all correct bus messages,
Simultaneously whether error message is received in Analysis design bus;
The fpga chip controlling bus time, for judge on redundant bus whether faulty generation;
4., fpga chip starts PROFIBUS slave station status mechanisms to step, receives and handles and is sent to the message of itself so that Y
Type conversion equipment itself is communicated as slave station with PROFIBUS main websites, the parameter during PROFIBUS communication initializations
Change in message and obtain required arrange parameter;
5., FPGA starts switching control module to step, can be normal by current fault-free according to the working condition of two redundant bus
Being connected all the way with monobus in the redundant bus of operation.
2. the Y type conversion equipments of a kind of connection PROFIBUS redundant networks according to claim 1 and Monobus network
Implementation method, wherein step 1. in, Y type conversion equipments are connected to PROFIBUS redundancies double character coupling and PROFIBUS monobus
Network;
Y types conversion equipment is connected in two PROFIBUS redundancy dual bus as two independent slave stations, and two redundancies are total
Line is connected to fpga chip by two sets of independent drive circuits of periphery 485, the report for sending two PROFIBUS redundancy main stations
Text can be received by fpga chip, and the message that fpga chip returns can be sent to PROFIBUS main websites;
Fpga chip is connected again by peripheral 485 drive circuits with PROFIBUS monobus, when fpga chip is by certain
When PROFIBUS redundant bus is connected with PROFIBUS monobus, the PROFIBUS main websites hair on this PROFIBUS redundant bus
The message sent can be transferred on PROFIBUS monobus by fpga chip, the message that the slave station on PROFIBUS monobus is replied
Also can be relayed on the redundant bus of connection.
3. the Y type conversion equipments of a kind of connection PROFIBUS redundant networks according to claim 1 and Monobus network
Implementation method, wherein step 3. in, on Y type conversion equipments after electricity, the parsing of packet parsing module inside fpga chip is from two
All messages received on bar PROFIBUS redundant bus;
Timing monitoring module monitoring message character pitch time simultaneously, and the time that bus is silent;
Judging whether the message that receives is correct, its basis for estimation is that its message structure, message length, message checking are no correct,
And whether message character pitch meets PROFIBUS communication standards;
In the case of message is correct, the target address information in message, packet parsing module is all total from what is received
The message for being sent to Y types conversion equipment itself is distinguished in report from a liner text, and it is further parsed.
4. the Y type conversion equipments of a kind of connection PROFIBUS redundant networks according to claim 1 and Monobus network
Implementation method, wherein step 4. in, the PROFIBUS slave station status mechanisms in fpga chip, which are responsible for receiving and handled, is sent to Y types
The message of conversion equipment, message, parametrization message, configuration message, data exchange output are diagnosed wherein being communicated comprising PROFIBUS
Message;
In the parametrization message received from PROFIBUS main websites, fpga chip obtains various required arrange parameters, these
The criterion that parameter will be used for as bus failure by the switching control module in fpga chip, wherein comprising the bus silence period most
Big value, allow error message number maximum;
Receive diagnosis message, parameterize message, configuration message, after the correct initialization procedure by PROFIBUS communications,
PROFIBUS slave station status mechanisms in fpga chip jump to data exchange state, receive the output from PROFIBUS main websites
Data, and itself working condition and bus connection are uploaded to PROFIBUS main websites by input data;
If the bus message for being sent to Y types conversion equipment itself is wrong, the PROFIBUS slave station status mechanisms in fpga chip
It will be unable to enter data exchange state.
5. the Y type conversion equipments of a kind of connection PROFIBUS redundant networks according to claim 1 and Monobus network
Implementation method, wherein step 5. in, the switching control module in fpga chip, ought according to the working condition of two redundant bus
Preceding fault-free can be connected in the redundant bus of normal operation with monobus all the way;
Switching control module judges that the criterion that certain redundant bus has failure includes have received in this bus more than fair
Perhaps the error message bar number of error message number maximum, PROFIBUS slave station states of the Y types conversion equipment itself as slave station
It is not at data exchange state, and not monitor that the time of any message has exceeded bus in bus quiet for timing monitoring module
Silent time maximum.
6. the Y type conversion equipment controls of a kind of connection PROFIBUS redundant networks according to claim 1 and Monobus network
Device processed, it is characterised in that the function of Y type conversion equipments is all realized by fpga chip, and multiple functions are realized in fpga chip
Module, including:Packet parsing module, timing monitoring module, PROFIBUS slave station status mechanism modules and switching control module.
Need the Y type conversion equipments analyzed simultaneously the communication conditions of two separate buses, be connected to two it is superfluous
In remaining bus, wherein packet parsing module, timing monitoring module are all separate with PROFIBUS slave station status mechanism modules
Two sets;
Two packet parsing modules judge to whether there is error message in two buses, and will determine that result sends switching control to
Module;According to whether receiving the character from bus, packet parsing module sends bus activity situation to timing monitoring mould
Block;
Two timing monitoring modules judge to whether there is bus time mistake in two buses, and will determine that result sends switching to
Control module;
Two PROFIBUS slave station status mechanisms modules are used to realize Y types conversion equipment as slave station in two PROFIBUS buses
On communications status redirect, and send the real-time communication conditions of Y type conversion equipments to switching control module;
An only switching control module in Y types conversion equipment, this switching control module synthesis packet parsing module, timing monitor
Whether the bus failure Information And Communication state that module and PROFIBUS slave station status mechanisms module provide, decision-making are needed at two
Switched between redundant bus, the bus all the way of normal work is connected to Monobus network.
7. the Y type conversion equipment controls of a kind of connection PROFIBUS redundant networks according to claim 1 and Monobus network
Device processed, it is characterised in that two PROFIBUS slave station status mechanism modules possess identical tributary address and initial configuration
Information, namely need the parametrization message that is received from PROFIBUS main websites and configuration message completely the same, entering data friendship
After changing state, the inputoutput data length exchanged with PROFIBUS main websites is also completely the same.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710826655.8A CN107612800B (en) | 2017-09-14 | 2017-09-14 | Implementation method and control device of Y-type conversion equipment for connecting PROFIBUS redundant double-bus network and PROFIBUS single-bus network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710826655.8A CN107612800B (en) | 2017-09-14 | 2017-09-14 | Implementation method and control device of Y-type conversion equipment for connecting PROFIBUS redundant double-bus network and PROFIBUS single-bus network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107612800A true CN107612800A (en) | 2018-01-19 |
CN107612800B CN107612800B (en) | 2021-05-25 |
Family
ID=61063574
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710826655.8A Active CN107612800B (en) | 2017-09-14 | 2017-09-14 | Implementation method and control device of Y-type conversion equipment for connecting PROFIBUS redundant double-bus network and PROFIBUS single-bus network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107612800B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108809784A (en) * | 2018-06-07 | 2018-11-13 | 杭州和利时自动化有限公司 | A kind of bus apparatus interception system and method |
CN109240075A (en) * | 2018-08-15 | 2019-01-18 | 南宁学院 | A kind of thermal power plant bus redundancy control system |
CN112904814A (en) * | 2021-01-16 | 2021-06-04 | 京能十堰热电有限公司 | PROFIBUS equipment online communication state monitoring method based on NT6000 platform |
CN114726674A (en) * | 2022-04-06 | 2022-07-08 | 北京鼎实创新科技股份有限公司 | FPGA-based PROFIBUS bus process data extraction method |
CN115442218A (en) * | 2022-09-05 | 2022-12-06 | 成都夸克光电技术有限公司 | FPGA-based Ethercat annular dual-redundancy link switching method and system |
WO2023125994A1 (en) * | 2021-12-31 | 2023-07-06 | 浙江中控技术股份有限公司 | Foundation fieldbus redundancy method and apparatus |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101296065A (en) * | 2008-06-19 | 2008-10-29 | 浙江中控技术股份有限公司 | Method and system for improving reliability of redundancy main station |
CN101770239A (en) * | 2009-12-29 | 2010-07-07 | 上海自动化仪表股份有限公司 | Intelligent electric actuating mechanism based on Profibus DP superfluous communication technology |
CN101807076A (en) * | 2010-05-26 | 2010-08-18 | 哈尔滨工业大学 | Duplication redundancy fault-tolerant high-reliability control system having cooperative warm standby function based on PROFIBUS field bus |
CN101841542A (en) * | 2010-05-07 | 2010-09-22 | 北京鼎实创新科技有限公司 | Method for realizing PROFIBUS master station communication protocol based on FPGA (Field Programmable Gate Array) technology |
CN102193543A (en) * | 2011-03-25 | 2011-09-21 | 上海磁浮交通发展有限公司 | Control system based on profibus redundant network topological structure and switching method of control system |
CN102724092A (en) * | 2012-06-25 | 2012-10-10 | 西安热工研究院有限公司 | Profibus-DP communication protocol redundancy master station |
CN102736617A (en) * | 2012-06-18 | 2012-10-17 | 北京首钢自动化信息技术有限公司 | Method for diagnosing PROFIBUS-DP bus |
WO2016119956A1 (en) * | 2015-01-26 | 2016-08-04 | Endress+Hauser Process Solutions Ag | Device access by means of a generic communication driver |
CN106878131A (en) * | 2017-03-24 | 2017-06-20 | 浙江中控技术股份有限公司 | A kind of data transmission method of PROFIBUS couplers and PROFIBUS |
-
2017
- 2017-09-14 CN CN201710826655.8A patent/CN107612800B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101296065A (en) * | 2008-06-19 | 2008-10-29 | 浙江中控技术股份有限公司 | Method and system for improving reliability of redundancy main station |
CN101770239A (en) * | 2009-12-29 | 2010-07-07 | 上海自动化仪表股份有限公司 | Intelligent electric actuating mechanism based on Profibus DP superfluous communication technology |
CN101841542A (en) * | 2010-05-07 | 2010-09-22 | 北京鼎实创新科技有限公司 | Method for realizing PROFIBUS master station communication protocol based on FPGA (Field Programmable Gate Array) technology |
CN101807076A (en) * | 2010-05-26 | 2010-08-18 | 哈尔滨工业大学 | Duplication redundancy fault-tolerant high-reliability control system having cooperative warm standby function based on PROFIBUS field bus |
CN102193543A (en) * | 2011-03-25 | 2011-09-21 | 上海磁浮交通发展有限公司 | Control system based on profibus redundant network topological structure and switching method of control system |
CN102736617A (en) * | 2012-06-18 | 2012-10-17 | 北京首钢自动化信息技术有限公司 | Method for diagnosing PROFIBUS-DP bus |
CN102724092A (en) * | 2012-06-25 | 2012-10-10 | 西安热工研究院有限公司 | Profibus-DP communication protocol redundancy master station |
WO2016119956A1 (en) * | 2015-01-26 | 2016-08-04 | Endress+Hauser Process Solutions Ag | Device access by means of a generic communication driver |
CN106878131A (en) * | 2017-03-24 | 2017-06-20 | 浙江中控技术股份有限公司 | A kind of data transmission method of PROFIBUS couplers and PROFIBUS |
Non-Patent Citations (1)
Title |
---|
深圳市讯记科技有限公司: "PROFIBUS DP总线冗余链路模块操作手册", 《百度文库,HTTPS://WENKU.BAIDU.COM/VIEW/21EDAA1F10A6F524CCBF850A.HTML》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108809784A (en) * | 2018-06-07 | 2018-11-13 | 杭州和利时自动化有限公司 | A kind of bus apparatus interception system and method |
CN109240075A (en) * | 2018-08-15 | 2019-01-18 | 南宁学院 | A kind of thermal power plant bus redundancy control system |
CN112904814A (en) * | 2021-01-16 | 2021-06-04 | 京能十堰热电有限公司 | PROFIBUS equipment online communication state monitoring method based on NT6000 platform |
CN112904814B (en) * | 2021-01-16 | 2023-11-14 | 京能十堰热电有限公司 | PROFIBUS equipment on-line communication state monitoring method based on NT6000 platform |
WO2023125994A1 (en) * | 2021-12-31 | 2023-07-06 | 浙江中控技术股份有限公司 | Foundation fieldbus redundancy method and apparatus |
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 |
CN115442218A (en) * | 2022-09-05 | 2022-12-06 | 成都夸克光电技术有限公司 | FPGA-based Ethercat annular dual-redundancy link switching method and system |
CN115442218B (en) * | 2022-09-05 | 2024-04-09 | 成都夸克光电技术有限公司 | Ethercat annular dual-redundancy link switching method and system based on FPGA |
Also Published As
Publication number | Publication date |
---|---|
CN107612800B (en) | 2021-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107612800A (en) | A kind of implementation method and control device of the Y type conversion equipments of connection PROFIBUS redundant networks and Monobus network | |
CN103455005B (en) | Controller redundancy and switching method | |
CN102577254B (en) | Methods and systems for fail-safe communication | |
JP4416834B2 (en) | Railway vehicle communication equipment | |
CN101296065B (en) | Method and system for improving reliability of redundancy main station | |
CN102857397B (en) | The how main asynchronous duplex differential bus of one and the means of communication | |
CN104579606B (en) | Double-unit traction controller network system redundancy design method | |
CN102611598B (en) | Bus redundancy system of controller local area network and method and device for switching redundancy | |
US8812759B2 (en) | Bus subscriber device for connection to a line-redundant data bus, and method for controlling the communication of a bus subscriber with a line-redundant serial data bus | |
CN103107940B (en) | For the redundant gateway system of device level looped network | |
CN107465576A (en) | A kind of more host communication system and methods based on Modbus agreements | |
CN101710376A (en) | Hardware platform of safe computer 2-out-of-3 voting method | |
CN104966538A (en) | Nuclear power station instrument control system based on FPGA technologies | |
CN106656960A (en) | Hilscher-based credible data acquisition system and method | |
CN104954168B (en) | A kind of communication failure navigation system based on packet parsing | |
CN102918809B (en) | The method of network and expanding element and operational network | |
CN103795520A (en) | Method for real-time synchronization based on FPGA message | |
CN108289050B (en) | Ring network control system and control method for transmitter | |
KR102475542B1 (en) | Gateway system for heterogeneous fieldbus network | |
CN104333205B (en) | A kind of converter valve level control device for flexible AC transmission | |
CN102611600A (en) | Method and device for locating short circuit position of CAN (Controller Area Network) network | |
CN110113265A (en) | More I2C interface interconnected methods and module based on FPGA | |
CN104135411A (en) | Device and method of implementing multi-node communication based on RS232 interface | |
CN105743927B (en) | A kind of CANopen and DP protocol data conversion method | |
CN108011791A (en) | A kind of airborne dual-redundancy CAN communication system configuration |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |