CN108614491A - A kind of programmable logic controller (PLC) communication system and method - Google Patents

A kind of programmable logic controller (PLC) communication system and method Download PDF

Info

Publication number
CN108614491A
CN108614491A CN201810595672.XA CN201810595672A CN108614491A CN 108614491 A CN108614491 A CN 108614491A CN 201810595672 A CN201810595672 A CN 201810595672A CN 108614491 A CN108614491 A CN 108614491A
Authority
CN
China
Prior art keywords
remote
data packet
sent
expansion module
long
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810595672.XA
Other languages
Chinese (zh)
Other versions
CN108614491B (en
Inventor
郭从建
林春惠
邹金东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI HAIDE CONTROL SYSTEM CO Ltd
Original Assignee
SHANGHAI HAIDE CONTROL SYSTEM CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI HAIDE CONTROL SYSTEM CO Ltd filed Critical SHANGHAI HAIDE CONTROL SYSTEM CO Ltd
Priority to CN201810595672.XA priority Critical patent/CN108614491B/en
Publication of CN108614491A publication Critical patent/CN108614491A/en
Application granted granted Critical
Publication of CN108614491B publication Critical patent/CN108614491B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24215Scada supervisory control and data acquisition
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The embodiment of the invention discloses a kind of programmable logic controller (PLC) communication system and methods.Wherein, which includes:Programmable logic controller (PLC), at least one remote communication module and at least two Remote Expansion modules corresponding with remote communication module, each Remote Expansion module are connected step by step in advance;Remote communication module receives the remote traffic data packet that programmable logic controller (PLC) is sent, remote traffic data packet is sent at least two Remote Expansion mould first order Remote Expansion modules in the block corresponding with remote communication module, and the long-range returned data packet of each Remote Expansion module is obtained according to the waiting-timeout time, distinct feed-back data packet is generated, and distinct feed-back data packet is sent to programmable logic controller (PLC).The technical solution of the embodiment of the present invention can judge whether each Remote Expansion module is working properly in time, position the Remote Expansion module of failure while increasing the input and output terminal of programmable logic controller (PLC) by Remote Expansion module.

Description

A kind of programmable logic controller (PLC) communication system and method
Technical field
The present embodiments relate to programmable logic controller (PLC) technologies more particularly to a kind of programmable logic controller (PLC) to communicate System and method.
Background technology
With the development of industrial technology and the raising of the degree of automation, programmable logic controller (PLC) (Programmable Logic Controller, PLC) application it is more and more.Programmable logic controller (PLC) is one kind exclusively in industrial settings Using and design digital operation electronic system.It uses a kind of programmable memory, and storage inside it is executed and patrolled The instruction for collecting the operations such as operation, sequential control, timing, counting and arithmetical operation, passes through digital or analog input and output To control various types of mechanical equipments or production process.Programmable logic controller (PLC) is the core of Industry Control.For Situ industrial occasion, each application scenario have to use one or more programmable logic controller (PLC).Some applications Occasion, logic are not extremely complex, but the quantity for being needed input and output terminal is more, by increasing programmable logic control The local expansion module of device processed cannot meet business need.
In the prior art, increase the input/output terminal of programmable logic controller (PLC) by increasing multiple Remote Expansion modules Son.
Inventor in the implementation of the present invention, it is found that there are following defects for the prior art:Multiple Remote Expansion modules It is communicated by shared bus, when having the wrong data for the Remote Expansion module for carrying out self-damage in bus, bus It can paralyse, and programmable logic controller (PLC) cannot know the position of the Remote Expansion module to go wrong in time.
Invention content
A kind of programmable logic controller (PLC) communication system of present invention offer and method are increasing programmable logic control to realize While the input and output terminal of device processed, the Remote Expansion module of positioning failure in time.
In a first aspect, an embodiment of the present invention provides a kind of programmable logic controller (PLC) communication systems, including:
Programmable logic controller (PLC), at least one remote communication module and at least two are corresponding with remote communication module remote Journey expansion module, each Remote Expansion module are connected step by step in advance;
Wherein, programmable logic controller (PLC) for remote traffic data packet to be sent to remote communication module, and obtains remote The distinct feed-back data packet that journey communication module is sent, judges whether each Remote Expansion module works just according to distinct feed-back data packet Often;
Remote communication module, for receiving remote traffic data packet, by remote traffic data packet be sent at least two with The corresponding Remote Expansion mould of remote communication module first order Remote Expansion module in the block, and obtain the according to the waiting-timeout time The long-range returned data packet for each Remote Expansion module that level-one Remote Expansion module is sent generates distinct feed-back data packet, will be remote Journey feedback data packet is sent to programmable logic controller (PLC);
At least two Remote Expansion modules corresponding with remote communication module, for obtaining remote communication module or upper level The remote traffic data packet that Remote Expansion module is sent, after extracting corresponding remote traffic data in remote traffic data packet, Remote traffic data packet is sent to next stage Remote Expansion module, long-range return number is generated according to corresponding remote traffic data According to packet, the long-range returned data packet that long-range returned data packet and next stage Remote Expansion module are sent is sent to telecommunication mould Block or upper level Remote Expansion module.
Second aspect, the embodiment of the present invention additionally provide a kind of programmable logic controller (PLC) means of communication, including:
Remote communication module receives the remote traffic data packet that programmable logic controller (PLC) is sent, by remote traffic data packet At least two Remote Expansion mould first order Remote Expansion modules in the block corresponding with remote communication module are sent to, and according to pre- If the waiting-timeout time is arranged in the time;
Remote communication module obtains each Remote Expansion mould that first order Remote Expansion module is sent according to the waiting-timeout time The long-range returned data packet of block generates distinct feed-back data packet, and distinct feed-back data packet is sent to Programmable logical controller Device.
The technical solution of the embodiment of the present invention receives the long-range of programmable logic controller (PLC) transmission by remote communication module It is in the block to be sent at least two Remote Expansion moulds corresponding with remote communication module by business data packet for remote traffic data packet First order Remote Expansion module, and each Remote Expansion mould that first order Remote Expansion module is sent is obtained according to the waiting-timeout time The long-range returned data packet of block generates distinct feed-back data packet, and distinct feed-back data packet is sent to Programmable logical controller Device can be with so that programmable logic controller (PLC) judges whether each Remote Expansion module is working properly according to distinct feed-back data packet While increasing the input and output terminal of programmable logic controller (PLC) by Remote Expansion module, each Remote Expansion is judged in time Whether module is working properly, positions the Remote Expansion module of failure.
Description of the drawings
Fig. 1 is a kind of structural schematic diagram for programmable logic controller (PLC) communication system that the embodiment of the present invention one provides;
Fig. 2 is a kind of structural schematic diagram of programmable logic controller (PLC) communication system provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structural schematic diagram for programmable logic controller (PLC) communication system that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural schematic diagram for programmable logic controller (PLC) communication system that the embodiment of the present invention four provides;
Fig. 5 is a kind of flow chart for programmable logic controller (PLC) means of communication that the embodiment of the present invention five provides;
Fig. 6 is a kind of flow chart for programmable logic controller (PLC) means of communication that the embodiment of the present invention six provides.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of structural schematic diagram for programmable logic controller (PLC) communication system that the embodiment of the present invention one provides, this Embodiment is applicable to the case where programmable logic controller (PLC) is communicated with Remote Expansion module, as shown in Figure 1, the system packet It includes:
Programmable logic controller (PLC) 101, at least one remote communication module 102 and at least two and remote communication module 102 corresponding Remote Expansion modules 103, each Remote Expansion module 103 are connected step by step in advance.
Wherein, programmable logic controller (PLC) 101, for remote traffic data packet to be sent to remote communication module 102, and The distinct feed-back data packet that remote communication module 102 is sent is obtained, each Remote Expansion module is judged according to distinct feed-back data packet Whether 103 is working properly.
Remote traffic data packet is sent at least two by remote communication module 102 for receiving remote traffic data packet First order Remote Expansion module in Remote Expansion module corresponding with remote communication module 102 103, and when according to waiting-timeout Between obtain first order Remote Expansion module send each Remote Expansion module 103 long-range returned data packet, generate distinct feed-back Distinct feed-back data packet is sent to programmable logic controller (PLC) 101 by data packet.
At least two Remote Expansion modules 103 corresponding with remote communication module, for obtain remote communication module 102 or The remote traffic data packet that upper level Remote Expansion module is sent, extracts corresponding teleaction service number from remote traffic data packet According to rear, remote traffic data packet is sent to next stage Remote Expansion module, is generated according to corresponding remote traffic data long-range The long-range returned data packet that long-range returned data packet and next stage Remote Expansion module are sent is sent to remotely by returned data packet Communication module 102 or upper level Remote Expansion module.
Wherein, remote traffic data packet is sent to remote communication module 102 by programmable logic controller (PLC) 101.Long-range industry Include 103 corresponding remote traffic data of each Remote Expansion module in data packet of being engaged in, remote traffic data is used to indicate corresponding Remote Expansion module 103 is completed to operate accordingly.After remote communication module 102 receives remote traffic data packet, by teleaction service Data packet is sent to the first order Remote Expansion at least two Remote Expansion modules corresponding with remote communication module 102 103 Module, and the waiting-timeout time is arranged according to preset time.First order Remote Expansion module obtains remote communication module 102 and sends Remote traffic data packet after, after extracting corresponding remote traffic data in remote traffic data packet, by remote traffic data Packet is sent to next stage Remote Expansion module, and generates long-range returned data packet according to corresponding remote traffic data, will be long-range Returned data packet is sent to remote communication module 102.Comprising corresponding Remote Expansion module 103 to remote in long-range returned data packet Journey business datum is handled, after completing corresponding operation according to remote traffic data, the feedback data of generation.
After next stage Remote Expansion module obtains the remote traffic data packet that upper level Remote Expansion module is sent, from long-range After extracting corresponding remote traffic data in business data packet, remote traffic data packet is sent to the next stage of itself and is remotely expanded Module is opened up, and long-range returned data packet is generated according to corresponding remote traffic data, long-range returned data packet is sent to upper one Grade Remote Expansion module.Wherein, if next stage Remote Expansion module is that afterbody corresponding with remote communication module 102 is remote Remote traffic data packet is then no longer sent to the next stage Remote Expansion module of itself by journey expansion module.
The long-range returned data packet that next stage Remote Expansion module is sent is continued to be sent to by upper level Remote Expansion module The upper level Remote Expansion module of itself, until long-range returned data packet is transferred to first order Remote Expansion module, then by the Long-range returned data packet is sent to remote communication module 102 by level-one Remote Expansion module.Wherein, if upper level Remote Expansion Module is first order Remote Expansion module, then is directly sent to long-range returned data packet far by first order Remote Expansion module Journey communication module 102.
Remote communication module 102 obtains each Remote Expansion that first order Remote Expansion module is sent according to the waiting-timeout time The long-range returned data packet of module 103 generates distinct feed-back data packet, and distinct feed-back data packet is sent to programmable logic Controller 101.Programmable logic controller (PLC) 101 obtains the distinct feed-back data packet that remote communication module 102 is sent, according to long-range Feedback data packet judges whether each Remote Expansion module 103 is working properly.
Specifically, remote communication module 102 obtains each Remote Expansion module 103 that first order Remote Expansion module is sent Long-range returned data packet;Remote communication module 102 judges whether to reach the waiting-timeout time;If reaching the waiting-timeout time, Then remote communication module 102 further determines whether to have obtained the corresponding long-range returned data of each Remote Expansion module 103 Packet;If remote communication module 102 has obtained the corresponding long-range returned data packet of each Remote Expansion module 103, basis The corresponding long-range returned data packet of each Remote Expansion module 103 generates distinct feed-back data packet, and by distinct feed-back data Packet is sent to programmable logic controller (PLC) 101;If it is right that each Remote Expansion module 103 has not been obtained in remote communication module 102 The long-range returned data packet answered then checks the long-range returned data packet obtained, determines the long-range returned data packet pair having not been obtained The Remote Expansion module 103 answered;It is generated according to the corresponding Remote Expansion module of the long-range returned data packet having not been obtained 103 corresponding Error flag information;Distinct feed-back data packet is generated according to the long-range returned data packet and error flag information obtained, and will Distinct feed-back data packet is sent to programmable logic controller (PLC) 101.
Specifically, programmable logic controller (PLC) 101 obtains the distinct feed-back data packet that remote communication module 102 is sent, sentence Whether include the corresponding long-range returned data packet of each Remote Expansion module 103 in disconnected distinct feed-back data packet, if remotely It include the corresponding long-range returned data packet of each Remote Expansion module 103 in feedback data packet, it is determined that remote communication module 102 each corresponding Remote Expansion module 103 are working properly;If not including that each is long-range in distinct feed-back data packet The corresponding long-range returned data packet of expansion module 103, but include error flag information, then according to the determination pair of error flag information The Remote Expansion module answered.Corresponding Remote Expansion module is the Remote Expansion module to break down.
Programmable logic controller (PLC) 101 is a kind of electric exclusively for the digital operation designed is applied in industrial settings Subsystem.It uses a kind of programmable memory, inside it storage execute logical operation, sequential control, timing, counting and Remote traffic data packet is sent to long-range lead to by the instruction of the operations such as arithmetical operation by digital or analog input and output Module 102 is interrogated, and obtains the distinct feed-back data packet of the transmission of remote communication module 102, is judged according to distinct feed-back data packet each Whether Remote Expansion module 103 is working properly.
Optionally, programmable logic controller (PLC) 101 is connected with remote communication module 102 by bus.
Remote communication module 102 includes communication chip and micro-control unit (Microcontroller Unit, MCU).Far Journey communication module 102 receives remote traffic data packet by communication chip, send remote traffic data packet at least two with it is remote First order Remote Expansion module in 102 corresponding Remote Expansion module 103 of journey communication module obtains first order Remote Expansion mould The long-range returned data packet for each Remote Expansion module 103 that block is sent.Remote communication module 102 is by MCU according to waiting-timeout The long-range returned data packet of time and each Remote Expansion module 103 generate distinct feed-back data packet, then pass through communication chip again Distinct feed-back data packet is sent to programmable logic controller (PLC) 101.
Optionally, the Remote Expansion module corresponding with remote communication module 102 of remote communication module 102 and at least two First order Remote Expansion module in 103 is connected by two data lines.Two data lines are respectively used to digital independent sum number According to write-in.Two data lines are attached using differential signal, to improve anti-interference ability.It is completed by two data lines long-range First order Remote Expansion in corresponding with the remote communication module 102 Remote Expansion module of communication module 102 and at least two 103 Data input between module and data output.
Optionally, the Remote Expansion module corresponding with remote communication module 102 of remote communication module 102 and at least two First order Remote Expansion module in 103 carries out communication transfer by full duplex mode.
At least two Remote Expansion modules 103 corresponding with remote communication module 102 include communication chip and MCU.Remotely Expansion module 103 obtains the long-range industry that remote communication module 102 or upper level Remote Expansion module 103 are sent by communication chip Business data packet.Remote Expansion module 103 after extracting corresponding remote traffic data in remote traffic data packet, is led to by MCU It crosses communication chip and the remote traffic data packet comprising the remaining remote traffic data after extraction is sent to next stage Remote Expansion Module, and obtain the long-range returned data packet of the transmission of next stage Remote Expansion module 103.Optionally, 103 profit of Remote Expansion module It is extracted from remote traffic data packet with direct memory access (DMA) (Direct Memory Access, DMA) controller in MCU Corresponding remote traffic data.Remote Expansion module 103 is handled remote traffic data by MCU, generates long-range return After data packet, the long-range returned data packet that is sent long-range returned data packet and next stage Remote Expansion module by communication chip It is sent to remote communication module 102 or upper level Remote Expansion module.
Optionally, upper level Remote Expansion module is connected with next stage Remote Expansion module by two data lines.Two Data lines are respectively used to digital independent and data write-in.Two data lines are attached using differential signal, anti-dry to improve Disturb ability.The data between upper level Remote Expansion module and next stage Remote Expansion module are completed by two data lines to input It is exported with data.
Optionally, upper level Remote Expansion module carries out communication biography with next stage Remote Expansion module by full duplex mode It is defeated.
A kind of programmable logic controller (PLC) communication system provided in this embodiment is received programmable by remote communication module The remote traffic data packet that logic controller is sent, at least two and remote communication module pair are sent to by remote traffic data packet The Remote Expansion mould first order Remote Expansion module in the block answered, and first order Remote Expansion mould is obtained according to the waiting-timeout time The long-range returned data packet for each Remote Expansion module that block is sent generates distinct feed-back data packet, and by distinct feed-back data packet It is sent to programmable logic controller (PLC), so that programmable logic controller (PLC) judges each Remote Expansion mould according to distinct feed-back data packet Whether block is working properly, can increase the same of the input and output terminal of programmable logic controller (PLC) by Remote Expansion module When, judge whether each Remote Expansion module is working properly in time, positions the Remote Expansion module of failure.
Embodiment two
Fig. 2 is a kind of structural schematic diagram of programmable logic controller (PLC) communication system provided by Embodiment 2 of the present invention, this Embodiment on the basis of the above embodiments, optimizes remote communication module 102:As shown in Fig. 2, remote communication module 102 include the first communication unit 104, the second control unit 105 and the second communication unit 106;First communication unit 104, is used for Remote traffic data packet is received, remote traffic data packet is sent to the second control unit 105;Second control unit 105, is used for Remote traffic data packet is sent to the second communication unit 106;Second communication unit 106, for sending out remote traffic data packet It send to first order Remote Expansion module, and obtains the long-range return of each Remote Expansion module of first order Remote Expansion module transmission The long-range returned data packet of each Remote Expansion module is sent to the second control unit 105 by data packet;Second control unit 105, It is additionally operable to the long-range returned data packet according to waiting-timeout time and each Remote Expansion module, generates distinct feed-back data packet, it will Distinct feed-back data packet is sent to the first communication unit 104;First communication unit 104 is additionally operable to receive distinct feed-back data packet, Distinct feed-back data packet is sent to programmable logic controller (PLC).
Wherein, after the first communication unit 104 receives remote traffic data, remote traffic data packet is sent to the second control Unit 105.Remote traffic data packet is sent to the second communication unit 106 by the second control unit 105.Second communication unit 106 Remote traffic data packet is sent to first order Remote Expansion module, and obtains each long-range of first order Remote Expansion module transmission The long-range returned data packet of each Remote Expansion module is sent to the second control unit by the long-range returned data packet of expansion module 105.Second control unit 105 generates long-range according to the long-range returned data packet of waiting-timeout time and each Remote Expansion module Feedback data packet sends distinct feed-back data packet and is sent to the first communication unit 104.First communication unit 104 receives long-range anti- After presenting data packet, distinct feed-back data packet is sent to programmable logic controller (PLC).
Specifically, the second control unit 105 obtains the long-range returned data packet of each Remote Expansion module, judge whether to reach The waiting-timeout time.If reaching the waiting-timeout time, the second control unit 105 further determines whether to have obtained each The corresponding long-range returned data packet of Remote Expansion module;If having obtained the corresponding long-range return number of each Remote Expansion module According to packet, then distinct feed-back data packet is generated according to the corresponding long-range returned data packet of each Remote Expansion module;If do not obtained The corresponding long-range returned data packet of each Remote Expansion module is taken, then checks the long-range returned data packet obtained, is determined not The corresponding Remote Expansion module of long-range returned data packet obtained;According to the corresponding long-range expansion of long-range returned data packet having not been obtained It opens up module and generates corresponding error flag information;It is generated according to the long-range returned data packet and error flag information obtained long-range Feedback data packet.
Optionally, the first communication unit 104 includes communication chip, and the second control unit 105 includes MCU, and the second communication is single Member 106 includes communication chip.
A kind of programmable logic controller (PLC) communication system provided in this embodiment receives long-range industry by the first communication unit After data of being engaged in, remote traffic data packet is sent to first order Remote Expansion module by the second communication unit, and it is remote to obtain the first order The long-range returned data packet for each Remote Expansion module that journey expansion module is sent, the second control unit according to the waiting-timeout time and The long-range returned data packet of each Remote Expansion module, generates distinct feed-back data packet, and the first communication unit is by distinct feed-back data Packet is sent to programmable logic controller (PLC), can complete programmable logic controller (PLC) and the data transmission of Remote Expansion module Meanwhile feeding back the working condition of each Remote Expansion module to programmable logic controller (PLC) in time by distinct feed-back data packet.
Embodiment three
Fig. 3 is a kind of structural schematic diagram for programmable logic controller (PLC) communication system that the embodiment of the present invention three provides, this Embodiment on the basis of the above embodiments, carries out at least two Remote Expansion modules corresponding with remote communication module excellent Change:As shown in figure 3, at least two Remote Expansion modules corresponding with remote communication module include:First order Remote Expansion module 107 and second level Remote Expansion module 108, first order Remote Expansion module 107 and second level Remote Expansion module 108 connect step by step It connects;First order Remote Expansion module 107 includes:Third communication unit 109, third control unit 110 and the 4th communication unit 111;Third communication unit 109, the remote traffic data packet for obtaining the transmission of remote communication module 102, by teleaction service number It is sent to third control unit 110 according to packet;Third control unit 110, it is corresponding remote for being extracted from remote traffic data packet After journey business datum, remote traffic data packet is sent to the 4th communication unit 111, is generated according to corresponding remote traffic data First long-range returned data packet is sent to third communication unit 110 by the first long-range returned data packet;4th communication unit 111, For remote traffic data packet to be sent to second level Remote Expansion module 108;Third communication unit 109 is additionally operable to first Long-range returned data packet is sent to remote communication module 102;Second level Remote Expansion module 108 includes:5th communication unit 112 With the 4th control unit 113;5th communication unit 112, the remote traffic data for obtaining the transmission of the 4th communication unit 111 Packet, the 4th control unit 113 is sent to by remote traffic data packet;4th control unit 113 is used for from remote traffic data packet After the corresponding remote traffic data of middle extraction, the second long-range returned data packet is generated according to corresponding remote traffic data, by the Two long-range returned data packets are sent to the 5th communication unit 112;5th communication unit 112 is additionally operable to the second long-range return number It is sent to the 4th communication unit 111 according to packet;4th communication unit 111 is additionally operable to the second long-range returned data packet being sent to Three control units 110;Third control unit 110 is additionally operable to the second long-range returned data packet being sent to third communication unit 109;Third communication unit 109 is additionally operable to the second long-range returned data packet being sent to remote communication module 102.
It wherein, will be long-range after third communication unit 109 obtains the remote traffic data packet that remote communication module 102 is sent Business data packet is sent to third control unit 110.Third control unit 110 is extracted corresponding remote from remote traffic data packet After journey business datum, remote traffic data packet is sent to the 4th communication unit 111, and give birth to according to corresponding remote traffic data At the first long-range returned data packet, the first long-range returned data packet is sent to third communication unit 110.4th communication unit 111 are sent to the remote traffic data packet that third control unit 110 is sent the 5th communication of second level Remote Expansion module 108 Unit 112.The first long-range returned data packet that third control unit 110 is sent is sent to long-range logical by third communication unit 109 Interrogate module 102.After 5th communication unit 112 obtains the remote traffic data packet that the 4th communication unit 111 is sent, by teleaction service Data packet is sent to the 4th control unit 113.4th control unit 113 extracts corresponding long-range industry from remote traffic data packet After data of being engaged in, the second long-range returned data packet is generated according to corresponding remote traffic data, the second long-range returned data packet is sent out It send to the 5th communication unit 112.Second long-range returned data packet is sent to the 4th communication unit 111 by the 5th communication unit 112. Second long-range returned data packet is sent to third control unit 110 by the 4th communication unit 111.Third control unit 110 is by Two long-range returned data packets are sent to third communication unit 109.Third communication unit 109 sends the second long-range returned data packet To remote communication module 102.Remote communication module 102 is remote according to waiting-timeout time, the first long-range returned data packet and second Journey returned data packet generates distinct feed-back data packet, distinct feed-back data packet is sent to programmable logic controller (PLC) 101.
Optionally, third communication unit 109 includes communication chip, and third control unit 110 includes MCU, and the 4th communication is single Member 111 includes communication chip, and the 5th communication unit 112 includes communication chip, and the 4th control unit 113 includes MCU.
Specifically, remote communication module 102 obtains the long-range returned data packet that first order Remote Expansion module 107 is sent. Remote communication module 102 judges whether to reach the waiting-timeout time.If reaching waiting-timeout time, remote communication module 102 further determine whether to have obtained the corresponding long-range returned data packet of each Remote Expansion module:First long-range return number According to packet and the second long-range returned data packet;If it is corresponding remote that remote communication module 102 has obtained each Remote Expansion module Journey returned data packet then generates distinct feed-back data packet according to the first long-range returned data packet and the second long-range returned data packet, And distinct feed-back data packet is sent to programmable logic controller (PLC) 101;If it is remote that each has not been obtained in remote communication module 102 The corresponding long-range returned data packet of journey expansion module then checks that the long-range returned data packet obtained, determination have not been obtained long-range The corresponding Remote Expansion module of returned data packet;It is generated according to the corresponding Remote Expansion module of the long-range returned data packet having not been obtained Corresponding error flag information;Distinct feed-back data are generated according to the long-range returned data packet and error flag information obtained Packet, and distinct feed-back data packet is sent to programmable logic controller (PLC) 101.
For example, the corresponding long-range returned data packet of each Remote Expansion module has not been obtained in remote communication module 102, check The the first long-range returned data packet obtained determines and the second long-range returned data packet has not been obtained, and determines that have not been obtained second is long-range The corresponding two level Remote Expansion module 108 of returned data packet, then generate corresponding mistake according to second level Remote Expansion module 108 Label information, and marked according to the obtained first long-range returned data packet and 108 corresponding mistake of second level Remote Expansion module Remember that information generates distinct feed-back data packet, distinct feed-back data packet is then sent to programmable logic controller (PLC) 101.It is programmable Logic controller 101 obtains the distinct feed-back data packet that remote communication module 102 is sent, according to the in distinct feed-back data packet 108 corresponding error flag information of two level Remote Expansion module determines that second level Remote Expansion module 108 is the remote of failure Journey expansion module.
A kind of programmable logic controller (PLC) communication system provided in this embodiment, by by first order Remote Expansion module and Second level Remote Expansion module connects step by step, remote communication module according to the waiting-timeout time, the first long-range returned data packet and Second long-range returned data packet generates distinct feed-back data packet, distinct feed-back data packet is sent to programmable logic controller (PLC), It can be defeated in the input for increasing programmable logic controller (PLC) by first order Remote Expansion module and second level Remote Expansion module While going out terminal, judge whether first order Remote Expansion module and second level Remote Expansion module are working properly in time, positions The Remote Expansion module of failure.
Example IV
Fig. 4 is a kind of structural schematic diagram for programmable logic controller (PLC) communication system that the embodiment of the present invention four provides, this Embodiment on the basis of the above embodiments, optimizes programmable logic controller (PLC) communication system:As shown in figure 4, this can Programmed logic controller communication system further includes at least one local expansion module 114;At least one local expansion module 114, It is connected with programmable logic controller (PLC) 101, the corresponding local service data for obtaining the transmission of programmable logic controller (PLC) 101 Packet, local feedback data packet is generated according to corresponding local service data packet, and local feedback data packet is sent to programmable patrol Collect controller 101.
Programmable logic controller (PLC) 101 is optimized:As shown in figure 4, programmable logic controller (PLC) 101 includes the first control Unit 115, local communication unit 116 and remote communication unit 117 processed;First control unit 115, for generating local service number According to packet and remote traffic data packet, and local service data packet is sent to local communication unit 116, by remote traffic data packet It is sent to remote communication unit 117;Local communication unit 116, for local service data packet to be sent to local expansion module 114, and the local feedback data packet of the transmission of local expansion module 114 is obtained, local feedback data packet is sent to the first control Unit 115;Remote communication unit 117 for remote traffic data packet to be sent to remote communication module 102, and obtains long-range The distinct feed-back data packet that communication module 102 is sent, the first control unit 115 is sent to by distinct feed-back data packet;First control Unit 115 processed is additionally operable to obtain the local feedback data packet and the hair of remote communication unit 117 that local communication unit 116 is sent The distinct feed-back data packet sent judges local expansion module 114 respectively according to local feedback data packet and distinct feed-back data packet And whether each Remote Expansion module 103 is working properly.
Wherein, the first control unit 115 generates local service data packet and remote traffic data packet, and by local service number It is sent to local communication unit 116 according to packet, remote traffic data packet is sent to remote communication unit 117.Local communication unit Local service data packet is sent to local expansion module 114 by 116, and obtains the local feedback of the transmission of local expansion module 114 Local feedback data packet is sent to the first control unit 115 by data packet.Remote communication unit 117 is by remote traffic data packet It is sent to remote communication module 102, and obtains the distinct feed-back data packet of the transmission of remote communication module 102, by distinct feed-back number It is sent to the first control unit 115 according to packet.First control unit 115 obtains the local feedback coefficient that local communication unit 116 is sent According to the distinct feed-back data packet that packet and remote communication unit 117 are sent, according to local feedback data packet and distinct feed-back data Packet judges whether local expansion module 114 and each Remote Expansion module 103 are working properly respectively.
Local expansion module 114 includes communication chip and MCU.Local expansion module 114 is obtained local by communication chip The local service data packet that communication unit 116 is sent.Include 114 corresponding local of local expansion module in local service data packet Business datum.Local service data are used to indicate corresponding local expansion module 114 and complete to operate accordingly.Local expansion module 114 by MCU after extracting corresponding local service data in local service data packet, local service data are handled, After generating local returned data packet, local returned data packet is sent to by local communication unit 116 by communication chip.
Optionally, local expansion module 114 is connected with local communication unit 116 by bus.
First control unit 115 obtains local feedback data packet, judges local expansion module according to local feedback data packet Whether 114 is working properly.It is right comprising corresponding local expansion module 114 in local feedback data packet
Local service data are handled, after completing corresponding operation according to local service data, the feedback data of generation.
Remote communication module 102 obtains the long-range returned data packet of each Remote Expansion module 103 according to the waiting-timeout time, Distinct feed-back data packet is generated, and distinct feed-back data packet is sent to remote communication unit 117.First control unit 115 obtains Distinct feed-back data packet is taken, judges whether each Remote Expansion module 103 is working properly according to distinct feed-back data packet.
A kind of programmable logic controller (PLC) communication system provided in this embodiment is obtained local logical by the first control unit The local feedback data packet that unit is sent and the distinct feed-back data packet that remote communication unit is sent are interrogated, according to local feedback Data packet and distinct feed-back data packet judge whether local expansion module and each Remote Expansion module are working properly respectively, can be with While increasing the input and output terminal of programmable logic controller (PLC) by local expansion module and Remote Expansion module, in time Judge whether local expansion module and Remote Expansion module are working properly, position the Remote Expansion module of failure.
Embodiment five
Fig. 5 is a kind of flow chart for programmable logic controller (PLC) means of communication that the embodiment of the present invention five provides, this implementation Example is applicable to the case where programmable logic controller (PLC) is communicated with Remote Expansion module, and this method can be applied to such as this hair In the programmable logic controller (PLC) communication system that bright above-described embodiment provides.With reference to figure 5, specifically comprise the following steps:
Step 501, remote communication module receive the remote traffic data packet that programmable logic controller (PLC) is sent, by long-range industry Business data packet is sent at least two Remote Expansion mould first order Remote Expansion modules in the block corresponding with remote communication module, And the waiting-timeout time is arranged according to preset time.
Wherein, remote traffic data packet is sent to remote communication module by programmable logic controller (PLC).Remote traffic data Include the corresponding remote traffic data of each Remote Expansion module in packet, remote traffic data is used to indicate corresponding Remote Expansion mould Block completes corresponding operation.After remote communication module receives remote traffic data packet, remote traffic data packet is sent at least Two Remote Expansion mould first order Remote Expansion modules in the block corresponding with remote communication module, and be arranged according to preset time The waiting-timeout time.
Preset time is the time being arranged according to business demand.According to preset time, the waiting-timeout time is set.For example, pre- If the time is 3 minutes, the setting waiting-timeout time is 3 minutes.The waiting-timeout time is that the remote communication module acquisition first order is remote The waiting time of the long-range returned data packet for each Remote Expansion module that journey expansion module is sent.The waiting-timeout time is not reached When, remote communication module persistently obtains the long-range returned data of each Remote Expansion module of first order Remote Expansion module transmission Packet;When reaching the waiting-timeout time, remote communication module further determines whether to have obtained each Remote Expansion module pair The long-range returned data packet answered.
Step 502, remote communication module obtain each remote of first order Remote Expansion module transmission according to the waiting-timeout time The long-range returned data packet of journey expansion module generates distinct feed-back data packet, and distinct feed-back data packet is sent to programmable Logic controller.
Wherein, remote communication module obtains the long-range return for each Remote Expansion module that first order Remote Expansion module is sent Data packet.Remote communication module judges whether to reach the waiting-timeout time.If reaching waiting-timeout time, telecommunication mould Block further determines whether to have obtained the corresponding long-range returned data packet of each Remote Expansion module.If remote communication module Obtained the corresponding long-range returned data packet of each Remote Expansion module, then it is corresponding remote according to each Remote Expansion module Journey returned data packet generates distinct feed-back data packet, and distinct feed-back data packet is sent to programmable logic controller (PLC);If The corresponding long-range returned data packet of each Remote Expansion module has not been obtained in remote communication module, then checks that is obtained remotely returns Data packet is returned, determines the corresponding Remote Expansion module of long-range returned data packet having not been obtained;According to the long-range return number having not been obtained Corresponding error flag information is generated according to corresponding Remote Expansion module is wrapped;According to the long-range returned data packet and mistake obtained Label information generates distinct feed-back data packet, and distinct feed-back data packet is sent to programmable logic controller (PLC).
Programmable logic controller (PLC) obtains the distinct feed-back data packet that remote communication module is sent, and judges distinct feed-back data Whether include the corresponding long-range returned data packet of each Remote Expansion module in packet, if comprising every in distinct feed-back data packet The corresponding long-range returned data packet of one Remote Expansion module, it is determined that each corresponding Remote Expansion mould of remote communication module Block is all working properly;If in distinct feed-back data packet not including the corresponding long-range returned data of each Remote Expansion module Packet, but include error flag information, then corresponding Remote Expansion module is determined according to error flag information.Corresponding long-range expansion It is the Remote Expansion module to break down to open up module.
A kind of programmable logic controller (PLC) means of communication provided in this embodiment, by remote communication module by teleaction service Data packet is sent at least two Remote Expansion mould first order Remote Expansion modules in the block corresponding with remote communication module, and The long-range returned data packet of each Remote Expansion module is obtained according to the waiting-timeout time, generates distinct feed-back data packet, and will be remote Journey feedback data packet is sent to programmable logic controller (PLC), so that programmable logic controller (PLC) judges according to distinct feed-back data packet Whether each Remote Expansion module is working properly, can be in the data transmission for completing programmable logic controller (PLC) and Remote Expansion module While, feed back the working condition of each Remote Expansion module to programmable logic controller (PLC) in time by distinct feed-back data packet.
Embodiment six
Fig. 6 is a kind of flow chart for programmable logic controller (PLC) means of communication that the embodiment of the present invention six provides, this implementation Example on the basis of the above embodiments, optimizes step 502:Remote communication module obtains first according to the waiting-timeout time The long-range returned data packet for each Remote Expansion module that grade Remote Expansion module is sent generates distinct feed-back data packet, including;Far Journey communication module obtains the long-range returned data packet for each Remote Expansion module that first order Remote Expansion module is sent;Telecommunication Module judges whether to reach the waiting-timeout time;If reaching the waiting-timeout time, further judgement is remote communication module It is no to have obtained the corresponding long-range returned data packet of each Remote Expansion module;If it is remote that remote communication module has obtained each The corresponding long-range returned data packet of journey expansion module, then according to the corresponding long-range returned data Bao Sheng of each Remote Expansion module At distinct feed-back data packet.
As shown in fig. 6, this method includes:
Step 601, remote communication module receive the remote traffic data packet that programmable logic controller (PLC) is sent, by long-range industry Business data packet is sent at least two Remote Expansion mould first order Remote Expansion modules in the block corresponding with remote communication module, And the waiting-timeout time is arranged according to preset time.
Step 602, remote communication module obtain the long-range of each Remote Expansion module that first order Remote Expansion module is sent Returned data packet.
Wherein, remote communication module obtains each Remote Expansion mould that first order Remote Expansion module is sent by communication chip The long-range returned data packet of block.Remote communication module and at least two Remote Expansion moulds corresponding with remote communication module are in the block First order Remote Expansion module is connected by two data lines.Two data lines include:Data read line and data write line.Two Data line is attached using differential signal, improves anti-interference ability.
Step 603, remote communication module judge whether to reach the waiting-timeout time.
Wherein, remote communication module is corresponding with remote communication module from remote traffic data packet is sent at least two The waiting-timeout time is set after Remote Expansion mould first order Remote Expansion module in the block, is obtaining first order Remote Expansion module During the long-range returned data packet of each Remote Expansion module sent, judged whether to reach waiting-timeout according to current time Time.
If step 604 reaches the waiting-timeout time, remote communication module further determines whether to have obtained each The corresponding long-range returned data packet of Remote Expansion module.
Wherein, if reaching the waiting-timeout time, remote communication module further determines whether to have obtained each far The corresponding long-range returned data packet of journey expansion module.Optionally, remote communication module is according to the long-range returned data packet obtained Quantity judge whether to have obtained the corresponding long-range returned data packet of each Remote Expansion module.Remote communication module judges Obtain long-range returned data packet quantity whether the quantity one with whole Remote Expansion modules corresponding to remote communication module It causes.If the number of the quantity of the long-range returned data packet obtained and whole Remote Expansion modules corresponding to remote communication module Amount is consistent, it is determined that remote communication module has obtained the corresponding long-range returned data packet of each Remote Expansion module;If The quantity of the long-range returned data packet obtained and the quantity of whole Remote Expansion modules corresponding to remote communication module are inconsistent, Then show the long-range returned data packet for having missing, it is corresponding remote to determine that each Remote Expansion module has not been obtained in remote communication module Journey returned data packet.
If not reaching the waiting-timeout time, remote communication module persistently obtains the transmission of first order Remote Expansion module The long-range returned data packet of each Remote Expansion module.
If step 605, remote communication module have obtained the corresponding long-range returned data packet of each Remote Expansion module, Distinct feed-back data packet is then generated according to the corresponding long-range returned data packet of each Remote Expansion module, and by distinct feed-back number It is sent to programmable logic controller (PLC) according to packet.
It wherein, will if remote communication module has obtained the corresponding long-range returned data packet of each Remote Expansion module Acquired all long-range returned data packet is packaged, and generates distinct feed-back data packet, and distinct feed-back data packet is sent to can Programmed logic controller.Programmable logic controller (PLC) obtains the distinct feed-back data packet that remote communication module is sent, and judges long-range Whether comprising after the corresponding long-range returned data packet of each Remote Expansion module in feedback data packet, distinct feed-back data are determined Include the corresponding long-range returned data packet of each Remote Expansion module in packet, determining remote communication module, corresponding each is remote Journey expansion module is all working properly.
Optionally, if reaching the waiting-timeout time, remote communication module further determines whether to have obtained each After the corresponding long-range returned data packet of a Remote Expansion module, further include:If it is remote that each has not been obtained in remote communication module The corresponding long-range returned data packet of journey expansion module then checks that the long-range returned data packet obtained, determination have not been obtained long-range The corresponding Remote Expansion module of returned data packet;It is generated according to the corresponding Remote Expansion module of the long-range returned data packet having not been obtained Corresponding error flag information;Distinct feed-back data are generated according to the long-range returned data packet and error flag information obtained Packet.
Wherein, if the corresponding long-range returned data packet of each Remote Expansion module has not been obtained in remote communication module, By checking the long-range returned data packet obtained, determines the long-range returned data packet having not been obtained, determine that is had not been obtained remotely returns Return the corresponding Remote Expansion module of data packet.Then according to the corresponding Remote Expansion module life of the long-range returned data packet having not been obtained At corresponding error flag information.Error flag information is used to indicate corresponding Remote Expansion module and breaks down, and does not return remote Journey returned data packet.The long-range returned data packet and error flag information package that will have been obtained generate distinct feed-back data packet, hair It send to programmable logic controller (PLC).Programmable logic controller (PLC) obtains the distinct feed-back data packet that remote communication module is sent, and Judge whether long-range comprising after the corresponding long-range returned data packet of each Remote Expansion module, determining in distinct feed-back data packet Do not include the corresponding long-range returned data packet of each Remote Expansion module in feedback data packet, but includes error flag letter Breath then determines that corresponding Remote Expansion module is the Remote Expansion module to break down according to error flag information.
A kind of programmable logic controller (PLC) means of communication provided in this embodiment, it is each remote in acquisition by remote communication module During the long-range returned data packet of journey expansion module, judge whether to reach the waiting-timeout time;If reaching waiting-timeout Time then further determines whether to have obtained the corresponding long-range returned data packet of each Remote Expansion module;If obtained The corresponding long-range returned data packet of each Remote Expansion module then generates distinct feed-back according to the long-range returned data packet of acquisition Data packet can pass through distinct feed-back while completing programmable logic controller (PLC) and the data transmission of Remote Expansion module Data packet feeds back whether each Remote Expansion module sends long-range returned data packet in time to programmable logic controller (PLC), so as to can compile Journey logic controller determines the working condition of each Remote Expansion module.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. a kind of programmable logic controller (PLC) communication system, which is characterized in that including:
Programmable logic controller (PLC), at least one remote communication module and at least two are corresponding with the remote communication module remote Journey expansion module, each Remote Expansion module are connected step by step in advance;
Wherein, the programmable logic controller (PLC) for remote traffic data packet to be sent to the remote communication module, and obtains The distinct feed-back data packet for taking the remote communication module to send, judges each long-range expansion according to the distinct feed-back data packet Whether working properly open up module;
The remote traffic data packet is sent to institute by the remote communication module for receiving the remote traffic data packet At least two Remote Expansion mould first order Remote Expansion modules in the block corresponding with the remote communication module are stated, and according to super When the stand-by period obtain the long-range returned data packet of each Remote Expansion module that the first order Remote Expansion module is sent, Distinct feed-back data packet is generated, the distinct feed-back data packet is sent to the programmable logic controller (PLC);
Described at least two Remote Expansion modules corresponding with the remote communication module, for obtaining the remote communication module Or the remote traffic data packet that upper level Remote Expansion module is sent, it is extracted from the remote traffic data packet corresponding long-range After business datum, the remote traffic data packet is sent to next stage Remote Expansion module, according to the corresponding long-range industry Data of being engaged in generate long-range returned data packet, the long-range returned data packet and the next stage Remote Expansion module are sent remote Journey returned data packet is sent to the remote communication module or upper level Remote Expansion module.
2. system according to claim 1, which is characterized in that the remote communication module includes the first communication unit, the Two control units and the second communication unit;
The remote traffic data packet is sent to institute by first communication unit for receiving the remote traffic data packet State the second control unit;
Second control unit, for the remote traffic data packet to be sent to second communication unit;
Second communication unit, for the remote traffic data packet to be sent to the first order Remote Expansion module, and The long-range returned data packet for obtaining each Remote Expansion module that the first order Remote Expansion module is sent, by each institute The long-range returned data packet for stating Remote Expansion module is sent to second control unit;
Second control unit is additionally operable to the long-range return according to waiting-timeout time and each Remote Expansion module Data packet generates distinct feed-back data packet, the distinct feed-back data packet is sent to first communication unit;
First communication unit is additionally operable to receive the distinct feed-back data packet, sends the distinct feed-back data packet to institute State programmable logic controller (PLC).
3. system according to claim 1, which is characterized in that described at least two is corresponding with the remote communication module Remote Expansion module includes:First order Remote Expansion module and second level Remote Expansion module, the first order Remote Expansion mould Block and second level Remote Expansion module connect step by step.
4. system according to claim 3, which is characterized in that the first order Remote Expansion module includes:Third communicates Unit, third control unit and the 4th communication unit;
The third communication unit, the remote traffic data packet sent for obtaining the remote communication module will be described long-range Business data packet is sent to the third control unit;
The third control unit, for after extracting corresponding remote traffic data in the remote traffic data packet, by institute It states remote traffic data packet and is sent to the 4th communication unit, it is long-range to generate first according to the corresponding remote traffic data First long-range returned data packet is sent to the third communication unit by returned data packet;
4th communication unit, for the remote traffic data packet to be sent to the second level Remote Expansion module;
The third communication unit is additionally operable to the described first long-range returned data packet being sent to the remote communication module.
5. system according to claim 4, which is characterized in that the second level Remote Expansion module includes:5th communication Unit and the 4th control unit;
5th communication unit, the remote traffic data packet sent for obtaining the 4th communication unit will be described Remote traffic data packet is sent to the 4th control unit;
4th control unit, for after extracting corresponding remote traffic data in the remote traffic data packet, according to The corresponding remote traffic data generates the second long-range returned data packet, and the described second long-range returned data packet is sent to institute State the 5th communication unit;
5th communication unit is additionally operable to the described second long-range returned data packet being sent to the 4th communication unit;
4th communication unit is additionally operable to the described second long-range returned data packet being sent to the third control unit;
The third control unit is additionally operable to the described second long-range returned data packet being sent to the third communication unit;
The third communication unit is additionally operable to the described second long-range returned data packet being sent to the remote communication module.
6. system according to claim 1, which is characterized in that further include at least one local expansion module;
At least one local expansion module, is connected with the programmable logic controller (PLC), is patrolled for obtaining described may be programmed The corresponding local service data packet that controller is sent is collected, local feedback coefficient is generated according to the corresponding local service data packet According to packet, the local feedback data packet is sent to the programmable logic controller (PLC).
7. system according to claim 6, which is characterized in that the programmable logic controller (PLC) includes that the first control is single Member, local communication unit and remote communication unit;
First control unit, for generating local service data packet and remote traffic data packet, and by the local service Data packet is sent to the local communication unit, and the remote traffic data packet is sent to the remote communication unit;
The local communication unit for the local service data packet to be sent to the local expansion module, and obtains institute The local feedback data packet that local expansion module is sent is stated, it is single that the local feedback data packet is sent to first control Member;
The remote communication unit for the remote traffic data packet to be sent to the Remote Expansion module, and obtains institute It is single to be sent to first control by the distinct feed-back data packet for stating the transmission of Remote Expansion module for the distinct feed-back data packet Member;
First control unit is additionally operable to obtain local feedback data packet that the local communication unit is sent and described The distinct feed-back data packet that remote communication unit is sent, according to the local feedback data packet and the distinct feed-back data packet point Do not judge whether the local expansion module and each Remote Expansion module are working properly.
8. a kind of programmable logic controller (PLC) means of communication, can compile applied to one kind as described in any one of claim 1-7 In journey logic controller communication system, which is characterized in that the method includes:
Remote communication module receives the remote traffic data packet that programmable logic controller (PLC) is sent, by the remote traffic data packet It is sent at least two Remote Expansion mould first order Remote Expansion modules in the block corresponding with the remote communication module, and root According to preset time, the waiting-timeout time is set;
The remote communication module obtains each described remote of the first order Remote Expansion module transmission according to the waiting-timeout time The long-range returned data packet of journey expansion module generates distinct feed-back data packet, and the distinct feed-back data packet is sent to institute State programmable logic controller (PLC).
9. according to the method described in claim 8, it is characterized in that, the remote communication module is obtained according to the waiting-timeout time The long-range returned data packet for each Remote Expansion module that the first order Remote Expansion module is sent generates distinct feed-back number According to packet, including;
Remote communication module obtains the long-range return for each Remote Expansion module that the first order Remote Expansion module is sent Data packet;
Remote communication module judges whether to reach the waiting-timeout time;
If reaching the waiting-timeout time, remote communication module further determines whether to have obtained each Remote Expansion module Corresponding long-range returned data packet;
If remote communication module has obtained the corresponding long-range returned data packet of each Remote Expansion module, according to each The corresponding long-range returned data packet of Remote Expansion module generates distinct feed-back data packet.
10. if according to the method described in claim 9, it is characterized in that, reaching waiting-timeout time, telecommunication mould Block further determines whether after having obtained the corresponding long-range returned data packet of each Remote Expansion module, further includes:
If the corresponding long-range returned data packet of each Remote Expansion module has not been obtained in remote communication module, checks and obtained Long-range returned data packet, determine the corresponding Remote Expansion module of long-range returned data packet that has not been obtained;
Corresponding error flag information is generated according to the corresponding Remote Expansion module of the long-range returned data packet having not been obtained;
Distinct feed-back data packet is generated according to the long-range returned data packet obtained and the error flag information.
CN201810595672.XA 2018-06-11 2018-06-11 Communication system and method for programmable logic controller Active CN108614491B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810595672.XA CN108614491B (en) 2018-06-11 2018-06-11 Communication system and method for programmable logic controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810595672.XA CN108614491B (en) 2018-06-11 2018-06-11 Communication system and method for programmable logic controller

Publications (2)

Publication Number Publication Date
CN108614491A true CN108614491A (en) 2018-10-02
CN108614491B CN108614491B (en) 2024-03-15

Family

ID=63665133

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810595672.XA Active CN108614491B (en) 2018-06-11 2018-06-11 Communication system and method for programmable logic controller

Country Status (1)

Country Link
CN (1) CN108614491B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113132065A (en) * 2019-12-30 2021-07-16 西安诺瓦星云科技股份有限公司 Data communication method, device and system, storage medium and video processing equipment
CN116560348A (en) * 2023-07-10 2023-08-08 钛玛科(北京)工业科技有限公司 Controller deviation rectifying method based on wireless communication feedback

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH113309A (en) * 1997-06-12 1999-01-06 Meidensha Corp Extension board constitution changing system
JP2000049891A (en) * 1998-05-27 2000-02-18 Omron Corp Programmable logic controller and communication condition setting method and communication condition setting device therefor
CN1719363A (en) * 2005-07-27 2006-01-11 艾默生网络能源有限公司 Hard ware extension method of programmable logic controller
CN1920803A (en) * 2001-09-20 2007-02-28 西门子能量及自动化公司 System for and method of interfacing expansion modules with programmable logic controllers (PLC)
CN1936744A (en) * 2006-10-20 2007-03-28 艾默生网络能源有限公司 Programmable logical controller, its expanded module and its hardware expanding method
JP2007108923A (en) * 2005-10-12 2007-04-26 Omron Corp Programmable controller system
CN101145046A (en) * 2007-08-24 2008-03-19 上海正航电子科技有限公司 Programmable logic controller and expansion module interface
CN101592934A (en) * 2009-06-30 2009-12-02 上海电器科学研究所(集团)有限公司 The communication means of programmable logic controller (PLC) and expansion module
CN101630156A (en) * 2009-05-15 2010-01-20 江苏长江环境科技工程有限公司 Programmable music fountain control system
EP2251789A1 (en) * 2009-05-12 2010-11-17 ABB France Input/output module for sensors and/or actuators exchanging information with two central processing units
CN101968639A (en) * 2010-11-02 2011-02-09 上海电器科学研究院 Analog quantity acquisition module for programmable logic controller (PLC) extension
CN201975793U (en) * 2011-01-28 2011-09-14 中电普瑞科技有限公司 Chain type STATCOM (Static Synchronous Compensator) control system based on EtherCAT technology
US20120019674A1 (en) * 2009-11-30 2012-01-26 Toshiaki Ohnishi Communication apparatus
US20130010588A1 (en) * 2011-07-08 2013-01-10 Kretschmann Robert J High Availability Device Level Ring Backplane
US20130179622A1 (en) * 2012-01-06 2013-07-11 Gary L. Pratt System and method for transmitting and receiving data using an industrial expansion bus
CN103576598A (en) * 2012-07-27 2014-02-12 施耐德电器工业公司 Programmable logic control system based on wireless expansion bus mode and control method
CN103576673A (en) * 2013-11-05 2014-02-12 成都金本华科技股份有限公司 System and method for detecting onboard replaceable unit
CN203630575U (en) * 2013-12-24 2014-06-04 南京科远自动化集团股份有限公司 Communication structure between controller and expansion modules
CN105527919A (en) * 2016-01-26 2016-04-27 上海海得控制系统股份有限公司 Parallel bus backboard of PLC controller
CN105843157A (en) * 2016-03-30 2016-08-10 上海云统信息科技有限公司 PLC system having remote data tracking and capturing function and operating method thereof
CN106816957A (en) * 2017-01-18 2017-06-09 珠海驰纬电气有限公司 A kind of distribution power automation terminal based on CAN cascade extension
CN208314514U (en) * 2018-06-11 2019-01-01 上海海得控制系统股份有限公司 A kind of programmable logic controller (PLC) communication system

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH113309A (en) * 1997-06-12 1999-01-06 Meidensha Corp Extension board constitution changing system
JP2000049891A (en) * 1998-05-27 2000-02-18 Omron Corp Programmable logic controller and communication condition setting method and communication condition setting device therefor
CN1920803A (en) * 2001-09-20 2007-02-28 西门子能量及自动化公司 System for and method of interfacing expansion modules with programmable logic controllers (PLC)
CN1719363A (en) * 2005-07-27 2006-01-11 艾默生网络能源有限公司 Hard ware extension method of programmable logic controller
JP2007108923A (en) * 2005-10-12 2007-04-26 Omron Corp Programmable controller system
CN1936744A (en) * 2006-10-20 2007-03-28 艾默生网络能源有限公司 Programmable logical controller, its expanded module and its hardware expanding method
CN101145046A (en) * 2007-08-24 2008-03-19 上海正航电子科技有限公司 Programmable logic controller and expansion module interface
EP2251789A1 (en) * 2009-05-12 2010-11-17 ABB France Input/output module for sensors and/or actuators exchanging information with two central processing units
CN101630156A (en) * 2009-05-15 2010-01-20 江苏长江环境科技工程有限公司 Programmable music fountain control system
CN101592934A (en) * 2009-06-30 2009-12-02 上海电器科学研究所(集团)有限公司 The communication means of programmable logic controller (PLC) and expansion module
US20120019674A1 (en) * 2009-11-30 2012-01-26 Toshiaki Ohnishi Communication apparatus
CN101968639A (en) * 2010-11-02 2011-02-09 上海电器科学研究院 Analog quantity acquisition module for programmable logic controller (PLC) extension
CN201975793U (en) * 2011-01-28 2011-09-14 中电普瑞科技有限公司 Chain type STATCOM (Static Synchronous Compensator) control system based on EtherCAT technology
US20130010588A1 (en) * 2011-07-08 2013-01-10 Kretschmann Robert J High Availability Device Level Ring Backplane
US20130179622A1 (en) * 2012-01-06 2013-07-11 Gary L. Pratt System and method for transmitting and receiving data using an industrial expansion bus
CN103576598A (en) * 2012-07-27 2014-02-12 施耐德电器工业公司 Programmable logic control system based on wireless expansion bus mode and control method
CN103576673A (en) * 2013-11-05 2014-02-12 成都金本华科技股份有限公司 System and method for detecting onboard replaceable unit
CN203630575U (en) * 2013-12-24 2014-06-04 南京科远自动化集团股份有限公司 Communication structure between controller and expansion modules
CN105527919A (en) * 2016-01-26 2016-04-27 上海海得控制系统股份有限公司 Parallel bus backboard of PLC controller
CN105843157A (en) * 2016-03-30 2016-08-10 上海云统信息科技有限公司 PLC system having remote data tracking and capturing function and operating method thereof
CN106816957A (en) * 2017-01-18 2017-06-09 珠海驰纬电气有限公司 A kind of distribution power automation terminal based on CAN cascade extension
CN208314514U (en) * 2018-06-11 2019-01-01 上海海得控制系统股份有限公司 A kind of programmable logic controller (PLC) communication system

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
但伟 等: "基于工业以太网的配电自动化系统的设计", 微计算机信息 *
李涛;张斌;赵冬娥;邓均;刘鹏;: "高速密集数据采集与传输技术研究", 国外电子测量技术, no. 03 *
李珂: "智能配用电光分配网故障定位系统的设计与实现", 中国优秀硕士学位论文全文数据库 信息科技辑 *
杨盛泉 等: "基于以太网的工业石灰窑PLC自动控制系统的研究与设计", 工业炉 *
杨贵;高红亮;彭安;张喜铭;李莉;潘磊;: "智能变电站过程层交换机设计及实现", 电力工程技术, no. 05 *
谭爱国;琚长江;: "基于CPLD的PLC背板总线协议接口芯片设计", 自动化与仪表, no. 01 *
黄岩;: "PLC控制系统故障分析及处理方法", 设备管理与维修, no. 06 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113132065A (en) * 2019-12-30 2021-07-16 西安诺瓦星云科技股份有限公司 Data communication method, device and system, storage medium and video processing equipment
CN116560348A (en) * 2023-07-10 2023-08-08 钛玛科(北京)工业科技有限公司 Controller deviation rectifying method based on wireless communication feedback
CN116560348B (en) * 2023-07-10 2023-11-03 钛玛科(北京)工业科技有限公司 Controller deviation rectifying method based on wireless communication feedback

Also Published As

Publication number Publication date
CN108614491B (en) 2024-03-15

Similar Documents

Publication Publication Date Title
CN102073315B (en) Apparatus to communicatively couple field devices to controllers in a process control system
CN101236425A (en) Methods and apparatus to configure process control system inputs and outputs
CN101625670A (en) Serial bus device, serial bus transmission system and method
CN202362658U (en) High-speed field bus control system based on optical fiber
CN103500154B (en) A kind of serial bus interface chip, serial bus transmission system and method
CN104407279A (en) Code type data, apparatus and test method for automatically testing chip MDIO bus protocol
CN104468035B (en) A kind of distribution POS data reliability transmission system and method
CN101592934A (en) The communication means of programmable logic controller (PLC) and expansion module
CN102759724A (en) Testing method and system for communication reliability of intelligent electric energy meters
CN105515911A (en) Gateway automatic test system and method of CAN network
CN104753716A (en) Transmission system error detection and correction system and method
CN105068955B (en) A kind of local bus architecture and data interactive method
CN108614491A (en) A kind of programmable logic controller (PLC) communication system and method
CN101605081B (en) Data transmission device, data reception device and method for controlling data transmission
CN102081586A (en) Multiple I2C (Inter-IC) slot circuit system and method for transmitting I2C signal
CN103809547B (en) A kind of control system of servo-driver field-bus interface
CN103809051B (en) The detection method of switch matrix, Auto-Test System and switch matrix therein
CN208314514U (en) A kind of programmable logic controller (PLC) communication system
US8614620B2 (en) Method for parameterizing a process automation field device by simulating the acyclic services
CN110096291A (en) Power management chip upgrades circuit, method and the network equipment
CN201226103Y (en) Experiment debugging platform based on bus technology
CN103577485A (en) Master and slave mode inquiry system and method
CN103931205A (en) Fault detection method and substation terminal used for said method
CN100557652C (en) The apparatus and method that acquiring terminal address code generates automatically
CN105116807A (en) System and method for automatically configuring module information of modular controller

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