CN106444602A - Security programmable logic controller communication system and communication method - Google Patents
Security programmable logic controller communication system and communication method Download PDFInfo
- Publication number
- CN106444602A CN106444602A CN201610799289.7A CN201610799289A CN106444602A CN 106444602 A CN106444602 A CN 106444602A CN 201610799289 A CN201610799289 A CN 201610799289A CN 106444602 A CN106444602 A CN 106444602A
- Authority
- CN
- China
- Prior art keywords
- slave station
- data
- address
- control module
- main control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/058—Safety, monitoring
Abstract
The invention discloses a security programmable logic controller communication system and communication method. The method comprises the steps that data information transmitted by a slave station is received; the data information is analyzed so that operation state information of the slave station is obtained; and corresponding data response information is fed back to the slave station according to the operation state information. The technical problems in the relevant technologies that the communication requirement between PLC cannot be met due to lacking of the communication method between multiple PLC systems can be solved by the security programmable logic controller communication system and communication method.
Description
Technical field
The present invention relates to communication technology application, in particular to a kind of communication of safety programmable logic controller
System and communication means.
Background technology
Safety programmable logic controller (Programmable Logic Controller, abbreviation PLC) system is in oil transportation
Gas pipeline monitoring application in the middle of, due to pipeline distance, multiple safety PLC systems can prolong pipeline be distributed in different positions and
Distant it is therefore desirable between safety PLC system mutually quickly communication to be met with constituting safe control loop between system
Requirement to response time.
PLC cannot be met for what the above-mentioned method due to lacking communication between multiple PLC system in correlation technique led to
Between communication requirement problem, effective solution is not yet proposed at present.
Content of the invention
Embodiments provide a kind of safety programmable logic controller communication system and communication means, at least to solve
The communication requirement that cannot meet between PLC certainly being led to due to the method lacking communication between multiple PLC system in correlation technique
Technical problem.
A kind of one side according to embodiments of the present invention, there is provided communication means, including:Receive the data that slave station sends
Information;Parsing data message, obtains the running state information of slave station;According to running state information, feed back corresponding number to slave station
According to response message.
Optionally, receive the data message that slave station sends, including:Include the situation of address request information in data message
Under, receive the broadcast message that slave station sends, wherein, broadcast message carries address request information, and address request information includes slave station
Station address.
Further, optionally, in the case that running state information includes address allocation information, parse data message,
Obtain the running state information of slave station, including:Parsing address request information, obtains the station address of slave station;According to station address distribution
Corresponding port address, obtains address allocation information, wherein, distributes corresponding port address according to station address, obtains address and divide
Join information to include:Toggle switch according to the system configuration obtaining in advance and slave station obtains.
Optionally, according to running state information, feed back corresponding data response message to slave station and include:Send ground to slave station
Information is distributed in location.
Further, optionally, after sending address allocation information to slave station, method also includes:Receive slave station foundation
The response message that address allocation information sends;According to response message, the address information of storage slave station, and send confirmation report to slave station
Literary composition.
Optionally, before receiving the data message that slave station sends, method also includes:Initiate to slave station according to predetermined period
Polling request.
Further, optionally, the data message receiving slave station transmission includes:Include the number of slave station collection in data message
According in the case of, by same circuit different communication port receive slave station according to polling request return collection number
According to.
Optionally, parse data message, obtain the running state information of slave station, including:Include counting in running state information
In the case of result, calculate data according to logic of propositions computing, obtain data processed result.
Further, optionally, according to running state information, feed back corresponding data response message to slave station and include:Envelope
Dress data processed result, obtains data response message;To slave station feedback data response message.
Optionally, the data message receiving slave station transmission includes:When data message includes the running status of slave station, receive
The running status that slave station sends, running status is used for indicating whether slave station breaks down.
Further, optionally, parse data message, obtain the running state information of slave station, including:Parsing runs shape
State, in the case that the link of slave station breaks down, obtains the COM1 address of the renewal after slave station link repair;Storage is logical
Letter port address, updates the mapping relations of slave station communication port and master station communication port, and using the mapping relations after updating as
Running state information.
Optionally, according to running state information, feed back corresponding data response message to slave station and include:Feed back more to slave station
Mapping relations after new.
Optionally, method also includes:In the case of the main control module fault in main website, according to default link table update with
The mapping relations of the COM1 of slave station that the main control module of fault connects, and using the main control module of above-mentioned fault as standby control
Molding block.
A kind of other side according to embodiments of the present invention, there is provided safety programmable logic controller communication system,
It is applied to monitor conveyance conduit, including:Main website and slave station;Wherein, main website, please for sending to slave station according to default polling mechanism
Ask instruction;Slave station, is connected with main website, for receiving the request instruction of main website transmission, according to request instruction gathered data, and calculates
Data, to the corresponding result of calculation of main website feedback data.
Optionally, main website includes:Processing unit and transmission channel, wherein, processing unit, it is connected with transmission channel, be used for
Receive the data of slave station feedback, and calculate data, the result of calculation of output corresponding data by logical operationss.
Further, optionally, processing unit includes:First main control module and the second main control module, wherein, the first master control
Module, for configuring the address of corresponding control module in slave station, and receives the track data of control module collection according to address;The
Two main control modules, for replicating the function of the first main control module, so that in the case that the first main control module delays machine, it is right to receive
Answer the result of calculation that the control module of the first main control module is fed back.
Optionally, transmission channel includes:COM1, wherein, the input of COM1 and the transmission channel of slave station
Outfan connects, and the outfan of COM1 is connected with the first main control module and/or the second main control module, for corresponding from
Control module communication in standing, communication includes:Send request instruction, receive the response feedback of corresponding requests instruction, receive address
Configuring request.
Optionally, processing unit includes:Operating system module, for controlling the first main control module and/or the second master control mould
Block.
Optionally, slave station includes:Transmission channel, comparator and processing unit, wherein, transmission channel, for gathering each
Data on circuit;Comparator, is connected with the outfan of transmission channel, for being compared to the data on each circuit, defeated
Go out comparative result;The input of processing unit is connected with the outfan of comparator, for calculating comparative result.
Further, optionally, safety programmable logic controller communication system also includes:Harvester and executor, its
In, the input of harvester and each connection, for gathering the data on each circuit;The outfan of harvester and slave station
Connect, for sending the data on each circuit to slave station;The input of executor passes through transmission channel, is connected with slave station, uses
Result of calculation after receiving slave station voting.
In embodiments of the present invention, by receiving the data message that slave station sends;Parsing data message, obtains the fortune of slave station
Row status information;According to running state information, to slave station feedback corresponding data response letter, reach logical between multiple PLC system
The purpose of letter, it is achieved thereby that the technique effect of lifting plc communication efficiency, and then solve and lack to many due in correlation technique
The technical problem of the communication requirement that cannot meet between PLC that the method for communication leads between individual PLC system.
Brief description
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this
Bright schematic description and description is used for explaining the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic flow sheet of the communication means that the embodiment of the present application provides;
Fig. 2 is the structural representation of the safety programmable logic controller communication system that the embodiment of the present application provides;
Fig. 3 is a kind of structural representation of safety programmable logic controller communication system that the embodiment of the present application provides;
Fig. 4 is the structural representation of another kind of safety programmable logic controller communication system that the embodiment of the present application provides
Figure;
Fig. 5 is the information exchange in another kind of safety programmable logic controller communication system that the embodiment of the present application provides
Schematic diagram;
Fig. 6 is the structural representation of another safety programmable logic controller communication system that the embodiment of the present application provides
Figure;
Fig. 7 is the structural representation of another safety programmable logic controller communication system that the embodiment of the present application provides
Figure;
Fig. 8 is the structural representation of another safety programmable logic controller communication system that the embodiment of the present application provides
Figure;
Fig. 9 is that a kind of structure of safety programmable logic controller communication system link that the embodiment of the present application provides is shown
It is intended to;
Figure 10 is the knot of another kind of safety programmable logic controller communication system link that the embodiment of the present application provides
Structure schematic diagram.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention it is clear that described embodiment is only
The embodiment of a present invention part, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of not making creative work, all should belong to the model of present invention protection
Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " it is etc. for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that such use
Data can exchange in the appropriate case so that embodiments of the invention described herein can with except here diagram or
Order beyond those of description is implemented.Additionally, term " comprising " and " having " and their any deformation are it is intended that cover
Cover non-exclusive comprising, for example, contain series of steps or process, method, system, product or the equipment of unit are not necessarily limited to
Those steps clearly listed or unit, but may include clearly not listing or for these processes, method, product
Or the intrinsic other steps of equipment or unit.
Embodiment one
A kind of one side according to embodiments of the present invention, there is provided communication means, Fig. 1 is that the embodiment of the present application provides
The schematic flow sheet of communication means, including:
Step S102, receives the data message that slave station sends;
Step S104, parses data message, obtains the running state information of slave station;
Step S106, according to running state information, feeds back corresponding data response message to slave station.
In the communication means that the embodiment of the present application provides, by receiving the data message that slave station sends;Parsing data message,
Obtain the running state information of slave station;According to running state information, to slave station feedback corresponding data response letter, reach multiple
The purpose of communication between PLC system, it is achieved thereby that the technique effect of lifting plc communication efficiency, and then solve due to related skill
The technical problem of the communication requirement that cannot meet between PLC that the method communicating between multiple PLC system leads to is lacked in art.
Specifically, the communication means that the embodiment of the present application provides includes three parts, i.e. 1. address distribution;2. doubleization
Design;3. redundancy scheme.
Part I:Address is distributed;
Optionally, receive the data message that slave station sends in step S102, including:Include Address requests letter in data message
In the case of breath, receive the broadcast message that slave station sends, wherein, broadcast message carries address request information, address request information
Station address including slave station.
Further, optionally, in the case that running state information includes address allocation information, parse in step S104
Data message, obtains the running state information of slave station, including:Parsing address request information, obtains the station address of slave station;According to station
Corresponding port address is distributed in address, obtains address allocation information, wherein, distributes corresponding port address according to station address, obtains
Include to address allocation information:Toggle switch according to the system configuration obtaining in advance and slave station obtains.
Optionally, according to running state information in step S106, feed back corresponding data response message to slave station and include:To
Slave station sends address allocation information.
Further, optionally, after sending address allocation information to slave station, the communication party that the embodiment of the present application provides
Method also includes:Receive the response message that slave station sends according to address allocation information;According to response message, the address letter of storage slave station
Breath, and send confirmation message to slave station.
Part II:Doubleization designs;
Optionally, before receiving the data message that slave station sends in step s 102, the communication that the embodiment of the present application provides
Method also includes:Initiate polling request according to predetermined period to slave station.
Further, optionally, the data message receiving slave station transmission in step S102 includes:Data message include from
In the case of the data of collection of standing, by what slave station returned according to polling request is received to the different communication port in same circuit
The data of collection.
Optionally, parse data message in step S104, obtain the running state information of slave station, including:In running status
In the case that information includes data processed result, calculate data according to logic of propositions computing, obtain data processed result.
Further, optionally, according to running state information in step S106, to slave station feedback corresponding data response letter
Breath includes:Encapsulation of data result, obtains data response message;To slave station feedback data response message.
Part III:Redundancy Design;
Optionally, the data message receiving slave station transmission in step S102 includes:Include the operation of slave station in data message
During state, receive the running status that slave station sends, running status is used for indicating whether slave station breaks down.
Further, optionally, parse data message in step S104, obtain the running state information of slave station, including:Solution
Analysis running status, in the case that the link of slave station breaks down, obtains the COM1 ground of the renewal after slave station link repair
Location;Storage COM1 address, updates the mapping relations of slave station communication port and master station communication port, and by the mapping after updating
Relation is as running state information.
Optionally, according to running state information in step S106, feed back corresponding data response message to slave station and include:To
Mapping relations after slave station feedback renewal.
Optionally, the communication means that the embodiment of the present application provides also includes:The situation of the main control module fault in main website
Under, the mapping relations of the COM1 of slave station being connected with the main control module of fault according to default link table renewal, and will be above-mentioned
The main control module of fault is as standby controller module.
Embodiment two
A kind of other side according to embodiments of the present invention, there is provided safety programmable logic controller communication system,
Fig. 2 is the structural representation of the safety programmable logic controller communication system that the embodiment of the present application provides, and is applied to monitor defeated
Send pipeline, including:
Main website 12 and slave station 14;Wherein, main website 12, for sending request instruction according to default polling mechanism to slave station;From
Stand 14, be connected with main website 12, for receiving the request instruction of main website transmission, according to request instruction gathered data, and calculate data,
To the corresponding result of calculation of main website feedback data.
Optionally, main website 12 includes:Processing unit and transmission channel, wherein, processing unit, it is connected with transmission channel, use
In the data receiving slave station feedback, and calculate data, the result of calculation of output corresponding data by logical operationss.
Further, optionally, processing unit includes:First main control module and the second main control module, wherein, the first master control
Module, for configuring the address of corresponding control module in slave station, and receives the track data of control module collection according to address;The
Two main control modules, for replicating the function of the first main control module, so that in the case that the first main control module delays machine, it is right to receive
Answer the result of calculation that the control module of the first main control module is fed back.
Optionally, transmission channel includes:COM1, wherein, the input of COM1 and the transmission channel of slave station
Outfan connects, and the outfan of COM1 is connected with the first main control module and/or the second main control module, for corresponding from
Control module communication in standing, communication includes:Send request instruction, receive the response feedback of corresponding requests instruction, receive address
Configuring request.
Optionally, processing unit includes:Operating system module, for controlling the first main control module and/or the second master control mould
Block.
Optionally, slave station includes:Transmission channel, comparator and processing unit, wherein, transmission channel, for gathering each
Data on circuit;Comparator, is connected with the outfan of transmission channel, for being compared to the data on each circuit, defeated
Go out comparative result;The input of processing unit is connected with the outfan of comparator, for calculating comparative result.
Further, optionally, safety programmable logic controller communication system also includes:Harvester and executor, its
In, the input of harvester and each connection, for gathering the data on each circuit;The outfan of harvester and slave station
Connect, for sending the data on each circuit to slave station;The input of executor passes through transmission channel, is connected with slave station, uses
Result of calculation after receiving slave station voting.
Based on above-mentioned, the safety programmable logic controller communication system that the embodiment of the present application provides is specific as follows:
Between safety PLC system, communication connects topology as shown in figure 3, a kind of safety that Fig. 3 is the embodiment of the present application to be provided can
The structural representation of programmed logic controller communication system:Between safety PLC system, communication uses Ethernet, and communication task is by individual system
Main control module in system is responsible for, main control module redundant configuration, each controller provide four Ethernet interfaces (A1, A2, B1,
B2), realize realizing communication link redundancy while safety return circuit doubleization structure.A1 and B1, A2 and B2 are respectively redundancy relationship, A1
It is doubleization relation and between B1 and A2 and B2.Using the network equipment of standard when disposing at the scene, such as switch or router.
Communications protocol is based on principal and subordinate's poll, specifies a system as main website, remaining system is slave station in multiple safety PLC systems,
The periodic of main website active conducts interviews to all slave stations, only when main website conducts interviews to certain slave station, this slave station
Passive the sending datagram toward in bus of ability, in the case that main website does not conduct interviews to it, slave station only carries out oneself
The data acquisition and processing (DAP) of internal system, does not send data in bus.
1. address distribution
Between safety PLC system, communication is the principal and subordinate's poll based on Ethernet, and the Ethernet interface of therefore each slave station has
There is unique IP address, to identify whether main website conducts interviews to oneself with this.Need in communication initialization to all
System distribution IP address, the IP address of main website by human configuration, the IP address of slave station by main website according to the station address of slave station from
Dynamic distribution, the station address of slave station is determined and consistent with system configuration by the toggle switch in each slave station, the station address of slave station is also
Unique (in slave station system, two main control modules correspond to two different tributary address), main website obtains according to configuration info
Station address information.After the completion of system configuration, do not allow to add new equipment, because main website will not give new equipment distribution again
IP address.
As shown in figure 4, Fig. 4 is another kind of safety programmable logic controller communication system that the embodiment of the present application provides
Structural representation, safety PLC system 1 is main website, and safety PLC system 2 is slave station.Main website divides to slave station according to internal distribution algorithm
Join IP address and ensure the uniqueness of IP address.The IP address distribution of main website and slave station is as shown in table 1.
Table 1
The IP address distribution of each slave station Ethernet interface is above independently carried out in respective link (A1, B1, A2, B2) simultaneously, point
Join mechanism identical.So that the IP address of the Ethernet interface A1 (being represented with S3_A1) of slave station 3 is distributed as a example, including 5 steps, Fig. 5
It is the information exchange schematic diagram in another kind of safety programmable logic controller communication system that the embodiment of the present application provides, such as scheme
Shown in 5:
(1) S3_A1 sends broadcast packet, and request main website distribution IP address, using the station address 3 of oneself to lead in broadcast packet
Identification of standing is the request of which slave station;
(2) after main website receives the broadcast packet of IP address requesting, according to the station address 3 in broadcast packet, secondary IP address allocation table
In take the IP address (IP1.1) of the corresponding IP address of station address (IP3.1) and main website, sent with unicast, still wrap in unicast packet
The station address 3 of this slave station after containing;
(3) S3_A1 receives unicast packet, parses the tributary address in broadcast packet, if address is consistent with the station address of oneself,
Then this IP address (IP3.1 and IP1.1) in wrapping is preserved, then sends response to master control, do not use in response message from
The station address stood, but it is used the IP address (IP3.1) obtaining as source address, IP address (IP1.1) conduct of main website is used
Destination address;
(4) main website receives the confirmation message of S3-A1, and in IP address allocation table, this IP address of labelling is allocated successfully, then
Send confirmation message (using IP address) to S3_A1;
(5) after S3_A1 receives main website confirmation message, no longer ask on the link, be in silent status, wait normal fortune
By main website poll during row.
2. doubleization design
Enough become between many PLC system safe control loop (collection->Transmission->Computing->Transmission->Output) set using doubleization
Meter.As shown in fig. 6, Fig. 6 is the structure of another safety programmable logic controller communication system that the embodiment of the present application provides
Schematic diagram, safety PLC system 2 as slave station, doubleization acquisition channel simultaneously the data of collection site and in each passage to adopting
Collection result is compared, and comparative result is sent to its internal system dual processing unit by the transmission channel of doubleization;Peace
Full PLC system 1, as main website, reads gathered data by the transmission channel of doubleization, to the data gathering at the place of doubleization
Carry out logical operationss in reason unit;The result of computing is processed by doubleization of the channel transfer of doubleization to safety PLC system 3
Unit, then transmitted by the transmission channel of doubleization by processing unit to the output channel of doubleization, the output channel of doubleization
Data according to each obtaining is put to the vote, and voting result is exported to executor.
In the safe control loop of doubleization, each cell operation state in loop is diagnosed, the result of diagnosis
Also output result that can be final on safety PLC system 3 produces impact, it is to avoid because safe control loop fail to execute peace
Global function.
3. redundancy scheme
Communicated with principal and subordinate's polling mechanism between many safety PLC system, communication network and main control module support redundant configuration.As figure
Shown in 4, A and B is redundancy relationship, and 1 and 2 are doubleization relation, runs while doubleization relation.Safety PLC system
The activestandby state of two internal main control modules is determined with the diagnostic message of other side according to oneself by two modules.Main website according to point
The IP address preparing sets up communication link mapping table, selects respective links to lead to according to each Link State from mapping table in communication
News.Based on redundant configuration and doubleization structure, main website safeguards 16 communication links for each slave station, as shown in table 2.Master during operation
In standing, main control module selects corresponding link to be communicated according to Link State and module status.
Table 2
Link | Mapping relations | Link | Mapping relations |
1 | 1.1<==>3.1 | 9 | 1.1<==>4.1 |
2 | 1.2<==>3.2 | 10 | 1.2<==>4.2 |
3 | 1.3<==>3.3 | 11 | 1.3<==>4.3 |
4 | 1.4<==>3.4 | 12 | 1.4<==>4.4 |
5 | 2.1<==>3.1 | 13 | 2.1<==>4.1 |
6 | 2.2<==>3.2 | 14 | 2.2<==>4.2 |
7 | 2.3<==>3.3 | 15 | 2.3<==>4.3 |
8 | 2.4<==>3.4 | 16 | 2.4<==>4.4 |
1) normal communication:As shown in fig. 7, Fig. 7 is another safe programmable logic control that the embodiment of the present application provides
The structural representation of device communication system, after system start-up, the master control A in main website is primary module, and master control B is standby module (in main website
Primary module be responsible for sending request message, receive response message and computing, standby module is only responsible for receiving response message and computing);
Master control A in slave station is primary module, and master control B is standby module;It is primary link that master control A in main website selects link 1 and link 3,
Send unitcast request message on this two links simultaneously.Master control A in slave station receives message, sends out on link 1 and link 3 simultaneously
Send broadcast response message, the master control A in main website receives response message, the master control B in main website also can receive on link 5 and link 7
Broadcast response message to this.Main website sends diagnostic message message simultaneously on the remaining links, to safeguard the shape of other links with this
State.
2) communication under network failure situation:As shown in figure 8, another safety that Fig. 8 is the embodiment of the present application to be provided can
The structural representation of programmed logic controller communication system, if link 1 fault and link 2 is normal, is switched on link 2,
It is primary link that master control A in main website selects link 2 and link 3, sends unitcast request message on this two links simultaneously.Slave station
In master control A receive request message, on link 2 and link 3 simultaneously send broadcast response message, the master control A in main website receive should
Answer message, the master control B in main website also can receive broadcast response message on link 6 and link 7.Main website on the remaining links simultaneously
Send diagnostic message message, the state of other links is safeguarded with this.
The link switching principle that other are mutually redundant relation arrives the switching of link 2 with link 1.
3) the redundancy switching of main control module
A. main control module switching in main website:As shown in figure 9, Fig. 9 is a kind of safe programmable that the embodiment of the present application provides
The structural representation of logic controller communication system link, if the master control A fault in main website (CPU1 fault, CPU2 fault,
A1 and B1 simultaneous faults, A2 and B2 simultaneous faults, one of them occurs), then in main website, main control module switches, and master control A drops
It is from, based on master control B liter, master control B selects respective link poll to access slave station according to Link State.Principle of Communication and switching and master
A is identical for control.
Master switching in b slave station:As shown in Figure 10, Figure 10 is another kind of safe programmable that the embodiment of the present application provides
The structural representation of logic controller communication system link, if master control A fault (cPU1 fault, CPU2 fault, A1 in slave station
With B1 simultaneous faults, A2 and B2 simultaneous faults, one of them occurs), master control A and master control B switches, and master control A drops from master control
B rises master, and when main website passes through respective link polling master B, sends response message to main website.The response report of slave station main control module
Literary composition comprises its current master slave mode, and in main website analytic message, this status information is determining to operate accordingly.
The safety programmable logic controller communication system that the embodiment of the present application provides is realized between safety PLC system
Doubleization safe control loop, improves safety;Communication, using the principal and subordinate's polling mechanism based on 100M Ethernet, reduces system and rings
Between seasonable.Communication adopts link and module dual redundant structure, improves the reliability of communication;
Between safety PLC system, to sum up realize doubleization control loop, improve safety;Communication is using based on 100M ether
Principal and subordinate's polling mechanism of net, reduces system response time.Communication adopts link and module dual redundant structure, improves the reliability of communication
Property.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in certain embodiment
The part describing in detail, may refer to the associated description of other embodiment.
It should be understood that disclosed technology contents in several embodiments provided herein, can pass through other
Mode is realized.Wherein, device embodiment described above is only the schematically division of for example described unit, Ke Yiwei
A kind of division of logic function, actual can have other dividing mode when realizing, for example multiple units or assembly can in conjunction with or
Person is desirably integrated into another system, or some features can be ignored, or does not execute.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of unit or module or communication link
Connect, can be electrical or other form.
The described unit illustrating as separating component can be or may not be physically separate, show as unit
The part showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On unit.The purpose to realize this embodiment scheme for some or all of unit therein can be selected according to the actual needs.
In addition, can be integrated in a processing unit in each functional unit in each embodiment of the present invention it is also possible to
It is that unit is individually physically present it is also possible to two or more units are integrated in a unit.Above-mentioned integrated list
Unit both can be to be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If described integrated unit is realized and as independent production marketing or use using in the form of SFU software functional unit
When, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part in other words prior art being contributed or all or part of this technical scheme can be in the form of software products
Embody, this computer software product is stored in a storage medium, including some instructions with so that a computer
Equipment (can be personal computer, server or network equipment etc.) execution each embodiment methods described of the present invention whole or
Part steps.And aforesaid storage medium includes:USB flash disk, read only memory (ROM, Read-0nly Memory), random access memory are deposited
Reservoir (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. are various can be with store program codes
Medium.
The above is only the preferred embodiment of the present invention it is noted that ordinary skill people for the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (20)
1. a kind of communication means is it is characterised in that include:
Receive the data message that slave station sends;
Parse described data message, obtain the running state information of described slave station;
According to described running state information, feed back corresponding data response message to described slave station.
2. communication means according to claim 1 it is characterised in that described reception slave station send data message, including:
In the case that described data message includes address request information, receive the broadcast message that described slave station sends, wherein, institute
State broadcast message and carry described address request information, described address request information includes the station address of described slave station.
3. communication means according to claim 2 is it is characterised in that include address distribution letter in described running state information
In the case of breath, the described data message of described parsing, obtain the running state information of described slave station, including:
Parse described address request information, obtain the described station address of described slave station;
According to described station address distribute corresponding port address, obtain described address allocation information, wherein, described according to described station
Corresponding port address is distributed in address, obtains described address allocation information and includes:According to the system configuration that obtains in advance and described
The toggle switch of slave station obtains.
4. communication means according to claim 3 it is characterised in that described according to described running state information, to described
Slave station feeds back corresponding data response message and includes:
Send described address allocation information to described slave station.
5. communication means according to claim 4 is it is characterised in that send the distribution of described address described to described slave station
After information, methods described also includes:
Receive the response message that described slave station sends according to described address allocation information;
According to described response message, store the address information of described slave station, and send confirmation message to described slave station.
6. communication means according to claim 1 it is characterised in that described receive slave station send data message it
Before, methods described also includes:
Initiate polling request according to predetermined period to described slave station.
7. communication means according to claim 6 is it is characterised in that the data message that described reception slave station sends includes:
In the case that described data message includes the data of described slave station collection, by the different communication terminals in same circuit
Mouth receives the data of the collection that described slave station returns according to described polling request.
8. communication means according to claim 7 is it is characterised in that the described data message of described parsing, obtain described from
The running state information stood, including:
In the case that described running state information includes data processed result, calculate described data according to logic of propositions computing,
Obtain data processed result.
9. communication means according to claim 8 it is characterised in that described according to described running state information, to described
Slave station feeds back corresponding data response message and includes:
Encapsulate described data processed result, obtain described data response message;
Feed back described data response message to described slave station.
10. communication means according to claim 1 is it is characterised in that the data message that described reception slave station sends includes:
When described data message includes the running status of described slave station, receive the running status that described slave station sends, described fortune
Row state is used for indicating whether described slave station breaks down.
11. communication means according to claim 10, it is characterised in that the described data message of described parsing, obtain described
The running state information of slave station, including:
Parse described running status, in the case that the link of described slave station breaks down, after obtaining described slave station link repair
Renewal COM1 address;
Store described COM1 address, update the mapping relations of described slave station communication port and master station communication port, and will more
Mapping relations after new are as described running state information.
12. communication means according to claim 11 it is characterised in that described according to described running state information, to institute
State the slave station corresponding data response message of feedback to include:
Mapping relations to after the described renewal of described slave station feedback.
13. communication means according to claim 1 are it is characterised in that methods described also includes:
In the case of the main control module fault in main website, update according to default link table be connected with the main control module of fault from
The mapping relations of the COM1 stood, and using the main control module of above-mentioned fault as standby controller module.
A kind of 14. safety programmable logic controller communication systems it is characterised in that be applied to monitor conveyance conduit, including:
Main website and slave station;Wherein,
Described main website, for sending request instruction according to default polling mechanism to described slave station;
Described slave station, is connected with described main website, for receiving the request instruction that described main website sends, adopts according to described request instruction
Collection data, and calculate described data, feed back the corresponding result of calculation of described data to described main website.
15. safety programmable logic controller communication systems according to claim 14 are it is characterised in that described main website bag
Include:Processing unit and transmission channel, wherein, described processing unit, it is connected with described transmission channel, anti-for receiving described slave station
The data of feedback, and calculate described data by logical operationss, the result of calculation of the corresponding described data of output.
16. safety programmable logic controller communication systems according to claim 15 are it is characterised in that described process list
Unit includes:First main control module and the second main control module, wherein,
Described first main control module, for configuring the address of corresponding control module in described slave station, and receives according to described address
The track data of described control module collection;
Described second main control module, for replicating the function of described first main control module, so that in described first main control module
Delay in the case of machine, receive the described result of calculation of the described control module feedback of corresponding described first main control module.
17. safety programmable logic controller communication systems according to claim 16 are it is characterised in that described transmission is led to
Road includes:COM1, wherein, the input of described COM1 is connected with the outfan of the transmission channel of described slave station, institute
The outfan stating COM1 is connected with described first main control module and/or described second main control module, for corresponding institute
State the control module communication in slave station, described communication includes:Send described request instruction, receive answering of corresponding described request instruction
Answer feedback, receive address configuration request.
18. safety programmable logic controller communication systems according to claim 16 are it is characterised in that described process list
Unit includes:Operating system module, for controlling described first main control module and/or described second main control module.
19. safety programmable logic controller communication systems according to claim 14 are it is characterised in that described slave station bag
Include:Transmission channel, comparator and processing unit, wherein, described transmission channel, for gathering the data on each circuit;Described
Comparator, is connected with the outfan of described transmission channel, and for being compared to the data on each circuit described, output is compared
Result;The input of described processing unit is connected with the outfan of described comparator, for calculating described comparative result.
20. safety programmable logic controller communication systems according to claim 19 are it is characterised in that described safety can
Programmed logic controller communication system also includes:Harvester and executor, wherein,
The input of described harvester and each connection described, for gathering the data on each circuit described;Described adopt
The outfan of storage is connected with described slave station, for sending the data on each circuit described to described slave station;
The input of described executor, by described transmission channel, is connected with described slave station, for receiving after described slave station voting
Described result of calculation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610799289.7A CN106444602A (en) | 2016-08-31 | 2016-08-31 | Security programmable logic controller communication system and communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610799289.7A CN106444602A (en) | 2016-08-31 | 2016-08-31 | Security programmable logic controller communication system and communication method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106444602A true CN106444602A (en) | 2017-02-22 |
Family
ID=58164999
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610799289.7A Pending CN106444602A (en) | 2016-08-31 | 2016-08-31 | Security programmable logic controller communication system and communication method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106444602A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107168045A (en) * | 2017-06-26 | 2017-09-15 | 中国电子信息产业集团有限公司第六研究所 | A kind of communication redundancy control system based on EtherCAT |
CN107272553A (en) * | 2017-06-19 | 2017-10-20 | 煤科集团沈阳研究院有限公司 | A kind of method for improving pipe jacking tunnelling machine DCS communication efficiencies |
CN107368371A (en) * | 2017-07-05 | 2017-11-21 | 杭州电子科技大学 | The programming resource distribution method of Embedded PLC |
CN107390625A (en) * | 2017-08-25 | 2017-11-24 | 湖南三德科技股份有限公司 | Plc data reading/writing method and system in a kind of coal sample detecting system |
CN108173730A (en) * | 2017-11-24 | 2018-06-15 | 中核控制系统工程有限公司 | A kind of safety level DCS failure safe communication constructions |
CN108551397A (en) * | 2018-03-26 | 2018-09-18 | 华中科技大学 | The communication control method of network bridge device and application and more PLC master stations and more PLC slave stations |
CN109270885A (en) * | 2018-10-26 | 2019-01-25 | 苏州华兴源创科技股份有限公司 | Monitor data communications method, device, equipment and the storage medium of PLC system |
CN109947042A (en) * | 2019-03-27 | 2019-06-28 | 北京龙鼎源科技股份有限公司 | Polling method and device, storage medium, the electronic device of I/O module |
CN111159092A (en) * | 2019-12-31 | 2020-05-15 | 北京力控华康科技有限公司 | Serial port communication system, method and device and electronic equipment |
CN111552227A (en) * | 2020-05-20 | 2020-08-18 | 苏州精濑光电有限公司 | Communication system and method based on programmable logic controller |
CN111984608A (en) * | 2020-08-19 | 2020-11-24 | 北京龙鼎源科技股份有限公司 | Data storage method, data storage device, storage medium and processor |
CN113515082A (en) * | 2021-06-30 | 2021-10-19 | 青岛海尔空调电子有限公司 | Polling communication method and device |
CN116774644A (en) * | 2023-08-17 | 2023-09-19 | 武汉世炬信息技术有限公司 | Industrial automation control system and method |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1747438A (en) * | 2005-10-14 | 2006-03-15 | 杭州华为三康技术有限公司 | Method for assuring automatic protecting system regular service of Ethernet |
EP1731977A2 (en) * | 2005-06-09 | 2006-12-13 | Omron Corporation | Communication master station startup period control method |
CN101976074A (en) * | 2010-11-03 | 2011-02-16 | 浙江工业大学 | Industrial control system based on field bus and control network |
CN102170298A (en) * | 2011-03-31 | 2011-08-31 | 重庆新世杰电气股份有限公司 | Power communication method and system based on MODBUS TCP/IP (Transmission Control Protocol/ Internet Protocol) |
CN102724092A (en) * | 2012-06-25 | 2012-10-10 | 西安热工研究院有限公司 | Profibus-DP communication protocol redundancy master station |
WO2013008860A1 (en) * | 2011-07-12 | 2013-01-17 | 古河電気工業株式会社 | Communication apparatus and communication system |
CN103414547A (en) * | 2013-07-22 | 2013-11-27 | 大唐移动通信设备有限公司 | Method according to which main station controls multiple auxiliary stations, base station and system |
CN104092790A (en) * | 2014-07-02 | 2014-10-08 | 京信通信系统(中国)有限公司 | Base station host-slave station communication method and system |
CN104238517A (en) * | 2014-09-16 | 2014-12-24 | 西安西热控制技术有限公司 | PROFIBUS-DPV1 main communication station and method |
CN104767597A (en) * | 2014-01-07 | 2015-07-08 | 艾默生网络能源有限公司 | Method and device for Ethernet redundancy control |
-
2016
- 2016-08-31 CN CN201610799289.7A patent/CN106444602A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1731977A2 (en) * | 2005-06-09 | 2006-12-13 | Omron Corporation | Communication master station startup period control method |
CN1747438A (en) * | 2005-10-14 | 2006-03-15 | 杭州华为三康技术有限公司 | Method for assuring automatic protecting system regular service of Ethernet |
CN101976074A (en) * | 2010-11-03 | 2011-02-16 | 浙江工业大学 | Industrial control system based on field bus and control network |
CN102170298A (en) * | 2011-03-31 | 2011-08-31 | 重庆新世杰电气股份有限公司 | Power communication method and system based on MODBUS TCP/IP (Transmission Control Protocol/ Internet Protocol) |
WO2013008860A1 (en) * | 2011-07-12 | 2013-01-17 | 古河電気工業株式会社 | Communication apparatus and communication system |
CN102724092A (en) * | 2012-06-25 | 2012-10-10 | 西安热工研究院有限公司 | Profibus-DP communication protocol redundancy master station |
CN103414547A (en) * | 2013-07-22 | 2013-11-27 | 大唐移动通信设备有限公司 | Method according to which main station controls multiple auxiliary stations, base station and system |
CN104767597A (en) * | 2014-01-07 | 2015-07-08 | 艾默生网络能源有限公司 | Method and device for Ethernet redundancy control |
CN104092790A (en) * | 2014-07-02 | 2014-10-08 | 京信通信系统(中国)有限公司 | Base station host-slave station communication method and system |
CN104238517A (en) * | 2014-09-16 | 2014-12-24 | 西安西热控制技术有限公司 | PROFIBUS-DPV1 main communication station and method |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107272553A (en) * | 2017-06-19 | 2017-10-20 | 煤科集团沈阳研究院有限公司 | A kind of method for improving pipe jacking tunnelling machine DCS communication efficiencies |
CN107168045B (en) * | 2017-06-26 | 2020-12-11 | 中国电子信息产业集团有限公司第六研究所 | Communication redundancy control system based on EtherCAT |
CN107168045A (en) * | 2017-06-26 | 2017-09-15 | 中国电子信息产业集团有限公司第六研究所 | A kind of communication redundancy control system based on EtherCAT |
CN107368371A (en) * | 2017-07-05 | 2017-11-21 | 杭州电子科技大学 | The programming resource distribution method of Embedded PLC |
CN107368371B (en) * | 2017-07-05 | 2020-12-15 | 杭州电子科技大学 | Programming resource allocation method of embedded PLC |
CN107390625A (en) * | 2017-08-25 | 2017-11-24 | 湖南三德科技股份有限公司 | Plc data reading/writing method and system in a kind of coal sample detecting system |
CN108173730A (en) * | 2017-11-24 | 2018-06-15 | 中核控制系统工程有限公司 | A kind of safety level DCS failure safe communication constructions |
CN108551397B (en) * | 2018-03-26 | 2020-04-10 | 华中科技大学 | Bridge device, application and communication control method of multi-PLC master station and multi-PLC slave station |
CN108551397A (en) * | 2018-03-26 | 2018-09-18 | 华中科技大学 | The communication control method of network bridge device and application and more PLC master stations and more PLC slave stations |
CN109270885A (en) * | 2018-10-26 | 2019-01-25 | 苏州华兴源创科技股份有限公司 | Monitor data communications method, device, equipment and the storage medium of PLC system |
CN109947042A (en) * | 2019-03-27 | 2019-06-28 | 北京龙鼎源科技股份有限公司 | Polling method and device, storage medium, the electronic device of I/O module |
CN111159092A (en) * | 2019-12-31 | 2020-05-15 | 北京力控华康科技有限公司 | Serial port communication system, method and device and electronic equipment |
CN111552227A (en) * | 2020-05-20 | 2020-08-18 | 苏州精濑光电有限公司 | Communication system and method based on programmable logic controller |
CN111984608A (en) * | 2020-08-19 | 2020-11-24 | 北京龙鼎源科技股份有限公司 | Data storage method, data storage device, storage medium and processor |
CN113515082A (en) * | 2021-06-30 | 2021-10-19 | 青岛海尔空调电子有限公司 | Polling communication method and device |
CN116774644A (en) * | 2023-08-17 | 2023-09-19 | 武汉世炬信息技术有限公司 | Industrial automation control system and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106444602A (en) | Security programmable logic controller communication system and communication method | |
CN105450489B (en) | The preferential efficient field bus systems of HEBus and communication means for realizing most short message of output | |
CN103338161B (en) | A kind of method and apparatus realizing cross-equipment aggregation | |
CN103826252B (en) | Method of acquiring and sending sequence numbers among main and slave devices and system | |
CN105260337B (en) | A kind of automatic addressing method and system of single-chip microcomputer | |
CN103399546B (en) | Triple redundance control method and system | |
CN104468236B (en) | SDN controllers cluster, SDN switch and its connection control method | |
CN101980476B (en) | Warm backup method and network equipment | |
CN105897827A (en) | Server node, local area network server cluster and realizing method thereof | |
CN103297309A (en) | Communication device for a redundantly operable industrial communication network and method for operating the communication device | |
CN104104570A (en) | Aggregation processing method in IRF (Intelligent Resilient Framework) system and device | |
CN101902360A (en) | Method for synchronizing information between master equipment and standby equipment and server | |
CN206470580U (en) | safety programmable logic controller communication system | |
CN105119820B (en) | The more example parallel execution systems of Routing Protocol and its method is performed parallel | |
CN105939365A (en) | Method and device for obtaining data from service panel kernel mode by main control panel user mode | |
CN106685733A (en) | FC-AE-1553 network rapid configuration and automatic testing method | |
CN107249048A (en) | Air-conditioning system and its address distribution method and device | |
CN105323330A (en) | Internet protocol addressing of industrial control devices employing the network ring topology | |
CN104363278A (en) | Mass terminal communication access system | |
CN103095573A (en) | Method for virtual router redundancy protocol backup set switching and switch | |
CN104301244A (en) | Cluster communication system and method of large-scale power distribution network system | |
CN105142235B (en) | The means of communication and device of air-conditioner set | |
CN105163277A (en) | Position information-based big data task management system and method | |
CN103200067A (en) | Dynamic virtual LANs to segregate data | |
CN104536926B (en) | The control method and device of serial equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 101500 No. 7 Xingsheng South Road, Miyun District, Beijing Applicant after: BEIJING DRAGON RESOURCES TECHNOLOGY CO., LTD. Address before: 101500 Beijing Miyun city ten Li Bao Zhen Tong Jun Zhuang intersection 500 meters east of the new Applicant before: BEIJING DRAGON RESOURCES TECHNOLOGY CO., LTD. |