[go: up one dir, main page]

CN105519050B - Control system and relay - Google Patents

Control system and relay Download PDF

Info

Publication number
CN105519050B
CN105519050B CN201580001548.0A CN201580001548A CN105519050B CN 105519050 B CN105519050 B CN 105519050B CN 201580001548 A CN201580001548 A CN 201580001548A CN 105519050 B CN105519050 B CN 105519050B
Authority
CN
China
Prior art keywords
monitoring data
communication
control
control device
network
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.)
Active
Application number
CN201580001548.0A
Other languages
Chinese (zh)
Other versions
CN105519050A (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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Publication of CN105519050A publication Critical patent/CN105519050A/en
Application granted granted Critical
Publication of CN105519050B publication Critical patent/CN105519050B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • 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/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/02Details
    • H04B3/36Repeater circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0695Management of faults, events, alarms or notifications the faulty arrangement being the maintenance, administration or management system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Manufacturing & Machinery (AREA)
  • Data Mining & Analysis (AREA)
  • Safety Devices In Control Systems (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Hardware Redundancy (AREA)

Abstract

在使控制装置和数据传输路径双重化的控制系统中,即使传输到控制装置的数据量增加,也能够不对控制装置原本的运算的执行产生障碍、且不招致工作系/待机系的切换速度降低而进行监视数据的等值化。利用第一等值化线缆将工作系和待机系的各控制装置进行连接,并且利用第二等值化线缆将工作系和待机系的各网络装置相互连接。使各网络装置向连接目的地的控制装置传输从IO从装置接收到的监视数据,并且使各网络装置判定是否能够经由第二等值化线缆来进行通信。如果能够进行该通信,则通过经由第二等值化线缆的通信来使各网络装置进行监视数据的等值化,如果不能进行该通信,则通过经由第一等值化线缆的通信来使各网络装置进行监视数据的等值化。

In the control system with dual control device and data transmission path, even if the amount of data transmitted to the control device increases, it will not hinder the execution of the original calculation of the control device, and will not cause the switching speed of the working system/standby system to slow down And carry out the equalization of monitoring data. The first equalization cables are used to connect the control devices of the working system and the standby system, and the second equalization cables are used to connect the network devices of the working system and the standby system to each other. Each network device is caused to transmit the monitoring data received from the IO slave device to the control device of the connection destination, and each network device is caused to determine whether communication via the second equalized cable is possible. If the communication is possible, each network device performs equalization of the monitoring data by communication via the second equalization cable, and if the communication is not possible, the monitoring data is equalized by communication via the first equalization cable. Each network device performs equalization of monitoring data.

Description

控制系统以及中继装置Control system and relay device

技术领域technical field

本发明涉及一种包括工作系和待机系的控制装置的控制系统及其中继装置。The present invention relates to a control system including control devices of working system and standby system and its relay device.

背景技术Background technique

在工厂、各种厂房等工业设施中,大多构建有被称为控制系统的通信系统以对各种作业进行控制。控制系统包括控制装置,该控制装置收集来自设置于工业设施内的传感器的监视数据,根据该收集的结果来进行电动机等的驱动控制。作为这种控制装置,使用DCS(Distributed Control System:分布式控制系统)、可编程逻辑控制器(ProgrammableLogic Controller)。下面,将电动机等成为控制装置的控制对象的装置称为“控制对象装置”,将如上述传感器那样成为控制装置收集监视数据的对象的装置以及控制对象装置称为“IO从装置”。IO从装置与被称为IO网络的网络或串行总线连接。控制装置经由中继装置等网络装置而与IO网络连接。作为该中继装置的一例,可列举出网关装置。另外,下面,将可编程逻辑控制器表述为“PLC”。在一般的FA(Factory Automation:工厂自动化)系统中将PLC用作控制装置的情况多,在要求高可靠性的工厂设备中将DCS用作控制装置的情况多。这是由于DCS相比于PLC而言可靠性高。In many industrial facilities such as factories and various factories, a communication system called a control system is constructed to control various operations. The control system includes a control device that collects monitoring data from sensors installed in industrial facilities, and performs drive control of motors and the like based on the collected results. As such a control device, a DCS (Distributed Control System: Distributed Control System) or a Programmable Logic Controller (Programmable Logic Controller) is used. Hereinafter, a device such as a motor to be controlled by the control device is referred to as a "control target device", and a device such as the above-mentioned sensor to which the control device collects monitoring data and the control target device are referred to as an "IO slave device". The IO slaves are connected to a network or serial bus called an IO network. The control device is connected to the IO network via a network device such as a relay device. An example of the relay device is a gateway device. In addition, below, a programmable logic controller is expressed as "PLC". PLCs are often used as control devices in general FA (Factory Automation) systems, and DCSs are often used as control devices in factory equipment requiring high reliability. This is because DCS is more reliable than PLC.

在这种控制系统中,一般来说,为了避免因控制装置等的故障而导致停工,进行控制装置的双重化和监视数据的数据传输路径的双重化。控制装置的双重化是指:设置两台控制装置,使其一方作为工作系装置来进行动作,使另一方作为待机系装置来进行动作。这两台控制装置分别收集监视数据,使用所收集到的监视数据、或者使用所收集到的监视数据和过去的运算结果,来进行用于设备控制的规定的运算。工作系控制装置进行基于该运算结果的控制,待机系控制装置用于防备工作系控制装置停止。然后,在工作系控制装置要停止时或者已停止时,待机系控制装置作为工作系装置来进行动作,继续进行设备控制。在此,关于工作系控制装置停止的具体例,可考虑因发生某种故障、不良状况而引起的未预期的停止以及因保养维护等而进行的预先计划的停止等。待机系控制装置用于防备这两种停止的双方。数据传输路径的双重化是指:例如将从IO从装置到被双重化的控制装置的一方的数据传输路径以及从IO从装置到被双重化的控制装置的另一方的数据传输路径分别独立地设置。下面,将使控制装置和数据传输路径这两方双重化的控制系统称为“冗余化控制系统”。In such a control system, in general, in order to avoid downtime due to a failure of the control device or the like, duplication of the control device and duplication of data transmission paths for monitoring data are performed. The duplication of the control devices means that two control devices are installed, one of which is operated as a working system device, and the other is operated as a standby system device. These two control devices respectively collect monitoring data, and perform predetermined calculations for facility control using the collected monitoring data, or using the collected monitoring data and past calculation results. The work-system control device performs control based on the calculation result, and the standby-system control device is used to prevent the work-system control device from stopping. Then, when the work-system control device is about to stop or has stopped, the standby-system control device operates as the work-system device and continues equipment control. Here, as specific examples of stoppage of the work system control device, unexpected stoppage due to occurrence of some kind of failure or malfunction, planned stoppage due to maintenance, etc. can be considered. The standby system control device is used to guard against both of these two stoppages. The duplication of the data transmission path refers to, for example, separately separating the data transmission path from the IO slave device to one of the duplexed control devices and the data transmission path from the IO slave device to the other duplexed control device. set up. Hereinafter, a control system in which both the control device and the data transmission path are duplicated is referred to as a "redundant control system".

图18是表示冗余化控制系统的结构例的图。图18所示的系统是如下的控制系统:收集从设置于工业设施内的各种传感器等IO从装置S1~Sn输出的监视数据,基于这些监视数据、或者使用该监视数据和过去的运算结果,来进行规定的运算,根据该运算的结果来进行电动机等的工作控制。此外,n是2以上的自然数。该控制系统具有控制装置10A和控制装置10B这两台控制装置以及网络装置20A和网络装置20B这两台网络装置。在图18所示的系统中,控制装置10A和控制装置10B中的一方成为工作系装置,另一方成为待机系装置来防备工作系装置停止。控制装置10A和控制装置10B上连接有用于进行控制装置10A和控制装置10B的工作状态等的监视的监视系统50。另外,控制装置10A经由网络装置20A而与IO网络30A连接,控制装置10B经由网络装置20B而与IO网络30B连接。IO从装置S1~Sn各自与IO网络30A和IO网络30B这两方连接。FIG. 18 is a diagram showing a configuration example of a redundant control system. The system shown in FIG. 18 is a control system that collects monitoring data output from IO slave devices S1 to Sn such as various sensors installed in industrial facilities, and uses these monitoring data or uses the monitoring data and past calculation results. , to perform a prescribed calculation, and to control the operation of the motor and the like based on the result of the calculation. In addition, n is a natural number of 2 or more. This control system includes two control devices, two control devices 10A and 10B, and two network devices, two network devices 20A and 20B. In the system shown in FIG. 18 , one of the control device 10A and the control device 10B serves as a work-system device, and the other serves as a standby-system device to prevent stoppage of the work-system device. A monitoring system 50 for monitoring the operating states of the control device 10A and the control device 10B is connected to the control device 10A and the control device 10B. In addition, the control device 10A is connected to the IO network 30A via the network device 20A, and the control device 10B is connected to the IO network 30B via the network device 20B. Each of the IO slave devices S1 to Sn is connected to both the IO network 30A and the IO network 30B.

在图18所示的系统中,控制装置10A和控制装置10B彼此通过等值化线缆40而连接,以能够各自进行另一方的状态监视。如前所述,待机系控制装置用于防备工作系控制装置的因故障等引起的未预期的停止或保养维护等计划性的停止等,下面以由于故障而停止的情况为例来进行说明。控制装置10A和控制装置10B分别将表示有无故障、即本装置的状态的状态数据经由等值化线缆40而发送到另一方。例如,在控制装置10A为工作系装置的情况下,作为待机系装置的控制装置10B参照经由等值化线缆40从控制装置10A发送来的状态数据,来监视控制装置10A中的故障发生。然后,控制装置10B当从经由等值化线缆40接收到的状态数据检测出控制装置10A发生故障时,此后开始进行作为工作系装置的动作。另一方面,控制装置10A通过经由等值化线缆40进行的通信来检测出控制装置10B已开始进行作为工作系装置的动作,此后作为待机系装置进行动作。In the system shown in FIG. 18 , the control device 10A and the control device 10B are connected to each other by an equalization cable 40 so that each can monitor the other's state. As mentioned above, the standby system control device is used to prevent unexpected stop due to failure of the work system control device or planned stop such as maintenance, etc., and the case of stop due to failure will be described below as an example. Each of the control device 10A and the control device 10B transmits state data indicating the presence or absence of a failure, that is, the state of the own device, to the other party via the equalization cable 40 . For example, when control device 10A is an operating system device, control device 10B, which is a standby system device, refers to status data sent from control device 10A via equalization cable 40 to monitor failure occurrence in control device 10A. Then, when the control device 10B detects a failure of the control device 10A from the state data received via the equalization cable 40 , it starts to operate as a work-system device thereafter. On the other hand, the control device 10A detects that the control device 10B has started to operate as an active system device through communication via the equalization cable 40 , and then operates as a standby system device.

在冗余化控制系统中,即使工作系控制装置发生故障,也能够通过进行工作系/待机系的切换来继续从IO从装置S1~Sn分别收集数据、根据该收集的结果来进行运算、以及根据该运算的结果来进行控制。但是,若只是进行工作系/待机系的切换,则有时会发生在该切换前后上述运算结果突变等不良状况。这是由于,从IO从装置S1~Sn分别发送到控制装置10A和控制装置10B的监视数据未必完全相同。In the redundant control system, even if the control device of the working system fails, it is possible to continue to collect data from the IO slave devices S1 to Sn by switching between the working system and the standby system, and to perform calculations based on the collected results, and Control is performed based on the result of this calculation. However, if only switching between the active system and the standby system is performed, problems such as sudden changes in the above-mentioned calculation results may occur before and after the switching. This is because the monitoring data transmitted from the IO slaves S1 to Sn to the control device 10A and the control device 10B are not necessarily completely identical.

为了避免发生这种不良状况,在冗余化控制系统中,一般使各控制装置执行从IO从装置S1~Sn分别发送到各控制装置的监视数据的等值化、运算结果的等值化之类的处理。监视数据的等值化是指:通过等值化线缆40向待机系控制装置发送由工作系控制装置经由网络装置接收到的监视数据,利用该监视数据来覆盖由待机系控制装置经由网络接收到的监视数据。另外,运算结果的等值化是指:通过等值化线缆40向待机系控制装置发送表示工作系装置中的运算结果的数据,利用该数据来覆盖待机系装置中的运算结果。作为这种与冗余化控制系统及等值化有关的以往技术的一例,可列举出专利文献1、专利文献2所公开的技术。In order to avoid such troubles, in a redundant control system, each control device generally executes the equalization of the monitoring data sent from the IO slave devices S1 to Sn to each control device, and the equalization of the calculation results. class processing. The equalization of monitoring data refers to sending the monitoring data received by the operating system control device via the network device to the standby system control device through the equalization cable 40, and using the monitoring data to overwrite the monitoring data received by the standby system control device via the network. received monitoring data. In addition, the equalization of the calculation result refers to sending data representing the calculation result in the operating system device to the standby system control device through the equalization cable 40 and overwriting the calculation result in the standby system device with the data. As an example of the prior art related to such a redundant control system and equalization, the technique disclosed by patent document 1 and patent document 2 is mentioned.

专利文献1:日本特开2013-12094号公报Patent Document 1: Japanese Patent Laid-Open No. 2013-12094

专利文献2:日本特开2013-152631号公报Patent Document 2: Japanese Patent Laid-Open No. 2013-152631

发明内容Contents of the invention

发明要解决的问题The problem to be solved by the invention

近年来,随着控制系统所包括的IO从装置的多样化、数量的增加、IO网络中的数据传输速度的提高,每单位时间内经由网络装置发送到控制装置的监视数据的数据量大幅增加。如果控制装置经由网络装置接收的监视数据的数据量增加,则针对这些监视数据的等值化处理的处理负荷变高,从而存在以下情况:难以对控制装置原本的作用、即用于设备控制的运算的执行、与该运算的结果相应的设备控制分配足够的资源。另外,近年来,想要在一台控制装置上连接多个网络装置这样的需求变高,但是,如果连接在控制装置上的网络装置的数量增加则产生同样的问题。并且,如果控制装置经由网络装置接收的每单位时间内的监视数据的数据量增加,则还存在在工作系装置发生故障时无法迅速地进行工作系/待机系的切换这样的问题。这是由于,如前所述,如果不是在完成了针对由控制装置经由网络装置接收的监视数据的等值化之后,则无法在避免运算结果发生突变的同时进行工作系/待机系的切换。In recent years, with the diversification and increase in the number of IO slave devices included in the control system, and the increase in data transmission speed in the IO network, the amount of monitoring data sent to the control device via the network device per unit time has increased significantly. . If the amount of monitoring data received by the control device via the network device increases, the processing load of equalization processing for these monitoring data will increase, and there may be cases where it is difficult to understand the original role of the control device, that is, for equipment control. The execution of the operation, and the control of the device corresponding to the result of the operation allocate sufficient resources. In addition, in recent years, there has been an increasing need to connect a plurality of network devices to one control device, but the same problem arises when the number of network devices connected to the control device increases. Furthermore, if the amount of monitoring data per unit time received by the control device via the network device increases, there is also a problem that switching between the active system and the standby system cannot be quickly performed when the active system fails. This is because, as described above, unless the equalization of the monitoring data received by the control device via the network device is completed, switching between the active system and the standby system cannot be performed while avoiding sudden changes in calculation results.

本发明是鉴于以上说明的问题而完成的,其目的在于提供如下一种技术:在冗余化控制系统中,即使经由网络传输到各控制装置的监视数据的数据量增加,也能够不对控制装置原本的运算的执行产生任何障碍、且不招致工作系/待机系的切换速度降低而进行监视数据的等值化。The present invention has been made in view of the problems described above, and an object of the present invention is to provide a technique in which, in a redundant control system, even if the amount of monitoring data transmitted to each control device via a network increases, the control device Equalization of monitoring data is performed without causing any obstacle in the execution of the original calculation and without incurring a decrease in the switching speed of the active system/standby system.

用于解决问题的方案solutions to problems

为了解决上述问题,本发明提供具有以下的第一控制装置和第二控制装置以及第一中继装置和第二中继装置的控制系统,来作为从连接在第一网络和第二网络上的一个或多个设备收集监视数据、并基于该监视数据来进行控制的控制系统。第一控制装置和第二控制装置经由控制装置间通信单元而连接。控制装置间通信单元例如是等值化线缆,对第一控制装置与第二控制装置之间的通信进行居间调解(日语:仲介)。第一控制装置和第二控制装置中的一方成为工作系装置而进行所述控制,另一方成为待机系装置。作为第一中继装置和第二中继装置的具体例,可列举出前述的网络装置。第一中继装置与第一控制装置及第一网络连接,第二中继装置与第二控制装置及第二网络连接。第一中继装置和第二中继装置连接于中继装置间通信单元。中继装置间通信单元例如是等值化线缆,对第一中继装置与第二中继装置之间的通信进行居间调解。第一中继装置和第二中继装置具备判定能否经由中继装置间通信单元来进行通信的判定单元。第一中继装置和第二中继装置分别向连接目的地的控制装置传输从一个或多个设备接收到的监视数据,并且,在通过判定单元判定为能够通信的情况下,通过经由中继装置间通信单元的通信来进行监视数据的等值化。与此相对,在通过判定单元判定为不能通信的情况下,第一中继装置和第二中继装置通过经由控制装置间通信单元的通信来进行监视数据的等值化。In order to solve the above problems, the present invention provides a control system having the following first control device, second control device, first relay device, and second relay device as slaves connected to the first network and the second network A control system in which one or more devices collect monitoring data and control based on that monitoring data. The first control device and the second control device are connected via an inter-control device communication unit. The inter-control device communication unit is, for example, an equalized cable, and mediates (Japanese: broker) the communication between the first control device and the second control device. One of the first control device and the second control device is a working system device to perform the control, and the other is a standby system device. Specific examples of the first relay device and the second relay device include the aforementioned network devices. The first relay device is connected to the first control device and the first network, and the second relay device is connected to the second control device and the second network. The first relay device and the second relay device are connected to the inter-relay device communication unit. The inter-relay device communication unit is, for example, an equalized cable, and mediates the communication between the first relay device and the second relay device. The first relay device and the second relay device include a judging unit for judging whether communication can be performed via the inter-relay device communication unit. The first relay device and the second relay device respectively transmit the monitoring data received from one or a plurality of devices to the control device of the connection destination, and, when it is determined by the determination unit that communication is possible, transmit the monitoring data via the relay Equalization of monitoring data is performed by communicating with the device-to-device communication unit. On the other hand, when it is determined by the determination means that communication is impossible, the first relay device and the second relay device perform equalization of the monitoring data by communication via the inter-control device communication means.

在本发明的控制系统中,从各设备发送到第一控制装置和第二控制装置的监视数据的等值化是由第一中继装置和第二中继装置来进行的。因而,即使监视数据的数据量增加,也不会由于监视数据的等值化而使第一控制装置和第二控制装置各自的处理负荷过度变高,在第一控制装置和第二控制装置各自中的上述运算的执行上不会产生任何障碍。另外,对第一控制装置和第二控制装置分别提供已通过第一中继装置和第二中继装置进行了等值化的数据。因此,在使第一控制装置和第二控制装置中的一方作为工作系装置而发挥功能、使另一方作为待机系装置而发挥功能、并且因工作系装置停止而进行工作系/待机系的切换的情况下,无需等待监视数据的等值化完成,能够迅速地进行工作系/待机系的切换。In the control system of the present invention, the equalization of the monitoring data transmitted from each device to the first control device and the second control device is performed by the first relay device and the second relay device. Therefore, even if the amount of monitoring data increases, the processing load on each of the first control device and the second control device does not become excessively high due to the equalization of the monitoring data, and each of the first control device and the second control device There will be no hindrance in the execution of the above operations in . In addition, the data equalized by the first relay device and the second relay device are provided to the first control device and the second control device, respectively. Therefore, when one of the first control device and the second control device functions as an active system device, the other functions as a standby system device, and the operation system/standby system is switched by stopping the operation system device, In the case of , it is possible to quickly switch between the active system and the standby system without waiting for the completion of equalization of the monitoring data.

在图18所示的以往的冗余化控制系统中,当发生将控制装置10A与控制装置10B相互连接的等值化线缆40的切断时,会变得完全无法进行监视数据的等值化。与此相对,在本发明的控制系统中,对用于监视数据的等值化的数据通信进行居间调解的通信单元通过控制装置间通信单元和中继装置间通信单元而被双重化,因此只要能够经由任一方来进行通信,就能够无任何问题地进行监视数据的等值化。此外,也可以使第一控制装置和第二控制装置执行以下处理:判定是否能够经由控制装置间通信单元来进行通信,如果能够通信,则经由控制装置间通信单元来发送接收表示本装置中有无故障的状态数据,由此监视另一方有无故障,如果不能通信,则经由中继装置间通信单元来发送接收状态数据,由此监视另一方有无故障。另外,本发明的控制系统中包括的中继装置对、即由经由中继装置间通信单元进行通信的第一中继装置和第二中继装置组成的中继装置对并不限定为一个,也可以是多个。具体地说,可考虑以下的方式:具有多个第一中继装置和多个第二中继装置,该多个第一中继装置与分别连接有不同的设备的多个第一网络分别连接,并且与第一控制装置分别连接,该多个第二中继装置分别与多个第一中继装置彼此成对,与连接有上述各设备的多个第二网络分别连接,并且与第二控制装置分别连接,多个第一中继装置和多个第二中继装置中的彼此成对的中继装置之间经由中继装置间通信单元来进行通信。In the conventional redundant control system shown in FIG. 18, when the equalization cable 40 connecting the control device 10A and the control device 10B is cut, the monitoring data cannot be equalized at all. . On the other hand, in the control system of the present invention, the communication unit that mediates data communication for equalizing monitoring data is doubled by the communication unit between control devices and the communication unit between relay devices. It is possible to perform communication via either one, and it is possible to perform equalization of monitoring data without any problem. In addition, the first control device and the second control device may also be made to execute the following process: determine whether communication can be performed via the communication unit between control devices, and if communication is possible, send and receive information indicating that there is an error in the device through the communication unit between control devices. If there is no fault status data, the other party is monitored for faults, and if communication is not possible, the other party is monitored for faults by sending and receiving status data via the communication unit between relay devices. In addition, the relay device pair included in the control system of the present invention, that is, the relay device pair composed of the first relay device and the second relay device that communicate via the inter-relay device communication unit is not limited to one, It can also be multiple. Specifically, the following mode may be considered: a plurality of first relay devices and a plurality of second relay devices are provided, and the plurality of first relay devices are respectively connected to a plurality of first networks to which different devices are respectively connected. , and are respectively connected to the first control device, the plurality of second relay devices are respectively paired with the plurality of first relay devices, are respectively connected to a plurality of second networks connected with the above-mentioned devices, and are connected to the second The control devices are respectively connected, and the relay devices that are paired with each other among the plurality of first relay devices and the plurality of second relay devices communicate through the inter-relay device communication unit.

在此,作为利用经由中继装置间通信单元的通信进行的监视数据的等值化的具体实现方法,可考虑各种方式。可考虑以下的方式:从第一中继装置和第二中继装置中的一方向另一方发送监视数据,使该另一方的中继装置执行利用经由中继装置间通信单元接收到的监视数据来覆盖经由网络接收到的监视数据的处理,即,执行利用前者的监视数据来置换后者的监视数据的处理。例如,从与工作系控制装置连接的一方的中继装置向另一方的中继装置发送监视数据,使该另一方的中继装置利用经由中继装置间通信单元或控制装置间通信单元接收到的监视数据来覆盖经由网络接收到的监视数据。Here, various methods are conceivable as a concrete realization method of the equalization of monitoring data by communication via the inter-relay device communication means. A method may be considered in which monitoring data is transmitted from one of the first relay device and the second relay device to the other, and the other relay device executes using the monitoring data received via the inter-relay device communication unit. Overwrite the monitoring data received via the network, that is, execute the processing of replacing the latter monitoring data with the former monitoring data. For example, monitoring data is sent from one relay device connected to the work-system control device to the other relay device, and the other relay device receives the monitoring data via the inter-relay device communication unit or the inter-control device communication unit. Surveillance data received over the network.

另外,在其它优选方式中,可考虑以下方式:在第一中继装置和第二中继装置中分别设置以下的第一处理单元和第二处理单元。第一处理单元将从连接目的地的网络接收到的监视数据传输到另一方的中继装置。更详细地说明,在通过上述判定单元判定为能够通信的情况下,第一处理单元将监视数据经由中继装置间通信单元传输到另一方的中继装置,在判定为不能通信的情况下,第一处理单元将监视数据经由控制装置间通信单元发送到另一方的中继装置。第二处理单元确认是否能够与从另一方的中继装置接收到的监视数据的发送源的设备进行通信,在不能通信的情况下,对于原本应该从该设备接收的监视数据,利用从另一方的中继装置接收到的监视数据来进行补足。在以往的冗余化控制系统中,在向工作系控制装置传输监视数据的中继装置所连接的网络发生了故障的情况下、或者在用于将各设备连接到该网络的IO主机发生了故障的情况下,也需要进行工作系/待机系的切换。与此相对,根据本方式,无需因上述网络等的故障而进行工作系/待机系的切换,能够降低工作系/待机系的切换的发生频率。关于这一点,通过本发明的第四实施方式来详细说明。In addition, in another preferred mode, a mode in which the following first processing unit and second processing unit are respectively provided in the first relay device and the second relay device may be considered. The first processing unit transmits the monitoring data received from the network of the connection destination to the relay device of the other party. In more detail, when it is determined that communication is possible by the above-mentioned determination unit, the first processing unit transmits the monitoring data to the other relay device via the communication unit between relay devices, and when it is determined that communication is impossible, The first processing unit transmits the monitoring data to the other relay device via the inter-control device communication unit. The second processing unit confirms whether it is possible to communicate with the device of the source of the monitoring data received from the other relay device, and if communication is not possible, the monitoring data that should have been received from the device is used from the other party's relay device. It complements the monitoring data received by the relay device. In the conventional redundant control system, when the network connected to the relay device that transmits the monitoring data to the work system control device fails, or the IO master that connects each device to the network fails Even in the event of a failure, it is necessary to switch between the active system and the standby system. On the other hand, according to this aspect, it is not necessary to switch between the active system and the standby system due to a failure of the network or the like, and the frequency of switching between the active system and the standby system can be reduced. This point will be described in detail using a fourth embodiment of the present invention.

在更优选的方式中,第一中继装置和第二中继装置中的任一方上连接有第三网络。而且,与第三网络连接的中继装置从连接在该第三网络上的设备收集监视数据,将所收集到的监视数据传输到连接目的地的控制装置,并且传输到另一方的中继装置来使其进行等值化。若在图18所示的以往的冗余化控制系统的中继装置上连接未双重化的网络则会存在各种问题,无法简便地采用这种连接方式,对此在本发明的第三实施方式的说明中明确其详情。与此相对,根据本方式,能够在这种中继装置上简便地连接未双重化的网络。In a more preferable aspect, either one of the first relay device and the second relay device is connected to the third network. And, the relay device connected to the third network collects monitoring data from the equipment connected to the third network, transmits the collected monitoring data to the control device of the connection destination, and transmits to the other relay device to make it equal. If a non-duplicated network is connected to the relay device of the conventional redundant control system shown in Figure 18, there will be various problems, and this connection method cannot be easily adopted. The details are specified in the description of the method. On the other hand, according to this aspect, a non-duplex network can be easily connected to such a relay device.

另外,在其它优选方式中,特征在于,所述第一中继装置和所述第二中继装置具备测量连接目的地的控制装置所承担的处理负荷的负荷测量单元,所述第一中继装置和所述第二中继装置在由负荷测量单元测量出的处理负荷为规定的阈值以上、且通过判定单元判定为能够通信的情况下,通过经由中继装置间通信单元的通信来进行监视数据的等值化,在其它情况下通过经由控制装置间通信单元的通信来进行监视数据的等值化。根据这种方式,能够在分散第一控制装置和第二控制装置各自所承担的处理负荷的同时,将用于监视数据的等值化的数据通信双重化。In addition, in another preferred aspect, the first relay device and the second relay device include load measuring means for measuring a processing load borne by a control device of a connection destination, and the first relay device When the processing load measured by the load measurement unit is equal to or greater than a predetermined threshold and the determination unit determines that communication is possible with the second relay device, the device and the second relay device monitor by communicating through the inter-relay device communication unit. In other cases, the equalization of data is carried out by communication via the communication means between control devices. According to this aspect, the data communication for equalizing the monitoring data can be duplexed while distributing the processing load on each of the first control device and the second control device.

另外,为了解决上述问题,本发明在中继装置中设置以下的通信接口部和控制部,其中,该中继装置与一方成为工作系装置而进行控制、另一方成为待机系装置的第一控制装置和第二控制装置中的一方连接,并且与连接有发送监视数据的一个或多个设备的第一网络连接,向连接目的地的控制装置传输从所述一个或多个设备发送的监视数据。通信接口部经由中继装置间通信单元而与其它中继装置连接。该其它中继装置与连接有一个或多个设备的第二网络以及第一控制装置和第二控制装置中的另一方连接。控制部例如是CPU(Central Processing Unit:中央处理单元)。该控制部执行以下的中继处理、判定处理以及等值化处理。中继处理是如下的处理:向连接目的地的控制装置传输经由第一网络从一个或多个设备接收到的监视数据。判定处理是如下的处理:判定能否经由中继装置间通信单元来进行通信。而且,等值化处理是如下的处理:在通过判定处理判定为能够通信的情况下,经由中继装置间通信单元来进行用于使该监视数据等值化的通信,另一方面,在判定为不能通信的情况下,经由控制装置间通信单元来进行该用于使该监视数据等值化的通信。在冗余化控制系统中,通过将对控制装置与数据传输路进行连接的中继装置、即图18所示的系统例中的网络装置20A和网络装置20B置换为本发明的中继装置,能够使该现有的冗余化控制系统作为本发明的控制系统而发挥功能。In addition, in order to solve the above-mentioned problems, the present invention provides the following communication interface unit and control unit in the relay device, wherein the relay device and a first control unit that controls one as an active system and the other as a standby system One of the device and the second control device is connected, and is connected to the first network to which one or more devices that transmit monitoring data are connected, and transmits the monitoring data sent from the one or more devices to the control device of the connection destination . The communication interface unit is connected to other relay devices via inter-relay device communication means. The other relay device is connected to the second network to which one or more devices are connected, and the other of the first control device and the second control device. The control unit is, for example, a CPU (Central Processing Unit: Central Processing Unit). This control unit executes the following relay processing, determination processing, and equalization processing. The relay process is a process of transmitting monitoring data received from one or a plurality of devices via the first network to a control device of a connection destination. The judging process is a process of judging whether communication can be performed via the inter-relay device communication unit. Furthermore, the equalization process is a process of performing communication for equalizing the monitoring data via the inter-relay device communication unit when it is determined that the communication is possible by the determination process, and on the other hand, when the determination process is determined When the communication is not possible, the communication for equalizing the monitoring data is performed via the inter-control device communication means. In the redundant control system, by replacing the relay device connecting the control device and the data transmission path, that is, the network device 20A and the network device 20B in the system example shown in FIG. 18, with the relay device of the present invention, This existing redundant control system can be made to function as the control system of this invention.

另外,作为用于解决上述问题的其它方式,可考虑提供使CPU等一般的计算机作为上述中继装置而发挥功能的程序的方式。这是由于,通过使一般的计算机按照这种程序运行,能够使该计算机作为本发明的中继装置而发挥功能。此外,作为上述程序的具体提供方式,可考虑以下方式:通过经由因特网等电通信线路进行下载来分发的方式;写入到CD-ROM(Compact Disk-Read Only Memory:光盘只读存储器)、快闪ROM等计算机能够读取的记录介质中来分发的方式。In addition, as another means for solving the above-mentioned problems, it is conceivable to provide a program that causes a general computer such as a CPU to function as the above-mentioned relay device. This is because, by operating a general computer according to such a program, the computer can be made to function as the relay device of the present invention. In addition, the following methods are conceivable as specific ways of providing the above-mentioned program: a method of distributing by downloading via an electric communication line such as the Internet; writing to a CD-ROM (Compact Disk-Read Only Memory: Compact Disk A method of distributing in a computer-readable recording medium such as a flash ROM.

发明的效果The effect of the invention

如以上所说明的那样,根据本发明,在冗余化控制系统中,即使经由网络传输到各控制装置的监视数据的数据量增加,也能够不对控制装置原本的运算的执行产生任何障碍、且不招致工作系/待机系的切换速度降低而进行监视数据的等值化。As described above, according to the present invention, in the redundant control system, even if the amount of monitoring data transmitted to each control device via the network increases, it is possible to prevent any obstacle to the execution of the original calculation of the control device, and Equalization of monitoring data is performed without incurring a reduction in the switching speed of the active system/standby system.

附图说明Description of drawings

图1是表示包括本发明的中继装置的一例的网络装置200的通信系统1A、即本发明的第一实施方式的通信系统的结构例的图。FIG. 1 is a diagram showing a configuration example of a communication system 1A including a network device 200 as an example of a relay device of the present invention, that is, a communication system according to a first embodiment of the present invention.

图2是表示该通信系统1A所包括的网络装置200的结构例的图。FIG. 2 is a diagram showing a configuration example of a network device 200 included in the communication system 1A.

图3是表示该网络装置200的控制部210按照中继控制程序2542来执行的等值化处理2542b的流程的流程图。FIG. 3 is a flowchart showing the flow of equalization processing 2542 b executed by the control unit 210 of the network device 200 according to the relay control program 2542 .

图4是用于说明该网络装置200的控制部210按照中继控制程序2542来执行的动作的图。FIG. 4 is a diagram for explaining operations executed by the control unit 210 of the network device 200 according to the relay control program 2542 .

图5是用于说明第一实施方式的效果的图。FIG. 5 is a diagram for explaining the effect of the first embodiment.

图6是用于说明第一实施方式的变形例的图。FIG. 6 is a diagram for explaining a modified example of the first embodiment.

图7是用于说明第一实施方式的其它变形例的图。FIG. 7 is a diagram for explaining another modified example of the first embodiment.

图8是表示本发明的第二实施方式的网络装置200′的结构例的图。FIG. 8 is a diagram showing a configuration example of a network device 200' according to the second embodiment of the present invention.

图9是表示包括该网络装置200′的通信系统的概要结构和动作例的图。FIG. 9 is a diagram showing a schematic configuration and an operation example of a communication system including the network device 200'.

图10是用于说明本发明的第三实施方式的图。FIG. 10 is a diagram for explaining a third embodiment of the present invention.

图11是用于说明本发明的第四实施方式的图。FIG. 11 is a diagram for explaining a fourth embodiment of the present invention.

图12是表示该第四实施方式的网络装置200″′的结构例的图。FIG. 12 is a diagram showing a configuration example of a network device 200"' according to the fourth embodiment.

图13是用于说明该网络装置200″′的控制部210按照中继控制程序2542″′来执行的动作的图。FIG. 13 is a diagram for explaining operations executed by the control unit 210 of the network device 200"' in accordance with the relay control program 2542"'.

图14是表示该控制部210按照中继控制程序2542″′来执行的等值化接收处理2542b2的流程的流程图。FIG. 14 is a flowchart showing the flow of equalization reception processing 2542b2 executed by the control unit 210 in accordance with the relay control program 2542'''.

图15是用于说明该第四实施方式的效果的图。FIG. 15 is a diagram for explaining the effects of the fourth embodiment.

图16是用于说明该第四实施方式的效果的图。FIG. 16 is a diagram for explaining the effects of the fourth embodiment.

图17是用于说明该第四实施方式的变形例的图。FIG. 17 is a diagram for explaining a modified example of the fourth embodiment.

图18是表示控制系统的以往例的图。FIG. 18 is a diagram showing a conventional example of a control system.

具体实施方式Detailed ways

下面,参照附图来说明本发明的实施方式。Embodiments of the present invention will be described below with reference to the drawings.

(A:第一实施方式)(A: first embodiment)

图1是表示本发明的第一实施方式的通信系统1A的结构例的图。FIG. 1 is a diagram showing a configuration example of a communication system 1A according to a first embodiment of the present invention.

该通信系统1A与前述图18所示的系统同样地,是布设于工业设施内的控制系统。在图1中,对与图18中的结构要素相同的结构要素标注了相同的标记。若将图1与图18进行对比则明确可知,通信系统1A在以下三个方面与图18所示的以往的冗余化控制系统不同。第一,具有控制装置100A和控制装置100B来代替控制装置10A和控制装置10B。第二,具有网络装置200A和网络装置200B来代替网络装置20A和网络装置20B。然后,第三,网络装置200A与网络装置200B通过等值化线缆400而连接。This communication system 1A is a control system installed in an industrial facility similarly to the system shown in FIG. 18 described above. In FIG. 1 , the same reference signs are assigned to the same constituent elements as those in FIG. 18 . Comparing FIG. 1 with FIG. 18 clearly shows that the communication system 1A is different from the conventional redundant control system shown in FIG. 18 in the following three points. First, a control device 100A and a control device 100B are provided instead of the control device 10A and the control device 10B. Second, a network device 200A and a network device 200B are provided instead of the network device 20A and the network device 20B. Then, thirdly, the network device 200A and the network device 200B are connected through the equalization cable 400 .

网络装置200A和网络装置200B分别是本发明的中继装置的一个实施方式,等值化线缆400起到对该中继装置彼此之间的通信进行居间调解的中继装置间通信单元的作用。网络装置200A及网络装置200B与图18中的网络装置20A、网络装置20B同样地是网关装置。在图1所示的通信系统1A中,从IO从装置S1、S2…Sn分别发送的监视数据经由IO网络30A和网络装置200A被传输到控制装置100A,并且经由IO网络30B和网络装置200B被传输到控制装置100B。控制装置100A及控制装置100B分别与图18中的控制装置10A及控制装置10B同样地,使用从IO从装置S1、S2…Sn收集的监视数据和过去的运算结果来进行运算、即进行用于设备控制的运算,并存储该运算的结果。控制装置100A和控制装置100B既可以是PLC,也可以是DCS。The network device 200A and the network device 200B are each an embodiment of the relay device of the present invention, and the equivalent cable 400 serves as an inter-relay device communication unit that mediates communication between the relay devices. . The network device 200A and the network device 200B are gateway devices similarly to the network device 20A and the network device 20B in FIG. 18 . In the communication system 1A shown in FIG. 1 , the monitoring data respectively sent from the IO slave devices S1, S2...Sn are transmitted to the control device 100A via the IO network 30A and the network device 200A, and are transmitted to the control device 100A via the IO network 30B and the network device 200B. transmitted to the control device 100B. The control device 100A and the control device 100B perform calculations using the monitoring data collected from the IO slave devices S1, S2...Sn and past calculation results, that is, perform calculations for the control device 10A and the control device 10B in FIG. A device-controlled operation that stores the result of that operation. The control device 100A and the control device 100B may be a PLC or a DCS.

在图1所示的通信系统1A中,控制装置100A和控制装置100B中的一方成为工作系装置,基于上述运算结果执行其它设备的控制,另一方成为待机系装置,用于防备工作系装置停止。如前所述,工作系装置的停止包括以下两种:因发生某种故障、不良状况而引起的未预期的停止;以及因保养维护等而进行的预先计划的停止。而且,在工作系装置停止时,原本是待机系装置的控制装置此后作为工作系装置而进行动作。此外,关于工作系与待机系的切换,可以通过与以往的冗余化控制系统相同的方法来实现。In the communication system 1A shown in FIG. 1 , one of the control device 100A and the control device 100B is an operating system device that controls other equipment based on the above calculation results, and the other is a standby system device that prevents the operating system device from stopping. . As mentioned above, the stoppage of work-system devices includes the following two types: unexpected stoppage due to occurrence of certain failures or adverse conditions; and preplanned stoppage due to maintenance and the like. Furthermore, when the work-system device is stopped, the control device that is originally the standby-system device operates as the work-system device thereafter. In addition, switching between the working system and the standby system can be realized by the same method as that of the conventional redundant control system.

如前所述,在进行工作系/待机系的切换时,为了避免运算结果的突变,需要进行监视数据的等值化和运算结果的等值化。在图18所示的以往的冗余化控制系统中,使控制装置10A和控制装置10B进行监视数据的等值化和运算结果的等值化。在本实施方式中,也是由控制装置100A和控制装置100B执行运算结果的等值化,这一点与图18所示的以往的冗余化控制系统相比没有变化。更详细地说明,控制装置100A和控制装置100B中的成为工作系装置的一方使用从连接目的地的网络装置接收到的监视数据来进行用于设备控制的运算,将表示该运算的结果的数据经由等值化线缆40传输到另一方的控制装置,来使运算结果等值化。即,待机系控制装置利用经由等值化线缆40接收到的数据来覆盖本装置中的运算结果的数据。本实施方式的通信系统1A与图18所示的以往的冗余化控制系统的不同之处在于,使网络装置200A和网络装置200B进行监视数据的等值化。下面,以显著呈现本实施方式的特征的网络装置200A和网络装置200B为中心来进行说明。此外,网络装置200A和网络装置200B具有相同的结构,因此下面在无需对两者进行区分的情况下表述为“网络装置200”。As mentioned above, in order to avoid sudden changes in the calculation results when switching between the working system and the standby system, it is necessary to equalize the monitoring data and the calculation results. In the conventional redundant control system shown in FIG. 18, the control device 10A and the control device 10B perform equalization of monitoring data and equalization of calculation results. Also in this embodiment, the equalization of calculation results is performed by the control device 100A and the control device 100B, and this point is not changed from the conventional redundant control system shown in FIG. 18 . Described in more detail, one of the control device 100A and the control device 100B, which is an operating system device, uses monitoring data received from a connected network device to perform calculations for device control, and data representing the results of the calculations The calculation result is equalized by transmitting to the other control device via the equalization cable 40 . That is, the standby system control device overwrites the data of the calculation result in its own device with the data received via the equalization cable 40 . The communication system 1A of the present embodiment differs from the conventional redundant control system shown in FIG. 18 in that the network device 200A and the network device 200B perform equalization of monitoring data. The following description focuses on the network device 200A and the network device 200B that notably exhibit the features of the present embodiment. In addition, since the network device 200A and the network device 200B have the same configuration, they will be described as "network device 200" below when there is no need to distinguish between them.

在本实施方式中,对于网络装置200也有工作系和待机系的区分。更详细地说明,网络装置200与自身的连接目的地的控制装置进行通信,判定连接目的地的控制装置是否为工作系装置。然后,如果连接目的地的控制装置是工作系装置,则网络装置200作为工作系网络装置进行动作,反之,如果连接目的地的控制装置是待机系装置,则网络装置200作为待机系网络装置进行动作。也就是说,在本实施方式中,网络装置200A和网络装置200B中的与工作系控制装置连接的一方成为工作系装置,与待机系控制装置连接的一方成为待机系装置。而且,当发生关于控制装置的工作系/待机系的切换时,附随于该切换,关于网络装置200也切换工作系和待机系。在本实施方式中,说明了使关于网络装置200的工作系/待机系的切换附随于关于控制装置的工作系/待机系的切换的情况,但是也可以是:通过经由等值化线缆400进行的状态数据的发送接收来监视另一方的状态,与关于控制装置的工作系/待机系的切换独立地,根据该状态监视的结果来切换关于网络装置200的工作系/待机系。In this embodiment, the network device 200 is also classified into an active system and a standby system. More specifically, the network device 200 communicates with its own control device at the connection destination, and determines whether the control device at the connection destination is an operating system device. Then, if the control device at the connection destination is an active system device, the network device 200 operates as an active network device, and conversely, if the control device at the connection destination is a standby system device, the network device 200 operates as a standby network device. action. That is, in the present embodiment, one of the network device 200A and the network device 200B that is connected to the operation-system control device is an operation-system device, and one that is connected to the standby-system control device is a standby-system device. Furthermore, when switching between the active system and the standby system of the control device occurs, the network device 200 also switches between the active system and the standby system in connection with the switching. In the present embodiment, the case where switching of the operating system/standby system for the network device 200 is accompanied by switching of the operating system/standby system for the control device is described. The state of the other party is monitored by transmitting and receiving state data, and the operation/standby state of the network device 200 is switched independently of the operation/standby state switching of the control device based on the result of the state monitoring.

图2是表示网络装置200的结构例的框图。FIG. 2 is a block diagram showing a configuration example of the network device 200 .

如图2所示,网络装置200包括控制部210、第一通信接口(以下简记为“I/F”)部220、第二通信I/F部230、第三通信I/F部240、存储部250以及对这些结构要素间的数据交互进行居间调解的总线260。As shown in FIG. 2 , the network device 200 includes a control unit 210, a first communication interface (hereinafter referred to as “I/F”) unit 220, a second communication I/F unit 230, a third communication I/F unit 240, The storage unit 250 and the bus 260 mediate the data exchange between these structural elements.

控制部210例如是CPU。控制部210通过执行存储部250中存储的中继控制程序2542来作为网络装置200的控制中枢而发挥功能。更准确地说明,中继控制程序2542被存储在非易失性存储部254中。非易失性存储部254是构成存储部250的多个结构要素中的一个。在后面明确说明控制部210按照中继控制程序2542来执行的处理的详情。第一通信I/F部220、第二通信I/F部230以及第三通信I/F部240例如分别是NIC(Network Interface Card:网络接口卡)。这些各通信I/F部的作用如下。The control unit 210 is, for example, a CPU. The control unit 210 functions as a control center of the network device 200 by executing the relay control program 2542 stored in the storage unit 250 . More precisely, the relay control program 2542 is stored in the nonvolatile storage unit 254 . The nonvolatile storage unit 254 is one of a plurality of constituent elements constituting the storage unit 250 . The details of the processing executed by the control unit 210 according to the relay control program 2542 will be clearly described later. The first communication I/F unit 220 , the second communication I/F unit 230 , and the third communication I/F unit 240 are, for example, NICs (Network Interface Cards). The roles of these communication I/F units are as follows.

第一通信I/F部220与IO网络连接。更详细地说明,网络装置200A的第一通信I/F部220与IO网络30A连接,网络装置200B的第一通信I/F部220与IO网络30B连接。第一通信I/F部220接收从连接目的地的IO网络发送来的数据以及向连接目的地的IO网络送出数据。第一通信I/F部220具有存储从连接目的地的IO网络接收到的数据的通信缓冲器。在图2中,省略了该通信缓冲器的图示。The first communication I/F unit 220 is connected to the IO network. More specifically, the first communication I/F unit 220 of the network device 200A is connected to the IO network 30A, and the first communication I/F unit 220 of the network device 200B is connected to the IO network 30B. The first communication I/F unit 220 receives data transmitted from the IO network of the connection destination and sends data to the IO network of the connection destination. The first communication I/F unit 220 has a communication buffer that stores data received from the IO network of the connection destination. In FIG. 2 , illustration of this communication buffer is omitted.

第二通信I/F部230经由通信线而与控制装置连接。更详细地说明,网络装置200A的第二通信I/F部230与控制装置100A连接,网络装置200B的第二通信I/F部230与控制装置100B连接。第二通信I/F部230接收从其连接目的地的控制装置发送来的数据以及向连接目的地的控制装置送出数据。第二通信I/F部230具有存储向连接目的地的控制装置发送的数据的通信缓冲器。在图2中,省略了该通信缓冲器的图示。The second communication I/F unit 230 is connected to the control device via a communication line. More specifically, the second communication I/F unit 230 of the network device 200A is connected to the control device 100A, and the second communication I/F unit 230 of the network device 200B is connected to the control device 100B. The second communication I/F unit 230 receives data transmitted from the control device of the connection destination and sends data to the control device of the connection destination. The second communication I/F unit 230 has a communication buffer for storing data to be transmitted to the control device of the connection destination. In FIG. 2 , illustration of this communication buffer is omitted.

第三通信I/F部240具有用于连接等值化线缆的端口,等值化线缆400连接于该端口。第三通信I/F部240经由等值化线缆400而与另一方的网络装置进行用于监视数据的等值化的通信。The third communication I/F unit 240 has a port for connecting an equalization cable, and the equalization cable 400 is connected to this port. The third communication I/F unit 240 communicates with the other network device via the equalization cable 400 for equalization of monitoring data.

如图2所示,存储部250具有易失性存储部252和非易失性存储部254。易失性存储部252例如是RAM(Random Access Memory:随机存取存储器)。易失性存储部252被用作用于执行中继控制程序2542的工作区。另外,易失性存储部252还起到临时存储向控制装置传输的监视数据的监视数据缓冲器2522的作用。并且,易失性存储部252中保存有表示具有该易失性存储部252的网络装置200是作为工作系装置进行动作、还是作为待机系装置进行动作的工作/待机标志。非易失性存储部254例如是快闪ROM。非易失性存储部254中预先保存有中继控制程序2542。As shown in FIG. 2 , the storage unit 250 has a volatile storage unit 252 and a nonvolatile storage unit 254 . The volatile storage unit 252 is, for example, RAM (Random Access Memory: Random Access Memory). The volatile storage section 252 is used as a work area for executing the relay control program 2542 . In addition, the volatile storage unit 252 also functions as a monitoring data buffer 2522 that temporarily stores monitoring data transmitted to the control device. In addition, the volatile storage unit 252 stores an active/standby flag indicating whether the network device 200 having the volatile storage unit 252 is operating as an active system device or as a standby system device. The nonvolatile storage unit 254 is, for example, a flash ROM. The relay control program 2542 is stored in advance in the nonvolatile storage unit 254 .

控制部210以网络装置200的电源的接通或复位为契机来从非易失性存储部254向易失性存储部252读出中继控制程序2542,并开始执行该程序。在图2中,省略了网络装置200的电源的图示。按照中继控制程序2542运行的控制部210除了执行监视连接目的地的控制装置的动作状态并根据该监视的结果来设定工作/待机标志的处理以外,还执行中继处理2542a和等值化处理2542b。关于中继处理2542a和等值化处理2542b的详情在动作例中明确说明,其概要如下。等值化处理2542b是如下的处理:通过经由等值化线缆400的通信来使从IO从装置S1~Sn分别收集到的监视数据等值化。图3是表示等值化处理2542b的流程的流程图。若参照图3则明确可知,等值化处理2542b的处理内容在作为工作系装置进行动作的情况和作为待机系装置进行动作的情况下不同。关于该等值化处理2542b的处理内容的详情在动作例的说明中明确说明。中继处理2542a是如下的处理:将通过等值化处理2542b进行了等值化后的监视数据传输到与第二通信I/F部230连接的控制装置。The control unit 210 reads the relay control program 2542 from the nonvolatile storage unit 254 to the volatile storage unit 252 when the network device 200 is powered on or reset, and starts executing the program. In FIG. 2 , the illustration of the power supply of the network device 200 is omitted. The control unit 210 operating in accordance with the relay control program 2542 executes the relay process 2542a and equalization, in addition to the process of monitoring the operating state of the control device at the connection destination and setting the active/standby flag based on the monitoring result. Process 2542b. The details of the relay processing 2542a and the equalization processing 2542b are clarified in the operation example, and their outlines are as follows. The equalization process 2542 b is a process of equalizing the monitoring data collected from the IO slave devices S1 to Sn by communication via the equalization cable 400 . FIG. 3 is a flowchart showing the flow of the equalization process 2542b. Referring to FIG. 3 , it is clear that the processing content of the equalization process 2542b is different when operating as an active system device and when operating as a standby system device. The details of the processing content of this equalization processing 2542b will be clarified in the description of the operation example. The relay process 2542a is a process of transferring the monitoring data equalized by the equalization process 2542b to the control device connected to the second communication I/F unit 230 .

以上是网络装置200的结构。The above is the configuration of the network device 200 .

接着,参照图3和图4来说明网络装置200的动作。此外,在下面说明的动作例中,设控制装置100A和网络装置200A是工作系装置,控制装置100B和网络装置200B是待机系装置。另外,在下面说明的动作例中,说明在动作开始时间点网络装置200A和网络装置200B各自的监视数据缓冲器2522为空的情况。Next, the operation of the network device 200 will be described with reference to FIGS. 3 and 4 . In addition, in the operation examples described below, it is assumed that the control device 100A and the network device 200A are operating system devices, and the control device 100B and network device 200B are standby system devices. In addition, in the operation examples described below, a case will be described in which the monitoring data buffers 2522 of the network device 200A and the network device 200B are empty at the time of operation start.

IO从装置S1~Sn分别对输入信号或传感器等的输出信号进行采样来生成分别向控制装置100A和控制装置100B发送的监视数据,并分别向IO网络30A和IO网络30B发送该监视数据。IO从装置S1~Sn所发送的监视数据被赋予有标头(header),该标头包含表示该监视数据的发送目的地和发送源的信息以及唯一地表示该监视数据的标识符等。作为表示监视数据的发送目的地的信息的具体例,可列举出发送目的地的设备的通信地址、节点号。关于表示监视数据的发送源的信息也同样。从IO从装置S1~Sn分别发送的监视数据分别经由IO网络30A和IO网络30B而被分别发送到网络装置200A和网络装置200B。下面,将传输到网络装置200A的监视数据称为“监视数据A”,将传输到网络装置200B的监视数据称为“监视数据B”。监视数据A和监视数据B是基本上相同的数据,但是有时由于对各监视数据进行采样时的采样定时的偏离而稍微不同。The IO slave devices S1 to Sn respectively sample input signals or output signals of sensors to generate monitoring data to be sent to the control device 100A and the control device 100B, and send the monitoring data to the IO network 30A and the IO network 30B, respectively. The monitoring data transmitted from the IO slaves S1 to Sn is provided with a header including information indicating the destination and source of the monitoring data, an identifier uniquely indicating the monitoring data, and the like. Specific examples of the information indicating the destination of the monitoring data include the communication address and the node number of the device of the destination. The same applies to the information indicating the source of the monitoring data. The monitoring data transmitted from the IO slave devices S1 to Sn are respectively transmitted to the network device 200A and the network device 200B via the IO network 30A and the IO network 30B, respectively. Hereinafter, the monitoring data transmitted to the network device 200A is referred to as "monitoring data A", and the monitoring data transmitted to the network device 200B is referred to as "monitoring data B". The monitoring data A and the monitoring data B are basically the same data, but may be slightly different due to a deviation in sampling timing when each monitoring data is sampled.

网络装置200A的第一通信I/F部220当接收到从IO网络30A发送来的监视数据时,将所接收到的该监视数据写入到第一通信I/F部220内的通信缓冲器。在网络装置200B中也同样地,从IO网络30B接收到的监视数据被写入到网络装置200B的第一通信I/F部220的通信缓冲器。也就是说,在本动作例中,监视数据A保存于网络装置200A的第一通信I/F部220内的通信缓冲器,监视数据B保存于网络装置200B的第一通信I/F部220内的通信缓冲器。When the first communication I/F unit 220 of the network device 200A receives the monitoring data transmitted from the IO network 30A, it writes the received monitoring data into the communication buffer in the first communication I/F unit 220 . Similarly, in the network device 200B, the monitoring data received from the IO network 30B is written into the communication buffer of the first communication I/F unit 220 of the network device 200B. That is, in this operation example, the monitoring data A is stored in the communication buffer in the first communication I/F unit 220 of the network device 200A, and the monitoring data B is stored in the first communication I/F unit 220 of the network device 200B. within the communication buffer.

网络装置200A的控制部210以监视数据被写入到第一通信I/F部220内的通信缓冲器为契机、换言之以从连接目的地的IO网络30A接收到监视数据为契机,来执行中继处理2542a。如图4所示,在中继处理2542a中,控制部210从第一通信I/F部220内的通信缓冲器读出监视数据(图4的(A):S100),向监视数据缓冲器2522写入该监视数据(图4的(A):S110)。因此,在本动作例中,在网络装置200A的监视数据缓冲器2522中保存监视数据A。在网络装置200B中也同样地执行S100和S110的处理(参照图4的(B)),在监视数据缓冲器2522中保存监视数据B。此外,在向监视数据缓冲器2522写入监视数据时,控制部210对表示是否已等值化的标志设置表示未等值化的第一值,将设置了该第一值的标志赋予给上述监视数据后将该监视数据写入到监视数据缓冲器2522。作为该第一值的具体例,可列举出0。The control unit 210 of the network device 200A is executing when the monitoring data is written into the communication buffer in the first communication I/F unit 220 , in other words, when the monitoring data is received from the IO network 30A of the connection destination. Process 2542a continues. As shown in FIG. 4, in the relay processing 2542a, the control unit 210 reads the monitoring data from the communication buffer in the first communication I/F unit 220 ((A): S100 in FIG. 2522 writes the monitoring data ((A) of FIG. 4 : S110 ). Therefore, in this operation example, the monitoring data A is stored in the monitoring data buffer 2522 of the network device 200A. The processes of S100 and S110 are similarly executed in the network device 200B (see (B) of FIG. 4 ), and the monitoring data B is stored in the monitoring data buffer 2522 . In addition, when writing monitoring data into the monitoring data buffer 2522, the control unit 210 sets a first value indicating that it has not been equalized to the flag indicating whether it has been equalized, and gives the flag with the first value set to the above-mentioned After monitoring the data, the monitoring data is written into the monitoring data buffer 2522 . As a specific example of the first value, 0 is mentioned.

在网络装置200A中,控制部210以被赋予了表示未等值化的标志的监视数据被写入到监视数据缓冲器2522为契机,来执行等值化处理2542b。如图3所示,在等值化处理2542b中,控制部210首先判定本装置是否作为工作系装置进行动作(步骤SA100)。具体地说,控制部210参照易失性存储部252中保存的工作/待机标志,如果该标志的值是表示工作系装置的值,则判定为本装置作为工作系装置进行动作。然后,如果步骤SA100的判定结果为“是”,则控制部210执行步骤SA110的处理,反之,如果步骤SA100的判定结果为“否”,则控制部210执行步骤SA120以后的处理。如前所述,在本动作例中,网络装置200A作为工作系装置进行动作。因此,在网络装置200A的控制部210所执行的等值化处理2542b中,步骤SA100的判定结果为“是”,执行步骤SA110的处理。In the network device 200A, the control unit 210 executes the equalization process 2542 b when the monitoring data to which the flag indicating that the equalization is not performed is written into the monitoring data buffer 2522 . As shown in FIG. 3 , in the equalization process 2542b, the control unit 210 first determines whether or not the own device is operating as a work-system device (step SA100 ). Specifically, the control unit 210 refers to the active/standby flag stored in the volatile storage unit 252 , and if the value of the flag is a value indicating an operating system device, it determines that the own device is operating as an operating system device. Then, if the determination result of step SA100 is "Yes", the control unit 210 executes the processing of step SA110, otherwise, if the determination result of step SA100 is "No", the control unit 210 executes the processing after step SA120. As described above, in this operation example, the network device 200A operates as a work-system device. Therefore, in the equalization process 2542b executed by the control unit 210 of the network device 200A, the determination result of step SA100 is "Yes", and the process of step SA110 is executed.

在步骤SA100的判定结果为“是”的情况下执行的步骤SA110中,控制部210从监视数据缓冲器2522读出被赋予了表示未等值化的标志的监视数据(图4的(A):S120),将该监视数据经由第三通信I/F部240传输到其连接目的地的网络装置(图4的(A):S130)。如前所述,在网络装置200A的监视数据缓冲器2522中,作为被赋予了表示未等值化的标志的监视数据而保存有监视数据A。因此,在本动作例中,经由等值化线缆400从网络装置200A向网络装置200B传输监视数据A。In step SA110 executed when the determination result of step SA100 is "Yes", the control unit 210 reads out the monitor data to which the flag indicating that the equalization is not performed is given from the monitor data buffer 2522 (FIG. 4(A) : S120), and transmit the monitoring data to the network device of the connection destination via the third communication I/F unit 240 ((A) of FIG. 4 : S130). As described above, the monitoring data A is stored in the monitoring data buffer 2522 of the network device 200A as the monitoring data to which the flag indicating that it has not been equalized is added. Therefore, in this operation example, the monitoring data A is transmitted from the network device 200A to the network device 200B via the equalization cable 400 .

在网络装置200B中,控制部210以通过第三通信I/F部240接收到经由等值化线缆400发送来的数据为契机,来执行等值化处理2542b。在网络装置200B的控制部210所执行的等值化处理2542b中也进行前述的步骤SA100的判定。在本动作例中,网络装置200B作为待机系装置进行动作,因此网络装置200B的控制部210所执行的等值化处理2542b的步骤SA100的判定结果为“否”,执行步骤SA120以后的处理。在步骤SA120中,控制部210从第三通信I/F部240获取通过该第三通信I/F部240接收到的监视数据(图4的(B):S140),利用该监视数据来覆盖监视数据缓冲器2522中保存的相应的监视数据(图4的(B):S150),将赋予给该监视数据的标志改写为表示已等值化的第二值。上述相应的监视数据是指发送源与通过图4的(B)的S140所获取到的监视数据相同、且标识符与通过图4的(B)的S140所获取到的监视数据一致的监视数据。另外,作为上述第二值的具体例,可列举出1。由此,网络装置200B的监视数据缓冲器2522中保存的监视数据从监视数据B被更新为监视数据A。In the network device 200B, the control unit 210 executes the equalization process 2542b when the third communication I/F unit 240 receives the data transmitted via the equalization cable 400 as an opportunity. The above-described determination in step SA100 is also performed in the equalization process 2542b executed by the control unit 210 of the network device 200B. In this operation example, network device 200B operates as a standby device, so the determination result of step SA100 in equalization process 2542b executed by control unit 210 of network device 200B is "No", and the processing after step SA120 is executed. In step SA120, the control unit 210 acquires the monitoring data received through the third communication I/F unit 240 from the third communication I/F unit 240 ((B) of FIG. 4 : S140 ), and uses the monitoring data to overwrite For the corresponding monitoring data stored in the monitoring data buffer 2522 ( FIG. 4(B): S150 ), the flag given to the monitoring data is rewritten to a second value indicating that it has been equalized. The above-mentioned corresponding monitoring data refers to the monitoring data whose transmission source is the same as the monitoring data acquired through S140 of (B) in FIG. 4 and whose identifier is consistent with the monitoring data acquired through S140 of (B) in FIG. 4 . Moreover, 1 is mentioned as a specific example of the said 2nd value. As a result, the monitoring data stored in the monitoring data buffer 2522 of the network device 200B is updated from the monitoring data B to the monitoring data A.

网络装置200B的控制部210当按上述的要领完成了监视数据的等值化时,经由等值化线缆400向网络装置200A通知等值化完成(图3:步骤SA130)。网络装置200A的控制部210以接收到上述通知为契机,来将通过图4的(A)的S130所传输的监视数据的标志更新为上述第二值。进行以上的动作的结果是成为以下状态:网络装置200A和网络装置200B各自的监视数据缓冲器2522中保存有监视数据A,该监视数据A被赋予了表示已等值化的标志。When the control unit 210 of the network device 200B completes the equalization of the monitoring data as described above, it notifies the network device 200A of the completion of the equalization via the equalization cable 400 ( FIG. 3 : step SA130 ). The control unit 210 of the network device 200A updates the flag of the monitoring data transmitted in S130 of FIG. 4(A) to the second value when the notification is received. As a result of the above operations, the monitoring data A is stored in the monitoring data buffer 2522 of the network device 200A and the network device 200B, and the monitoring data A is given a flag indicating that it has been equalized.

网络装置200A的控制部210以对监视数据缓冲器2522中保存的监视数据赋予的标志被更新为表示已等值化的值为契机,来再开始中继处理2542a,执行图4的(A)的S160和S170的各处理。在S160的处理中,控制部210从监视数据缓冲器2522读出被赋予了表示已等值化的标志的监视数据。然后,在S170的处理中,控制部210将通过S160读出的监视数据写入到第二通信I/F部230的通信缓冲器。在网络装置200B中,也以发送了等值化完成的通知为契机来再开始中继处理2542a,执行图4的(B)的S160和S170的各处理。The control unit 210 of the network device 200A restarts the relay process 2542a and executes (A) of FIG. Each processing of S160 and S170. In the process of S160 , the control unit 210 reads out the monitor data to which the flag indicating equalization has been given from the monitor data buffer 2522 . Then, in the process of S170 , the control unit 210 writes the monitoring data read in S160 into the communication buffer of the second communication I/F unit 230 . The network device 200B also restarts the relay process 2542a upon transmission of the equalization completion notification, and executes the processes of S160 and S170 in (B) of FIG. 4 .

网络装置200A的第二通信I/F部230向其连接目的地的控制装置发送按上述的要领写入到通信缓冲器的监视数据。网络装置200B的第二通信I/F部230也同样地,向其连接目的地的控制装置发送按上述的要领写入到通信缓冲器的监视数据。因此,在本动作例中,从网络装置200A向控制装置100A发送监视数据A,从网络装置200B向控制装置100B也发送监视数据A。此外,与监视数据的发送接收相比,能够以足够高的速度进行上述通知的发送接收,因此网络装置200A和网络装置200B各自中的上述标志的更新会大致同步地执行,S160和S170的各处理也是大致同步地执行。因此,从网络装置200A向控制装置100A的监视数据A的发送与从网络装置200B向控制装置100B的监视数据A的发送是几乎同步地执行。The second communication I/F unit 230 of the network device 200A transmits the monitoring data written in the communication buffer in the manner described above to the control device of the connection destination. Similarly, the second communication I/F unit 230 of the network device 200B transmits the monitoring data written in the communication buffer in the manner described above to the control device of the connection destination. Therefore, in this operation example, the monitoring data A is transmitted from the network device 200A to the control device 100A, and the monitoring data A is also transmitted from the network device 200B to the control device 100B. In addition, since the notification can be transmitted and received at a sufficiently high speed compared with the transmission and reception of monitoring data, the update of the above-mentioned flags in the network device 200A and the network device 200B are executed substantially synchronously, and each of S160 and S170 Processing is also performed approximately synchronously. Therefore, the transmission of the monitoring data A from the network device 200A to the control device 100A and the transmission of the monitoring data A from the network device 200B to the control device 100B are executed substantially synchronously.

以上是本实施方式的动作。The above is the operation of this embodiment.

在图18所示的以往的冗余化控制系统中,使控制装置、即控制装置10A和控制装置10B进行监视数据的等值化,因此存在如下问题:当监视数据的数据量增加时,与其等值化的量相应地,控制装置的处理负荷变高,从而在原本的运算的高速执行上产生障碍。图5是本实施方式的通信系统1A的概要图。在本实施方式中,虽然运算结果的等值化是由控制装置100A和控制装置100B通过经由图5中的等值化线缆40的通信而执行的,但是监视数据的等值化是由网络装置200A和网络装置200B通过经由图5中的等值化线缆400的通信而执行的。因此,即使因连接在IO网络上的IO从装置增加等而导致向控制装置100A和控制装置100B传输的监视数据的数据量增加,控制装置100A和控制装置100B所承担的处理负荷也不会与其等值化的量相应地变高,在原本的运算的执行上不会产生任何障碍。In the conventional redundant control system shown in FIG. 18, the control devices, that is, the control device 10A and the control device 10B, equalize the monitoring data. Therefore, there is a problem that when the data volume of the monitoring data increases, the The amount of equalization increases the processing load on the control device, which hinders the high-speed execution of original calculations. FIG. 5 is a schematic diagram of a communication system 1A according to this embodiment. In this embodiment, although the equalization of calculation results is performed by the control device 100A and the control device 100B through communication via the equalization cable 40 in FIG. 5 , the equalization of monitoring data is performed by the network The device 200A and the network device 200B are performed by communication via the equalization cable 400 in FIG. 5 . Therefore, even if the amount of monitoring data transmitted to the control device 100A and the control device 100B increases due to an increase in the number of IO slave devices connected to the IO network, etc., the processing load on the control device 100A and the control device 100B will not be as much as it is. The amount of equalization increases accordingly, and there is no obstacle in the execution of the original calculation.

并且,在本实施方式中,经由图5中的通信线LA将已等值化的监视数据从网络装置200A传输到控制装置100A,经由图5中的通信线LB将已等值化的监视数据从网络装置200B传输到控制装置100B。而且,通过经由图5中的等值化线缆40的通信来实现基于监视数据的运算结果的等值化。已等值化的监视数据被传输到控制装置100A和控制装置100B,因此即使在因工作系控制装置停止而进行工作系/待机系的切换的情况下,在控制装置中也无需等待监视数据的等值化完成,而是能够立即进行切换。也就是说,根据本实施方式,也不会招致工作系/待机系的切换速度降低。In addition, in this embodiment, the equalized monitoring data is transmitted from the network device 200A to the control device 100A via the communication line LA in FIG. From the network device 200B to the control device 100B. Furthermore, the equalization of the calculation result based on the monitoring data is realized by communication via the equalization cable 40 in FIG. 5 . Since the equalized monitoring data is transmitted to the control device 100A and the control device 100B, even if the operation system/standby system is switched due to the stop of the operation system control device, there is no need to wait for the monitoring data in the control device. Equalization is done, but can be switched immediately. That is, according to the present embodiment, the switching speed between the active system and the standby system does not decrease.

对以上说明的内容进行总结,根据本实施方式,提供一种控制系统,该控制系统从连接在第一网络和第二网络上的一个或多个设备收集监视数据,基于该监视数据来进行控制,该控制系统的特征在于,具有:第一控制装置和第二控制装置,该第一控制装置和第二控制装置中的一方成为工作系装置而进行控制,另一方成为待机系装置;第一中继装置,其与第一控制装置及第一网络连接;第二中继装置,其与第二控制装置及第二网络连接;控制装置间通信单元,其对第一控制装置与第二控制装置的通信进行居间调解;以及中继装置间通信单元,其对第一中继装置与第二中继装置的通信进行居间调解,其中,第一中继装置和第二中继装置分别向连接目的地的控制装置传输从一个或多个设备接收到的监视数据,并且,经由中继装置间通信单元进行用于使该监视数据等值化的通信,第一控制装置和第二控制装置中的成为工作系装置的一方使用从连接目的地的中继装置接收到的监视数据来进行用于控制的运算,将该运算结果经由控制装置间通信单元传输到成为待机系装置的控制装置来使运算结果等值化。也就是说,在本发明中,第一控制装置和第二控制装置中的成为工作系装置的一方使用从连接目的地的中继装置接收到的监视数据来进行用于控制的运算,将该运算结果经由控制装置间通信单元传输到成为待机系装置的控制装置。因此,在控制装置之间能够仅使不包含监视数据的运算结果等值化。附言之,在本发明的控制装置之间能够仅使运算结果等值化。因此,根据本实施方式,在冗余化控制系统中,即使传输到控制装置的监视数据的数据量增加,也能够不对控制装置原本的运算的执行产生任何障碍、且不招致工作系/待机系的切换速度降低。To summarize the above-mentioned contents, according to this embodiment, a control system is provided, which collects monitoring data from one or more devices connected to the first network and the second network, and performs control based on the monitoring data. , the control system is characterized in that it has: a first control device and a second control device, one of the first control device and the second control device is used as a working device for control, and the other is a standby device; the first A relay device, which is connected to the first control device and the first network; a second relay device, which is connected to the second control device and the second network; a communication unit between control devices, which communicates between the first control device and the second control device The communication of the device is mediated; and the inter-relay device communication unit is used to mediate the communication between the first relay device and the second relay device, wherein the first relay device and the second relay device are respectively connected to the The control device at the destination transmits the monitoring data received from one or more devices, and performs communication for equalizing the monitoring data via the communication unit between relay devices, and the first control device and the second control device One of the operating system devices uses the monitoring data received from the relay device of the connection destination to perform calculations for control, and transmits the calculation results to the control device that is a standby system device via the inter-control device communication unit. The calculation result is equalized. That is, in the present invention, one of the first control device and the second control device that becomes the work-system device uses the monitoring data received from the relay device of the connection destination to perform calculations for control, and the The calculation result is transmitted to the control device serving as the standby system device via the inter-control device communication means. Therefore, only the calculation results that do not include the monitoring data can be equalized between the control devices. Incidentally, only calculation results can be equalized between the control devices of the present invention. Therefore, according to the present embodiment, in the redundant control system, even if the data amount of the monitoring data transmitted to the control device increases, it is possible not to cause any obstacle to the execution of the original calculation of the control device, and not to cause a problem between the active system and the standby system. The switching speed is reduced.

另外,在图18所示的以往的冗余化控制系统中,对工作系装置与待机系装置之间的数据通信进行居间调解的单元仅有作为对控制装置彼此之间的通信进行居间调解的控制装置间通信单元的等值化线缆40,因此当发生等值化线缆40的切断时,无法进行工作系装置与待机系装置的数据通信,连用于相互的状态监视的通信都无法进行。因此,在以往的冗余化控制系统中,存在以下问题:当发生等值化线缆40的切断时,就已经无法进行工作系装置/待机系装置的切换,当进一步发生工作系控制装置发生故障之类的多重故障时,会变得完全无法进行设备的控制。In addition, in the conventional redundant control system shown in FIG. 18, the only unit that mediates the data communication between the active system device and the standby system device is the unit that mediates the communication between the control devices. The equalization cable 40 of the inter-device communication unit is controlled. Therefore, when the equalization cable 40 is cut, the data communication between the active system device and the standby system device cannot be performed, and even the communication for mutual status monitoring cannot be performed. . Therefore, in the conventional redundant control system, there is the following problem: when the equalization cable 40 is cut off, it is already impossible to switch between the active system device and the standby system device. In the event of multiple failures such as failures, it becomes impossible to control the equipment at all.

与此相对,在本实施方式中,对工作系装置与待机系装置之间的数据通信进行居间调解的单元通过等值化线缆40和等值化线缆400而被双重化,因此即使发生等值化线缆40的切断,也不会变得无法进行用于相互的状态监视的通信。例如,即使在等值化线缆40在图6中标记B所示的位置处发生切断的情况下,在本实施方式的控制系统中也能够沿着图6中虚线箭头所示的路径C1来进行状态数据的发送接收。具体地说,可以如下:使控制装置100A执行将表示本装置的状态的状态数据经由通信线LA、网络装置200A、等值化线缆400、网络装置200B以及通信线LB发送到控制装置100B的处理,使控制装置100B执行将表示本装置的状态的状态数据经由通信线LB、网络装置200B、等值化线缆400、网络装置200A以及通信线LA发送到控制装置100A的处理。On the other hand, in this embodiment, the means for mediating data communication between the active system device and the standby system device is doubled by the equalization cable 40 and the equalization cable 400, so even if Even if the equivalent cable 40 is cut, communication for mutual state monitoring will not become impossible. For example, even if the equalization cable 40 is cut at the position indicated by the mark B in FIG. Send and receive status data. Specifically, it is possible to cause the control device 100A to execute the process of transmitting the state data indicating the state of its own device to the control device 100B via the communication line LA, the network device 200A, the equalization cable 400, the network device 200B, and the communication line LB. The processing causes the control device 100B to execute the process of transmitting the state data indicating the state of the own device to the control device 100A via the communication line LB, the network device 200B, the equalization cable 400 , the network device 200A, and the communication line LA.

此外,在以上说明的实施方式中,对一台控制装置连接了一台网络装置,但是也可以如图7所示那样变形为对一台控制装置连接多台网络装置。在图7所示的系统中,对一台控制装置连接有两台网络装置。这是由于,在以往的冗余化控制系统中,当对控制装置连接多个网络装置时,传输到控制装置的监视数据的数据量增加,从而发生在控制装置原本的运算的执行上产生障碍、或者工作系/待机系的切换速度降低等不良状况,但是在本实施方式中,不会发生这种不良状况。In addition, in the embodiment described above, one network device is connected to one control device, but as shown in FIG. 7 , a modification may be made such that a plurality of network devices are connected to one control device. In the system shown in FIG. 7, two network devices are connected to one control device. This is because, in the conventional redundant control system, when a plurality of network devices are connected to the control device, the data volume of the monitoring data transmitted to the control device increases, which causes problems in the execution of the original calculation of the control device. , or a decrease in the switching speed of the active system/standby system, etc., but in this embodiment, such a problem does not occur.

在如图7所示那样对一台控制装置连接多台网络装置200的情况下,也由网络装置200A和网络装置200B通过经由等值化线缆400A的通信来执行通过这些网络装置分别向控制装置100A和控制装置100B传输的监视数据的等值化,由网络装置200C和网络装置200D通过经由等值化线缆400B的通信来执行通过这些网络装置分别向控制装置100A和控制装置100B传输的监视数据的等值化。因此,即使由于对一台控制装置连接多台网络装置而传输到控制装置的监视数据的数据量增加,该控制装置的处理负荷也不会与其等值化的量相应地变高。Even when a plurality of network devices 200 are connected to one control device as shown in FIG. The equalization of the monitoring data transmitted by the device 100A and the control device 100B is performed by the network device 200C and the network device 200D through communication via the equalization cable 400B. Equalization of monitoring data. Therefore, even if the amount of monitoring data transmitted to the control device increases due to the connection of a plurality of network devices to one control device, the processing load on the control device does not increase corresponding to the equivalent value.

(B:第二实施方式)(B: Second Embodiment)

在上述第一实施方式中,说明了使网络装置200A和网络装置200B通过经由等值化线缆400的通信来进行监视数据的等值化的情况。但是,在这种方式中存在以下问题:当发生等值化线缆400的切断时,变得无法进行监视数据的等值化。本实施方式的网络装置200A′和网络装置200B′以解决该问题为目的。本实施方式的网络装置200A′和网络装置200B′判定是否能够经由等值化线缆400来进行数据通信,在得到能够进行数据通信这样的判定结果的情况下通过经由等值化线缆400的数据通信来进行监视数据的等值化。与此相对,在得到不能进行数据通信这样的判定结果的情况下,网络装置200A′和网络装置200B′通过经由控制装置100A、等值化线缆40以及控制装置100B的通信来进行监视数据的等值化。下面,在无需对网络装置200A′和网络装置200B′进行区分的情况下,表述为“网络装置200′”。In the first embodiment described above, a case was described in which the network device 200A and the network device 200B perform equalization of monitoring data by communication through the equalization cable 400 . However, this method has a problem that, when the equalization cable 400 is cut, the monitoring data cannot be equalized. The network device 200A' and the network device 200B' of this embodiment aim to solve this problem. The network device 200A' and the network device 200B' of this embodiment determine whether data communication is possible via the equalization cable 400, and when the determination result that data communication is possible is obtained, the network device 200B' through the equalization cable 400 Equalization of monitoring data through data communication. On the other hand, when the determination result that data communication is not possible is obtained, the network device 200A' and the network device 200B' perform monitoring data communication through the communication via the control device 100A, the equalization cable 40, and the control device 100B. Equalization. Hereinafter, when it is not necessary to distinguish between the network device 200A' and the network device 200B', it is expressed as "the network device 200'".

图8是表示网络装置200′的结构例的图。若将图8与图2进行对比则明确可知,网络装置200′的结构在如下方面与网络装置200的结构不同:中继控制程序2542′取代中继控制程序2542而被存储在非易失性存储部254中。中继控制程序2542′是使控制部210执行中继处理2542a、等值化处理2542b′以及判定处理2542c的程序。判定处理2542c是如下的处理:判定能否经由中继装置间通信单元、即等值化线缆400来进行通信。等值化处理2542b′是如下的处理:在通过判定处理2542c判定为能够通信的情况下,经由中继装置间通信单元进行用于使监视数据等值化的通信,另一方面,在判定为不能通信的情况下,经由控制装置间通信单元、即等值化线缆40进行该通信。也就是说,按照中继控制程序2542′运行的控制部210作为执行中继处理2542a的中继单元、执行判定处理2542c的判定单元以及执行等值化处理2542b′的等值化单元而发挥功能。FIG. 8 is a diagram showing a configuration example of a network device 200'. Comparing FIG. 8 with FIG. 2, it can be clearly seen that the structure of the network device 200' is different from that of the network device 200 in the following respects: instead of the relay control program 2542, the relay control program 2542' is stored in the non-volatile in the storage unit 254 . The relay control program 2542' is a program that causes the control unit 210 to execute the relay processing 2542a, the equalization processing 2542b', and the determination processing 2542c. The judgment process 2542c is a process of judging whether communication can be performed via the equalized cable 400 which is the inter-relay device communication unit. The equalization process 2542b' is a process of performing communication for equalizing monitoring data via the inter-relay device communication means when it is determined that the communication is possible in the determination process 2542c, and on the other hand, when it is determined that the communication is possible. If the communication is not possible, the communication is performed via the equalization cable 40 which is the communication means between control devices. That is, the control unit 210 that operates in accordance with the relay control program 2542' functions as a relay unit that executes the relay process 2542a, a judgment unit that executes the judgment process 2542c, and an equalization unit that executes the equalization process 2542b'. .

图9是表示包括网络装置200′的控制系统的概要结构和动作例的图。此外,在图9中,网络装置被简记为“NW装置”。另外,在图9中,为了使本实施方式的特征明确,明确示出网络装置200′具有判定单元这一点。如果等值化线缆400在图9中标记B所示的位置处发生断线,则网络装置200A′与网络装置200B′变得无法进行经由等值化线缆400的通信。在该情况下,网络装置200A′与网络装置200B′进行沿着图9中虚线箭头所示的通信路径C2的数据通信,进行监视数据的等值化。更详细地说明,网络装置200A′将从IO网络30A接收到的监视数据沿着按顺序经由通信线LA、控制装置100A、等值化线缆40、控制装置100B以及通信线LB的传输路径发送到网络装置200B′。网络装置200B′接收上述监视数据,利用该监视数据来覆盖本装置的相应的监视数据,并返送等值化完成通知。这样从网络装置200B′返送的等值化完成通知按顺序经过通信线LB、控制装置100B、等值化线缆40、控制装置100A以及通信线LA后被传输到网络装置200A′,监视数据的等值化完成。FIG. 9 is a diagram showing a schematic configuration and an operation example of a control system including the network device 200'. In addition, in FIG. 9, a network device is abbreviated as "NW device". In addition, in FIG. 9 , in order to clarify the characteristics of this embodiment, it is clearly shown that the network device 200 ′ has a determination unit. If the equalization cable 400 is disconnected at the position indicated by the mark B in FIG. 9 , the network device 200A′ and the network device 200B′ cannot communicate via the equalization cable 400 . In this case, the network device 200A' and the network device 200B' perform data communication along the communication path C2 indicated by the dotted arrow in FIG. 9 to perform equalization of the monitoring data. In more detail, the network device 200A' transmits the monitoring data received from the IO network 30A along a transmission path sequentially passing through the communication line LA, the control device 100A, the equalization cable 40, the control device 100B, and the communication line LB. to network device 200B'. The network device 200B' receives the above-mentioned monitoring data, overwrites the corresponding monitoring data of its own device with the monitoring data, and sends back an equalization completion notice. In this way, the equalization completion notification sent back from the network device 200B' passes through the communication line LB, the control device 100B, the equalization cable 40, the control device 100A, and the communication line LA in order, and then is transmitted to the network device 200A', and the monitoring data Equalization is complete.

在本实施方式中,控制装置100A和控制装置100B仅仅作为对用于等值化的数据通信进行居间调解的数据传输路而发挥功能,因此与以往的冗余化控制系统中的情况相比,能够减轻这些控制装置所承担的处理负荷。作为上述判定处理2542c的具体例,可列举出以下处理:经由等值化线缆400向对方装置发送ping,如果在规定时间内有应答则判定为能够通信,如果没有应答则判定为不能通信。此外,也可以是,关于控制装置100A与控制装置100B之间的状态数据的发送接收,也根据能否经由等值化线缆40进行数据通信来切换传输路径。具体地说,也可以使控制装置100A和控制装置100B分别执行以下处理:如果能够经由等值化线缆40进行数据通信,则经由等值化线缆40向另一方的控制装置发送状态数据,如果不能经由等值化线缆40进行数据通信则经由等值化线缆400向另一方的控制装置发送状态数据。In the present embodiment, the control device 100A and the control device 100B function only as a data transmission path mediating data communication for equalization. Therefore, compared with the conventional redundant control system, The processing load imposed on these control devices can be reduced. As a specific example of the determination process 2542c described above, the process of sending a ping to the counterparty device via the equalization cable 400, determining that communication is possible if there is a response within a predetermined time, and determining that communication is not possible if there is no response. In addition, regarding the transmission and reception of status data between the control device 100A and the control device 100B, the transmission path may be switched depending on whether data communication is possible via the equalization cable 40 . Specifically, the control device 100A and the control device 100B may respectively execute the following process: if the data communication via the equalization cable 40 is possible, the state data is transmitted to the other control device through the equalization cable 40 , If data communication cannot be performed via the equalization cable 40 , the status data is transmitted to the other control device through the equalization cable 400 .

也可以是以下方式:关于是经由等值化线缆400进行用于监视数据的等值化的数据通信、还是经由等值化线缆40进行用于监视数据的等值化的数据通信的切换,不是根据能否经由等值化线缆400进行数据通信来进行切换,而是根据控制装置的处理负荷来进行切换。例如,也可以使工作系和待机系的各网络装置的控制部执行以下处理:使网络装置200′测量其连接目的地的控制装置的处理负荷,在所测量出的处理负荷小于规定的阈值的情况下,通过经由工作系和待机系的各控制装置以及等值化线缆40的数据通信来进行监视数据的等值化,在控制装置的处理负荷为规定的阈值以上的情况下,通过经由等值化线缆400的数据通信来进行监视数据的等值化。在此,作为控制装置的处理负荷的具体测量方法,可考虑以下方式:使网络装置200执行从连接目的地的控制装置获取表示控制装置中的CPU使用率、存储器使用率等的数据的处理。并且,也可以同时使用经由等值化线缆400的数据通信的可能与否以及控制装置的处理负荷来切换监视数据的传输路径。具体地说,可以如下:在控制装置的处理负荷为规定的阈值以上、且判定为能够经由等值化线缆400进行通信的情况下,通过经由等值化线缆400的通信来进行监视数据的等值化,在其它情况下、即控制装置的处理负荷小于规定的阈值的情况或者虽然处理负荷为规定的阈值以上、但是不能经由等值化线缆400进行通信的情况下,通过经由等值化线缆40的通信来进行监视数据的等值化。It is also possible to switch between performing data communication for equalizing monitoring data via the equalizing cable 400 and performing data communication for equalizing monitoring data via the equalizing cable 40 . , switching is performed not based on whether or not data communication can be performed via the equalization cable 400, but based on the processing load of the control device. For example, the control units of the network devices of the active system and the standby system may execute a process of causing the network device 200' to measure the processing load of the control device of the connection destination, and when the measured processing load is smaller than a predetermined threshold In this case, the monitoring data is equalized by data communication via each control device of the active system and the standby system and the equalization cable 40, and when the processing load of the control device is equal to or greater than a predetermined threshold value, by The data communication of the equalization cable 400 is equivalent to the monitoring data. Here, as a specific method of measuring the processing load of the control device, it is conceivable that the network device 200 executes a process of acquiring data indicating the CPU usage rate, memory usage rate, etc. of the control device from the control device of the connection destination. Furthermore, the possibility of data communication via the equalization cable 400 and the processing load of the control device may be used simultaneously to switch the transmission path of the monitoring data. Specifically, when the processing load of the control device is equal to or greater than a predetermined threshold and it is determined that communication via the equalization cable 400 is possible, the monitoring data may be performed through communication through the equalization cable 400 . In other cases, that is, when the processing load of the control device is less than a predetermined threshold or when the processing load is above a predetermined threshold but communication cannot be performed via the equalization cable 400, the Equalization of the monitoring data is performed through the communication of the quantization cable 40 .

另外,还可考虑:针对作为监视数据的发送源的每个IO从装置,预先决定关于是在控制装置侧进行监视数据的等值化、还是在中继装置侧、即网络装置侧进行监视数据的等值化的分配模式,将与监视数据的等值化有关的处理负荷分散在控制装置与网络装置之间。例如是以下情况:对于从IO从装置S1发送的监视数据,在控制装置侧进行等值化,对于从IO从装置S2发送的监视数据,在网络装置侧进行等值化。对此,可以如下:使控制装置100A和100B以及网络装置200A′和200B′预先存储分配模式表,在该分配模式表中,与各IO从装置的通信地址相对应地保存有表示在控制装置侧和网络装置侧中的哪一侧进行监视数据的等值化的标志。然后,使网络装置200A′和200B′对在该分配表中决定了在中继装置侧进行等值化的监视数据进行等值化,使控制装置100A和100B对在该分配表中被决定为在控制装置侧进行等值化的监视数据进行等值化。另外,也可以根据控制装置的处理负荷来准备多个上述分配表,设为如下的保存内容:越是与高的处理负荷对应的表,则在中继装置侧进行等值化的监视数据越多。In addition, it is also conceivable to decide in advance whether to equalize the monitoring data on the control device side or to perform monitoring data on the relay device side, that is, the network device side, for each IO slave device that is the source of the monitoring data. The equalization distribution mode distributes the processing load related to the equalization of monitoring data between the control device and the network device. For example, the monitoring data transmitted from the IO slave device S1 is equalized on the control device side, and the monitoring data transmitted from the IO slave device S2 is valued on the network device side. In this regard, it may be as follows: the control devices 100A and 100B and the network devices 200A' and 200B' store an allocation pattern table in advance. A flag indicating which of the network device side and the network device side performs equalization of the monitoring data. Then, the network devices 200A' and 200B' perform equalization on the monitoring data determined to be equalized on the relay device side in the distribution table, and the control devices 100A and 100B make the pair determined as The monitor data that is equalized on the controller side is equalized. In addition, a plurality of the above-mentioned allocation tables may be prepared according to the processing load of the control device, and the storage content may be such that the higher the processing load is, the more the monitoring data to be equivalentized on the relay device side is. many.

(C:第三实施方式)(C: third embodiment)

图10是表示本发明的第三实施方式的通信系统1C的结构例的图。FIG. 10 is a diagram showing a configuration example of a communication system 1C according to a third embodiment of the present invention.

该通信系统1C也是布设于工业设施内的控制系统。在图10中,对与图1中的要素相同的要素标注了相同的标记。若将图10与图1进行对比则明确可知,通信系统1C在以下三个方面与通信系统1A不同。第一,设置有控制装置100A′和控制装置100B′来代替控制装置100A和控制装置100B。第二,设置有网络装置200A″和网络装置200B″来代替网络装置200A和网络装置200B。然后,第三,在网络装置200A″上连接有IO网络30C。This communication system 1C is also a control system installed in industrial facilities. In FIG. 10 , the same elements as those in FIG. 1 are assigned the same symbols. Comparing FIG. 10 with FIG. 1 clearly shows that the communication system 1C is different from the communication system 1A in the following three points. First, a control device 100A' and a control device 100B' are provided instead of the control device 100A and the control device 100B. Second, a network device 200A" and a network device 200B" are provided instead of the network device 200A and the network device 200B. Then, thirdly, the IO network 30C is connected to the network device 200A".

在IO网络30C上连接有IO从装置S1′~Sn′。IO网络30C对IO从装置S1′~Sn′与网络装置200A″之间的数据通信进行居间调解。如前所述,向控制装置传输从IO从装置S1~Sn发送的数据的网络通过IO网络30A和IO网络30B而被双重化,但是对于向控制装置传输从IO从装置S1′~Sn′发送的数据的网络未被实施这种双重化。也就是说,网络装置200A″与双重化的网络及未双重化的网络连接。下面,将未双重化的网络称为“单网络(single network)”。IO slave devices S1' to Sn' are connected to the IO network 30C. The IO network 30C mediates the data communication between the IO slave devices S1'~Sn' and the network device 200A". As described above, the network that transmits the data sent from the IO slave devices S1~Sn to the control device passes through the IO network 30A and the IO network 30B, but this duplication is not implemented for the network that transmits the data sent from the IO slave devices S1'~Sn' to the control device. That is to say, the network device 200A" and the dualized network and unduplicated network connections. Hereinafter, a network that is not duplexed will be referred to as a "single network".

网络装置200A″与第一实施方式中的网络装置200A同样地对IO网络30A与控制装置100A′之间的数据通信进行中继。网络装置200B″也与第一实施方式中的网络装置200B同样地对IO网络30B与控制装置100B′之间的数据通信进行中继。另外,网络装置200A″及网络装置200B″与第二实施方式中的网络装置200A′及网络装置200B′同样地,通过经由等值化线缆400的数据通信来进行监视数据的等值化。但是,网络装置200A″和网络装置200B″在以下方面与网络装置200不同:与连接目的地的控制装置是工作系装置还是待机系装置无关地,通过相互的状态监视来进行工作系/待机系的切换。The network device 200A" relays the data communication between the IO network 30A and the control device 100A' similarly to the network device 200A in the first embodiment. The network device 200B" is also the same as the network device 200B in the first embodiment. The ground relays the data communication between the IO network 30B and the control device 100B'. In addition, the network device 200A" and the network device 200B" perform equalization of monitoring data by data communication via the equalization cable 400 similarly to the network device 200A' and the network device 200B' in the second embodiment. However, the network device 200A" and the network device 200B" are different from the network device 200 in that regardless of whether the control device of the connection destination is an active system device or a standby system device, the operation system/standby system is performed by mutual status monitoring. switch.

除此以外,网络装置200A″和网络装置200B″对从IO网络30C接收到的监视数据也进行与上述等值化相同的处理。即,网络装置200A″的控制部经由等值化线缆400向网络装置200B″发送从IO网络30C接收到的监视数据,网络装置200B″的控制部将该监视数据写入到监视数据缓冲器。然后,网络装置200A″和网络装置200B″分别向各自的连接目的地的控制装置发送从IO网络30C发送来的监视数据。In addition to this, the network device 200A" and the network device 200B" also perform the same processing as the above-mentioned equalization with respect to the monitoring data received from 30 C of IO networks. That is, the control unit of the network device 200A″ transmits the monitoring data received from the IO network 30C to the network device 200B″ via the equalization cable 400, and the control unit of the network device 200B″ writes the monitoring data into the monitoring data buffer Then, the network device 200A" and the network device 200B" transmit the monitoring data transmitted from the IO network 30C to the control devices of the respective connection destinations.

控制装置100A′和控制装置100B′以接收到从IO从装置S1~Sn发送的数据为契机,来执行使用该数据进行的第一运算以及与该第一运算的运算结果相应的设备控制。除此以外,工作系控制装置以接收到从IO从装置S1′~Sn′发送的数据为契机,来执行使用该数据进行的第二运算。也就是说,本实施方式中的工作系控制装置兼具从IO从装置S1~Sn收集数据来进行第一运算的作用以及从IO从装置S1′~Sn′收集数据来进行第二运算的作用。The control device 100A' and the control device 100B' execute the first calculation using the data and the device control according to the calculation result of the first calculation when receiving the data transmitted from the IO slaves S1 to Sn. In addition, the work system control device executes the second calculation using the data when it receives the data transmitted from the IO slave devices S1' to Sn'. That is to say, the work system control device in this embodiment has both the function of collecting data from the IO slave devices S1-Sn to perform the first calculation and the function of collecting data from the IO slave devices S1'-Sn' to perform the second calculation. .

如果能够使在冗余化控制系统中经由双重化的网络从IO从装置收集数据并进行某种运算的控制装置兼具经由单网络收集数据并执行其它运算的作用,则无需将双重化网络用的系统和单网络用的系统分别独立地构建,可期待能够降低系统的开发运营成本,但是在以往的冗余化控制系统中难以响应这种期待。其理由如下。If in the redundant control system, the control device that collects data from the IO slave device and performs certain calculations through the dual network can also be used to collect data and perform other calculations through the single network, then there is no need to use the dual network The system and the system for single network are constructed independently, and it is expected to reduce the development and operation cost of the system, but it is difficult to meet this expectation in the conventional redundant control system. The reason for this is as follows.

例如,设仅在图18中的网络装置20A上连接了单网络。在该情况下,从网络装置20A向控制装置10A提供从单网络接收到的数据以及从双重化的网络接收到的数据,另一方面,从网络装置20B向控制装置10B仅提供从双重化的网络接收到的数据。当提供到控制装置10A和控制装置10B的数据存在不一致时,在冗余化控制系统中有时还会判定为错误,在这种系统中,原本就无法采用如上所述的连接方式。For example, assume that only a single network is connected to the network device 20A in FIG. 18 . In this case, the data received from the single network and the data received from the dualized network are provided from the network device 20A to the control device 10A, while the network device 20B is provided only from the dualized network to the control device 10B. data received by the network. When the data supplied to the control device 10A and the control device 10B are inconsistency, it may be judged as an error in a redundant control system, and in such a system, the connection method as described above cannot be used originally.

另外,即使在如上所述的不一致不会被判定为错误的情况下,也存在如下问题:当在如上所述的连接方式中由于工作系控制装置的故障等而发生工作系/待机系的切换时,来自单网络的接收数据不会被提供到切换后的工作系控制装置,从而无法继续收集从单网络发送来的数据以及无法继续进行使用该数据的运算。也就是说,即使能够对以往的冗余化控制系统所包括的双重化的控制装置的一方提供经由单网络的数据来使其进行规定的运算,也无法保证运算的稳定执行。In addition, even when the above-mentioned inconsistency is not judged as an error, there is a problem that when switching between the working system and the standby system occurs due to a failure of the working system control device or the like in the connection system as described above, At this time, the received data from the single network will not be provided to the switched operation system control device, so that the data sent from the single network cannot be continuously collected and the calculation using the data cannot be continued. That is, even if data via a single network can be supplied to one of the dualized control devices included in the conventional redundant control system to perform predetermined calculations, stable execution of the calculations cannot be guaranteed.

与此相对,根据本实施方式,即使发生关于控制装置的工作系/待机系的切换,也会继续向切换后的工作系控制装置提供从单网络接收到的监视数据,从而能够毫无问题地继续收集该监视数据以及使用该数据来进行运算。例如,即使在图10所示的通信系统1C中工作系装置从控制装置100A′切换为控制装置100B′,网络装置200A″依然是工作系中继装置,网络装置200B″依然是待机系中继装置。因此,从IO从装置S1′~Sn′分别发送的监视数据按IO网络30C→网络装置200A″→等值化线缆400→网络装置200B″→控制装置100B′这样的情形传输到控制装置100B′。也就是说,根据本实施方式,能够使在冗余化控制系统中经由双重化的网络从IO从装置收集数据并进行某种运算的控制装置兼具经由单网络收集数据并执行其它运算的作用,与将双重化网络用的系统和单网络用的系统分别独立地构建的情况相比,能够降低系统的开发运营成本。此外,在使关于网络装置的工作系/待机系的切换附随于关于控制装置的工作系/待机系的切换的情况下,只要使与单网络连接的网络装置执行以下的处理即可:不管该网络装置是否为工作系装置,都将经由该单网络接收到的监视数据经由中继装置间通信单元或控制装置间通信单元传输到另一方的网络装置,使其进行该监视数据的等值化。On the other hand, according to the present embodiment, even if the control device is switched between the active system and the standby system, the monitoring data received from the single network will continue to be provided to the switched active system control device, so that it can be performed without problems. Continue to collect this monitoring data and use this data to perform calculations. For example, even if the active-system device is switched from the control device 100A' to the control device 100B' in the communication system 1C shown in FIG. device. Therefore, the monitoring data sent from the IO slave devices S1' to Sn' are transmitted to the control device 100B in the following manner: IO network 30C→network device 200A″→equalized cable 400→network device 200B″→control device 100B′ '. That is to say, according to this embodiment, in the redundant control system, the control device that collects data from the IO slave device via the duplexed network and performs certain calculations can also perform the role of collecting data via the single network and performing other calculations. Therefore, it is possible to reduce the development and operation cost of the system compared to the case where the system for the dual network and the system for the single network are separately constructed. In addition, in the case where switching of the active system/standby system for the network device is accompanied by switching of the active system/standby system for the control device, it is only necessary to make the network device connected to a single network execute the following process: regardless of the Regardless of whether the network device is an operating system device, the monitoring data received via the single network is transmitted to the other network device through the communication unit between relay devices or the communication unit between control devices, so that the monitoring data can be equivalent .

(D:第四实施方式)(D: fourth embodiment)

图11是表示本发明的第四实施方式的通信系统1D的结构例的图。FIG. 11 is a diagram showing a configuration example of a communication system 1D according to a fourth embodiment of the present invention.

该通信系统1D也是布设于工业设施内的控制系统。在图11中,对与图1中的要素相同的要素标注了相同的标记。在图11中图示了IO从装置S1~S3与IO网络30A及30B连接的详细连接方式,这一点与图1不同。如图11所示,IO从装置Sn(n=1~3)分别经由IO主机MAn而与IO网络30A连接,并分别经由IO主机MBn而与IO网络30B连接。此外,在图11中,IO主机被简记为“IOM”。IO主机MAn将IO从装置Sn所输出的监视数据送出到IO网络30A。IO主机MBn将IO从装置Sn所输出的监视数据送出到IO网络30B。此外,在图1中,省略了IO从装置S1~Sn的详细连接方式的图示,其与图11中的方式相同。This communication system 1D is also a control system installed in industrial facilities. In FIG. 11 , the same elements as those in FIG. 1 are assigned the same symbols. FIG. 11 is different from FIG. 1 in that the detailed connection form of the IO slaves S1 to S3 is connected to the IO networks 30A and 30B. As shown in FIG. 11 , the IO slaves Sn (n=1 to 3) are connected to the IO network 30A via the IO master MAn, and are connected to the IO network 30B via the IO master MBn. In addition, in FIG. 11, the IO master is abbreviated as "IOM". The IO master MAn sends the monitoring data output from the IO slave device Sn to the IO network 30A. The IO master MBn sends the monitoring data output from the IO slave device Sn to the IO network 30B. In addition, in FIG. 1 , the illustration of the detailed connection manner of the IO slave devices S1 to Sn is omitted, which is the same as that in FIG. 11 .

若将图11与图1进行对比则明确可知,通信系统1D在如下方面与第一实施方式的通信系统1A不同:设置有网络装置200A″′和网络装置200B″′来代替网络装置200A和网络装置200B。本实施方式的网络装置200A″′和网络装置200B″′也是,一方作为工作系装置进行动作,另一方作为待机系装置进行动作。在本实施方式中,与前述的第一实施方式同样地,网络装置200A″′和网络装置200B″′中的与工作系控制装置100连接的一方作为工作系装置进行动作。下面,与关于第一实施方式的说明同样地,在无需对网络装置200A″′和网络装置200B″′进行区分的情况下,表述为“网络装置200″′”。Comparing FIG. 11 with FIG. 1 clearly shows that the communication system 1D differs from the communication system 1A of the first embodiment in that a network device 200A"' and a network device 200B"' are provided instead of the network device 200A and the network device 200A. Device 200B. Also in the network device 200A"' and the network device 200B"' of this embodiment, one operates as an active system device, and the other operates as a standby system device. In the present embodiment, one of the network device 200A"' and the network device 200B"' connected to the work-system control device 100 operates as a work-system device similarly to the aforementioned first embodiment. Hereinafter, similarly to the description of the first embodiment, when it is not necessary to distinguish between the network device 200A"' and the network device 200B"', it will be described as "the network device 200"'".

在图18所示的以往的冗余化控制系统中,在工作系控制装置发生了某种故障的情况下当然需要进行工作系/待机系的切换,在经由网络装置而与工作系控制装置连接的IO网络、将IO从装置连接到该IO网络的IO主机发生了某种故障的情况下也需要进行工作系/待机系的切换。这是由于,如果上述IO网络、IO主机发生故障,则经由该IO网络或IO主机的监视数据无法到达工作系控制装置。与此相对,在本实施方式中,构成为:通过使网络装置200″′执行本实施方式特有的处理,即使上述IO网络、IO主机发生某种故障,也无需进行工作系/待机系的切换就能够继续进行控制对象装置的控制,本实施方式的特征即在于这一点。下面,说明显著呈现本实施方式的特征的网络装置200″′。In the conventional redundant control system shown in FIG. 18 , it is of course necessary to switch between the active system and the standby system when some kind of failure occurs in the active system control device. In the case of some kind of failure of the IO network of the IO network and the IO master connecting the IO slave device to the IO network, it is also necessary to switch between the working system and the standby system. This is because, if the above-mentioned IO network or IO master fails, monitoring data via the IO network or IO master cannot reach the work system control device. On the other hand, in this embodiment, by making the network device 200"' execute the processing unique to this embodiment, even if some kind of failure occurs in the IO network or the IO master, it is not necessary to switch between the active system and the standby system. This is the feature of this embodiment. The network device 200"' that notably exhibits the features of this embodiment will be described below.

图12是表示网络装置200″′的结构例的图。在图12中,对与图2中的结构要素相同的结构要素标注了相同的标记。若将图12与图2进行对比则明确可知,网络装置200″′的结构在如下方面与网络装置200的结构不同:中继控制程序2542″′取代中继控制程序2542而被存储在非易失性存储部254中。中继控制程序2542″′在如下方面与第一实施方式的中继控制程序2542不同:使控制部210执行等值化发送处理2542b1和等值化接收处理2542b2来代替等值化处理2542b。Fig. 12 is a diagram showing a configuration example of the network device 200 "'. In Fig. 12, the same constituent elements as those in Fig. 2 are given the same symbols. Comparing Fig. 12 with Fig. 2, it is clear that , the structure of the network device 200"' is different from that of the network device 200 in that the relay control program 2542"' is stored in the nonvolatile storage unit 254 instead of the relay control program 2542. The relay control program 2542 "' is different from the relay control program 2542 of the first embodiment in that the control unit 210 executes the equalization transmission process 2542b1 and the equalization reception process 2542b2 instead of the equalization process 2542b.

网络装置200″′的控制部210以网络装置200″′的电源(省略图示)的接通或复位为契机来从非易失性存储部254向易失性存储部252读出中继控制程序2542″′,并开始执行该程序。图13是用于说明网络装置200″′的控制部210按照中继控制程序2542″′来执行的动作的图。在图13中,对与图4中的处理相同的处理标注了相同的标记。按照中继控制程序2542″′运行的控制部210与前述的第一实施方式中的控制部210同样地,以监视数据被写入到第一通信I/F部220内的通信缓冲器为契机、即以从连接目的地的IO网络30接收到监视数据为契机,来执行中继处理2542a。如前所述,在中继处理2542a中,控制部210从第一通信I/F部220内的通信缓冲器读出监视数据(图13:S100),向监视数据缓冲器2522写入该监视数据(图13:S110)。此外,在向监视数据缓冲器2522写入监视数据时,赋予被设置了表示未等值化的第一值的标志后,将该监视数据写入到监视数据缓冲器2522,这一点也与第一实施方式相同。The control unit 210 of the network device 200"' reads the relay control information from the nonvolatile storage unit 254 to the volatile storage unit 252 when the power supply (not shown) of the network device 200"' is turned on or reset. program 2542"', and start to execute the program. FIG. 13 is a diagram for explaining the operation performed by the control unit 210 of the network device 200"' according to the relay control program 2542"'. In FIG. 13, the The same processing in the same process is marked with the same symbol. The control unit 210 that operates according to the relay control program 2542"' is the same as the control unit 210 in the first embodiment described above, so that the monitoring data is written to the first communication The communication buffer in the I/F unit 220 executes the relay process 2542a when the monitoring data is received from the connected IO network 30 as a trigger. As mentioned above, in the relay processing 2542a, the control unit 210 reads the monitoring data from the communication buffer in the first communication I/F unit 220 (FIG. 13: S100), and writes the monitoring data into the monitoring data buffer 2522. data (FIG. 13: S110). In addition, when writing the monitor data into the monitor data buffer 2522, the point that the monitor data is written into the monitor data buffer 2522 after the flag to which the first value is not equalized is set is set, which is also the same as the first One embodiment is the same.

若将图13与图4进行对比则明确可知,等值化发送处理2542b1与等值化接收处理2542b2的组合对应于等值化处理2542b。第一实施方式中的等值化处理2542b的执行契机在工作系网络装置和待机系网络装置中不同。例如,在工作系装置中,以被赋予了表示未等值化的标志的监视数据被写入到监视数据缓冲器2522为契机来执行等值化处理2542b,在待机系装置中,以经由等值化线缆400接收到监视数据为契机来执行等值化处理2542b。与此相对,等值化发送处理2542b1的执行契机在工作系网络装置和待机系网络装置中没有不同,等值化接收处理2542b2的执行契机也没有不同。Comparing FIG. 13 with FIG. 4 , it is clear that the combination of the equalization transmission process 2542b1 and the equalization reception process 2542b2 corresponds to the equalization process 2542b. The execution timing of the equalization process 2542b in the first embodiment differs between the active network device and the standby network device. For example, in the operating system, the equalization process 2542b is executed when the monitor data to which the flag indicating that the value is not equalized is written into the monitor data buffer 2522, and in the standby system, the equalization process 2542b is executed via the The value conversion process 2542b is executed when the value conversion cable 400 receives the monitoring data. On the other hand, there is no difference in the execution timing of the equalization transmission process 2542b1 between the active network device and the standby system network device, and there is no difference in the execution timing of the equalization reception process 2542b2.

更详细地说明,网络装置200″′的控制部210不管是否作为工作系装置进行动作,都以被赋予了表示未等值化的标志的监视数据被写入到监视数据缓冲器2522为契机来执行等值化发送处理2542b1。在等值化发送处理2542b1中,控制部210从监视数据缓冲器2522读出被赋予了表示未等值化的标志的监视数据(图13:S120),将该监视数据提供到第三通信I/F部240(图13:S130),从而传输到另一方的网络装置。因此,在本实施方式中,网络装置200A″′从IO网络30A接收到的监视数据A经由等值化线缆400被传输到网络装置200B″′,网络装置200B″′从IO网络30B接收到的监视数据B也经由等值化线缆400被传输到网络装置200A″′。More specifically, regardless of whether the control unit 210 of the network device 200"' is operating as a work-system device or not, the monitoring data to which the flag indicating that it has not been equalized is written to the monitoring data buffer 2522 as a trigger. Execute the equalization transmission process 2542b1. In the equalization transmission process 2542b1, the control unit 210 reads out the monitoring data (FIG. The monitoring data is provided to the third communication I/F part 240 (FIG. 13: S130), thereby being transmitted to the network device of the other party. Therefore, in this embodiment, the monitoring data received by the network device 200A"' from the IO network 30A A is transmitted to the network device 200B"' through the equalization cable 400, and the monitoring data B received by the network device 200B"' from the IO network 30B is also transmitted to the network device 200A"' through the equalization cable 400.

按照中继控制程序2542″′运行的控制部210以经由等值化线缆400从另一方的网络装置200″′接收到监视数据为契机来执行等值化接收处理2542b2。图14是表示等值化接收处理2542b2的流程的流程图。如图14所示,控制部210首先判定是否能够与经由等值化线缆400从另一方的网络装置200″′接收到的监视数据的发送源的IO从装置进行通信(步骤SB100)。作为判定是否能够与上述监视数据的发送源的IO从装置进行通信的具体判定方法,可考虑利用例如ping等现有技术的方法。The control unit 210 operating in accordance with the relay control program 2542"' executes the equalization reception process 2542b2 when monitoring data is received from the other network device 200"' via the equalization cable 400. FIG. 14 is a flowchart showing the flow of the equalization reception process 2542b2. As shown in FIG. 14 , the control unit 210 first determines whether it is possible to communicate with the IO slave device of the transmission source of the monitoring data received from the other network device 200 "' via the equalization cable 400 (step SB100). As a specific method for judging whether or not communication with the IO slave device that is the source of the monitoring data can be communicated, for example, a conventional method such as ping may be considered.

在步骤SB100的判定结果为“否”的情况下、即不能通信的情况下,控制部210利用经由等值化线缆400从另一方的网络装置200″′接收到的监视数据,来补足原本应该经由本装置的连接目的地的IO网络30接收的监视数据、即发往与本装置连接的控制装置100的监视数据(步骤SB110)。由于不能与IO从装置进行通信,因此不会接收来自该IO从装置的监视数据,步骤SB110是用于补充该监视数据的缺失的处理。更详细地说明,在步骤SB110中,控制部210将经由等值化线缆400接收到的监视数据的标头部的表示发送目的地的信息改写为表示与本装置连接的控制装置100的信息,赋予被设置了表示未等值化的第一值的标志后将该监视数据写入到监视数据缓冲器2522。接着,控制部210将通过步骤SB110写入到监视数据缓冲器2522的监视数据的标志更新为表示已等值化的第二值,并且向另一方的网络装置通知等值化完成(步骤SB150),完成等值化接收处理2542b2。此外,在如上所述那样步骤SB100的判定结果为“否”的情况下,不会对另一方的网络装置200″′进行经由等值化线缆400的监视数据的传输,因此在该另一方的网络装置中只要以接收到上述通知为契机来检测等值化完成并更新相应的监视数据的标志即可。When the result of determination in step SB100 is "No", that is, when communication is impossible, the control unit 210 uses the monitoring data received from the other network device 200"' via the equalization cable 400 to supplement the original The monitoring data that should be received via the IO network 30 of the connection destination of this device, that is, the monitoring data sent to the control device 100 connected to this device (step SB110). Since it cannot communicate with the IO slave device, it will not receive the monitoring data from the IO network 30. The monitoring data of this IO slave device, step SB110 is the processing that is used for supplementing the absence of this monitoring data.More specifically, in step SB110, control part 210 will receive via equalization cable 400 the mark of monitoring data The information indicating the destination in the header is rewritten with the information indicating the control device 100 connected to this device, and the monitoring data is written into the monitoring data buffer after adding the first value indicating that the equalization is not set. 2522. Next, the control unit 210 updates the flag of the monitoring data written into the monitoring data buffer 2522 through step SB110 to a second value representing equivalent value, and notifies the other network device that the equal value is completed (step SB150), the equalization receiving process 2542b2 is completed. In addition, when the determination result of step SB100 is "No" as described above, the network device 200 "' of the other party will not be passed through the equalization cable 400 Therefore, the other network device only needs to detect the completion of the equalization and update the corresponding monitoring data flag when receiving the above-mentioned notification.

与此相对,在步骤SB100的判定结果为“是”的情况下、即能够通信的情况下,控制部210与前述的步骤SA100同样地,判定本装置是否为工作系装置(步骤SB120)。在步骤SB120的判定结果为“是”的情况下、即本装置是工作系装置的情况下,控制部210将经由等值化线缆400从另一方的网络装置200″′接收到的监视数据丢弃(步骤SB130),并且将视为与该监视数据对应而写入到监视数据缓冲器2522中的监视数据的等值化标志更新为第二值(步骤SB150),结束等值化接收处理2542b2。反之,在步骤SB120的判定结果为“否”的情况下、即本装置是待机系装置的情况下,控制部210与前述的步骤SA120的处理同样地,利用经由等值化线缆400从另一方的网络装置200″′接收到的监视数据来置换视为与该监视数据对应而写入到监视数据缓冲器2522中的监视数据(步骤SB140),之后,执行步骤SB150的处理,结束等值化接收处理2542b2。On the other hand, when the determination result in step SB100 is "YES", that is, when communication is possible, control unit 210 determines whether the own device is a work-based device (step SB120 ), similarly to step SA100 described above. When the result of determination in step SB120 is “Yes”, that is, when the own device is an operating system device, the control unit 210 transmits the monitoring data received from the other network device 200″’ via the equalization cable 400 Discard (step SB130), and the equalization flag of the monitoring data written in the monitoring data buffer 2522 corresponding to the monitoring data is updated to a second value (step SB150), and the equalization receiving process 2542b2 ends Conversely, when the determination result in step SB120 is "No", that is, if the device is a standby device, the control unit 210 uses The monitoring data received by the other network device 200"' replaces the monitoring data written in the monitoring data buffer 2522 as corresponding to the monitoring data (step SB140), and then executes the processing of step SB150, and ends. Value reception process 2542b2.

以上是网络装置200″′的结构。The above is the structure of the network device 200"'.

接着,以控制装置100A为工作系装置、控制装置100B为待机系装置的情况、即网络装置200A″′为工作系装置、网络装置200B″′为待机系装置的情况为例来说明本实施方式的动作。如果IO主机MAn(n=1~3)和IO主机MBn(n=1~3)全部健全地进行动作、且IO网络30A和IO网络30B均没有发生断线等故障,则从IO从装置Sn(n=1~3)发送的监视数据An经由IO网络30A到达网络装置200A″′,从该IO从装置Sn发送的监视数据Bn经由IO网络30B到达网络装置200B″′。Next, this embodiment will be described by taking the case where the control device 100A is an active device and the control device 100B is a standby device, that is, the network device 200A"' is an active device and the network device 200B"' is a standby device. Actions. If all the IO master MAn (n=1~3) and the IO master MBn (n=1~3) are operating soundly, and neither the IO network 30A nor the IO network 30B has a failure such as disconnection, the IO slave device Sn (n=1 to 3) The monitoring data An transmitted reaches the network device 200A"' via the IO network 30A, and the monitoring data Bn transmitted from the IO slave device Sn reaches the network device 200B"' via the IO network 30B.

如前所述,在网络装置200A″′和网络装置200B″′中,分别以经由第一通信I/F部220接收到监视数据为契机来执行中继处理2542a。其结果,如图15的(A)所示,在网络装置200A″′的监视数据缓冲器2522中保存监视数据An,在网络装置200B″′的监视数据缓冲器2522中保存监视数据Bn。另外,以未等值化的监视数据被写入到监视数据缓冲器2522为契机,来在网络装置200″′中执行等值化发送处理2542b1。其结果,如图15的(A)所示,从网络装置200A″′向网络装置200B″′经由等值化线缆400传输监视数据An,从网络装置200B″′向网络装置200A″′经由等值化线缆400传输监视数据Bn。As described above, in the network device 200A"' and the network device 200B"', the relay process 2542a is executed when monitoring data is received via the first communication I/F unit 220, respectively. As a result, as shown in (A) of FIG. 15 , monitoring data An is stored in monitoring data buffer 2522 of network device 200A"', and monitoring data Bn is stored in monitoring data buffer 2522 of network device 200B"'. In addition, when the unequalized monitoring data is written in the monitoring data buffer 2522, the network device 200"' executes the equalized transmission process 2542b1. As a result, as shown in (A) of FIG. 15 The monitoring data An is transmitted from the network device 200A"' to the network device 200B"' via the equalization cable 400, and the monitoring data Bn is transmitted from the network device 200B"' to the network device 200A"' via the equalization cable 400.

如前所述,网络装置200″′的控制部210在每次经由第三通信I/F部240接收到监视数据时都执行等值化接收处理2542b2。具体地说,网络装置200A″′的控制部210在每次经由第三通信I/F部240接收到监视数据Bn时都执行等值化接收处理2542b2。在本动作例中,IO主机MAn(n=1~3)全部健全地进行动作,且IO网络30A未发生断线等故障。因此,在网络装置200A″′的控制部210所执行的等值化接收处理2542b2中,步骤SB100的判定结果为“是”,执行步骤SB120以后的处理。由于网络装置200A″′是工作系装置,因此步骤SB120的判定结果为“是”,执行步骤SB130的处理。即,网络装置200A″′经由第三通信I/F部240接收到的监视数据Bn全部被丢弃。As described above, the control unit 210 of the network device 200"' executes the equalization receiving process 2542b2 every time monitoring data is received via the third communication I/F unit 240. Specifically, the network device 200A"' The control unit 210 executes the equalization reception process 2542b2 every time the monitoring data Bn is received via the third communication I/F unit 240 . In this operation example, all the IO masters MAn (n=1 to 3) are operating soundly, and no failure such as disconnection occurs in the IO network 30A. Therefore, in the equalization receiving process 2542b2 performed by the control unit 210 of the network device 200A"', the determination result of step SB100 is "Yes", and the processes after step SB120 are executed. Since the network device 200A"' is an operating system device , so the determination result of step SB120 is "Yes", and the processing of step SB130 is executed. That is, all monitoring data Bn received by the network device 200A"' via the third communication I/F unit 240 is discarded.

在网络装置200B″′中也同样地,在每次经由第三通信I/F部240接收到监视数据An时都执行等值化接收处理2542b2。在网络装置200B″′的控制部210所执行的等值化接收处理2542b2中,步骤SB100的判定结果也是“是”,执行步骤SB120以后的处理。由于网络装置200B″′是待机系装置,因此步骤SB120的判定结果为“否”,执行步骤SB140的处理。即,网络装置200B″′的监视数据缓冲器2522中保存的监视数据Bn全部被置换为经由第三通信I/F部240从网络装置200A″′接收到的监视数据An(参照图15的(B))。其结果,监视数据An经由网络装置200A″′被传输到控制装置100A,监视数据An经由网络装置200B″′还被传输到控制装置100B。Similarly, in the network device 200B"', the equalization receiving process 2542b2 is executed every time the monitoring data An is received via the third communication I/F part 240. The control part 210 of the network device 200B"' executes In the equalization receiving process 2542b2, the determination result of step SB100 is also "Yes", and the processes after step SB120 are executed. Since the network device 200B"' is a standby device, the determination result of step SB120 is "No", and the processing of step SB140 is executed. That is, all the monitoring data Bn stored in the monitoring data buffer 2522 of the network device 200B"' are replaced. It is the monitoring data An (refer to (B) of FIG. 15 ) received from the network device 200A"' via the third communication I/F section 240. As a result, the monitoring data An is transmitted to the control device 100A via the network device 200A"' , the monitoring data An is also transmitted to the control device 100B via the network device 200B"'.

与此相对,在IO主机MA1和IO主机MB2发生了某种故障的情况下,如图16的(A)所示,原本应该由网络装置200A″′接收的监视数据A1缺失,原本应该由网络装置200B″′接收的监视数据B2也缺失。此外,图16的(A)中的NULL表示监视数据的缺失。在该情况下,如图16的(A)所示,从网络装置200A″′向网络装置200B″′经由等值化线缆400传输监视数据A2和A3,从网络装置200B″′向网络装置200A″′经由等值化线缆400传输监视数据B1和B3。On the other hand, when some kind of failure occurs in the IO master MA1 and the IO master MB2, as shown in (A) of FIG. Monitoring data B2 received by device 200B"' is also missing. In addition, NULL in (A) of FIG. 16 indicates absence of monitoring data. In this case, as shown in (A) of FIG. 16 , the monitoring data A2 and A3 are transmitted from the network device 200A"' to the network device 200B"' via the equalization cable 400, and from the network device 200B"' to the network device 200A″′ transmits monitoring data B1 and B3 via equalization cable 400 .

在以经由第三通信I/F部240接收到监视数据B1为契机来在网络装置200A″′中执行的等值化接收处理2542b2中,步骤SB100的判定结果为“否”,执行步骤SB110的处理。其结果,如图16的(B)所示,利用监视数据B1来补足原本应该由网络装置200A″′接收的监视数据A1。同样地,在以经由第三通信I/F部240接收到监视数据A2为契机来在网络装置200B″′中执行的等值化接收处理2542b2中,步骤SB100的判定结果也为“否”,执行步骤SB110的处理。其结果,如图16的(B)所示,利用监视数据A2来补足原本应该由网络装置200B″′接收的监视数据B2。在本动作例中,监视数据B1、监视数据A2以及监视数据A3作为已等值化的监视数据而从网络装置200A″′传输到控制装置100A,监视数据B1、监视数据A2以及监视数据A3作为已等值化的监视数据而从网络装置200B″′传输到控制装置100B。在本动作例中,已等值化的监视数据从网络装置200A″′传输到作为工作系控制装置的控制装置100A,因此能够毫无问题地继续进行控制对象装置的控制等。In the equalization receiving process 2542b2 executed in the network device 200A"' when the monitoring data B1 is received via the third communication I/F unit 240, the result of determination in step SB100 is "No", and the process in step SB110 is executed. As a result, as shown in (B) of FIG. 16 , the monitoring data A1 that should have been originally received by the network device 200A"' is supplemented with the monitoring data B1. Similarly, in the equalization receiving process 2542b2 executed in the network device 200B"' triggered by the reception of the monitoring data A2 via the third communication I/F unit 240, the result of determination in step SB100 is also "No", The process of step SB110 is executed. As a result, as shown in (B) of FIG. 16 , the monitoring data B2 that should have been originally received by the network device 200B"' is supplemented with the monitoring data A2. In this operation example, the monitoring data B1, monitoring data A2, and monitoring data A3 are transmitted from the network device 200A"' to the control device 100A as equalized monitoring data, and the monitoring data B1, monitoring data A2, and monitoring data A3 are transmitted as equalized monitoring data. The equalized monitoring data is transmitted from the network device 200B"' to the control device 100B. In this operation example, since the equalized monitoring data is transmitted from the network device 200A"' to the control device 100A as the work-system control device, the control of the control target device and the like can be continued without any problem.

这样,根据本实施方式,起到以下的效果:即使在经由网络装置而与工作系控制装置连接的IO网络或与该IO网络连接的多个IO主机中的某一个中发生故障,也无需进行关于控制装置的工作系/待机系的切换,从而能够降低冗余化控制系统中的工作系/待机系的切换的发生频率。并且,根据本实施方式,起到以下效果:即使在发生了经由网络装置而与工作系控制装置连接的IO网络上连接的IO主机发生故障、经由网络装置而与待机系控制装置连接的IO网络上连接的IO主机也发生故障这样的多重故障的情况下,只要这些IO主机不与同一IO设备连接,就能够继续进行控制对象装置的控制,与前述的第一实施方式相比,能够进一步提高抵抗多重故障的能力。此外,在本实施方式中,使待机系网络装置将从IO网络接收到的全部监视数据经由网络装置间的等值化线缆400传输到工作系网络装置,但是也可以仅传输在工作系装置中缺失的监视数据。关于使待机系网络装置检测工作系装置中的监视数据的缺失的方法,可考虑各种方法。例如,可以如下:从工作系网络装置经由网络装置间的等值化线缆向待机系网络装置发送该工作系网络装置已接收到的监视数据的标识符信息的列表,使待机系网络装置基于该列表来检测工作系装置中的监视数据的缺失。另外,也可以是,在待机系网络装置经由IO网络接收到监视数据后经过规定时间也没有经由网络装置间的等值化线缆接收到与该监视数据对应的数据的情况下,使待机系网络装置判定为工作系装置中的监视数据发生缺失。In this way, according to this embodiment, there is an effect that even if a failure occurs in the IO network connected to the work system control device via the network device or in any one of the plurality of IO masters connected to the IO network, there is no need to perform an operation. With regard to switching between the active system and the standby system of the control device, the frequency of occurrence of switching between the active system and the standby system in the redundant control system can be reduced. Furthermore, according to this embodiment, there is an effect that even if a failure occurs in the IO master connected to the IO network connected to the operating system control device via the network device, the IO network connected to the standby system control device via the network device In the case of multiple failures such as failures of the IO masters connected to the above, as long as these IO masters are not connected to the same IO device, the control of the controlled device can be continued, and compared with the first embodiment described above, it can further improve Resistance to multiple failures. In addition, in this embodiment, the standby network device transmits all monitoring data received from the IO network to the active network device via the equalization cable 400 between network devices, but it is also possible to transmit only Missing monitoring data in . Various methods are conceivable as a method of causing the standby network device to detect the absence of monitoring data in the active device. For example, a list of identifier information of monitoring data received by the active network device may be transmitted from the active network device to the standby network device via an equalization cable between the network devices, and the standby network device may be configured based on This list is used to detect the absence of monitoring data in the work-system device. In addition, when the standby system network device receives the monitoring data via the IO network and does not receive the data corresponding to the monitoring data via the equalization cable between the network devices after a predetermined period of time, the standby system network device may be set to The network device determines that monitoring data in the work-system device is missing.

另外,在IO从装置S1~S3中包括控制对象装置的情况下,关于从控制装置100发送到控制对象装置的运算数据、即表示基于已等值化的监视数据的运算结果的数据的传输控制,也可以根据将该控制对象装置连接到IO网络30的IO主机有无故障来同样地进行。例如在图16的(B)中的IO从装置S1~S3各自是控制对象装置的情况下,对于IO从装置S1,可以沿着控制装置100A→网络装置200A″′→等值化线缆400→网络装置200B″′→IO网络30B这样的传输路径来传输运算数据。同样地,对于IO从装置S2和S3,可以沿着控制装置100A→网络装置200A″′→IO网络30A这样的传输路径来传输运算数据。In addition, when the control target device is included in the IO slave devices S1 to S3, the calculation data transmitted from the control device 100 to the control target device, that is, the transmission control of the data indicating the calculation result based on the equalized monitoring data , may also be performed in the same manner depending on whether or not the IO master connected to the control target device to the IO network 30 is faulty. For example, when the IO slave devices S1 to S3 in (B) of FIG. → Network device 200B"' → IO network 30B through a transmission path to transmit calculation data. Similarly, for the IO slave devices S2 and S3, the calculation data can be transmitted along the transmission path of the control device 100A→the network device 200A"'→the IO network 30A.

除此以外,在本实施方式中,也由网络装置200″′来进行监视数据的等值化,因此当然与前述的第一实施方式同样地起到以下的效果:即使传输到控制装置的监视数据的数据量增加,也能够不对控制装置原本的运算的执行产生任何障碍、且不招致工作系/待机系的切换速度降低。In addition, in this embodiment as well, the network device 200"' performs the equalization of the monitoring data, so of course, the following effects are obtained in the same way as in the above-mentioned first embodiment: Even if the monitoring data transmitted to the control device The increase in the amount of data does not cause any obstacle to the execution of the original calculation of the control device, and does not cause a decrease in the switching speed between the active system and the standby system.

在上述实施方式中,说明了IO主机发生了某种故障的情况,而在IO网络30发生了断线等故障的情况下、或者将IO网络30与网络装置200″′进行连接的通信线发生了断线等故障的情况下,对于原本应该经由该IO网络30接收的全部监视数据进行上述补足,这是不言而喻的。另外,在上述实施方式中,在网络装置200″′上仅连接了一个双重化的IO网络,但是也可以如图17所示那样连接多个双重化的IO网络。例如,图17中例示了在网络装置200″′上连接有两个双重化的IO网络的情况。In the above-mentioned embodiment, it was explained that some kind of failure occurred in the IO master, but in the case of a failure such as disconnection of the IO network 30, or a failure of the communication line connecting the IO network 30 and the network device 200"' In the event of a failure such as a disconnection, it is self-evident that the above-mentioned supplement is performed on all the monitoring data that should have been received via the IO network 30. In addition, in the above-mentioned embodiment, only the network device 200"' One duplex IO network is connected, but a plurality of duplex IO nets can also be connected as shown in FIG. 17 . For example, FIG. 17 illustrates a case where two dual IO networks are connected to the network device 200"'.

一般在冗余化控制系统中,不希望从IO从装置到工作系控制装置100的数据的传输路径或者反方向的传输路径发生变动。因此,也可以使网络装置200″′的控制部210执行以下处理:将表示通过步骤SB100判定为不能通信的发送源的识别信息写入到易失性存储部252的规定的存储区域,此后对于来自识别信息被存储在该存储区域中的设备的监视数据,始终利用经由等值化线缆400接收到的监视数据来进行补足或置换,以本装置的断电或复位为契机来使上述存储区域初始化。根据这种方式,即使在发生上述补足等之后对IO主机等进行修理而不再需要进行补足等,直到网络装置200″′被断电或复位为止,从IO从装置到工作系控制装置100的数据的传输路径也不会被切换为不进行上述补足等的路径,能够避免因切换路径引起的影响。In general, in a redundant control system, it is not desirable to change the transmission path of data from the IO slave device to the work system control device 100 or the transmission path in the opposite direction. Therefore, the control unit 210 of the network device 200"' may also be made to execute a process of writing identification information indicating a transmission source determined to be incommunicable in step SB100 into a predetermined storage area of the volatile storage unit 252, and thereafter The monitoring data from the device whose identification information is stored in the storage area is always supplemented or replaced with the monitoring data received via the equalization cable 400, and the above-mentioned storage is performed when the device is powered off or reset. Area initialization. According to this method, even if the IO master or the like is repaired after the above-mentioned complement etc., it is no longer necessary to perform complement etc., until the network device 200"' is powered off or reset, from the IO slave device to the work system control The transmission path of the data of the device 100 is not switched to a path that does not perform the above-mentioned complement, etc., and the influence caused by switching paths can be avoided.

(E:变形)(E: deformation)

以上说明了本发明的第一、第二、第三以及第四实施方式,但是也可以对这些实施方式施以下面的变形。The first, second, third, and fourth embodiments of the present invention have been described above, but the following modifications may be added to these embodiments.

(1)在上述第一实施方式中,说明了利用推送(push)型的数据通信来实现监视数据的等值化的情况,该推送型的数据通信如下:从网络装置200A和网络装置200B中的工作系网络装置向待机系网络装置经由等值化线缆400发送监视数据并使该待机系网络装置存储该监视数据。但是,也可以利用拉取(pull)型的数据通信来实现监视数据的等值化,该拉取型的数据通信如下:使待机系网络装置执行经由等值化线缆400从工作系网络装置获取监视数据来更新本装置的监视数据的处理。其它实施方式也同样。(1) In the above-mentioned first embodiment, the case of realizing the equalization of monitoring data by using push-type data communication is described as follows: from network device 200A and network device 200B The active network device transmits monitoring data to the standby network device via the equalization cable 400 and causes the standby network device to store the monitoring data. However, it is also possible to realize the equalization of monitoring data by using a pull-type data communication in which the standby network device executes Process to acquire monitoring data and update the monitoring data of this device. The same applies to other embodiments.

(2)也可以将上述第二实施方式与第三实施方式相组合。具体地说,可以使网络装置200A″和网络装置200B″分别执行以下处理:判定能否经由等值化线缆400进行数据通信,如果能够进行数据通信则经由等值化线缆400来向另一方的网络装置发送监视数据,如果不能进行数据通信则经由等值化线缆40来向另一方的网络装置发送监视数据。同样地,也可以将第二实施方式与第四实施方式相组合,另外,还可以将第二、第三以及第四实施方式相组合。(2) It is also possible to combine the second embodiment and the third embodiment described above. Specifically, the network device 200A″ and the network device 200B″ can respectively perform the following processing: determine whether data communication can be performed through the equalization cable 400, and if data communication is possible, send data to the other through the equalization cable 400. One network device transmits the monitoring data, and if data communication is not possible, the monitoring data is transmitted to the other network device via the equalization cable 40 . Likewise, the second embodiment and the fourth embodiment may be combined, and the second, third, and fourth embodiments may also be combined.

(3)在上述各实施方式中,说明了将本发明应用于向控制装置传输从IO从装置收集到的监视数据的网关装置的应用例。但是,本发明的应用对象并不限定于网关装置,也可以是路由器(Router)、中继器(Repeater)、交换式集线器(Switching Hub)等其它种类的中继装置。并且,本发明的与中继装置连接的网络并不限定于IO网络等控制系网络、串行总线,也可以是对遵循TCP等通用通信协议的数据通信进行居间调解的一般的信息系网络。总之,只要是如下的中继装置就能够应用本发明:该中继装置收集监视数据,连接于使用该监视数据来执行运算的控制装置,并连接于与输出监视数据的设备连接的网络,将经由该网络接收到的数据传输到该控制装置。(3) In each of the above-mentioned embodiments, an application example in which the present invention is applied to a gateway device that transmits monitoring data collected from an IO slave device to a control device has been described. However, the application object of the present invention is not limited to the gateway device, and may be other types of relay devices such as routers, repeaters, and switching hubs. In addition, the network connected to the relay device in the present invention is not limited to a control system network such as an IO network or a serial bus, and may be a general information system network that mediates data communication following a general communication protocol such as TCP. In short, the present invention can be applied to any relay device that collects monitoring data, is connected to a control device that performs calculations using the monitoring data, and is connected to a network connected to a device that outputs the monitoring data. Data received via the network are transmitted to the control device.

(4)也可以是以单体来提供上述各实施方式的通信系统所包括的网络装置、即中继装置的方式,即,也可以是制造/销售中继装置单体的方式。这是由于,能够以这种网络装置来置换以往的冗余化控制系统中的网络装置,利用中继装置间等值化线缆将这些网络装置相互连接,由此使以往的冗余化控制系统作为上述各实施方式的通信系统而发挥功能。(4) The network device included in the communication system of each of the above embodiments, that is, the relay device may be provided as a single unit, that is, the relay device may be manufactured and sold as a single unit. This is because such a network device can be used to replace the network devices in the conventional redundant control system, and these network devices can be connected to each other by equalizing cables between relay devices, thereby making the conventional redundant control system The system functions as the communication system of each of the above-described embodiments.

(5)在上述各实施方式中,通过软件来实现了显著呈现本发明的特征的中继处理2542a和等值化处理2542b(在第四实施方式中是等值化发送处理2542b1和等值化接收处理2542b2)。但是,也可以利用电路来分别构成执行中继处理2542a的中继单元和执行等值化处理2542b的等值化单元,将这些电路相组合来构成上述第一实施方式~第三实施方式的网络装置。关于第四实施方式的网络装置200″′也同样。另外,在上述实施方式中,将等值化线缆用作中继装置间通信单元,但是也可以将无线LAN接口等无线通信单元用作中继装置间通信单元。另外,在网络装置200A和网络装置200B安装于一个壳体的情况下,也可以将两个装置所连接的总线用作中继装置间通信单元。关于控制装置间通信单元也同样。(5) In each of the above-mentioned embodiments, the relay processing 2542a and the equalization processing 2542b (in the fourth embodiment, the equalization transmission processing 2542b1 and the equalization Receive processing 2542b2). However, it is also possible to configure the relay unit for executing the relay processing 2542a and the equalization unit for performing the equalization processing 2542b by circuits, and combine these circuits to configure the networks of the above-mentioned first to third embodiments. device. The same applies to the network device 200"' of the fourth embodiment. In addition, in the above-mentioned embodiment, an equalized cable is used as a communication unit between relay devices, but a wireless communication unit such as a wireless LAN interface may also be used as a communication unit between relay devices. Communication unit between relay devices. In addition, in the case where the network device 200A and the network device 200B are installed in one housing, the bus to which the two devices are connected can also be used as a communication unit between relay devices. Regarding communication between control devices The same applies to units.

(6)在上述各实施方式中,说明了控制装置100A和控制装置100B、或者控制装置100A′和控制装置100B′各自不管是工作系装置还是待机系装置、都使用经由连接目的地的网络装置接收到的监视数据来进行用于设备控制的运算的情况,即,说明了将本发明应用于热备用(hot standby)方式的控制系统的情况。但是,本发明的应用对象并不限定于热备用方式的控制系统,也可以将本发明应用于温备用(warm standby)方式的控制系统。温备用方式的控制系统在双重化的控制装置的一方成为工作系装置而执行上述运算、另一方成为待机系装置来防备工作系装置发生故障这个方面与热备用方式的控制系统相同,但是在不在待机系控制装置中执行上述运算这个方面不同。另外,在上述第一~第三实施方式中,在待机系网络装置中,也执行将通过第一通信I/F部220接收到的监视数据写入到监视数据缓冲器2522的处理(图4的(B):S100和S110的各处理),但是也可以在待机系网络装置中省略该处理。这是由于,通过图4的(B)的S100和S110的各处理而被监视数据缓冲器2522写入的监视数据在等值化处理2542b的步骤SA120的处理中会被覆盖。(6) In each of the above-mentioned embodiments, it has been described that the control device 100A and the control device 100B, or the control device 100A' and the control device 100B' each use the network device of the connection destination regardless of whether it is an active system device or a standby system device. The case where calculations for device control are performed on the received monitoring data, that is, the case where the present invention is applied to a control system of a hot standby method is described. However, the application target of the present invention is not limited to the control system of the hot standby system, and the present invention can also be applied to the control system of the warm standby system. The control system of the warm standby method is the same as the control system of the hot standby method in that one of the dual control devices becomes the working device to perform the above calculations, and the other becomes the standby device to prevent the failure of the working device. The stand-by system control device is different in that the above calculation is performed. In addition, in the first to third embodiments described above, the standby network device also executes the process of writing the monitoring data received through the first communication I/F unit 220 into the monitoring data buffer 2522 (FIG. 4 (B): each processing of S100 and S110), however, this processing may be omitted in the standby network device. This is because the monitoring data written in the monitoring data buffer 2522 by the processes of S100 and S110 in (B) of FIG. 4 are overwritten in the process of step SA120 of the equalization process 2542b.

附图标记说明Explanation of reference signs

1A、1C、1D:通信系统;10A、10B、100A、100B、100A′、100B′:控制装置;20A、20B、200A、200B、200A′、200B′、200A″、200B″、200A″′、200B″′:中继装置;210:控制部;220:第一通信I/F部;230:第二通信I/F部;240:第三通信I/F部;250:存储部;252:易失性存储部;2522:监视数据缓冲器;254:非易失性存储部;2542、2542′、2542″′:中继控制程序;2542a:中继处理;2542b:等值化处理;260:总线;30A、30B、30C:IO网络;40、400、400A、400B:等值化线缆;50:监视系统;S1~Sn、S1′~Sn′:IO从装置。1A, 1C, 1D: communication system; 10A, 10B, 100A, 100B, 100A′, 100B′: control device; 20A, 20B, 200A, 200B, 200A′, 200B′, 200A″, 200B″, 200A″′, 200B″': relay device; 210: control unit; 220: first communication I/F unit; 230: second communication I/F unit; 240: third communication I/F unit; 250: storage unit; 252: Volatile storage unit; 2522: monitoring data buffer; 254: non-volatile storage unit; 2542, 2542′, 2542″′: relay control program; 2542a: relay processing; 2542b: equalization processing; 260 : bus; 30A, 30B, 30C: IO network; 40, 400, 400A, 400B: equivalent cables; 50: monitoring system; S1~Sn, S1′~Sn′: IO slave devices.

Claims (11)

1.一种控制系统,从连接在第一网络和第二网络上的一个或多个设备收集监视数据,基于该监视数据来进行控制,该控制系统的特征在于,具备:1. A control system that collects monitoring data from one or more devices connected to the first network and the second network, and performs control based on the monitoring data, the control system is characterized in that it has: 第一控制装置和第二控制装置,该第一控制装置和第二控制装置中的一方成为工作系装置而进行所述控制,另一方成为待机系装置;a first control device and a second control device, wherein one of the first control device and the second control device is an active system device and performs the control, and the other is a standby system device; 第一中继装置,其与所述第一控制装置及所述第一网络连接;a first relay device connected to the first control device and the first network; 第二中继装置,其与所述第二控制装置及所述第二网络连接;a second relay device connected to the second control device and the second network; 中继装置间通信单元,其对所述第一中继装置与所述第二中继装置的通信进行居间调解;以及an inter-relay device communication unit that mediates communication between the first relay device and the second relay device; and 控制装置间通信单元,其对所述第一控制装置与所述第二控制装置的通信进行居间调解,an inter-control device communication unit that mediates communication between the first control device and the second control device, 其中,所述第一中继装置和所述第二中继装置具备判定单元,该判定单元判定能否经由所述中继装置间通信单元来进行通信,Wherein, the first relay device and the second relay device include a judging unit that judges whether communication can be performed via the inter-relay device communication unit, 所述第一中继装置和所述第二中继装置分别向连接目的地的控制装置传输从所述一个或多个设备接收到的监视数据,并且,在通过所述判定单元判定为能够通信的情况下,所述第一中继装置和所述第二中继装置通过经由所述中继装置间通信单元的通信来进行监视数据的等值化,另一方面,在通过所述判定单元判定为不能通信的情况下,所述第一中继装置和所述第二中继装置通过经由所述控制装置间通信单元的通信来进行监视数据的等值化,The first relay device and the second relay device each transmit the monitoring data received from the one or more devices to a control device of a connection destination, and, when determined by the determination unit to be able to communicate In the case of , the first relay device and the second relay device perform equalization of monitoring data through communication via the inter-relay device communication unit, and on the other hand, the determination unit When it is determined that communication is impossible, the first relay device and the second relay device perform equalization of monitoring data through communication via the inter-control device communication unit, 所述第一控制装置和所述第二控制装置中的成为工作系装置的一方使用从连接目的地的中继装置接收到的监视数据来进行所述控制。One of the first control device and the second control device that becomes the work-system device performs the control using the monitoring data received from the relay device of the connection destination. 2.根据权利要求1所述的控制系统,其特征在于,2. The control system of claim 1, wherein: 所述第一中继装置和所述第二中继装置中的一方执行将从连接目的地的网络接收到的监视数据传输到另一方的中继装置的处理,来作为使监视数据等值化的处理,One of the first relay device and the second relay device executes a process of transmitting the monitoring data received from the network of the connection destination to the other relay device as the equivalent of the monitoring data processing, 所述第一中继装置和所述第二中继装置中的另一方执行以下处理来作为使监视数据等值化的处理:利用视为与从连接目的地的网络接收到的监视数据对应而从所述一方的中继装置接收到的监视数据,来对该从连接目的地的网络接收到的监视数据进行置换。The other of the first relay device and the second relay device executes, as the process of equalizing the monitoring data, the following process: The monitoring data received from the network of the connection destination is replaced with the monitoring data received from the one relay device. 3.根据权利要求1或2所述的控制系统,其特征在于,3. The control system according to claim 1 or 2, characterized in that, 所述第一控制装置和所述第二控制装置判定是否能够经由所述控制装置间通信单元来进行通信,the first control device and the second control device determine whether communication via the inter-control device communication unit is possible, 在判定为能够经由所述控制装置间通信单元来进行通信的情况下,经由所述控制装置间通信单元来发送接收表示本装置中有无故障的状态数据,由此监视另一方有无故障,When it is determined that communication can be performed via the inter-control device communication unit, status data indicating whether there is a failure in the own device is transmitted and received via the inter-control device communication unit, thereby monitoring whether the other party has a failure, 在判定为不能经由所述控制装置间通信单元来进行通信、且通过所述判定单元判定为能够经由所述中继装置间通信单元来进行通信的情况下,经由所述中继装置间通信单元来发送接收所述状态数据,由此监视另一方有无故障。When it is determined that communication via the inter-control device communication unit is not possible and the determination unit determines that communication is possible via the inter-relay device communication unit, via the inter-relay device communication unit To send and receive the status data, thereby monitoring whether the other party has a fault. 4.根据权利要求1所述的控制系统,其特征在于,4. The control system of claim 1, wherein: 所述第一中继装置和所述第二中继装置接收从多个设备分别发送的监视数据,The first relay device and the second relay device receive monitoring data respectively transmitted from a plurality of devices, 所述控制系统针对所述多个设备中的各设备,预先决定是在中继装置侧进行从该设备发送的监视数据的等值化、还是在控制装置侧进行从该设备发送的监视数据的等值化,The control system determines in advance, for each of the plurality of devices, whether to perform equalization of the monitoring data transmitted from the device on the relay device side, or to perform the equalization of the monitoring data transmitted from the device on the control device side. equalization, 所述第一中继装置和所述第二中继装置分别进行从被决定为在中继装置侧进行等值化的设备接收到的监视数据的等值化,The first relay device and the second relay device each perform equalization of monitoring data received from a device determined to be equalized by the relay device side, 所述第一控制装置和所述第二控制装置分别进行经由连接目的地的中继装置接收到的监视数据中的、从被决定为在控制装置侧进行等值化的设备发送的监视数据的等值化。The first control device and the second control device each perform monitoring data transmitted from a device determined to be equalized on the control device side, among monitoring data received via a relay device of a connection destination. Equalization. 5.根据权利要求1所述的控制系统,其特征在于,5. The control system of claim 1, wherein: 所述第一中继装置和所述第二中继装置分别具有:The first relay device and the second relay device respectively have: 第一处理单元,其将从连接目的地的网络接收到的监视数据传输到另一方的中继装置;以及a first processing unit that transmits the monitoring data received from the network of the connection destination to the relay device of the other party; and 第二处理单元,其判定是否能够与从另一方的中继装置接收到的监视数据的发送源的设备进行通信,对于原本应该从判定为不能通信的设备接收的监视数据,利用从该另一方的中继装置接收到的监视数据来进行补足。The second processing unit judges whether it is possible to communicate with the source device of the monitoring data received from the other relay device, and uses the monitoring data originally received from the device judged to be incommunicable by using the monitoring data from the other party. It complements the monitoring data received by the relay device. 6.根据权利要求5所述的控制系统,其特征在于,6. The control system of claim 5, wherein: 所述第二处理单元使存储装置存储表示判定为不能通信的设备的识别信息,对于识别信息被存储在该存储装置中的设备,进行利用从另一方的中继装置接收到的监视数据的补足或置换,另一方面,以本装置的断电或复位为契机来使所述存储装置的存储内容初始化。The second processing unit causes the storage device to store identification information indicating a device judged to be incapable of communication, and complements the device whose identification information is stored in the storage device using monitoring data received from the other relay device. Alternatively, on the other hand, the stored content of the storage device is initialized when the device is powered off or reset. 7.根据权利要求1所述的控制系统,其特征在于,7. The control system of claim 1, wherein: 所述第一中继装置和所述第二中继装置具备负荷测量单元,该负荷测量单元测量连接目的地的控制装置所承担的处理负荷,The first relay device and the second relay device include a load measuring unit that measures a processing load borne by a control device of a connection destination, 所述第一中继装置和所述第二中继装置分别在由所述负荷测量单元测量出的处理负荷为规定的阈值以上、且通过所述判定单元判定为能够通信的情况下,通过经由所述中继装置间通信单元的通信来进行监视数据的等值化,在其它情况下通过经由所述控制装置间通信单元的通信来进行监视数据的等值化。When the processing load measured by the load measuring unit is equal to or greater than a predetermined threshold value and the determination unit determines that communication is possible, the first relay device and the second relay device transmit via The monitoring data is equalized by relaying the communication of the inter-device communication means, and otherwise the monitoring data is equalized by communication via the inter-control device communication means. 8.根据权利要求1所述的控制系统,其特征在于,8. The control system of claim 1, wherein: 所述第一中继装置和所述第二中继装置具备负荷测量单元,该负荷测量单元测量连接目的地的控制装置所承担的处理负荷,并且,The first relay device and the second relay device include a load measurement unit that measures a processing load borne by a control device of a connection destination, and, 以所述第一控制装置和所述第二控制装置的处理负荷越高则在中继装置侧进行等值化的监视数据越多的方式,根据所述处理负荷来决定多种关于是在中继装置侧进行监视数据的等值化、还是在控制装置侧进行监视数据的等值化的分配模式,In such a manner that the higher the processing load of the first control device and the second control device, the more monitoring data to be equivalentized on the relay device side, multiple types of monitoring data are determined according to the processing load. Whether the monitoring data is equalized on the relay device side or the distribution mode of the monitoring data is equalized on the control device side, 所述第一中继装置和所述第二中继装置分别在与由所述负荷测量单元测量出的处理负荷相应的分配模式下进行被决定为在中继装置侧进行等值化的监视数据的等值化,The first relay device and the second relay device each perform monitoring data determined to be equalized on the relay device side in an allocation mode corresponding to the processing load measured by the load measuring unit. the equalization of 所述第一控制装置和所述第二控制装置分别在与本装置的处理负荷相应的分配模式下进行被决定为在控制装置侧进行等值化的监视数据的等值化。Each of the first control device and the second control device performs equalization of the monitoring data determined to be equalized on the control device side in an allocation pattern corresponding to the processing load of the own device. 9.根据权利要求1所述的控制系统,其特征在于,9. The control system of claim 1, wherein: 所述第一中继装置和所述第二中继装置中的任一方上连接有第三网络,Either one of the first relay device and the second relay device is connected to a third network, 与所述第三网络连接的中继装置从连接在所述第三网络上的设备收集监视数据,将所收集到的监视数据传输到与本装置连接的控制装置并且传输到另一方的中继装置。The relay device connected to the third network collects monitoring data from the equipment connected to the third network, and transmits the collected monitoring data to the control device connected to the device and to the other party's relay device. 10.根据权利要求1所述的控制系统,其特征在于,10. The control system of claim 1, wherein: 具有多个由经由所述中继装置间通信单元进行通信的所述第一中继装置和所述第二中继装置组成的中继装置对。There are a plurality of relay device pairs consisting of the first relay device and the second relay device communicating via the inter-relay device communication unit. 11.一种中继装置,与连接于控制装置间通信单元的第一控制装置和第二控制装置中的一方连接,并且与连接有发送监视数据的一个或多个设备的第一网络连接,向连接目的地的控制装置传输从所述一个或多个设备发送的监视数据,其中,该第一控制装置和第二控制装置中的一方成为工作系装置而进行控制,另一方成为待机系装置,该中继装置的特征在于,具有:11. A relay device connected to one of the first control device and the second control device connected to the inter-control device communication unit, and connected to the first network connected with one or more devices that transmit monitoring data, transmitting the monitoring data sent from the one or a plurality of devices to a control device of a connection destination, wherein one of the first control device and the second control device is controlled as an active system device, and the other is a standby system device , the relay device is characterized in that it has: 通信接口部,其连接于对该中继装置与其它中继装置的通信进行居间调解的中继装置间通信单元,其它中继装置是与连接有所述一个或多个设备的第二网络以及所述第一控制装置和所述第二控制装置中的另一方连接的中继装置;以及a communication interface unit connected to an inter-relay device communication unit that mediates communications between the relay device and other relay devices, and the other relay devices are connected to the second network to which the one or more devices are connected and a relay device to which the other of the first control device and the second control device is connected; and 控制部,其执行中继处理、判定处理以及等值化处理,在该中继处理中,向连接目的地的控制装置传输经由所述第一网络从所述一个或多个设备接收到的监视数据,在该判定处理中,判定能否经由所述中继装置间通信单元来进行通信,在该等值化处理中,在通过所述判定处理判定为能够通信的情况下,经由所述中继装置间通信单元来进行用于使该监视数据等值化的通信,另一方面,在判定为不能通信的情况下,经由所述控制装置间通信单元来进行该用于使该监视数据等值化的通信。a control unit that executes relay processing, determination processing, and equalization processing in which the monitoring device received from the one or a plurality of devices via the first network is transmitted to a control device of a connection destination. In the determination process, it is determined whether or not communication can be performed via the inter-relay device communication unit, and in the equalization process, when it is determined in the determination process that communication is possible, the communication is performed via the intermediate device Communication for equalizing the monitoring data is performed via the inter-device communication unit, and on the other hand, when it is determined that communication is impossible, the communication for making the monitoring data, etc. is performed via the inter-device communication unit. valued communication.
CN201580001548.0A 2015-02-12 2015-02-12 Control system and relay Active CN105519050B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2015/053787 WO2016129075A1 (en) 2015-02-12 2015-02-12 Control system and relay device

Publications (2)

Publication Number Publication Date
CN105519050A CN105519050A (en) 2016-04-20
CN105519050B true CN105519050B (en) 2018-09-04

Family

ID=55725066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201580001548.0A Active CN105519050B (en) 2015-02-12 2015-02-12 Control system and relay

Country Status (4)

Country Link
KR (1) KR101815202B1 (en)
CN (1) CN105519050B (en)
TW (1) TWI674488B (en)
WO (1) WO2016129075A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6614668B2 (en) * 2016-12-27 2019-12-04 サイレックス・テクノロジー株式会社 Communication control system, device server, communication control method and program
JP6920828B2 (en) * 2017-02-17 2021-08-18 三菱パワー株式会社 Plant diagnostic equipment and diagnostic methods
US10620613B2 (en) * 2017-08-21 2020-04-14 Fisher-Rosemount Systems, Inc. High performance control server system
JP2019083441A (en) 2017-10-31 2019-05-30 村田機械株式会社 Control system, control device, conversion device, control method of control system, control method of control device, and control method of conversion device
JP7186565B2 (en) * 2018-09-26 2022-12-09 住友重機械工業株式会社 injection molding system, injection molding machine
JP7264098B2 (en) * 2020-03-26 2023-04-25 横河電機株式会社 control system
JP7563907B2 (en) 2020-07-13 2024-10-08 Necプラットフォームズ株式会社 Event processing system, processing device, processing method, and program
JP6973678B1 (en) * 2021-06-30 2021-12-01 富士電機株式会社 Controls, control methods, and programs
KR102717304B1 (en) * 2021-12-24 2024-10-15 한국전자기술연구원 Sensor connection method and device of radar RFIC using network bus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009294961A (en) * 2008-06-06 2009-12-17 Yokogawa Electric Corp Multiplex input/output module
JP2011203941A (en) * 2010-03-25 2011-10-13 Nec Corp Information processing apparatus, monitoring method and monitoring program
CN102239481A (en) * 2007-12-01 2011-11-09 朗讯科技公司 Ims diameter router with load balancing
CN103765829A (en) * 2012-06-29 2014-04-30 横河电机株式会社 Network management system
CN104067235A (en) * 2012-01-25 2014-09-24 株式会社东芝 Dual control system and its control method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10216226A1 (en) * 2002-04-08 2003-10-30 Pilz Gmbh & Co Device for fail-safe switching off of an electrical consumer, especially in industrial production plants
JP3861769B2 (en) 2002-08-13 2006-12-20 富士電機システムズ株式会社 Duplex switching method for duplex control system
TW594497B (en) * 2003-02-25 2004-06-21 Icp Electronics Inc Information processing device including network automatic duplicating function and method thereof
US8923339B2 (en) * 2011-03-06 2014-12-30 PCN Technology, Inc. Systems and methods of data transmission and management
JP5554292B2 (en) * 2011-06-30 2014-07-23 三菱電機株式会社 Redundant controller
TW201329739A (en) * 2012-01-10 2013-07-16 Synology Inc File synchronization sharing device and file synchronization sharing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102239481A (en) * 2007-12-01 2011-11-09 朗讯科技公司 Ims diameter router with load balancing
JP2009294961A (en) * 2008-06-06 2009-12-17 Yokogawa Electric Corp Multiplex input/output module
JP2011203941A (en) * 2010-03-25 2011-10-13 Nec Corp Information processing apparatus, monitoring method and monitoring program
CN104067235A (en) * 2012-01-25 2014-09-24 株式会社东芝 Dual control system and its control method
CN103765829A (en) * 2012-06-29 2014-04-30 横河电机株式会社 Network management system

Also Published As

Publication number Publication date
TWI674488B (en) 2019-10-11
WO2016129075A1 (en) 2016-08-18
CN105519050A (en) 2016-04-20
TW201640243A (en) 2016-11-16
KR20160110346A (en) 2016-09-21
KR101815202B1 (en) 2018-01-05

Similar Documents

Publication Publication Date Title
CN105519050B (en) Control system and relay
US12140933B2 (en) System and method of communicating data over high availability industrial control systems
JP6558882B2 (en) Control system and relay device
CN103581164B (en) For can carry out in the industrial communication network of redundant operation the method for message transmission and for can redundant operation industrial communication network communication equipment
JP5804054B2 (en) Communication system, control device, node, processing rule setting method and program
US10326681B2 (en) System and method to analyze route information in a network
CN101072125A (en) Cluster structure and its control unit
JPWO2009072313A1 (en) Train-to-car communication device
KR101093310B1 (en) Ring Ethernet System, Ring Switch, Ring Connection Control Circuit, Ring Ethernet System Control Method, Ring Switch Control Method, and Ring Connection Control Method
JP6429188B2 (en) Relay device
CN105049349A (en) Relay System and Switching Device
WO2019187202A1 (en) Control device, in-vehicle communication system, monitoring method, and program
CN104536853B (en) Device for guaranteeing continuous availability of resources of dual-controller storage equipment
CN107533497A (en) Programmable logic controller (PLC), subordinate instrument and doubleization system
JP6269404B2 (en) Control system, relay device, and control device
JP2016058011A (en) Control system and relay device
JP2017187973A (en) Parallel processor and communication control method
JP4344333B2 (en) Packet transfer apparatus, packet transfer network system, and packet transfer method
KR101625399B1 (en) Method and apparatus for controlling tcp connection in software defined network
CN115250226A (en) MLAG double-master fault recovery method, device, system, medium and equipment
JP3800338B2 (en) Communication control system
JP2016058009A (en) Control system, control devices thereof, and relay devices
JP2011188414A (en) Ring type switch, ring type ethernet system, method of controlling ring type switch, and method of controlling ring type ethernet system
JP6301762B2 (en) Relay system and switch device
JP5652770B2 (en) Network system and branch connection device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant