JP4569838B2 - Controller system setting method and controller system monitoring method - Google Patents

Controller system setting method and controller system monitoring method Download PDF

Info

Publication number
JP4569838B2
JP4569838B2 JP2007102253A JP2007102253A JP4569838B2 JP 4569838 B2 JP4569838 B2 JP 4569838B2 JP 2007102253 A JP2007102253 A JP 2007102253A JP 2007102253 A JP2007102253 A JP 2007102253A JP 4569838 B2 JP4569838 B2 JP 4569838B2
Authority
JP
Japan
Prior art keywords
safety
unit
tool
cpu
information
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.)
Expired - Lifetime
Application number
JP2007102253A
Other languages
Japanese (ja)
Other versions
JP2007242036A (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.)
Omron Corp
Original Assignee
Omron Corp
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 Omron Corp filed Critical Omron Corp
Priority to JP2007102253A priority Critical patent/JP4569838B2/en
Publication of JP2007242036A publication Critical patent/JP2007242036A/en
Application granted granted Critical
Publication of JP4569838B2 publication Critical patent/JP4569838B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Description

この発明は、コントローラシステムの設定方法並びにコントローラシステムのモニタ方法に関するものである。 The present invention relates to a controller system setting method and a controller system monitoring method.

FA(ファクトリーオートメーション)で用いられるプログラマブルコントローラ(以下、「PLC」と称する)は、PLCにつながれたスイッチやセンサなどの入力機器からON/OFF情報を入力し、ラダー言語などで書かれたシーケンスプログラム(ユーザプログラム)に沿って論理演算を実行して、その演算結果により、PLCにつながれたリレー出力に向けてON/OFF情報を出力、またはバルブやアクチュエーターなどの出力機器に向けて駆動/停止情報の信号を出力することで制御が実行される。このようなPLCの制御は、いわゆるサイクリック処理を繰り返すことで実行される。   A programmable controller (hereinafter referred to as “PLC”) used in FA (factory automation) is a sequence program written in ladder language or the like by inputting ON / OFF information from an input device such as a switch or sensor connected to the PLC. Execute logical operation according to the (user program), and output ON / OFF information for the relay output connected to the PLC or drive / stop information for output devices such as valves and actuators based on the operation result The control is executed by outputting the above signal. Such PLC control is executed by repeating so-called cyclic processing.

ところで、PLCと、入力機器並びに出力機器との接続形態は、PLCの端子やI/Oユニットの端子に接続する場合もあれば、ネットワークを介して接続する場合もある。係るネットワークで接続されたネットワークシステムを構築する場合には、上記ON/OFF情報の送受をネットワークを経由して行うことになる。このとき、通常、PLC側がマスタとなり、機器側がスレーブとなるマスタスレーブ方式で情報の伝送が行われる。このマスタスレーブ方式は、リモートI/O方式とも呼ばれるもので、PLCに取り付けた通信マスタユニットと、ネットワーク回線を介してその通信マスタユニットと接続させた通信スレーブユニットと用いる。そして、通信スレーブユニットの端子に複数の入力機器または出力機器を接続する。マスタとスレーブ間の通信は、所定の周期でシリアル通信伝送で行われる。その伝送は、マスタがスレーブに対してデータ要求をし、スレーブはその要求を受けてスレーブにつながる各入力または各出力機器のON/OFF情報(I/O情報)をシリアル信号にして返信する。つまりマスタはネットワークの通信権を制御し、スレーブはその通信権の制御に従ってネットワークに向けて伝送処理をする。   By the way, the connection form between the PLC and the input device and the output device may be connected to a terminal of the PLC or a terminal of the I / O unit, or may be connected via a network. When constructing a network system connected by such a network, the ON / OFF information is transmitted and received via the network. At this time, information is normally transmitted in a master-slave system in which the PLC side is a master and the device side is a slave. This master-slave method is also called a remote I / O method, and is used with a communication master unit attached to a PLC and a communication slave unit connected to the communication master unit via a network line. Then, a plurality of input devices or output devices are connected to the terminals of the communication slave unit. Communication between the master and the slave is performed by serial communication transmission at a predetermined cycle. In the transmission, the master makes a data request to the slave, and the slave receives the request and returns ON / OFF information (I / O information) of each input or output device connected to the slave as a serial signal. That is, the master controls the communication right of the network, and the slave performs transmission processing toward the network according to the control of the communication right.

なお、マスタとスレーブ間の通信は、PLCのサイクリック処理と同期するように行うようにしてもよいし、非同期で行うようにしてもよい。また、PLCのCPUとマスタ間の情報のやりとりは、PLCのI/Oリフレッシュ処理で行うことでも、周辺処理で行うことでもどちらでもよい。また1台のマスタに対して複数のスレーブが接続して、互いに通信することもできる。   Note that communication between the master and the slave may be performed in synchronization with the cyclic processing of the PLC, or may be performed asynchronously. The exchange of information between the PLC CPU and the master may be performed by PLC I / O refresh processing or by peripheral processing. In addition, a plurality of slaves can be connected to one master and communicate with each other.

一方、最近ではPLCによる制御においても、ロボット機械や、プレス機、切断機などの安全性の要求が高いところでの用途を想定したものがある。例えば、ロボット制御では、制御系の異常や故障でロボットアームが人体と接触して人身事故に至らないようにすべく、安全システムや安全ネットシステムと呼ばれるところに導入されつつある。その場合には、制御系の要素としてのPLCや各機器自体、そしてネットワークにも安全機能を組み込まれたもので構成される。ここで「安全機能」とは、安全であることを確認し、出力を行う機能を言う。また、「安全システム」は、例えばCPUその他の各処理部等を二重化して、両者の不一致を検知して処理部が異常と判断した場合、何らかの原因でネットワークに異常(正常な通信ができない)が生じた場合や、機械システムの緊急停止スイッチが押下されたり、ライトカーテンなどの多光軸光電センサにより危険領域に人(身体の一部)の進入を検出したときなどの危険状態になった場合に、確実に機械システムを安全な状態に動作する機能、またはフェイルセーフが働いて機械システムが安全な状態で動作を強制的に停止するようにする機能である。換言すると、安全機能により、安全であることが格納されたときのみ出力し、機械を動かすシステムである。よって、安全が確認できない場合には、機械が停止する。   On the other hand, recently, there is a control based on PLC that assumes applications such as robot machines, press machines, cutting machines and the like where safety requirements are high. For example, robot control is being introduced in what is called a safety system or a safety net system so that a robot arm does not come into contact with a human body due to an abnormality or failure of a control system, resulting in a personal injury. In that case, it is composed of a PLC as a control system element, each device itself, and a network in which a safety function is incorporated. Here, the “safety function” refers to a function that confirms safety and performs output. In addition, the “safety system”, for example, duplicates the CPU and other processing units, detects a mismatch between the two and determines that the processing unit is abnormal, and causes an abnormality in the network for some reason (normal communication is not possible). When the emergency stop switch of the mechanical system is pressed, or when the entrance of a person (part of the body) is detected in the dangerous area by a multi-optical axis photoelectric sensor such as a light curtain In this case, it is a function for reliably operating the mechanical system in a safe state, or a function for forcibly stopping the operation of the mechanical system in a safe state due to fail-safe operation. In other words, it is a system that outputs only when safety is stored by the safety function and moves the machine. Therefore, the machine stops when safety cannot be confirmed.

上記した安全機能を備えた安全システムや安全ネットワークシステムを構築する場合、ネットワークに接続される装置(PLC,スレーブ並びにスレーブに接続される機器等)は全て安全機能を備えたものを用いる必要があった。これは、1つでも安全機能のない装置が組み込まれていると、その装置を含む制御やその装置とのデータ通信にフェイルセーフが働かないこととなり、システム全体の安全機能を保証できないためである。   When constructing a safety system or a safety network system having the above-described safety function, all devices connected to the network (PLC, slave, and devices connected to the slave, etc.) must be equipped with safety functions. It was. This is because if even one device without a safety function is incorporated, the failsafe does not work for the control including the device and the data communication with the device, and the safety function of the entire system cannot be guaranteed. .

ところでPLCによる制御において、必ずしもシステム全体に安全機能が必要であるとは限らない。しかし、一部でも安全機能の保証が必要ならば安全システムを用いることとなるので、その中に安全機能のない装置を含めることができない。そうなると、本来安全機能の必要のない箇所にも安全PLCや安全機器が使われることになる。安全機能付きの装置は、通常の装置に比べて高価であることから、システム全体でコスト高となってしまう。   By the way, in the control by PLC, the safety function is not necessarily required for the entire system. However, if even a part of the safety function needs to be guaranteed, a safety system will be used, and thus a device without a safety function cannot be included therein. In that case, the safety PLC and the safety device are also used in a place where the safety function is not originally required. Since a device with a safety function is more expensive than a normal device, the cost of the entire system becomes high.

また、既に安全機能のない従来PLCに基づくネットワークシステムを構築している環境に、あとから部分的に安全機能をもつ装置や安全PLCを追加導入しようとした場合、既存の従来設備に安全機能を備えた装置を混在させようとしても、うまくできなかった。つまり、安全機能のない既存部分と安全機能をもつ部分とを完全に分離する必要があり、同一環境で両者を混在させることができなかった。もちろん、既存の設備を廃棄し、新たに安全ネットワークシステムを設置することは考えられるが、多大な置き換え工数が必要となってしまう。   In addition, if you intend to introduce additional devices or safety PLCs with partial safety functions into an environment where a network system based on a conventional PLC that already has no safety functions has been constructed, the safety functions will be added to the existing conventional equipment. Even if I tried to mix the devices I had, I couldn't do it well. In other words, it is necessary to completely separate the existing part having no safety function and the part having the safety function, and the two cannot be mixed in the same environment. Of course, it is conceivable to discard the existing equipment and newly install a safety network system, but a great number of replacement steps are required.

一方、上記した点に鑑み、安全機能が必要な箇所についてのみ安全ネットワークを構築したいという考えもある。しかし、前述のように安全系と非安全系を分離することになり、両者の間でのデータの受け渡しが困難となる。さらに、安全系と非安全系のネットワークシステムを独立して併設することになるので設定・管理ツールも2種類必要となるばかりでなく、係る2種類のツールを使い分けなければならず、煩雑となる。   On the other hand, in view of the above points, there is also an idea that a safety network is to be constructed only for a portion where a safety function is required. However, as described above, the safety system and the non-safety system are separated, and it becomes difficult to exchange data between them. Furthermore, since a safety system and a non-safety network system are provided separately, not only two types of setting / management tools are required, but the two types of such tools must be used separately, which is cumbersome. .

この発明は、安全系と非安全系が混在したコントローラシステムに対し、非安全系と安全系とで共通のツールにより、制御情報やコントローラの状態をモニタしたり、非安全コントローラと安全コントローラとの両方の設定を共通のツールで行うことができるコントローラシステムの設定方法並びにコントローラシステムのモニタ方法を提供することを目的とする。 The present invention monitors the control information and controller status using a common tool for the non-safety system and the safety system, as well as for the controller system in which the safety system and the non-safety system coexist. It is an object of the present invention to provide a controller system setting method and a controller system monitoring method in which both settings can be performed with a common tool .

本発明が適用されるコントローラシステムを構成する安全ユニットの一例としては、CPUユニットを含む複数の非安全ユニットを連結して構成される非安全コントローラに接続可能で、安全機能処理を実行するものである。そして、前記CPUユニットに連係するためのCPUバスと、他の安全ユニットに連係するための安全用専用バスを備えている。 As an example of a safety unit that constitutes a controller system to which the present invention is applied, it can be connected to a non-safety controller configured by linking a plurality of non-safety units including a CPU unit, and executes safety function processing. is there. A CPU bus for linking to the CPU unit and a safety dedicated bus for linking to another safety unit are provided.

また、別の例としては、CPUユニットを含む複数の非安全ユニットを連結して構成される非安全コントローラに接続可能な安全ユニットであって、前記CPUユニットに連係するためのCPUバスと、安全機能処理を実行する処理部とを備え、前記CPUバスを介して前記CPUユニットとの間でデータの送受を行うように構成することもできる。 Further, as another example , a safety unit that can be connected to a non-safety controller configured by connecting a plurality of non-safety units including a CPU unit, the CPU bus for linking to the CPU unit, and a safety And a processing unit that executes functional processing, and can be configured to transmit and receive data to and from the CPU unit via the CPU bus.

なお、安全ユニットは、例えば安全コントローラ,安全バスマスタ,安全I/O及びそれら機能の複合などがある。また、安全用専用バスは、実施の形態では安全用専用バス11に対応する。つまり、「安全用専用バス」とは、安全機能処理を実現するための情報(データ)の送受を行うためのバスであり、安全ユニットのみが接続される。但し、安全ユニット内でクローズな世界を構築できていれば、他の非安全情報を送受するのに用いてもよい。あくまでも非安全ユニットから直接アクセスできなければよい。また、「安全機能」とは、いわゆるフェールセーフ機能のことであり、コントローラなどの制御で異常が生じた場合や通信異常が生じた場合に制御停止させるともに、コントローラの停止により出力対処の機器や制御機器が安全な状態を維持するようにする機能である。また制御自体が暴走しないようにしている。制御停止が必要な場合の例としては、コントローラのCPUその他の各処理部等を二重化して両者の不一致を検知した場合、何らかの原因でネットワークに異常が生じた場合、機械システムの緊急停止スイッチが押下された場合、ライトカーテンなどの多光軸光電センサにより危険領域に人(身体の一部)の進入を検出したときなどの危険状態になった場合などがある。そして、上記の場合には、安全機能により、確実に制御対象の機械システムを安全な状態に動作させる、またはその動作に加えて安全な状態で停止させる、またはフェイルセーフが働いて機械システムが安全な状態で動作を強制的に停止させる。   The safety unit includes, for example, a safety controller, a safety bus master, a safety I / O, and a combination of these functions. Further, the safety dedicated bus corresponds to the safety dedicated bus 11 in the embodiment. That is, the “dedicated safety bus” is a bus for transmitting and receiving information (data) for realizing safety function processing, and only the safety unit is connected. However, as long as a closed world can be constructed within the safety unit, it may be used to send and receive other non-safety information. It is only necessary that it is not directly accessible from the non-safety unit. In addition, the “safety function” is a so-called fail-safe function. When an abnormality occurs in the control of the controller or when a communication abnormality occurs, the control is stopped. This function allows the control device to maintain a safe state. Also, the control itself does not run away. As an example of when control stop is necessary, if the controller CPU or other processing units are duplicated and a mismatch between the two is detected, or if an abnormality occurs in the network for some reason, the emergency stop switch of the mechanical system When the button is pressed, there may be a case where a dangerous state occurs, such as when a person (part of the body) has entered the dangerous area by a multi-optical axis photoelectric sensor such as a light curtain. In the above case, the safety function ensures that the machine system to be controlled is operated in a safe state, or is stopped in a safe state in addition to the operation, or a fail safe is activated to make the machine system safe. The operation is forcibly stopped in a stable state.

この発明によれば、安全用専用バスを設けたため、安全系の信頼性が確保できる。つまり、非安全系を構成する非安全ユニットと安全ユニットを連結し、非安全系と安全系とを混在させたとしても、少なくとも安全機能処理をするためのデータは安全用専用バスを用いることにより、信頼性が得られる。   According to the present invention, since the safety dedicated bus is provided, the reliability of the safety system can be ensured. In other words, even if the non-safety unit and the safety unit that make up the non-safety system are connected and the non-safety system and the safety system are mixed, at least the data for safety function processing can be obtained by using the safety dedicated bus. Reliability is obtained.

これにより、非安全系と安全系を混在したコントローラを形成することができる。よって、省スペース化が図れるとともに、安全ユニットを非安全系のコントローラ(PLC)の高機能ユニットとして管理できる。   Thereby, the controller which mixed the non-safety system and the safety system can be formed. Therefore, space can be saved and the safety unit can be managed as a high-function unit of a non-safety controller (PLC).

また、安全機能が必要な箇所と必要でない箇所に対し、それぞれ適切なユニット(安全ユニット)を用意し、それらを連結することにより、適材適所な設置となり、不必要にコストが高くなることが抑制される。そして、既に非安全系のコントローラが設置されている場合には、既設のコントローラに、本発明の安全ユニットを接続することにより、安全機能が必要な箇所のみシステムを置き換えることができ、既存の設備・資源の有効利用が図れる。よって、既に非安全系のコントローラ(PLC)を使用している環境に、安全システムを容易に増設できる。   In addition, by preparing appropriate units (safety units) for places where safety functions are required and places where safety functions are not required, and connecting them together, it is possible to install the right material in the right place and prevent unnecessary costs from increasing. Is done. If a non-safety controller has already been installed, the system can be replaced only in places where a safety function is required by connecting the safety unit of the present invention to the existing controller. -Effective use of resources can be achieved. Therefore, it is possible to easily add a safety system to an environment in which a non-safety controller (PLC) is already used.

また、安全系構成管理情報を記憶する安全系構成管理情報記憶手段を備え、全ての安全ユニットを管理・照合するマスタ機能を備えるとよい。マスタ機能は、実施の形態では、安全ユニット1dのMPU12により実現される。この安全ユニットが、安全ユニットを複数連結する場合における安全ユニット間でのデータの送受の管理をするマスタとなる。そして、複数の安全ユニットの中で、安全系を制御する主となる安全ユニット(マスタ)か否かを設定する設定手段を備えるとよい。設定手段は、実施の形態では、ユーザインタフェース21に対応する。このように設定手段を設けることにより、ユーザがどの安全ユニットがマスタであるかを設定したり、後で確認することが容易にできる。   Moreover, it is good to provide the safety system configuration management information storage means which memorize | stores safety system configuration management information, and to provide the master function which manages and collates all the safety units. In the embodiment, the master function is realized by the MPU 12 of the safety unit 1d. This safety unit becomes a master for managing the transmission and reception of data between safety units when a plurality of safety units are connected. And it is good to provide the setting means which sets whether it is the main safety unit (master) which controls a safety system among several safety units. The setting means corresponds to the user interface 21 in the embodiment. By providing the setting means in this way, the user can easily set which safety unit is the master and can confirm later.

更に、ツールインタフェースを備え、接続されたツールからの要求に従い、前記CPUバスを介して前記他の安全ユニット或いは前記非安全ユニットに保有された情報を取得する機能を備えることができる。   Furthermore, a tool interface is provided, and a function of acquiring information held in the other safety unit or the non-safety unit via the CPU bus according to a request from a connected tool can be provided.

また、この発明のコントローラシステムでは、CPUユニットを含む複数の非安全ユニットを連結して構成される非安全コントローラに、上記した各発明の安全ユニットを連結することにより構成できる。この場合に、CPUユニットは、前記CPUバスを経由して前記安全ユニット,前記非安全ユニットを問わず、データ読み出しを可能とするとよい。   Further, the controller system of the present invention can be configured by connecting the safety unit of each invention described above to a non-safety controller configured by connecting a plurality of non-safety units including a CPU unit. In this case, the CPU unit may be capable of reading data via the CPU bus regardless of the safety unit or the non-safety unit.

この発明によれば、安全ユニットの全てにCPUユニットが制御するCPUバスを持たせているので、CPUユニットは、そのCPUバスを経由して安全ユニット,非安全ユニットを問わず、全てのユニットのデータ読み出しが可能となる。逆に、安全ユニットは、CPUユニット経由で非安全ユニットのデータ読み出しが可能となる。   According to the present invention, since all of the safety units have the CPU bus controlled by the CPU unit, the CPU unit can pass through the CPU bus regardless of whether it is a safety unit or a non-safety unit. Data can be read out. Conversely, the safety unit can read data from the non-safety unit via the CPU unit.

従って、CPUユニットにツールを接続すると、非安全系はもちろんのこと安全系のユニットの構成情報を取得することができる。同様に、安全ユニットにツールを接続すると、安全系はもちろんのこと非安全系のユニットの構成情報を取得することができる。   Therefore, when a tool is connected to the CPU unit, it is possible to acquire the configuration information of the safety system unit as well as the non-safety system. Similarly, when a tool is connected to the safety unit, it is possible to acquire the configuration information of the non-safety unit as well as the safety unit.

またこの発明における非安全コントローラと安全コントローラとの連結方法について説明すると、安全コントローラを構成する複数の安全ユニットのそれぞれは安全用専用バスで連結して、各安全ユニット間で情報のやりとりができるようにしているが、それに加えて、非安全コントローラのCPUバスを安全コントローラの各安全ユニットに対して接続する。このときCPUバスが各安全ユニットに対して分岐するようにしている(いわゆるマルチドロップ)。つまり、CPUバスを安全コントローラまで延長して連結しているわけである。そしてこのCPUバスを介して非安全コントローラのCPUユニットと安全ユニットとの間でデータの送受や情報のやりとりを行うようにしている。 The connection method between the non-safety controller and the safety controller in the present invention will be described. Each of the plurality of safety units constituting the safety controller is connected by a dedicated safety bus so that information can be exchanged between the safety units. In addition, the CPU bus of the non-safety controller is connected to each safety unit of the safety controller. At this time, the CPU bus is branched to each safety unit (so-called multidrop). That is, the CPU bus is extended and connected to the safety controller. Data is transmitted and received and information is exchanged between the CPU unit of the non-safety controller and the safety unit via the CPU bus.

またこの発明における制御方法として、非安全コントローラと安全コントローラとをコントローラシステムとして構成し、非安全コントローラのCPUバスを安全コントローラのCPUユニットまで延長して連結する。このとき安全コントローラのCPUユニット以外の安全ユニットを含めてCPUバスで連結しても良い。そして、非安全コントローラの制御として、CPUバスを介して非安全コントローラの各ユニットに対してI/O情報を受け渡しすることに加えて、CPUバスを介して安全コントローラが扱う安全制御用のI/O情報を非安全コントローラが入力するようにしている。さらに、安全コントローラの安全機能制御として、安全用専用バスを介して各安全ユニットに対してI/O情報を受け渡しすることでコントローラシステムの制御が行われる。   As a control method according to the present invention, a non-safety controller and a safety controller are configured as a controller system, and the CPU bus of the non-safety controller is extended and connected to the CPU unit of the safety controller. At this time, a safety unit other than the CPU unit of the safety controller may be connected via the CPU bus. As control of the non-safety controller, in addition to passing I / O information to each unit of the non-safety controller via the CPU bus, I / O for safety control handled by the safety controller via the CPU bus is used. The non-safety controller inputs O information. Furthermore, as a safety function control of the safety controller, the controller system is controlled by passing I / O information to each safety unit via a safety dedicated bus.

なお、非安全コントローラが安全制御用I/O情報を入力する場合には、安全コントローラのCPUユニットのシステムメモリ(実施の形態のシステムRAM14に相当)のI/O情報格納領域や、ネットワーク経由のI/O情報記憶部(実施の形態のI/O情報記憶部22に相当)から取り込むようにすればよい。なお、それに替えて、CPUバスを他の安全ユニットに連結して、安全CPUユニットを経由せずに安全ユニットから直接、そのユニットに接続された機器のI/O情報やそのユニットが格納しているI/O情報を取り込むようにしてもよい。また、安全コントローラにおいて、非安全コントローラ用のI/O情報を取り込んで、それを制御に利用すると安全機能が保証できなくなることから、前記非安全コントローラの制御による情報を取り込まないようにしている。これは安全系のユニット(CPUユニットまたは各ユニット)が非安全系のユニット(コントローラ、CPUユニット)からの制御情報の入力を拒否するようにしてもよいし、非安全系のユニットが安全系ユニットに向けて制御情報を出力しないようにしてもよい。つまり非安全コントローラが構成管理情報に基づいて制御情報やI/O情報を安全系ユニット向けた送信を禁止するようにしてもよい。   When the non-safety controller inputs safety control I / O information, the I / O information storage area in the system memory (corresponding to the system RAM 14 of the embodiment) of the CPU unit of the safety controller or via the network What is necessary is just to make it take in from the I / O information storage part (equivalent to the I / O information storage part 22 of embodiment). Instead, the CPU bus is connected to another safety unit, and the I / O information of the device connected to the unit and the unit are stored directly from the safety unit without going through the safety CPU unit. Existing I / O information may be captured. In addition, if the safety controller captures the I / O information for the non-safety controller and uses it for control, the safety function cannot be guaranteed, so the information by the control of the non-safety controller is not captured. This is because the safety unit (CPU unit or each unit) may refuse to input control information from the non-safety unit (controller, CPU unit), or the non-safety unit may be a safety unit. The control information may not be output toward. That is, the non-safety controller may prohibit transmission of control information and I / O information to the safety unit based on the configuration management information.

ここで、本発明に係るコントローラシステムのモニタ方法は、CPUユニットを含む複数のユニットをCPUバスにより連結して構成される非安全コントローラと、安全機能を有するCPUユニットを含む複数の安全ユニットを連結して構成される安全コントローラと、を有し、前記非安全コントローラのCPUバスを前記安全コントローラまで延長して連結したコントローラシステムにおいて、前記非安全コントローラのCPUユニットにツールインタフェースを備えて、ツールを接続し、接続されたツールからの要求に従って、前記非安全コントローラのCPUユニットが、前記CPUバスを介して前記安全コントローラに保有された情報を取得する処理、その取得した情報を前記ツールインタフェースを介して外部のツールへ送信する処理、及び当該非安全コントローラが保有する情報を前記ツールインタフェースを介して外部のツールへ送信する処理を行なうともに、接続されたツールからの要求に従って、前記非安全コントローラのCPUユニットを経由して前記安全コントローラのCPUユニットに対して、安全機能の制御に関するI/Oデータの書き込みができないようにした。 Here, the monitoring method of the controller system according to the present invention includes a non-safety controller configured by connecting a plurality of units including a CPU unit by a CPU bus and a plurality of safety units including a CPU unit having a safety function. A controller configured to extend and connect the CPU bus of the non-safety controller to the safety controller, the CPU unit of the non-safety controller includes a tool interface, and a tool is provided. In accordance with a request from the connected tool, the CPU unit of the non-safety controller acquires information held in the safety controller via the CPU bus, and the acquired information is transmitted via the tool interface. To send to external tools The process and the process of transmitting information held by the non-safety controller to an external tool via the tool interface, and according to a request from the connected tool, the CPU via the CPU unit of the non-safety controller I / O data related to safety function control cannot be written to the CPU unit of the safety controller.

本発明のコントローラシステムの設定方法では、CPUユニットを含む複数のユニットをCPUバスにより連結して構成される非安全コントローラと、安全機能を有するCPUユニットを含む複数の安全ユニットを連結して構成される安全コントローラと、を有し、前記非安全コントローラのCPUバスを前記安全コントローラまで延長して連結したコントローラシステムにおいて、前記非安全コントローラのCPUユニットにツールインタフェースを備えて、ツールを接続し、接続されたツールからの命令に従って、前記非安全コントローラのCPUユニットが、前記CPUバスを介して前記安全コントローラに対して所定の情報を取得して前記ツールインタフェースを介してツールへ送信する処理、及び当該非安全コントローラの非安全機能の処理に関する制御情報を書き換える処理を行なうとともに、接続されたツールからの要求に従って、前記非安全コントローラのCPUユニットを経由して前記安全コントローラのCPUユニットに対して、安全機能の処理に関する制御情報を書き換えることができないようにした。In the controller system setting method of the present invention, a non-safety controller configured by connecting a plurality of units including a CPU unit by a CPU bus and a plurality of safety units including a CPU unit having a safety function are connected. A controller system in which the CPU bus of the non-safety controller is extended to the safety controller and connected to the CPU unit of the non-safety controller with a tool interface, and a tool is connected. A process in which the CPU unit of the non-safety controller acquires predetermined information to the safety controller via the CPU bus and transmits the predetermined information to the tool via the tool interface in accordance with an instruction from the tool, Non-safety controller non-safety Control information related to the processing of safety functions, to the CPU unit of the safety controller via the CPU unit of the non-safety controller according to the request from the connected tool. Can not be rewritten.

発明に係る別のコントローラシステムのモニタ方法は、CPUユニットを含む複数のユニットをCPUバスにより連結して構成される非安全コントローラと、安全機能を有するCPUユニットを含む複数の安全ユニットを連結して構成される安全コントローラと、を有し、前記非安全コントローラのCPUバスを前記安全コントローラまで延長して連結したコントローラシステムにおいて、前記安全コントローラのCPUユニットにツールインタフェースを備えて、ツールを接続し、接続されたツールからの要求に従い、安全コントローラのCPUユニットの処理により前記CPUバスを介して前記非安全コントローラに保有された情報を取得し、その取得した情報を安全機能の制御に用いることをせずに、前記ツールインタフェースを介して外部のツールへ送信するとともに、接続されたツールからの要求に従い、安全コントローラのCPUユニットの処理により当該安全コントローラに保有された情報を取得し、その取得した情報を前記ツールインタフェースを介して外部のツールへ送信するようにした。 In another controller system monitoring method according to the present invention, a non-safety controller configured by connecting a plurality of units including a CPU unit by a CPU bus and a plurality of safety units including a CPU unit having a safety function are connected. A controller configured to extend the CPU bus of the non-safety controller to the safety controller and connect the tool to the CPU unit of the safety controller with a tool interface. In accordance with a request from the connected tool, the information stored in the non-safety controller is acquired via the CPU bus by processing of the CPU unit of the safety controller, and the acquired information is used for controlling the safety function Without the tool interface The information held in the safety controller is acquired by processing of the CPU unit of the safety controller in accordance with a request from the connected tool, and the acquired information is externally transmitted via the tool interface. It was sent to the tool of.

以上のように、この発明では、非安全系と安全系とで共通のツールにより、安全機能を確保しつつ制御情報やコントローラの状態をモニタしたり、非安全コントローラと安全コントローラとの両方の設定を共通のツールで行うことができる。 As described above, according to the present invention, the control information and the state of the controller can be monitored while the safety function is secured by using a common tool for the non-safety system and the safety system, or both the non-safety controller and the safety controller can be set. Can be done with a common tool.

本発明をより詳細に説明するにあたり、添付の図面に従ってこれを説明する。図1は、本発明が適用されるネットワークシステムの一例を示しており、図2はコントローラたるPLC1の内部構造の一例を示している。図1並びに図2に示すように、本実施の形態では、複数(本例では6個)のユニット1a,1b,1c,1d,…を連結してPLC1が構成されている。本実施の形態のPLC1は、従来と異なり安全機能のない非安全系のネットワークシステムを構築するためのユニット(非安全ユニット)と、安全ネットワークシステムを構築するための機能を有するユニット(安全ユニット)を混在状態で連結することによって形成されている。   The present invention will be described in more detail with reference to the accompanying drawings. FIG. 1 shows an example of a network system to which the present invention is applied, and FIG. 2 shows an example of the internal structure of a PLC 1 that is a controller. As shown in FIG. 1 and FIG. 2, in the present embodiment, a plurality of (six in this example) units 1a, 1b, 1c, 1d,. The PLC 1 according to the present embodiment includes a unit (non-safety unit) for constructing a non-safety network system having no safety function and a unit (safety unit) having a function for constructing a safety network system unlike the conventional one. Are connected in a mixed state.

具体的には、3つの非安全ユニット1aから1cと、3つの安全ユニット1dから1fを備えている。非安全ユニット1aはいわゆるCPUユニット、1bはI/Oユニット、1cは通信マスタユニットである。通信マスタユニット1cには、非安全系のネットワーク3が接続されるとともに、そのネットワーク3には入力機器或いは出力機器などの各種の機器2が接続される。これにより、PLC1は、機器2とともに通常の従来から一般に用いられている非安全のネットワークシステムを構築する。機器2は通信マスタユニット1cとシリアル通信するものであり、スレーブユニットと呼ばれるものである。CPUユニット1aはいわゆるサイクリック処理を行うものである。サイクリック処理は、I/Oリフレッシュ処理,ユーザープログラム実行処理,周辺処理を繰り返し行う処理である。I/Oリフレッシュ処理は、入力機器のON/OFF情報をPLCのCPU部のメモリに取込む処理と、前のサイクルにてユーザープログラムが実行処理された結果を出力機器へ信号出力する処理である。入出力機器は、I/Oユニット1bまたは機器2に接続されている。ユーザープログラム実行処理は、入力機器からの入力情報に基づいてユーザープログラムの条件に照らして演算実行する処理である。周辺処理は、PLCにつながれたネットワーク回線で通信を行う処理である。通信相手としては、ツールや上位コンピュータ端末や、リモートI/Oのスレーブなどがある。   Specifically, three non-safety units 1a to 1c and three safety units 1d to 1f are provided. The non-safety unit 1a is a so-called CPU unit, 1b is an I / O unit, and 1c is a communication master unit. A non-safety network 3 is connected to the communication master unit 1c, and various devices 2 such as input devices and output devices are connected to the network 3. Thereby, PLC1 constructs | assembles the non-secure network system generally used conventionally with the apparatus 2 normally. The device 2 performs serial communication with the communication master unit 1c and is called a slave unit. The CPU unit 1a performs so-called cyclic processing. The cyclic process is a process that repeatedly performs an I / O refresh process, a user program execution process, and a peripheral process. The I / O refresh process is a process of taking ON / OFF information of the input device into the memory of the CPU of the PLC, and a process of outputting the result of executing the user program in the previous cycle to the output device as a signal. . The input / output device is connected to the I / O unit 1b or the device 2. The user program execution process is a process for performing an operation based on input information from the input device in accordance with the conditions of the user program. Peripheral processing is processing for performing communication through a network line connected to the PLC. Communication partners include tools, host computer terminals, and remote I / O slaves.

安全ユニット1dは、安全機能を持ったユニット1d〜1fを統括することができるCPUユニット相当であり、CPUユニット1aと同様にサイクリック処理を行うことに加えて、安全機能を実現できる構成になっている。また、安全ユニット1dには安全ネットワーク7が接続されるとともに、その安全ネットワーク7には安全機器6が接続される。安全機器6の具体例としては、ライトカーテンセンサ,安全スイッチ,安全用途アクチュエータなどの入力機器または出力機器を含む。また、安全ユニット1dが通信マスタ機能を持ったものである場合には、安全機器6をスレーブユニット相当としたり、I/Oターミナル相当としてもよく、安全ネットワークでリモートI/Oを構築できる。安全機器6は、入力機器、出力機器または入出力機器が複数個接続されることになり、マスタとはシリアル通信でI/O情報をやりとりする。安全ユニット1eは、安全I/Oユニット相当であり、ネットワーク経由なしに直接的に安全機器(入力機器または出力機器)を接続でき、安全CPUユニット1dのI/Oリフレッシュ処理のタイミングで入力信号を取り込むとともに出力信号を出力する。安全ユニット1fは安全ユニットのひとつとして機能するものであり、例えば安全高機能ユニット、安全アナログユニット、安全モーションコントロールユニットなどがある。   The safety unit 1d is equivalent to a CPU unit capable of supervising the units 1d to 1f having safety functions, and in addition to performing cyclic processing in the same manner as the CPU unit 1a, the safety unit 1d is configured to realize a safety function. ing. A safety network 7 is connected to the safety unit 1d, and a safety device 6 is connected to the safety network 7. Specific examples of the safety device 6 include input devices or output devices such as a light curtain sensor, a safety switch, and a safety application actuator. If the safety unit 1d has a communication master function, the safety device 6 may be equivalent to a slave unit or equivalent to an I / O terminal, and a remote I / O can be constructed on the safety network. The safety device 6 is connected to a plurality of input devices, output devices, or input / output devices, and exchanges I / O information with the master through serial communication. The safety unit 1e is equivalent to a safety I / O unit, and can be directly connected to a safety device (input device or output device) without going through a network, and an input signal is sent at the timing of the I / O refresh processing of the safety CPU unit 1d. Captures and outputs an output signal. The safety unit 1f functions as one of the safety units, such as a safety high-function unit, a safety analog unit, and a safety motion control unit.

そして、図示のようにCPUバス10が全てのユニット1aから1fにまたがって設けられている。CPUバス10は、各ユニット間でデータの送受を可能とする通信バスラインである。そのCPUバス10におけるデータの送受の制御は、非安全系のCPUユニット1aが管理する。つまり、バス権を受け渡しするアービタ制御をCPUユニット1aが行う。また、安全ユニット1dから1fには、上記CPUバス10とは独立した別の安全用専用バス11がまたがって設けられていて、安全ユニット同士がバスにより接続されている。そして、安全ユニット1dから1f間での安全データの送受は、その安全用専用バス11を介して行われる。この安全用専用バス11のバス権の制御は、CPUユニット1aからはできず、安全ユニット1dから1fの中のいずれかのユニットが行う。なお、いずれかのユニットのうち一つがバスマスタ機能をもつようにしてもよい。   As shown in the figure, a CPU bus 10 is provided across all the units 1a to 1f. The CPU bus 10 is a communication bus line that enables data transmission / reception between units. The control of data transmission / reception on the CPU bus 10 is managed by the non-safety CPU unit 1a. That is, the CPU unit 1a performs arbiter control for transferring the bus right. The safety units 1d to 1f are provided with another safety dedicated bus 11 independent of the CPU bus 10, and the safety units are connected by a bus. Then, transmission / reception of safety data between the safety units 1d to 1f is performed via the safety dedicated bus 11. Control of the bus right of the safety dedicated bus 11 cannot be performed by the CPU unit 1a, but is performed by any one of the safety units 1d to 1f. One of the units may have a bus master function.

つまり、全てのユニット1aから1fを接続するCPUバス10と、安全ユニット1dから1fを接続する安全用専用バス11とを別々に設けたので、一連のPLCのなかで、非安全系のユニットが持つデータと安全系のユニットが持つデータとを相互に交換したい場合にはCPUバス10を利用して通信をすることができる。例えば、安全ユニット1dが持つI/O情報をCPUユニット1aに渡すことや、安全ユニット1dが持つ安全ユニット群の各種設定情報をCPUユニット1aに渡すことや、CPUユニット1aから安全ユニット1d〜1fに対して各種設定情報を渡すことができる。なお、CPUユニット1aのI/O情報を安全ユニットに渡すことはしないほうが良い。それは安全機能を有さないI/O情報が安全装置に混入すると、安全装置側で安全機能を確保できなくなるおそれが生じるからである。   That is, since the CPU bus 10 for connecting all the units 1a to 1f and the safety dedicated bus 11 for connecting the safety units 1d to 1f are provided separately, a non-safety unit is included in a series of PLCs. When it is desired to exchange the data held by the safety unit with the data held by the safety system, communication can be performed using the CPU bus 10. For example, the I / O information possessed by the safety unit 1d is passed to the CPU unit 1a, the various setting information of the safety unit group possessed by the safety unit 1d is passed to the CPU unit 1a, or the safety units 1d to 1f from the CPU unit 1a. Various setting information can be passed to. It is better not to pass the I / O information of the CPU unit 1a to the safety unit. This is because if the I / O information having no safety function is mixed in the safety device, the safety device may not be able to secure the safety function.

一方、安全機能を確保したい安全関連のデータについては、安全用専用バス11によるクローズな世界で通信することができる。すなわち、安全機能を実施するためのデータの送受は、安全ユニット1dから1f内で確実に行うことができるようになり、フェイルセーフなどの安全機能を確実に実現できる。要するに、一連のPLCで安全系と非安全系とを混在させつつ、互いに独立関係をも持たせる構成としているのである。   On the other hand, safety-related data for which a safety function is to be secured can be communicated in a closed world using the safety dedicated bus 11. That is, the transmission and reception of data for performing the safety function can be reliably performed in the safety units 1d to 1f, and a safety function such as fail-safe can be realized with certainty. In short, a series of PLCs have a configuration in which a safety system and a non-safety system are mixed and have an independent relationship with each other.

また、PLC1にはツール5が接続可能となっていて、ツール5によってユーザプログラムを作成または編集してPLC1へダウンロードしたり、PLC1に格納されたネットワークシステムの情報を収集したりできる。収集情報としては他に、PLCの構成管理情報や、I/O情報(各接点の制御状態など)、各ユニットのI/O情報、各入力接点の状態、出力接点の状態、CPUユニットのI/Oデータ、I/Oユニットのバッファメモリの情報など)、各ユニットの設定情報(初期設定情報、ノード番号、通信ユニットの通信設定など)、安全情報(安全ユニットのI/O情報、各ユニットの動作時間情報、寿命情報、異常履歴情報など)、各ユニットの構成管理情報などがある。   A tool 5 can be connected to the PLC 1, and a user program can be created or edited by the tool 5 and downloaded to the PLC 1, or network system information stored in the PLC 1 can be collected. In addition to the collected information, PLC configuration management information, I / O information (control status of each contact, etc.), I / O information of each unit, status of each input contact, status of output contact, I / O of CPU unit / O data, buffer memory information of I / O unit, etc.), setting information of each unit (initial setting information, node number, communication setting of communication unit, etc.), safety information (I / O information of safety unit, each unit) Operating time information, lifetime information, abnormality history information, etc.), configuration management information of each unit, and the like.

次に、各ユニットの具体的な構成を説明する。まず、非安全ユニット1aは、本形態ではCPUユニット1aとなり、非安全系に対する制御、つまりラダーなどで作成されたユーザプログラムを実行したり、CPUバス10のマスタとなったり、PLC1の全体構成の管理をしたりする。前述のように、このCPUユニット1aはいわゆるサイクリック処理を行うもので、I/Oリフレッシュ処理、ユーザープログラム実行処理、周辺処理を繰り返し行う。   Next, a specific configuration of each unit will be described. First, the non-safety unit 1a is a CPU unit 1a in this embodiment, and controls the non-safety system, that is, executes a user program created by a ladder or the like, becomes a master of the CPU bus 10, and has an overall configuration of the PLC 1. Or manage. As described above, the CPU unit 1a performs so-called cyclic processing, and repeatedly performs I / O refresh processing, user program execution processing, and peripheral processing.

係る処理は、MPU12が、システムROM13に格納されたシステムプログラム、さらにはユーザプログラム記憶部15に格納されたユーザプログラムを読み出し、システムRAM14のメモリ領域(I/O情報格納エリア)を適宜使用して実行する。更に、構成管理情報記憶部16を有し、PLC1を構成する全ユニットについての情報(構成管理情報)が格納され、この格納された構成管理情報に基づき全体構成の管理をする。構成管理情報記憶部16のデータ構造としては、例えば図3に示すように、スロットNo,ID,製品型式,シリアルNoを関連づけたテーブルとしている。スロットNoは、接続した各ユニットに順に付与される番号であり、IDは種類を特定する情報である。図から明らかなように、このスロットNoは、安全系,非安全系を問わず、全てのユニット1aから1fに付与される。この構成管理情報は、ツール5から各ユニット1a〜1fに対して諸事項を設定するときなどに利用されるものである。   In this process, the MPU 12 reads the system program stored in the system ROM 13 and further the user program stored in the user program storage unit 15 and uses the memory area (I / O information storage area) of the system RAM 14 as appropriate. Execute. Furthermore, it has a configuration management information storage unit 16 and stores information (configuration management information) about all the units constituting the PLC 1 and manages the entire configuration based on the stored configuration management information. The data structure of the configuration management information storage unit 16 is a table in which slot numbers, IDs, product types, and serial numbers are associated as shown in FIG. 3, for example. The slot number is a number assigned to each connected unit in order, and the ID is information specifying the type. As is apparent from the figure, this slot No. is assigned to all the units 1a to 1f regardless of the safety system or the non-safety system. This configuration management information is used when various items are set from the tool 5 to the units 1a to 1f.

さらに、ツールインタフェース17を有しており、このツールインタフェース17にツール5を接続することにより、ユーザプログラムのダウンロード等をしたり、情報を収集したり、PLC1に対して設定をすることができる。また、ツールインタフェース17と内部バスでつながるMPU12は、インタフェース18を介してCPUバス10に連携されていて、ツール5と各ユニット1b〜1fとが信号送受信できるようになっている。例えば、ツール5側でスロットNo(ユニット番号に相当)により設定対象のユニットを特定し、ツール5側でその特定したユニットの設定情報を入力し、特定したユニットへ設定情報をダウンロードする。このダウンロードは、ツール5,ツールインタフェース17,MPU12,インタフェース18,CPUバス10の経路を経て各ユニットへ至る。   Furthermore, it has a tool interface 17, and by connecting the tool 5 to this tool interface 17, it is possible to download a user program, collect information, and set the PLC 1. The MPU 12 connected to the tool interface 17 via an internal bus is linked to the CPU bus 10 via the interface 18 so that the tool 5 and the units 1b to 1f can transmit and receive signals. For example, the setting target unit is specified by the slot number (corresponding to the unit number) on the tool 5 side, the setting information of the specified unit is input on the tool 5 side, and the setting information is downloaded to the specified unit. This download reaches each unit via the path of the tool 5, the tool interface 17, the MPU 12, the interface 18, and the CPU bus 10.

非安全ユニット1b,1cは、非安全機能の実行をするもので、MPU12がインタフェース18を介してCPUバス10に接続され、CPUユニット1a等との間でデータの送受を行う。MPU12は、システムROM13,システムRAM14にアクセスし、各ユニットの機能を実現するための所定の処理を実行する。   The non-safety units 1b and 1c execute non-safety functions. The MPU 12 is connected to the CPU bus 10 via the interface 18 and transmits / receives data to / from the CPU unit 1a and the like. The MPU 12 accesses the system ROM 13 and the system RAM 14 and executes predetermined processing for realizing the function of each unit.

本形態では、非安全ユニット1bは、I/Oインタフェース19を備えた非安全系のI/Oユニットであり、このI/Oインタフェースに直接所定のI/O機器を接続する。また、非安全ユニット1cは通信インタフェース20を備えた非安全系の通信ユニットである。従って、この非安全ユニット1c(通信ユニット)の通信インタフェース20がネットワーク3に接続され、その非安全系ネットワーク3に接続された機器2とともに、非安全系のネットワークシステムを構築する。   In this embodiment, the non-safety unit 1b is a non-safety I / O unit including an I / O interface 19, and a predetermined I / O device is directly connected to the I / O interface. The non-safety unit 1 c is a non-safety communication unit including the communication interface 20. Accordingly, the communication interface 20 of the non-safety unit 1c (communication unit) is connected to the network 3, and together with the device 2 connected to the non-safety network 3, a non-safety network system is constructed.

なお、この非安全系のネットワークシステムは、従来から一般に用いられているPLCによるネットワークシステムであり、「非安全系」と称しているもののその内容は従来公知のものである。また、既設の設備の場合もある。   This non-safety network system is a network system based on PLC that has been generally used in the past, and the contents thereof are conventionally known although they are referred to as “non-safety”. In some cases, it is an existing facility.

一方、安全ユニット1dから1fは、安全機能の実行をするもので、安全用専用バス11に接続される。この安全用専用バス11は、安全ユニット1dから1fのみが接続され、安全機能を実現するのに適していて、従来のCPUバス10とは独立して設けられている。更に、この安全ユニット1dから1fは、CPUバス10にも接続されており、このCPUバス10を介して非安全ユニットとの間で必要なデータの送受をできるようにしている。そして、図示のように各安全ユニット1dから1fにも、各機能を実行するために、MPU12と、その実行するためのプログラムを格納したシステムROM13並びに演算実行時に使用するシステムRAM14を備えている。各MPU12は、インタフェース18を介してCPUバス10に接続されるとともに、安全用インタフェース24を介して安全用専用バス11に接続される。   On the other hand, the safety units 1d to 1f perform safety functions and are connected to the safety dedicated bus 11. The safety dedicated bus 11 is connected to only the safety units 1d to 1f, is suitable for realizing a safety function, and is provided independently of the conventional CPU bus 10. Further, the safety units 1d to 1f are also connected to the CPU bus 10 so that necessary data can be transmitted to and received from the non-safety unit via the CPU bus 10. As shown in the figure, each of the safety units 1d to 1f is also provided with an MPU 12, a system ROM 13 storing a program for executing the function, and a system RAM 14 used at the time of executing the operation in order to execute each function. Each MPU 12 is connected to the CPU bus 10 via an interface 18 and is connected to the safety dedicated bus 11 via a safety interface 24.

更に、複数の安全ユニット1dから1fの中の1つは、安全用専用バス11のマスタとなり(図の例では符号1d)、安全系構成管理情報記憶部25に、安全ユニット1dから1fの構成管理情報を格納する。安全系構成管理情報記憶部25のデータ構造としては、例えば図4に示すようになっている。   Furthermore, one of the plurality of safety units 1d to 1f becomes the master of the safety dedicated bus 11 (reference numeral 1d in the example in the figure), and the safety system configuration management information storage unit 25 includes the configuration of the safety units 1d to 1f. Stores management information. The data structure of the safety system configuration management information storage unit 25 is, for example, as shown in FIG.

この図4と図3を比較すると明らかなように、格納する情報の種類は同じ(スロットNo,ID,製品型式,シリアルNo)であるが、図3の構成管理情報記憶部16に格納するのは全てのユニットについての構成管理情報であったが、図4に示す安全系構成管理情報は、安全系を構成する安全ユニット1dから1fについてのみとしている点で相違する。そして、スロットNo.(安全スロットNo.)も新たに振り直す。つまり、安全ユニット1dは、スロットNo.は「4」となり安全スロットNoは「1」となる。同様に、安全ユニット1e,1fは、それぞれスロットNo.は「5」,「6」となり安全スロットNoは「2」,「3」となる。   As is clear from comparison between FIG. 4 and FIG. 3, the types of information to be stored are the same (slot No, ID, product model, serial No), but are stored in the configuration management information storage unit 16 in FIG. Is the configuration management information for all units, but the safety system configuration management information shown in FIG. 4 is different in that it is only for the safety units 1d to 1f constituting the safety system. And slot no. (Safety slot No.) is also reassigned. That is, the safety unit 1d has a slot No. Becomes “4” and the safety slot No. becomes “1”. Similarly, each of the safety units 1e and 1f has a slot No. Becomes “5” and “6”, and the safety slot numbers become “2” and “3”.

更にまた、安全ユニット1dには、ツールインタフェース17と通信インタフェース20を備えており、これらのインタフェースを介してツール5や安全ネットワーク7に接続できるようになっている。また、この安全ネットワーク7に接続される安全機器6との間でシリアル通信をすることで、各安全機器6のI/O情報を取り込んでI/O情報記憶部22に記憶保持する。このI/O情報記憶部22のデータ構造としては、図5に示すようになる。つまり、安全ユニット1dがリモートI/Oの通信マスタユニット相当になって、安全機器6が通信スレーブ相当として動作することで、安全ネットワークを介して離れた場所にある機器(スイッチやセンサなどの入力機器、アクチュエータなどの出力機器)とやりとりができる。なお、安全機器6自体が、一つ一つの入力機器や出力機器になっていて、それぞれの機器がネットワーク7に直接出力するインターフェース手段を持っていても良い。また、一つの安全機器6が、複数の入力または出力機器を接続するもので、いわゆるスレーブユニットやターミナルユニットであってもよい。この場合には複数の機器のI/O情報をパラレル/シリアル相互変換してネットワークに信号送信または受信する。   Furthermore, the safety unit 1d includes a tool interface 17 and a communication interface 20, and can be connected to the tool 5 and the safety network 7 through these interfaces. In addition, by performing serial communication with the safety device 6 connected to the safety network 7, the I / O information of each safety device 6 is captured and stored in the I / O information storage unit 22. The data structure of the I / O information storage unit 22 is as shown in FIG. In other words, the safety unit 1d is equivalent to a remote I / O communication master unit, and the safety device 6 operates as a communication slave. Devices, actuators and other output devices). The safety device 6 itself may be an input device or an output device, and each device may have an interface unit that directly outputs to the network 7. Further, one safety device 6 connects a plurality of input or output devices, and may be a so-called slave unit or terminal unit. In this case, I / O information of a plurality of devices is parallel / serial converted and transmitted or received to the network.

さらに、安全ユニット1dには、ユーザインタフェース21を設けている。このユーザインタフェース21は、各種スイッチからなり、各種の設定を行うようになっている。一例を示すと、マスタユニットであるか否かの設定をすることに用いる。なお、安全ユニット1dは、安全系のマスタであるとともに、通信ユニットも構成しているが、それらの機能を分けて別々のユニットとして構成してももちろん良い。   Furthermore, a user interface 21 is provided in the safety unit 1d. The user interface 21 is composed of various switches and performs various settings. As an example, it is used to set whether or not it is a master unit. The safety unit 1d is a safety master and also constitutes a communication unit, but it is of course possible to divide these functions and configure them as separate units.

安全ユニット1e並びに安全ユニット1fも、CPUバス10並びに安全用専用バス11を有し、MPU12は、インタフェース18並びに安全用インタフェース24を介して各バス10,11に接続される。さらに、安全ユニット1eは、I/Oユニットを構成する。すなわち、I/Oインタフェース19を備え、このI/Oインタフェース19に接続されたI/O安全機器の安全情報を取得し、I/O情報記憶部23に格納する。I/O情報記憶部23におけるデータ構造の一例を示すと、図6に示すようになっている。また、これら安全機器とのデータの送受や、I/O情報記憶部23への格納その他の処理は、システムROM13,システムRAM14にアクセスしながらMPU12が行う。   The safety unit 1e and the safety unit 1f also have a CPU bus 10 and a safety dedicated bus 11, and the MPU 12 is connected to the buses 10 and 11 via the interface 18 and the safety interface 24. Furthermore, the safety unit 1e constitutes an I / O unit. That is, the I / O interface 19 is provided, and the safety information of the I / O safety device connected to the I / O interface 19 is acquired and stored in the I / O information storage unit 23. An example of the data structure in the I / O information storage unit 23 is shown in FIG. The MPU 12 performs data transmission / reception with these safety devices, storage in the I / O information storage unit 23 and other processing while accessing the system ROM 13 and the system RAM 14.

次に、非安全系のマスタとなるCPUユニット1aに設けられたMPU12の機能について説明する。まず、電源が投入されると(ST1)、構成管理情報と実際のユニットをチェックし、一致しているか否かを判断する(ST2)。つまり、CPUバス10に接続された各ユニット(安全系,非安全系)が、正しく接続されているか否か等を判断する。そして、一致していない場合には、構成異常となり、動作を停止する(ST3,ST4)。   Next, functions of the MPU 12 provided in the CPU unit 1a serving as a non-safety master will be described. First, when the power is turned on (ST1), the configuration management information and the actual unit are checked to determine whether or not they match (ST2). That is, it is determined whether or not each unit (safety system, non-safety system) connected to the CPU bus 10 is correctly connected. If they do not match, the configuration is abnormal and the operation is stopped (ST3, ST4).

一方、構成チェックでOKとなると運転開始命令を待ち(ST5)、開始命令を受けると通常のサイクリック制御動作に移行する。つまり、まずCPUバスのリフレッシュ処理を実行する(ST6)。これはI/Oリフレッシュと呼ばれるもので、CPUユニット1aのシステムRAM14と他のユニット1b,1c(必要に応じて1d〜1f)のシステムRAM14とに格納されているI/Oデータを書き換えして、最新のI/Oデータに更新する処理である。そして、このI/Oリフレッシュ処理で得た最新の入力データに基づいてユーザプログラムを実行する(ST7)。その実行結果は最新出力データとしてシステムRAM14に書き込みされる。この実行結果は、次回のI/Oリフレッシュ処理時に他のユニットへ出力データとして送られる。そして、CPUユニット1aのツールインタフェースからの処理要求の有無を判断し(ST8)、要求がない場合には、リフレッシュ処理とユーザプログラムの実行を繰り返し行う。そして、CPUユニット1aに接続されたツール5から処理要求があった場合(ST8でYes)には、ツール処理を実行する。この処理は前述の周辺処理のことである。この周辺処理を終えるか、所定時間だけ周辺処理を行った後、ステップ6に戻る。その後は通常のサイクリック実行処理を繰り返し行われる。周辺処理として例えば、I/O情報のモニタ(読み出し)や、I/O情報の書き換えを行う処理ができる。I/O情報の読み出しについては非安全系でも安全系でも良いが、書き込みについては安全系に対してできないようにしている。他にユーザプログラムの取り出しや、構成管理情報の読み出しや更新をできるようにしても良い。なお周辺処理については後述もしている。   On the other hand, when the configuration check is OK, the operation start command is waited (ST5), and when the start command is received, the operation shifts to a normal cyclic control operation. That is, first, a CPU bus refresh process is executed (ST6). This is called I / O refresh, and the I / O data stored in the system RAM 14 of the CPU unit 1a and the system RAM 14 of other units 1b and 1c (1d to 1f as required) is rewritten. This is a process of updating to the latest I / O data. Then, the user program is executed based on the latest input data obtained by this I / O refresh process (ST7). The execution result is written in the system RAM 14 as the latest output data. This execution result is sent as output data to another unit during the next I / O refresh process. Then, it is determined whether or not there is a processing request from the tool interface of the CPU unit 1a (ST8). If there is no request, the refresh process and the execution of the user program are repeated. When there is a processing request from the tool 5 connected to the CPU unit 1a (Yes in ST8), the tool processing is executed. This processing is the peripheral processing described above. After the peripheral processing is completed or the peripheral processing is performed for a predetermined time, the process returns to Step 6. Thereafter, the normal cyclic execution process is repeated. As peripheral processing, for example, monitoring (reading) of I / O information and processing for rewriting I / O information can be performed. The reading of I / O information may be a non-safety system or a safety system, but writing is not allowed for the safety system. In addition, the user program may be taken out, and the configuration management information may be read out and updated. The peripheral processing is also described later.

この非安全系のPLC処理をCPUユニット1aで行う際に、必要に応じて安全系のI/O情報を利用してもよい。その場合には、どの安全ユニットにつながれたどの安全機器のI/O情報を利用するかを、構成管理情報をもとにI/O割付をする。I/O割付けは、システムRAM14の中のI/O情報エリアと先の安全機器との対応付けをすることである。この割付けをしておくことでCPUユニット1aのMPU12がCPUバス10を経由して、特定の安全ユニットの安全機器のI/O情報を獲得する。具体的なやりかたとしては、安全ユニット1d(CPUユニット相当)に備えられたシステムRAM14に格納された各安全ユニットのI/O情報またはネットワーク上の機器のI/O情報記憶部23に格納されたデータを、CPUユニット1aのMPU12の処理により、CPUバス10を経由して獲得する方法がある。それに限らず、安全ユニット1e、1fからI/O情報を獲得してもよい。   When this non-safety PLC processing is performed by the CPU unit 1a, safety-related I / O information may be used as necessary. In that case, I / O allocation is performed based on the configuration management information as to which I / O information of which safety device is connected to which safety unit. The I / O assignment is to associate the I / O information area in the system RAM 14 with the previous safety device. By making this assignment, the MPU 12 of the CPU unit 1 a acquires I / O information of the safety device of the specific safety unit via the CPU bus 10. Specifically, the safety unit 1d (corresponding to the CPU unit) is stored in the I / O information of each safety unit stored in the system RAM 14 or the I / O information storage unit 23 of the device on the network. There is a method of acquiring data via the CPU bus 10 by processing of the MPU 12 of the CPU unit 1a. However, the I / O information may be acquired from the safety units 1e and 1f.

次に、安全ユニット1dから1fのMPU12の機能について説明する。図8に示すように、電源が投入されると(ST11)、安全系マスタであるか否かを判断する(ST12)。この判断は、ユーザインタフェース21の設定に基づき行う。なお、安全系マスタか否かの設定がユーザインタフェース21を用いるのではなく、例えば、安全系マスタを安全ユニットNo.が「1」に設定するようにすると、ステップ12の分岐判断は、安全系ユニットNo.をチェックすることにより行うことになる。   Next, the function of the MPU 12 of the safety units 1d to 1f will be described. As shown in FIG. 8, when the power is turned on (ST11), it is determined whether or not it is a safety system master (ST12). This determination is made based on the setting of the user interface 21. The user interface 21 is not used for setting whether or not the safety master is used. For example, the safety master is assigned a safety unit number. Is set to “1”, the branch determination in step 12 is the safety unit No. This is done by checking.

安全系マスタの場合には、ステップ12でYesとなりステップ13に進み、安全バスマスタと認識し、安全系構成管理情報と実際のユニット構成をチェックし、一致しているか否かを判断する(ST14)。つまり、安全用専用バス11に接続された各安全ユニット1dから1fが、正しく接続されているか否か等を判断する。そして、一致していない場合には、構成異常となり、動作を停止する(ST23,ST24)。   In the case of a safety system master, the result of step 12 is Yes, and the process proceeds to step 13, where it is recognized as a safety bus master, and the safety system configuration management information and the actual unit configuration are checked to determine whether they match (ST14). . That is, it is determined whether or not each safety unit 1d to 1f connected to the safety dedicated bus 11 is correctly connected. If they do not match, the configuration is abnormal and the operation is stopped (ST23, ST24).

一方、安全系のバス構成がOKとなると、通常のサイクリック制御動作に移行する。つまり、安全用専用バス11のリフレッシュ処理を実行する(ST15)。この実行は、安全マスタ1dのシステムRAM14と他ユニット1e、1fのシステムRAM14とで双方格納されているI/Oデータを交換して、最新のI/Oデータに更新する処理である。この処理によって安全マスタ1dにとっては、他ユニット1e、1fからの入力情報を取り込んで入力情報を最新のものに更新することと、出力情報を他ユニットに渡して他ユニット側の出力情報を最新のものに更新することになる。次に、このI/Oリフレッシュ処理で得た最新の入力データに基づいて、安全機能処理を実行する(ST16)。この安全機能処理とは、安全マスタ1dにおけるユーザプログラム実行のことであり、入力情報に伴って予め決まった論理演算を処理し、その演算結果を安全機器を動作させるための出力情報として得る処理をいう。その後、CPUバス10を介して或いは安全ユニット1dのツールインタフェースからツール5の処理要求の有無を判断する(ST17)。そして、要求がない場合には、ステップ15のリフレッシュ処理に戻り、通常のサイクリック処理を繰り返し行うことになる。一方、CPUユニット1a或いは安全ユニット1dに接続されツール5から処理要求があった場合(ST17でYes)には、周辺処理としてのツール処理を実行後、ステップ15に戻り通常のサイクリック処理を行う。なお、ツール処理として例えば、安全機器また安全装置全体の状態モニタを行うことがある。もちろんツールを介して安全マスタ1dのシステムRAM14中のI/O情報を書き換えることをできるようにしても良いが、その場合にはパスワード管理をする必要がある。またCPUバス10を介して行うツール処理はモニタなどに限定され、安全機器情報や安全装置に関わる制御情報を書き換えることはできないようにするのが好ましい。その理由は、安全機能処理をするうえで非安全経路から情報を取り込んで、その取り込んだ情報を安全用途に使ってしまうと安全機能が確保できなくなるからである。   On the other hand, when the safety system bus configuration is OK, the operation shifts to a normal cyclic control operation. That is, the refresh process for the safety dedicated bus 11 is executed (ST15). This execution is a process of exchanging the I / O data stored in both the system RAM 14 of the safety master 1d and the system RAM 14 of the other units 1e and 1f to update to the latest I / O data. By this process, the safety master 1d takes in the input information from the other units 1e and 1f, updates the input information to the latest one, passes the output information to the other unit, and updates the output information on the other unit side. Will be updated to the ones. Next, safety function processing is executed based on the latest input data obtained by this I / O refresh processing (ST16). This safety function process is a user program execution in the safety master 1d, which processes a predetermined logical operation in accordance with input information and obtains the operation result as output information for operating the safety device. Say. Thereafter, it is determined whether or not there is a processing request for the tool 5 via the CPU bus 10 or from the tool interface of the safety unit 1d (ST17). If there is no request, the process returns to the refresh process in step 15 and the normal cyclic process is repeated. On the other hand, if there is a processing request from the tool 5 connected to the CPU unit 1a or the safety unit 1d (Yes in ST17), the processing returns to step 15 to perform normal cyclic processing after executing tool processing as peripheral processing. . In addition, as a tool process, for example, the state of the safety device or the entire safety device may be monitored. Of course, the I / O information in the system RAM 14 of the safety master 1d may be rewritten via a tool, but in that case, password management is required. Tool processing performed via the CPU bus 10 is limited to a monitor or the like, and it is preferable that safety device information and control information related to the safety device cannot be rewritten. The reason is that if safety information processing is performed, information is taken from a non-safety route, and if the taken information is used for safety purposes, the safety function cannot be secured.

安全系のデータやりとりについて説明する。安全用専用バス11を介して各ユニット1d〜1f同士でデータ送受信が行われるわけだが、そのときの安全機能として、データ送信の2重化を行っている。例えば、送信側の安全ユニットは安全用専用バス11に2回同一データを送信し、受信側の安全ユニットにて受信した2つのデータが一致をしたことを条件にしてデータを取り込みを有効化するとよい。他の方法としては、送信側安全ユニットが、一つのフレーム中に実データ情報とそれを加工した信号(例えばデジタル的に反転させた信号)とを含めて安全用専用バス11に流し、受信側安全ユニットで受けたフレームの中から実データ部分と、加工信号を復元した信号(例では再びデジタル反転して、反転前の状態に戻した信号)との一致を確認して、一致を条件にして受信データを有効とみなすようにしてもよい。   Explain safety data exchange. Data transmission / reception is performed between the units 1d to 1f via the safety dedicated bus 11, but the data transmission is duplexed as a safety function at that time. For example, if the sending safety unit sends the same data twice to the safety dedicated bus 11 and validates the data capture on condition that the two data received by the receiving safety unit match Good. As another method, the transmission-side safety unit includes the actual data information and a signal obtained by processing the actual data information in one frame (for example, a digitally inverted signal) and sends it to the safety dedicated bus 11 to receive the data. Check the match between the actual data part of the frame received by the safety unit and the signal that restored the processed signal (in this example, the signal that was digitally inverted again and returned to the state before the inversion). The received data may be regarded as valid.

一方、自己が安全系マスタでない場合(ステップ12でNo)には、安全バススレーブと認識し(ST19)、安全バスインタフェース処理要求の有無を判断する(ST20)。そして、要求があった場合には安全バスリフレッシュ処理を行い、所定のデータを安全系のマスタに応答した後、安全機能処理を実行する(ST22)。また、要求がない場合には、そのまま安全機能処理を実行する。   On the other hand, if it is not a safety master (No in step 12), it is recognized as a safety bus slave (ST19), and the presence or absence of a safety bus interface processing request is determined (ST20). If there is a request, a safety bus refresh process is performed, and after a predetermined data is returned to the safety master, a safety function process is executed (ST22). If there is no request, the safety function process is executed as it is.

次に、ツール処理、つまり、異なるユニットに格納されたデータの呼び出し(取得)処理について説明する。まず、図9は、CPUユニット1aに接続したツール5から安全ユニットが保有する情報を読み出す場合の処理手順を示している。ここで読み出す情報としては、安全系のマスタである安全ユニット1dからは、安全系構成管理情報記憶部25,I/O情報記憶部22に格納された安全系構成管理情報並びにネットワーク上機器I/O情報であり、安全系のI/Oユニットである安全ユニット1eからは、I/O情報記憶部23に格納されたI/O情報である。   Next, tool processing, that is, processing for calling (acquiring) data stored in different units will be described. First, FIG. 9 shows a processing procedure when information held by the safety unit is read from the tool 5 connected to the CPU unit 1a. Information read out from the safety unit 1d, which is a safety system master, includes the safety system configuration management information stored in the safety system configuration management information storage unit 25 and the I / O information storage unit 22, and the network device I / O. O information, which is I / O information stored in the I / O information storage unit 23 from the safety unit 1e, which is a safety I / O unit.

まず、ツール5が読み出し要求をする(ST30)。CPUユニット1aのMPU12は、係るツール5からの要求を待ち(ST31)、ツールインタフェース17を介して要求を受け付けると、その要求の内容を解析し、読み出すデータを保有する安全ユニットに対して読み出し要求をする(ST32)。この読み出し要求はCPUバス10を介して行われる。   First, the tool 5 makes a read request (ST30). The MPU 12 of the CPU unit 1a waits for a request from the tool 5 (ST31), and when receiving the request through the tool interface 17, analyzes the content of the request and requests the safety unit holding the data to be read out (ST32). This read request is made via the CPU bus 10.

一方、安全ユニットのMPU12も、CPUバス10を介して送られてくる要求を待ち(ST33)、要求を受け付けると、内部バスを介して自己が管理・保有する情報(データB&C,データD)を読み出し、読み出した情報(データB&C,データD)をCPUバス10を介してCPUユニット1aのMPU12に向けて送信する(ST34)。   On the other hand, the MPU 12 of the safety unit also waits for a request sent via the CPU bus 10 (ST33), and when the request is accepted, information (data B & C, data D) that it manages and holds via the internal bus is received. The read information (data B & C, data D) is transmitted to the MPU 12 of the CPU unit 1a via the CPU bus 10 (ST34).

CPUユニット1aのMPU12は、要求を出した安全ユニットからの応答を受信すると、その受け取ったデータ(B&C,D)を、内部バス→ツールインタフェース17を介してツール5に送る(ST35)。これにより、ツール5は、データ(B&C,D)を受信することができるので(ST36)、受信したデータをツール5のモニタに表示する(ST37)。   When the MPU 12 of the CPU unit 1a receives a response from the requesting safety unit, the MPU 12 sends the received data (B & C, D) to the tool 5 via the internal bus → tool interface 17 (ST35). Thereby, since the tool 5 can receive data (B & C, D) (ST36), the received data is displayed on the monitor of the tool 5 (ST37).

これにより、非安全系であるCPUユニット1a側から、安全系の安全ユニットが保有するデータを収集することができる。なお、具体的な図示は省略するが、従来と同様にCPUユニット1aに接続されたツール5は、CPUユニット1aが保有するデータをモニタリングできるのはいうまでもない。   As a result, data held by the safety system safety unit can be collected from the non-safe system CPU unit 1a. Although not specifically shown, it goes without saying that the tool 5 connected to the CPU unit 1a can monitor the data held by the CPU unit 1a as in the prior art.

次に、安全系のマスタである安全ユニット1dに接続したツール5から、非安全系のCPUユニット1aが保有する情報(構成管理情報記憶部16に格納された管理構成情報:データA)を読み出す場合の処理手順を説明する。図10に示すように、ツール5が読み出し要求をする(ST40)。安全ユニット1dのMPU12は、係るツール5からの要求を待ち(ST41)、ツールインタフェース17を介して要求(読み出すデータを特定する)を受け付けると、その要求の内容を解析し、CPUユニット1aに対して読み出し要求をする(ST42)。この読み出し要求はCPUバス10を介して行われる。   Next, the information (management configuration information: data A stored in the configuration management information storage unit 16) held by the non-safety CPU unit 1a is read from the tool 5 connected to the safety unit 1d, which is the safety master. A processing procedure in this case will be described. As shown in FIG. 10, the tool 5 makes a read request (ST40). The MPU 12 of the safety unit 1d waits for a request from the tool 5 (ST41), receives a request (specifies data to be read) via the tool interface 17, analyzes the content of the request, and sends the request to the CPU unit 1a. Then, a read request is made (ST42). This read request is made via the CPU bus 10.

一方、CPUユニット1aのMPU12も、CPUバス10を介して送られてくる要求を待ち(ST43)、要求を受け付けると、その要求内容を解析し、自己が保有する構成管理情報(データA)についての読み出し要求と判断すると、内部バスを介して自己が管理・保有する情報(データA)を読み出し、読み出した情報(構成管理情報)をCPUバス10を介して安全ユニット1dのMPU12に向けて送信する(ST44)。   On the other hand, the MPU 12 of the CPU unit 1a also waits for a request sent via the CPU bus 10 (ST43). When the request is received, the request content is analyzed and the configuration management information (data A) held by itself is analyzed. Is read out, the information (data A) managed and held by itself is read via the internal bus, and the read information (configuration management information) is sent to the MPU 12 of the safety unit 1d via the CPU bus 10. (ST44).

安全ユニット1dのMPU12は、要求を出したCPUユニット1aからの応答を受信すると、その受け取ったデータを、内部バス→ツールインタフェース17を介してツール5に送る(ST45)。これにより、ツール5は、情報(データA)を受信することができるので(ST46)、受信したデータをツール5のモニタに表示する(ST47)。 When receiving the response from the CPU unit 1a that issued the request, the MPU 12 of the safety unit 1d sends the received data to the tool 5 via the internal bus → tool interface 17 (ST45). Thereby, since the tool 5 can receive information (data A) (ST46), the received data is displayed on the monitor of the tool 5 (ST47).

これにより、安全系である安全ユニット1d側から、非安全系のCPUユニットが保有するデータを収集することができる。なお、具体的な図示は省略するが、従来と同様に安全ユニット1dに接続されたツール5は、安全ユニット1dが保有するデータB&Cをモニタリングできるのはいうまでもない。   As a result, data held by the non-safety CPU unit can be collected from the safety unit 1d which is a safety system. Although not specifically shown, it goes without saying that the tool 5 connected to the safety unit 1d can monitor the data B & C held by the safety unit 1d as in the conventional case.

さらに、安全ユニット1dに接続したツールから、同じ安全系の他の安全ユニットが保有するデータを読み出す場合の手順を説明する。図11,図12に示すように、まず、ツール5が読み出し要求をする(ST50)。安全ユニット1dのMPU12は、係るツール5からの要求を待ち(ST51)、ツールインタフェース17を介して要求を受け付けると、CPUユニット1aに対して読み出し要求をする(ST52)。この読み出し要求はCPUバス10を介して行われる。   Furthermore, a procedure for reading data held by another safety unit of the same safety system from a tool connected to the safety unit 1d will be described. As shown in FIGS. 11 and 12, first, the tool 5 makes a read request (ST50). The MPU 12 of the safety unit 1d waits for a request from the tool 5 (ST51), and when receiving the request via the tool interface 17, makes a read request to the CPU unit 1a (ST52). This read request is made via the CPU bus 10.

一方、CPUユニット1aのMPU12も、CPUバス10を介して送られてくる要求を待ち(ST53)、要求を受け付けると、その要求内容を解析し、ユニットNo.5の安全ユニット1eが保有するI/O情報(データD)についての読み出し要求と判断すると、CPUバス10を介して安全ユニット1eに対してデータDの読み出し要求をする(ST54)。   On the other hand, the MPU 12 of the CPU unit 1a also waits for a request sent via the CPU bus 10 (ST53). When the request is received, the request content is analyzed, and the unit number. If it is determined that the I / O information (data D) held by the safety unit 1e of No. 5 is a read request, the data D is requested to be read from the safety unit 1e via the CPU bus 10 (ST54).

安全ユニット1eのMPU12は、上記したCPUユニット1aに接続されたツールからの読み出しと同様に、CPUバス10を介して送られてくる要求を待ち(ST55)、要求を受け付けると、内部バスを介して自己が管理・保有する情報(データD)を読み出し、読み出した情報(データD)をCPUバス10を介してCPUユニット1aのMPU12に向けて送信する(ST56)。なお、安全ユニット1eのMPU12にとっては、要求もとのツールがどこかは関係がなく、CPUユニット1aからの要求を受け、必要なデータを返す処理を行うだけである。   The MPU 12 of the safety unit 1e waits for a request sent via the CPU bus 10 (ST55) as in the case of reading from the tool connected to the CPU unit 1a described above (ST55). The information (data D) managed and held by itself is read, and the read information (data D) is transmitted to the MPU 12 of the CPU unit 1a via the CPU bus 10 (ST56). Note that the MPU 12 of the safety unit 1e has nothing to do with the request source tool, and only receives the request from the CPU unit 1a and returns the necessary data.

そして、CPUユニット1aのMPU12は、CPUバス10を介して受信したデータDをCPUバス10を介して基の読み出し要求を発した安全ユニット1dのMPU12に向けて送信する(ST58)。   Then, the MPU 12 of the CPU unit 1a transmits the data D received via the CPU bus 10 to the MPU 12 of the safety unit 1d that issued the original read request via the CPU bus 10 (ST58).

安全ユニット1dのMPU12は、CPUユニット1aからの応答を受信すると、その受け取ったデータを、内部バス→ツールインタフェース17を介してツール5に送る(ST59)。これにより、ツール5は、情報(データD)を受信することができるので(ST60)、受信したデータをツール5のモニタに表示する(ST61)。   Upon receiving the response from the CPU unit 1a, the MPU 12 of the safety unit 1d sends the received data to the tool 5 via the internal bus → tool interface 17 (ST59). Thereby, since the tool 5 can receive information (data D) (ST60), the received data is displayed on the monitor of the tool 5 (ST61).

もちろん、安全ユニット1dのMPU12は、直接安全用専用バス11を介して安全ユニット1eからデータDを取得することもできる。但し、上記した処理手順によれば、ユニット間でのデータの送受をCPUバス10を介して行うことができ、安全用専用バス11は、安全処理機能のための情報の送受に専有化できるので好ましい。   Of course, the MPU 12 of the safety unit 1d can also acquire the data D from the safety unit 1e directly via the safety dedicated bus 11. However, according to the processing procedure described above, data can be sent and received between units via the CPU bus 10, and the safety dedicated bus 11 can be dedicated to sending and receiving information for the safety processing function. preferable.

上記した構成をとることにより、安全ユニット1dから1fを従来のPLCの高機能として管理できる。また、従来の非安全系のPLCと一体化できるので、例えば電源ユニットなど共通化できるものは1つで済むため、省スペース化を図ることができる。さらに、既に非安全系のPLCを使用している環境に安全システムを容易に増設できる。   By adopting the above-described configuration, the safety units 1d to 1f can be managed as high functions of the conventional PLC. Further, since it can be integrated with a conventional non-safety PLC, for example, only one power supply unit or the like can be used, so that space can be saved. Furthermore, a safety system can be easily added to an environment that already uses a non-safety PLC.

また、非安全ユニット1aから1cと、安全ユニット1dから1fを連結し、バス接続を図ることにより、電気的,機械的に接続され一体化されるので、省配線となる。しかも、安全用の専用バスを持たせることにより、安全系、非安全系の処理が最適(高速)になるばかりでなく、安全用の専用バスを持たせることにより、安全系の信頼性が確保できる。よって、比較的安価に安全システムを構築することができる。   Further, by connecting the non-safety units 1a to 1c and the safety units 1d to 1f and connecting them by bus, they are electrically and mechanically connected and integrated, thereby reducing wiring. In addition, having a safety dedicated bus not only optimizes safety and non-safety processing (high speed), but also has a safety dedicated bus to ensure safety reliability. it can. Therefore, a safety system can be constructed at a relatively low cost.

さらに、安全ユニット1dから1fの全てにPLCのCPU(CPUユニット1aのMPU12)が制御できるCPUバス10を設けたため、CPUユニット1aのMPU12は、そのCPUバスを経由して安全ユニット,非安全ユニットを問わず、全てのユニットのデータ読み出しが可能となる。また、安全ユニットは、CPUユニット経由で非安全ユニットのデータを読み出すことができる。   Further, since the CPU bus 10 that can be controlled by the PLC CPU (the MPU 12 of the CPU unit 1a) is provided in all of the safety units 1d to 1f, the MPU 12 of the CPU unit 1a is connected to the safety unit and the non-safety unit via the CPU bus. Regardless of the data, all units can be read. Further, the safety unit can read data of the non-safety unit via the CPU unit.

本発明に係る安全ネットワークシステムの好適な一実施の形態を示す図である。1 is a diagram showing a preferred embodiment of a safety network system according to the present invention. 本発明に係るコントローラ(PLC)の好適な一実施の形態の要部を示す図である。It is a figure which shows the principal part of suitable one Embodiment of the controller (PLC) based on this invention. 構成管理情報記憶部16のデータ構造の一例を示す図である。4 is a diagram illustrating an example of a data structure of a configuration management information storage unit 16. FIG. 安全系構成管理情報記憶部25のデータ構造の一例を示す図である。4 is a diagram illustrating an example of a data structure of a safety system configuration management information storage unit 25. FIG. /O情報記憶部22のデータ構造の一例を示す図である。4 is a diagram illustrating an example of a data structure of a / O information storage unit 22. FIG. I/O情報記憶部23のデータ構造の一例を示す図である。4 is a diagram illustrating an example of a data structure of an I / O information storage unit 23. FIG. CPUユニット1aのMPUの機能を説明するフローチャートである。It is a flowchart explaining the function of MPU of CPU unit 1a. 、安全系のマスタである安全ユニット1dのMPUの機能を説明するフローチャートである。It is a flowchart explaining the function of MPU of the safety unit 1d which is a safety system master. CPUユニットのMPUが、安全ユニットが保有する情報を収集する、作用を説明するフローチャートである。It is a flowchart explaining the effect | action which MPU of CPU unit collects the information which a safety unit holds. 安全ユニットのMPUが、CPUユニットが保有する情報を収集する作用を説明するフローチャートである。It is a flowchart explaining the effect | action which MPU of a safety unit collects the information which a CPU unit holds. 安全系のマスタである安全マスタユニットのMPUが、他の安全ユニットが保有する情報を収集する作用を説明するフローチャートの一部である。It is a part of flowchart explaining the effect | action which MPU of the safety master unit which is a safety system master collects the information which another safety unit holds. 安全系のマスタである安全マスタユニットのMPUが、他の安全ユニットが保有する情報を収集する作用を説明するフローチャートの一部である。It is a part of flowchart explaining the effect | action which MPU of the safety master unit which is a safety system master collects the information which another safety unit holds.

符号の説明Explanation of symbols

1a CPUユニット
1b,1c ユニット(非安全ユニット)
1d,1e,1f ユニット(安全ユニット)
10 CPUバス
11 安全用専用バス
1a CPU unit 1b, 1c unit (non-safety unit)
1d, 1e, 1f unit (safety unit)
10 CPU bus 11 Safety dedicated bus

Claims (3)

CPUユニットを含む複数のユニットをCPUバスにより連結して構成される非安全コントローラと、安全機能を有するCPUユニットを含む複数の安全ユニットを連結して構成される安全コントローラと、を有し、前記非安全コントローラのCPUバスを前記安全コントローラまで延長して連結したコントローラシステムにおいて、
前記非安全コントローラのCPUユニットにツールインタフェースを備えて、ツールを接続し、
接続されたツールからの要求に従って、前記非安全コントローラのCPUユニットが、前記CPUバスを介して前記安全コントローラに保有された情報を取得する処理、その取得した情報を前記ツールインタフェースを介して外部のツールへ送信する処理、及び当該非安全コントローラが保有する情報を前記ツールインタフェースを介して外部のツールへ送信する処理を行なうともに、
接続されたツールからの要求に従って、前記非安全コントローラのCPUユニットを経由して前記安全コントローラのCPUユニットに対して、安全機能の制御に関するI/Oデータの書き込みができないようにした
ことを特徴とするコントローラシステムのモニタ方法。
A non-safety controller configured by connecting a plurality of units including a CPU unit by a CPU bus, and a safety controller configured by connecting a plurality of safety units including a CPU unit having a safety function, In a controller system in which the CPU bus of a non-safety controller is extended and connected to the safety controller,
A tool interface is provided to the CPU unit of the non-safety controller, a tool is connected,
In accordance with a request from the connected tool, the CPU unit of the non-safety controller acquires information held in the safety controller via the CPU bus, and the acquired information is externally transmitted via the tool interface. While performing the process of transmitting to the tool and the process of transmitting the information held by the non-safety controller to the external tool via the tool interface,
According to a request from a connected tool, I / O data related to control of safety functions cannot be written to the CPU unit of the safety controller via the CPU unit of the non-safety controller. To monitor the controller system.
CPUユニットを含む複数のユニットをCPUバスにより連結して構成される非安全コントローラと、安全機能を有するCPUユニットを含む複数の安全ユニットを連結して構成される安全コントローラと、を有し、前記非安全コントローラのCPUバスを前記安全コントローラまで延長して連結したコントローラシステムにおいて、
前記非安全コントローラのCPUユニットにツールインタフェースを備えて、ツールを接続し、
接続されたツールからの命令に従って、前記非安全コントローラのCPUユニットが、前記CPUバスを介して前記安全コントローラに対して所定の情報を取得して前記ツールインタフェースを介してツールへ送信する処理、及び当該非安全コントローラの非安全機能の処理に関する制御情報を書き換える処理を行なうとともに、
接続されたツールからの要求に従って、前記非安全コントローラのCPUユニットを経由して前記安全コントローラのCPUユニットに対して、安全機能の処理に関する制御情報を書き換えることができないようにした
ことを特徴とするコントローラシステムの設定方法。
A non-safety controller configured by connecting a plurality of units including a CPU unit by a CPU bus, and a safety controller configured by connecting a plurality of safety units including a CPU unit having a safety function, In a controller system in which the CPU bus of a non-safety controller is extended and connected to the safety controller,
A tool interface is provided to the CPU unit of the non-safety controller, a tool is connected,
A process in which the CPU unit of the non-safety controller acquires predetermined information to the safety controller via the CPU bus and transmits it to the tool via the tool interface in accordance with a command from a connected tool; and While performing the processing to rewrite the control information regarding the processing of the non-safety function of the non-safety controller,
According to a request from a connected tool, control information related to safety function processing cannot be rewritten to the CPU unit of the safety controller via the CPU unit of the non-safety controller. How to set up the controller system.
CPUユニットを含む複数のユニットをCPUバスにより連結して構成される非安全コントローラと、安全機能を有するCPUユニットを含む複数の安全ユニットを連結して構成される安全コントローラと、を有し、前記非安全コントローラのCPUバスを前記安全コントローラまで延長して連結したコントローラシステムにおいて、
前記安全コントローラのCPUユニットにツールインタフェースを備えて、ツールを接続し、
接続されたツールからの要求に従い、安全コントローラのCPUユニットの処理により前記CPUバスを介して前記非安全コントローラに保有された情報を取得し、
その取得した情報を安全機能の制御に用いることをせずに、前記ツールインタフェースを介して外部のツールへ送信するとともに、
接続されたツールからの要求に従い、安全コントローラのCPUユニットの処理により当該安全コントローラに保有された情報を取得し、その取得した情報を前記ツールインタフェースを介して外部のツールへ送信する、
ことを特徴とするコントローラシステムのモニタ方法。
A non-safety controller configured by connecting a plurality of units including a CPU unit by a CPU bus, and a safety controller configured by connecting a plurality of safety units including a CPU unit having a safety function, In a controller system in which the CPU bus of a non-safety controller is extended and connected to the safety controller,
A tool interface is provided to the CPU unit of the safety controller, a tool is connected,
According to the request from the connected tool, the information stored in the non-safety controller is acquired via the CPU bus by the processing of the CPU unit of the safety controller.
Without using the acquired information to control the safety function, send it to an external tool through the tool interface,
According to the request from the connected tool, the information held in the safety controller is acquired by processing of the CPU unit of the safety controller, and the acquired information is transmitted to the external tool via the tool interface.
And a controller system monitoring method.
JP2007102253A 2001-05-31 2007-04-09 Controller system setting method and controller system monitoring method Expired - Lifetime JP4569838B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007102253A JP4569838B2 (en) 2001-05-31 2007-04-09 Controller system setting method and controller system monitoring method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2001164565 2001-05-31
JP2007102253A JP4569838B2 (en) 2001-05-31 2007-04-09 Controller system setting method and controller system monitoring method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2003500660A Division JP3997988B2 (en) 2001-05-31 2002-05-31 Safety unit, controller system, controller connection method, and controller system control method

Publications (2)

Publication Number Publication Date
JP2007242036A JP2007242036A (en) 2007-09-20
JP4569838B2 true JP4569838B2 (en) 2010-10-27

Family

ID=38587442

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007102253A Expired - Lifetime JP4569838B2 (en) 2001-05-31 2007-04-09 Controller system setting method and controller system monitoring method

Country Status (1)

Country Link
JP (1) JP4569838B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102008060011A1 (en) * 2008-11-25 2010-05-27 Pilz Gmbh & Co. Kg Safety control and method for controlling an automated plant
EP2315088B1 (en) * 2009-10-23 2013-03-13 Sick Ag Safety control
JP4877424B1 (en) * 2011-03-15 2012-02-15 オムロン株式会社 PLC CPU unit, PLC system program, and recording medium storing PLC system program
WO2015162760A1 (en) * 2014-04-24 2015-10-29 三菱電機株式会社 Plc unit and programmable logic controller
JP6933183B2 (en) * 2018-03-30 2021-09-08 オムロン株式会社 Safety control system and safety control unit

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0728775U (en) * 1993-11-09 1995-05-30 株式会社京三製作所 Electronic interlocking device
JP2000148213A (en) * 1998-11-09 2000-05-26 Hitachi Ltd Programmable controller
WO2000079353A1 (en) * 1999-06-22 2000-12-28 Pilz Gmbh & Co. Control system for controlling security-critical processes
JP2001525263A (en) * 1997-12-06 2001-12-11 エラン・シャルトエレメンテ・ゲーエムベーハー・ウント・コンパニー・カーゲー Monitoring and control apparatus and method for monitoring technical equipment requiring high safety, especially manipulators

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06274210A (en) * 1993-03-19 1994-09-30 Omron Corp Programmable controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0728775U (en) * 1993-11-09 1995-05-30 株式会社京三製作所 Electronic interlocking device
JP2001525263A (en) * 1997-12-06 2001-12-11 エラン・シャルトエレメンテ・ゲーエムベーハー・ウント・コンパニー・カーゲー Monitoring and control apparatus and method for monitoring technical equipment requiring high safety, especially manipulators
JP2000148213A (en) * 1998-11-09 2000-05-26 Hitachi Ltd Programmable controller
WO2000079353A1 (en) * 1999-06-22 2000-12-28 Pilz Gmbh & Co. Control system for controlling security-critical processes

Also Published As

Publication number Publication date
JP2007242036A (en) 2007-09-20

Similar Documents

Publication Publication Date Title
JP3997988B2 (en) Safety unit, controller system, controller connection method, and controller system control method
JP4338354B2 (en) Slave
JP4569838B2 (en) Controller system setting method and controller system monitoring method
JP4492635B2 (en) SAFETY CONTROLLER, CONTROLLER SYSTEM, CONTROLLER CONNECTION METHOD, AND CONTROLLER SYSTEM CONTROL METHOD
JP3912378B2 (en) Safety network system, safety slave and safety controller
JP4827964B2 (en) Method and control and data transmission system for verifying installation location of safety communication components
US8887000B2 (en) Safety device
EP1396963B1 (en) Safety network system and safety slaves and safety controller and communication method and information gathering method and monitoring method in safety network system
EP1857899A2 (en) Remote I/O system
US8306680B2 (en) Arrangement and method for controlling an automated system, in particular a railway system
JP4722613B2 (en) Distributed control system
US11487265B2 (en) Systems and methods for simultaneous control of safety-critical and non-safety-critical processes in automation systems using master-minion functionality
JPWO2002097542A1 (en) Slave and network system, slave processing method and device information collection method
JP5225838B2 (en) Memory having data identical to the data for the drive control of the machine and for the drive control of the machine
US8549136B2 (en) System for operating at least one non-safety-critical and at least one safety-critical process
JPWO2003001307A1 (en) Safety network system, safety slave, and communication method
JP6509477B2 (en) Control device and control program
JP2002118579A (en) Configuration device and system
JP2002358106A (en) Safety controller
CN101609421A (en) The multi-control system of arithmetic processing apparatus and multiple control method
JP4941365B2 (en) Industrial controller
JP2005174306A (en) Communication interface, network system and programmable controller
JP4376892B2 (en) Programmable controller
US7818717B2 (en) Method for the remote control programming of machine controllers and machine controller for carrying out said method
JP2848736B2 (en) Network system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090924

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091123

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100316

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100609

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20100621

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100715

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100728

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130820

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4569838

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

EXPY Cancellation because of completion of term