JP7418188B2 - Safety controller and history display device - Google Patents

Safety controller and history display device Download PDF

Info

Publication number
JP7418188B2
JP7418188B2 JP2019209184A JP2019209184A JP7418188B2 JP 7418188 B2 JP7418188 B2 JP 7418188B2 JP 2019209184 A JP2019209184 A JP 2019209184A JP 2019209184 A JP2019209184 A JP 2019209184A JP 7418188 B2 JP7418188 B2 JP 7418188B2
Authority
JP
Japan
Prior art keywords
history
input
safety
signal
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.)
Active
Application number
JP2019209184A
Other languages
Japanese (ja)
Other versions
JP2021082029A (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.)
Keyence Corp
Original Assignee
Keyence 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 Keyence Corp filed Critical Keyence Corp
Priority to JP2019209184A priority Critical patent/JP7418188B2/en
Publication of JP2021082029A publication Critical patent/JP2021082029A/en
Application granted granted Critical
Publication of JP7418188B2 publication Critical patent/JP7418188B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Safety Devices In Control Systems (AREA)

Description

本発明は、安全コントローラおよび履歴表示装置に関する。 The present invention relates to a safety controller and a history display device.

製品を生産する製品工場においては危険源である多数の産業機械が稼働している。安全システムは、機械から人間の安全を確保するために欠かせないシステムである(特許文献1、2)。 A large number of industrial machines that are a source of danger are in operation in product factories that produce products. A safety system is an essential system for ensuring the safety of humans from machines (Patent Documents 1 and 2).

特開2014-16930号公報Japanese Patent Application Publication No. 2014-16930 特開平10-011118号公報Japanese Patent Application Publication No. 10-011118

安全システムは安全であればON信号を出力し、安全でない可能性があればOFF信号を出力する。また、安全システムの信頼性を高めるために、マイクロコントローラユニット(MCU)は二重化されている。二つのMCUがともにON信号を出力する場合に限り、安全システムはON信号を出力する。二つのMCUのうちいずれか一方でもOFF信号を出力すると、安全システムはOFF信号を出力する。このように安全システムを設計することで、誤ったON信号が出力されることは防止される。その一方で、誤ってOFF信号を出力することは、作業者の安全性を確保する観点からは、許容されてきた。 The safety system outputs an ON signal if it is safe, and outputs an OFF signal if there is a possibility that it is unsafe. Additionally, to increase the reliability of the safety system, the microcontroller unit (MCU) is duplicated. The safety system outputs an ON signal only if both MCUs output an ON signal. If either one of the two MCUs outputs an OFF signal, the safety system outputs an OFF signal. By designing the safety system in this way, it is possible to prevent an erroneous ON signal from being output. On the other hand, erroneously outputting an OFF signal has been allowed from the viewpoint of ensuring worker safety.

しかし、誤ったOFF信号が出力されると、機械が停止するため、製品の生産効率が低下する。したがって、誤ったOFF信号の原因を早急に解明することが要求される。 However, if an erroneous OFF signal is output, the machine will stop, resulting in a decrease in product production efficiency. Therefore, it is required to quickly find out the cause of the erroneous OFF signal.

そこで、本発明は、安全プログラムの動作に関連した履歴を記録することで、誤ったOFF信号の原因の解明に資することを目的とする。 Therefore, an object of the present invention is to contribute to elucidating the cause of an erroneous OFF signal by recording a history related to the operation of a safety program.

本発明は、たとえば、
一つ以上の安全入力機器から入力信号が入力される入力部と、
前記入力信号に基づき所定の演算を実行して出力信号を求め、当該出力信号として安全状態を示すON信号または安全ではない状態を示すOFF信号を出力する安全制御部と、
前記入力信号および前記出力信号を時刻情報とともに履歴情報として記録する履歴記録手段と、
前記履歴記録手段に記録された履歴情報を読み出して前記入力信号の変化点および前記出力信号の変化点を示す表示画面情報を作成して表示装置に提供する提供手段と、
を有することを特徴とする安全コントローラを提供する。
The present invention includes, for example,
an input section into which input signals are input from one or more safety input devices;
a safety control unit that performs a predetermined calculation based on the input signal to obtain an output signal, and outputs an ON signal indicating a safe state or an OFF signal indicating an unsafe state as the output signal;
history recording means for recording the input signal and the output signal together with time information as history information;
providing means for reading history information recorded in the history recording means to create display screen information indicating a change point of the input signal and a change point of the output signal and providing it to a display device;
A safety controller is provided.

本発明によれば、安全プログラムの動作に関連した履歴を記録することで、誤ったOFF信号の原因の解明に資することが可能となる。 According to the present invention, by recording the history related to the operation of the safety program, it is possible to contribute to elucidating the cause of an erroneous OFF signal.

安全コントローラシステムを説明する図Diagram explaining the safety controller system メインモジュールと拡張モジュールを説明する図Diagram explaining the main module and expansion module プログラム作成支援装置を説明する図Diagram explaining the program creation support device Webブラウザを搭載したPCを説明する図Diagram explaining a PC equipped with a web browser ユーザーインターフェースを説明する図Diagram explaining the user interface ユーザーインターフェースを説明する図Diagram explaining the user interface ユーザーインターフェースを説明する図Diagram explaining the user interface MCUの機能を説明する図Diagram explaining the functions of MCU 履歴の収集タイミングを説明する図Diagram explaining history collection timing 履歴記録方法を示すフローチャートFlowchart showing how to record history 履歴表示方法を示すフローチャートFlowchart showing how to display history ユーザーインターフェースを説明する図Diagram explaining the user interface プログラム作成支援装置を説明する図Diagram explaining the program creation support device 履歴表示方法を示すフローチャートFlowchart showing how to display history

以下、添付図面を参照して実施形態が詳しく説明される。尚、以下の実施形態は特許請求の範囲に係る発明を限定するものではなく、また実施形態で説明されている特徴の組み合わせの全てが発明に必須のものとは限らない。実施形態で説明されている複数の特徴のうち二つ以上の特徴が任意に組み合わされてもよい。また、同一または同様の構成には同一の参照番号が付され、重複した説明は省略される。とりわけ、小文字のアルファベットは複数の同種の構成要素を区別するために付与されており、複数の構成要素に共通した説明が記載されるときには、小文字のアルファベットが省略されることがある。 Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. Note that the following embodiments do not limit the claimed invention, and not all combinations of features described in the embodiments are essential to the invention. Two or more features among the plurality of features described in the embodiments may be arbitrarily combined. In addition, the same or similar configurations are given the same reference numerals, and duplicate explanations will be omitted. In particular, lowercase alphabets are given to distinguish multiple components of the same type, and when a common explanation for multiple components is written, lowercase alphabets may be omitted.

(安全コントローラシステム)
図1はシステムの全体を示している。この例で、安全コントローラシステム1は、メインモジュール3、拡張モジュール4a、4bを有している。メインモジュール3は、ユーザが安全プログラムを作成することを支援する作成支援装置として機能するPC2aから転送されてきた安全プログラムを実行する。メインモジュール3は、表示装置5a、操作部6a、通信コネクタ7a、IOコネクタ10aなどを有している。PC2aも表示装置5b、および操作部6bを有している。PC2bは安全コントローラシステム1で取得された履歴データを表示する履歴表示装置として機能することが可能なコンピュータである。PC2bも表示装置5c、および操作部6cを有している。通信コネクタ7aは、USBや有線LANのためのコネクタであってもよい。PC2aからの通信ケーブルは通信コネクタ7aに接続されている。有線LANは産業用のイーサネット(登録商標)であってもよい。LANはローカルエリアネットワークの略称である。IOコネクタ10aの入力端子には、緊急停止スイッチやライトカーテンなどの安全入力機器11aが接続される。IOコネクタ10aの出力端子には、ロボットアームなどの産業機器(危険源)が動力源として接続される。メインモジュール3は、安全入力機器11aから入力される入力値に対して安全プログラムにしたがった演算処理を実行して出力値を求め動力源12は出力する。たとえば、安全入力機器11aの一種である緊急停止スイッチが押し下げられると、メインモジュール3は、出力値をON(安全)からOFF(安全ではない)に変更する。これにより、動力源12が停止する。メインモジュール3に設けられたIOコネクタ10aだけではすべての安全入力機器および動力源を接続できない場合がる。このような場合には、拡張モジュール4a、4bがメインモジュール3に接続される。拡張モジュール4a、4bはそれぞれIOコネクタ10b、10cを有しており、安全入力機器11bおよび動力源12などを接続できる。拡張モジュール4a、4bとメインモジュール3は相互に通信することで、入力信号および出力信号を受け渡す。つまり、メインモジュール3は、自己に接続された安全入力機器11aおよび拡張モジュール4a、4bに接続された安全入力機器11aから取得した入力信号に安全プログラムを適用することで出力信号を生成する。さらに、メインモジュール3は、安全プログラムに従って生成した出力信号を、自己に接続された動力源12に出力したり、拡張モジュール4a、4bに接続された動力源12に出力したりする。
(Safety controller system)
Figure 1 shows the entire system. In this example, the safety controller system 1 includes a main module 3 and expansion modules 4a and 4b. The main module 3 executes the safety program transferred from the PC 2a, which functions as a creation support device that assists the user in creating a safety program. The main module 3 includes a display device 5a, an operation section 6a, a communication connector 7a, an IO connector 10a, and the like. The PC 2a also has a display device 5b and an operation section 6b. The PC 2b is a computer that can function as a history display device that displays history data acquired by the safety controller system 1. The PC 2b also has a display device 5c and an operation section 6c. The communication connector 7a may be a connector for USB or wired LAN. A communication cable from the PC 2a is connected to a communication connector 7a. The wired LAN may be industrial Ethernet (registered trademark). LAN is an abbreviation for local area network. A safety input device 11a such as an emergency stop switch or a light curtain is connected to the input terminal of the IO connector 10a. Industrial equipment (hazardous source) such as a robot arm is connected to the output terminal of the IO connector 10a as a power source. The main module 3 performs arithmetic processing according to a safety program on the input value input from the safety input device 11a to obtain an output value, and the power source 12 outputs the output value. For example, when an emergency stop switch, which is a type of safety input device 11a, is pressed down, the main module 3 changes the output value from ON (safe) to OFF (unsafe). This causes the power source 12 to stop. In some cases, it may not be possible to connect all safety input devices and power sources using only the IO connector 10a provided in the main module 3. In such a case, the expansion modules 4a, 4b are connected to the main module 3. The expansion modules 4a, 4b have IO connectors 10b, 10c, respectively, to which safety input equipment 11b, power source 12, etc. can be connected. The expansion modules 4a, 4b and the main module 3 communicate with each other to exchange input signals and output signals. That is, the main module 3 generates an output signal by applying a safety program to the input signals acquired from the safety input device 11a connected to itself and the safety input device 11a connected to the expansion modules 4a and 4b. Furthermore, the main module 3 outputs the output signal generated according to the safety program to the power source 12 connected to itself or to the power source 12 connected to the expansion modules 4a and 4b.

(メインモジュールと拡張モジュールのハードウエア)
図2が示すように、メインモジュール3の制御部20aは二つのMCU23a、24aとメモリ25aとを有している。制御部20aはPC2aから受信した安全プログラムと履歴記録プログラムをメモリ25aに記憶する。信頼性を高めるためにMCU(マイクロコントローラユニット)は二重化されている。MCU23a、24aはそれぞれメモリ25aに保持されている安全プログラムと履歴記録プログラムを実行する。MCU23a、24aは安全入力IF21aを介して安全入力機器11の入力信号およびバスIF26aを介して拡張モジュール4から入力された入力信号に基づき出力信号を生成して安全出力IF22aおよび拡張モジュール4に出力する。たとえば、MCU23a、24aがともにON信号を出力していれば、安全出力IF22aはON信号を出力する。MCU23a、24aのうちの一方または両方がOFF信号を出力していれば、安全出力IF22aはOFF信号を出力する。このように制御部20aは、バスIF26aを介して拡張モジュール4と通信して入力信号を受信したり、出力信号を送信したりする。通信IF27aは通信コネクタ7aを介して他の機器と通信する。
(Main module and expansion module hardware)
As shown in FIG. 2, the control section 20a of the main module 3 includes two MCUs 23a and 24a and a memory 25a. The control unit 20a stores the safety program and history recording program received from the PC 2a in the memory 25a. The MCU (microcontroller unit) is duplicated to increase reliability. The MCUs 23a and 24a each execute a safety program and a history recording program held in the memory 25a. The MCUs 23a and 24a generate output signals based on the input signals of the safety input device 11 via the safety input IF 21a and the input signals input from the expansion module 4 via the bus IF 26a, and output them to the safety output IF 22a and the expansion module 4. . For example, if both the MCUs 23a and 24a output ON signals, the safety output IF 22a outputs the ON signal. If one or both of the MCUs 23a and 24a is outputting an OFF signal, the safety output IF 22a outputs an OFF signal. In this way, the control unit 20a communicates with the expansion module 4 via the bus IF 26a to receive input signals and transmit output signals. The communication IF 27a communicates with other devices via the communication connector 7a.

拡張モジュール4の制御部20bは二つのMCU23b、24bとメモリ25bとを有している。信頼性を高めるためにMCU(マイクロコントローラユニット)は二重化されている。MCU23b、24bはそれぞれメモリ25bに保持されている制御プログラムを実行する。制御部20bは安全入力IF21bを介して安全入力機器11の入力信号を受信すると、バスIF26bを介してメインモジュール3に送信する。制御部20bはバスIF26bを介してメインモジュール3から出力信号を受信すると、安全出力IF22bを介して安全出力機器である動力源12などに出力する。 The control unit 20b of the expansion module 4 includes two MCUs 23b and 24b and a memory 25b. The MCU (microcontroller unit) is duplicated to increase reliability. The MCUs 23b and 24b each execute a control program held in the memory 25b. When the control unit 20b receives an input signal from the safety input device 11 via the safety input IF 21b, it transmits it to the main module 3 via the bus IF 26b. When the control unit 20b receives an output signal from the main module 3 via the bus IF 26b, it outputs it to the power source 12, which is a safety output device, via the safety output IF 22b.

(PCのハードウエア)
図3が示すように、PC2aは、CPU13b、表示装置5b、操作部6b、記憶装置15bおよび通信IF27bを備えている。表示装置5b、操作部6b、記憶装置15bおよび通信IF27bは、それぞれCPU13bに対して電気的に接続されている。記憶装置15bはRAMやROM、HDD、SSDを含み、さらに着脱可能なメモリカードを含んでもよい。CPUは中央演算処理装置の略称である。ROMはリードオンリーメモリの略称である。RAMはランダムアクセスメモリの略称である。HDDはハードディスクドライブの略称である。SSDはソリッドステートドライブの略称である。
(PC hardware)
As shown in FIG. 3, the PC 2a includes a CPU 13b, a display device 5b, an operation section 6b, a storage device 15b, and a communication IF 27b. The display device 5b, the operation unit 6b, the storage device 15b, and the communication IF 27b are each electrically connected to the CPU 13b. The storage device 15b includes a RAM, ROM, HDD, and SSD, and may further include a removable memory card. CPU is an abbreviation for central processing unit. ROM is an abbreviation for read-only memory. RAM is an abbreviation for random access memory. HDD is an abbreviation for hard disk drive. SSD is an abbreviation for solid state drive.

PC2aのユーザは記憶装置15bに記憶されている編集プログラム14をCPU13bに実行させて、操作部6bを通じて安全プログラム16や履歴記録プログラム、設定情報などを編集し、メインモジュール3に転送する。設定情報は、メインモジュール3に接続されている拡張モジュール4の識別情報と、IOコネクタ10a~10cに設けられた各入力端子と各出力端子に接続されている安全入力機器11および動力源12の識別情報(端子割り当て情報)などを含む。 The user of the PC 2a causes the CPU 13b to execute the editing program 14 stored in the storage device 15b, edits the safety program 16, history recording program, setting information, etc. through the operation unit 6b, and transfers the edited information to the main module 3. The setting information includes identification information of the expansion module 4 connected to the main module 3, and safety input equipment 11 and power source 12 connected to each input terminal and each output terminal provided on the IO connectors 10a to 10c. Contains identification information (terminal assignment information), etc.

図4が示すように、PC2bは、CPU13c、表示装置5c、操作部6c、記憶装置15cおよび通信IF27cを備えている。表示装置5c、操作部6c、記憶装置15cおよび通信IF27cは、それぞれCPU13cに対して電気的に接続されている。記憶装置15cはRAMやROM、HDD、SSDを含み、さらに着脱可能なメモリカードを含んでもよい。 As shown in FIG. 4, the PC 2b includes a CPU 13c, a display device 5c, an operation section 6c, a storage device 15c, and a communication IF 27c. The display device 5c, the operation unit 6c, the storage device 15c, and the communication IF 27c are each electrically connected to the CPU 13c. The storage device 15c includes a RAM, ROM, HDD, and SSD, and may also include a removable memory card.

CPU13cはWebブラウザプログラム91を実行することでWebブラウザ93として機能する。はWebブラウザプログラム91は、html(ハイパーテキストマークアップ言語)データ、css(カスタムスタイルシート)データ、JavaScript(R)の実行環境を有している。CPU13c(Webブラウザ93)は通信IF27cを介してメインモジュール3のWebサーバにアクセスして、履歴表示UIを表示装置5cに表示するためのソースデータ92および履歴データ18を受信して表示装置5cに履歴表示UIを表示する。なお、履歴データ18はソースデータ92の一部であってもよい。履歴表示UIは、誤ったOFF信号の原因解明に役立つであろう。 The CPU 13c functions as a web browser 93 by executing a web browser program 91. The Web browser program 91 has an execution environment for HTML (hypertext markup language) data, CSS (custom style sheet) data, and JavaScript (R). The CPU 13c (web browser 93) accesses the web server of the main module 3 via the communication IF 27c, receives the source data 92 and the history data 18 for displaying the history display UI on the display device 5c, and displays the history data 18 on the display device 5c. Display the history display UI. Note that the history data 18 may be part of the source data 92. The history display UI will be useful in determining the cause of the erroneous OFF signal.

(ユーザーインターフェース:UI)
図5はCPU13c(Webブラウザ93)がソースデータ92にしたがって表示装置5cに表示する履歴表示UI30を示している。履歴表示UI30は少なくとも二つの表示モードを有している。
(User interface: UI)
FIG. 5 shows a history display UI 30 that the CPU 13c (Web browser 93) displays on the display device 5c according to the source data 92. The history display UI 30 has at least two display modes.

(1)ブロック情報モード
第一の表示モードはブロック情報モードである。ブロック情報モードは、安全プログラムを形成している複数のファンクションブロックに関連付けて履歴データ18を表示するモードである。ブロック情報ボタン31がクリックまたはタッチされたことを検知すると、CPU13cは、ブロック情報ボタン31にリンクされているWebページの表示リクエストをWebサーバにリクエストを送信し、当該Webページのソースデータ92を受信する。CPU13cは、受信したソースデータ92にしたがって、ブロック情報モードの履歴表示UI30を表示する。履歴表示UI30はブロック表示部40を有している。ブロック表示部40は、安全プログラム16を形成しているファンクションブロック41のアイコンと、各ファンクションブロックの端子42のアイコンと、端子間を接続する接続線38と、変化点表示アイコン43とを表示する。
(1) Block information mode The first display mode is block information mode. The block information mode is a mode in which historical data 18 is displayed in association with a plurality of function blocks forming a safety program. When detecting that the block information button 31 has been clicked or touched, the CPU 13c sends a request to display the web page linked to the block information button 31 to the web server, and receives the source data 92 of the web page. do. The CPU 13c displays the history display UI 30 in block information mode according to the received source data 92. The history display UI 30 has a block display section 40. The block display section 40 displays icons of the function blocks 41 forming the safety program 16, icons of the terminals 42 of each function block, connection lines 38 connecting the terminals, and change point display icons 43. .

変化点表示アイコン43は、その時点で選択されている履歴レコード(イベント)において論理が変化した信号またはファンクションブロックを強調するための画像である。変化点表示アイコン43は、現在表示されている履歴レコード(イベント)が記録されたタイミングで、状態が変化したことを示している。変化点表示アイコン43が付与されていないファンクションブロックは、現在表示されているイベントの記録タイミングよりも過去の記録タイミングですでに状態が変化したことを意味する。よって、変化点表示アイコン43は、ユーザが注目している状態の変化をもたらした原因を解明しやすくなるであろう。 The change point display icon 43 is an image for highlighting a signal or function block whose logic has changed in the history record (event) selected at that time. The change point display icon 43 indicates that the state has changed at the timing when the currently displayed history record (event) was recorded. A function block to which the change point display icon 43 is not attached means that the state has already changed at a recording timing past the recording timing of the currently displayed event. Therefore, the change point display icon 43 will make it easier for the user to find out the cause of the change in the state of interest.

表示条件選択部33は、メインモジュール3により記録された履歴データ18のうち、表示対象となるデータをフィルタリングするための条件を入力するために使用される。この条件は表示条件または抽出条件と呼ばれてもよい。条件指定部34、35は、予め用意された複数の条件候補のリストを表示し、当該リストから二つの条件を指定するためのプルダウンメニューである。条件指定部34、35は、任意のテキストを入力可能なテキストボックスであってもよい。表示条件選択部33において選択または指定された条件はWebサーバに送信される。 The display condition selection unit 33 is used to input conditions for filtering data to be displayed from among the history data 18 recorded by the main module 3. This condition may be called a display condition or an extraction condition. The condition specifying sections 34 and 35 are pull-down menus for displaying a list of a plurality of condition candidates prepared in advance and specifying two conditions from the list. The condition specifying sections 34 and 35 may be text boxes into which arbitrary text can be input. The conditions selected or specified in the display condition selection section 33 are transmitted to the Web server.

履歴リスト36は、表示条件にしたがってメインモジュール3のWebサーバにより抽出されたレコード(イベント37)のリストを表示する。イベント37は、レコードの通し番号(イベント番号)、イベントの記録日時(タイムスタンプ)、イベントが発生したファンクションブロックの名称(識別情報)などを含んでもよい。なお、各レコードは、予め指定されたイベントが発生したときに記録されてもよいし、安全プログラム16のスキャンサイクルごとに記録されてもよい。ユーザが履歴リスト36に表示されているいずれかのイベント37を選択すると、CPU13cは、選択されたイベント37の識別情報を含むリクエストをメインモジュール3のWebサーバに送信する。メインモジュール3のWebサーバは、リクエストに対応する履歴レコード(イベント)を履歴データ18から読み出して、ブロック表示部40のソースデータを作成し、CPU13cに送信する。CPU13cは受信したソースデータにしたがってブロック表示部40の表示内容を更新する。 The history list 36 displays a list of records (events 37) extracted by the web server of the main module 3 according to display conditions. The event 37 may include the serial number of the record (event number), the recording date and time of the event (time stamp), the name of the function block in which the event occurred (identification information), and the like. Note that each record may be recorded when a prespecified event occurs, or may be recorded every scan cycle of the safety program 16. When the user selects any event 37 displayed in the history list 36, the CPU 13c sends a request including identification information of the selected event 37 to the Web server of the main module 3. The Web server of the main module 3 reads the history record (event) corresponding to the request from the history data 18, creates source data for the block display section 40, and sends it to the CPU 13c. The CPU 13c updates the display contents of the block display section 40 according to the received source data.

ところで、ON状態のファンクションブロック41のアイコンはライトブルーやライトグリーンに着色されてもよい。OFF状態のファンクションブロック41のアイコンはライトピンクやオレンジに着色されてもよい。同様に、ON状態の端子42のアイコンはブルーまたはグリーンに着色されてもよい。OFF状態の端子42のアイコンはレッドに着色されてもよい。これにより視覚的に信号の論理と、各ファンクションブロックの状態とが確認しやすくなろう。これらのアイコンの着色は、たとえば、cssにより実現されてもよい。 Incidentally, the icon of the function block 41 in the ON state may be colored light blue or light green. The icon of the function block 41 in the OFF state may be colored light pink or orange. Similarly, the icon of the terminal 42 in the ON state may be colored blue or green. The icon of the terminal 42 in the OFF state may be colored red. This will make it easier to visually confirm the signal logic and the status of each function block. Coloring of these icons may be realized by, for example, CSS.

操作ボタン45aは、先頭のレコードまたはイベントに表示対象を変更するためのボタンである。操作ボタン45bは、指定された信号またはブロックについて直前の信号変化点にフォーカスを移動させるためのボタンである。操作ボタン45cは、指定された信号またはブロックについて直後の信号変化点にフォーカスを移動させるためのボタンである。操作ボタン45dは、最後のレコードまたはイベントに表示対象を変更するためのボタンである。操作ボタン45eは、表示対象となっている状態を一ステップ前の状態に変更するためのボタンである。操作ボタン45fは、表示対象となっている状態を一ステップ後の状態に変更するためのボタンである。メニュー46は、一ステップの時間間隔(例:100ms、200ms、500msなど)を選択するためのプルダウンメニューである。CPU13cは押された操作ボタンに対応するリクエストをWebサーバに送信することで、更新されたソースデータ92を受信して履歴表示UI30に反映させる。 The operation button 45a is a button for changing the display target to the first record or event. The operation button 45b is a button for moving the focus to the immediately previous signal change point for a designated signal or block. The operation button 45c is a button for moving the focus to the immediately following signal change point for a designated signal or block. The operation button 45d is a button for changing the display target to the last record or event. The operation button 45e is a button for changing the state being displayed to the state one step before. The operation button 45f is a button for changing the state to be displayed to the state one step later. Menu 46 is a pull-down menu for selecting the time interval of one step (eg, 100ms, 200ms, 500ms, etc.). The CPU 13c receives the updated source data 92 and reflects it on the history display UI 30 by transmitting a request corresponding to the pressed operation button to the Web server.

(2)タイムチャートモード
タイムチャートボタン32がクリックまたはタッチされたことを検知すると、第一の表示モードから第二の表示モードに切り替えるために、CPU13cは、タイムチャートのリクエストをWebサーバに送信し、更新されたソースデータ92を受信する。なお、タイムチャートボタン32は、第二の表示モードのユーザーインターフェースを提供するWebページに対してリンクされていてもよい。第二の表示モードは履歴データ18をタイムチャート形式で表示するタイムチャートモードである。
(2) Time chart mode When detecting that the time chart button 32 has been clicked or touched, the CPU 13c sends a time chart request to the web server in order to switch from the first display mode to the second display mode. , receives updated source data 92. Note that the time chart button 32 may be linked to a web page that provides a user interface for the second display mode. The second display mode is a time chart mode in which the history data 18 is displayed in a time chart format.

図6は、第二の表示モードのソースデータ92に基づきWebブラウザ93に表示されるタイムチャートUI60を示している。この例では、タイムチャートUI60はブロック表示部40と切り替えられて表示されているが、タイムチャートUI60とブロック表示部40との両方が並行して表示されてもよい。たとえば、タイムチャートUI60が第一ブラウザウインドウ/第一ブラウザタブに表示され、ブロック表示部40が第二ブラウザウインドウ/第二ブラウザタブに表示されてもよい。また、タイムチャートUI60は、JavaScript(登録商標)によるポップアップにより実現されてもよい。 FIG. 6 shows a time chart UI 60 displayed on the web browser 93 based on the source data 92 in the second display mode. In this example, the time chart UI 60 is displayed while being switched with the block display section 40, but both the time chart UI 60 and the block display section 40 may be displayed in parallel. For example, the time chart UI 60 may be displayed in the first browser window/first browser tab, and the block display section 40 may be displayed in the second browser window/second browser tab. Further, the time chart UI 60 may be realized by a popup using JavaScript (registered trademark).

タイムチャートUI60は、履歴データ18に含まれている各種の安全入力信号や安全出力信号、ファンクションブロックの出力端子の状態を表示する。現在位置バー61は、ユーザにより現在選択されているイベントまたはレコードのタイムスタンプの位置を示すバーである。時刻バー62は、履歴データ18に記録された最初のレコードのタイムスタンプから最後のレコードまでの履歴記録期間の全体を示すグラフィカルオブジェクトである。イベントバー65はイベントが発生した時刻を示すオブジェクトである。斜線を付与されたタイムチャート期間63は、タイムチャートUI60に表示されているタイムチャートの開始時刻から終了時刻までの期間(表示対象期間)を明示するためのオブジェクトである。現在位置オブジェクト64は、現在位置バー61により示されている時刻に対応している。 The time chart UI 60 displays various safety input signals and safety output signals included in the history data 18, and the states of the output terminals of the function blocks. The current position bar 61 is a bar that indicates the position of the timestamp of the event or record currently selected by the user. The time bar 62 is a graphical object that indicates the entire history recording period from the time stamp of the first record recorded in the history data 18 to the last record. The event bar 65 is an object that indicates the time when an event occurred. The time chart period 63 provided with diagonal lines is an object for clearly indicating the period from the start time to the end time (display target period) of the time chart displayed on the time chart UI 60. The current position object 64 corresponds to the time indicated by the current position bar 61.

この例では、非常停止スイッチが押されたことで、リセットファンクションブロックがOFFとなり、さらに、第一のANDブロックがOFFとなり、その結果として出力ブロックAがOFFになったことがわかる。さらに、リセットスイッチが押されたことで、リセットファンクションブロックがOFFからONに復帰し、第一のANDブロックがONとなり、その結果として出力ブロックAがONになったことがわかる。 In this example, it can be seen that when the emergency stop switch was pressed, the reset function block was turned OFF, the first AND block was further turned OFF, and as a result, the output block A was turned OFF. Furthermore, it can be seen that when the reset switch was pressed, the reset function block returned from OFF to ON, the first AND block was turned ON, and as a result, the output block A was turned ON.

次のイベントでは、ライトカーテンが遮光されたことでライトカーテンがOFFとなり、第二のANDブロックがOFFとなり、さらに、第一のANDブロックがOFFとなり、その結果として出力ブロックAがOFFになったことがわかる。ライトカーテンの遮光が解除されたことでライトカーテンがONに戻り、第二のANDブロックもONとなり、さらに、第一のANDブロックもONとなり、その結果として出力ブロックAがONになったことがわかる。 In the next event, the light curtain is blocked and the light curtain is turned OFF, the second AND block is turned OFF, the first AND block is turned OFF, and as a result, output block A is turned OFF. I understand that. As the light curtain is no longer blocked, the light curtain is turned back on, the second AND block is also turned on, the first AND block is also turned on, and as a result, the output block A is turned on. Recognize.

さらにイベントでは、ドアスイッチを取り付けされたドアが開かれたことでドアスイッチがOFFとなり、第二のANDブロックがOFFとなり、さらに、第一のANDブロックがOFFとなり、その結果として出力ブロックAがOFFになったことがわかる。ドアが閉められると、ドアスイッチがONに戻り、第二のANDブロックもONとなり、さらに、第一のANDブロックもONとなり、その結果として出力ブロックAがONになったことがわかる。 Furthermore, in the event, when the door to which the door switch is attached is opened, the door switch turns OFF, the second AND block turns OFF, the first AND block turns OFF, and as a result, the output block A turns OFF. You can see that it is turned off. When the door is closed, the door switch is turned back on, the second AND block is also turned on, the first AND block is also turned on, and as a result, it can be seen that the output block A is turned on.

ところで、本実施例のメインモジュール3は、ライトカーテンやドアスイッチなどの安全入力機器から付加情報を取得し、ファンクションブロックの状態および各信号の状態とともに付加情報を履歴データ18に記録してもよい。付加情報とは、安全出力信号の演算に関与しない情報である。ちなみに、安全出力信号の演算に関与する情報は、ライトカーテンのON/OFFやドアスイッチのON/OFFなどである。 By the way, the main module 3 of this embodiment may acquire additional information from safety input devices such as light curtains and door switches, and record the additional information in the history data 18 along with the status of the function block and the status of each signal. . Additional information is information that is not involved in the calculation of the safety output signal. Incidentally, information related to the calculation of the safety output signal includes ON/OFF of a light curtain, ON/OFF of a door switch, and the like.

ライトカーテンの付加情報は、たとえば、ライトカーテンについての光軸のON/OFFを示す情報、ライトカーテンについての光軸の光量を示す情報、ライトカーテンにおいて発生したエラーを示す情報、ライトカーテンのミュート状態を示す情報、ライトカーテンのロック待ちを示す情報のうち少なくとも一つの情報を含む。ライトカーテンは、複数の発光素子を有する第一筐体と、第一筐体に対して対抗するように配置される第二筐体とを有している。第二筐体は、複数の受光素子を有し、複数の受光素子がいずれも所定の受光量を満たしている場合、ON信号を出力する。したがって、第一筐体の光軸と第二筐体の光軸とが正しく設置されないと、所定の受光量に対するマージンが小さくなってしまう。したがって、ユーザは、ライトカーテンに関するイベントを履歴データ18から取得し、光軸に関する付加情報を確認することで、ライトカーテンの配置を適切に見直すことが可能となろう。 Additional information about the light curtain includes, for example, information indicating ON/OFF of the optical axis of the light curtain, information indicating the light intensity of the optical axis of the light curtain, information indicating an error that has occurred in the light curtain, and mute status of the light curtain. and information indicating that the light curtain is waiting to be locked. The light curtain includes a first casing having a plurality of light emitting elements, and a second casing arranged to oppose the first casing. The second housing has a plurality of light receiving elements, and outputs an ON signal when all of the plurality of light receiving elements satisfy a predetermined amount of light received. Therefore, if the optical axis of the first housing and the optical axis of the second housing are not installed correctly, the margin for a predetermined amount of received light will become small. Therefore, by acquiring events regarding the light curtain from the historical data 18 and checking additional information regarding the optical axis, the user will be able to appropriately review the arrangement of the light curtain.

図7は付加情報UI70を示している。ブロック表示部40またはタイムチャートUI60においてライトカーテンに対応したファンクションブロックがクリックまたはタッチされると、CPU13cは付加情報UI70を表示するためのリクエストをWebサーバに送信する。メインモジュール3のWebサーバは、リクエストに基づき現在位置バー61に対応する時刻に関連付けられているライトカーテンの付加情報を履歴データ18から読み出して、付加情報UI70のソースデータを作成し、CPU13c(Webブラウザ93)に送信する。CPU13c(Webブラウザ93)は、受信したソースデータにしたがって付加情報UI70を表示装置5cに表示する。 FIG. 7 shows the additional information UI 70. When a function block corresponding to the light curtain is clicked or touched on the block display section 40 or the time chart UI 60, the CPU 13c transmits a request to display the additional information UI 70 to the Web server. Based on the request, the Web server of the main module 3 reads the additional information of the light curtain associated with the time corresponding to the current position bar 61 from the history data 18, creates source data of the additional information UI 70, and sends the additional information to the CPU 13c (Web browser 93). The CPU 13c (Web browser 93) displays the additional information UI 70 on the display device 5c according to the received source data.

付加情報UI70は、付加情報に含まれている複数のセンサ情報から一つのセンサ情報を選択するための選択部71を有している。CPU13cは、選択部71においてユーザにより選択されたセンサ情報を、センサ情報表示部72に表示する。この例では、光量が選択されているため、ライトカーテンを構成している受光素子ごとの受光量が示されている。アドバイス表示部73は、ユーザに対するアドバイスを表示する。この例では、光軸調整を実行すべきことが助言されている。戻るボタン74は、付加情報UI70を表示しているWebページから、履歴表示UI30を表示するWebページに戻ることをCPU13cに指示するためのボタンである。 The additional information UI 70 includes a selection section 71 for selecting one piece of sensor information from a plurality of pieces of sensor information included in the additional information. The CPU 13c displays the sensor information selected by the user in the selection section 71 on the sensor information display section 72. In this example, since the amount of light is selected, the amount of light received by each light receiving element making up the light curtain is shown. The advice display section 73 displays advice for the user. In this example, it is advised that optical axis alignment should be performed. The return button 74 is a button for instructing the CPU 13c to return from the web page displaying the additional information UI 70 to the web page displaying the history display UI 30.

セーフティレーザスキャナは、レーザ光で所定の領域をスキャンすることで、領域内に侵入する物体を検知する安全センサである。セーフティレーザスキャナの付加情報は、セーフティレーザスキャナについての光軸のON/OFFを示す情報、セーフティレーザスキャナについての各光軸の測定距離または光量を示す情報、セーフティレーザスキャナにおいて発生したエラーを示す情報、セーフティレーザスキャナのミュート状態を示す情報、セーフティレーザスキャナのリセット解除待ちを示す情報、セーフティレーザスキャナに設けられたカメラにより取得された画像情報のうち少なくとも一つの情報を含む。 A safety laser scanner is a safety sensor that detects objects entering a predetermined area by scanning a predetermined area with a laser beam. The additional information of the safety laser scanner includes information indicating ON/OFF of the optical axis of the safety laser scanner, information indicating the measurement distance or light intensity of each optical axis of the safety laser scanner, and information indicating an error that has occurred in the safety laser scanner. , information indicating a muted state of the safety laser scanner, information indicating that the safety laser scanner is waiting for reset release, and image information acquired by a camera installed in the safety laser scanner.

ドアスイッチの付加情報は、ドアスイッチのロック制御を示す情報、ドアスイッチにおいて発生したエラーを示す情報、ドアスイッチのミュート状態を示す情報、ドアスイッチのロック待ちを示す情報のうち少なくとも一つの情報を含む。 The additional information of the door switch includes at least one of the following: information indicating lock control of the door switch, information indicating an error that has occurred in the door switch, information indicating a mute state of the door switch, and information indicating waiting for the door switch to lock. include.

<履歴記録処理>
(MCUの機能)
メインモジュール3は、二つのMCU23a、23bを有しているため、MCU23a、23bのいずれか一方のみが履歴記録プログラム19を実行してもよいし、MCU23a、23bの両方がそれぞれ履歴記録プログラム19を実行してもよい。後者の場合、二つの履歴データ18が作成されるが、MCU23a、23bの一方が、タイムスタンプに基づき二つの履歴データ18を一つの履歴データ18に統合してもよい。ここでは、MCU23a、23bのいずれか一方のみが履歴記録プログラムを実行する事例が詳細に説明される。
<History recording process>
(Function of MCU)
Since the main module 3 has two MCUs 23a and 23b, only one of the MCUs 23a and 23b may execute the history recording program 19, or both MCUs 23a and 23b may each execute the history recording program 19. May be executed. In the latter case, two pieces of historical data 18 are created, but one of the MCUs 23a and 23b may integrate the two pieces of historical data 18 into one piece of historical data 18 based on the time stamp. Here, a case in which only one of the MCUs 23a and 23b executes the history recording program will be described in detail.

図8はMCU23が履歴記録プログラム19または履歴表示プログラム830を実行することで実現する機能を示している。履歴表示プログラム830およびWebサーバプログラム831は、MCU23a、23bのいずれか一方のみが実行すればよい。 FIG. 8 shows functions realized by the MCU 23 executing the history recording program 19 or the history display program 830. The history display program 830 and the Web server program 831 need only be executed by either one of the MCUs 23a and 23b.

実行エンジン801は、安全プログラム16を実行する。時刻同期部802は、メインモジュール3のリアルタイムクロック803に対して、拡張モジュール4のリアルタイムクロック、および、安全入力機器11のリアルタイムクロックを同期させる。FB情報取得部804は、実行エンジン801により実行される安全プログラムを構成している各ファンクションブロックの状態を実行エンジン801から取得する。付加情報取得部805は、メインモジュール3または拡張モジュール4に接続されている安全入力機器11と通信することで付加情報を取得する。安全入力機器11は、タイムスタンプを付与して付加情報を付加情報取得部805に送信してもよい。補正部806は、付加情報に付与されているタイムスタンプを補正する。メインモジュール3と安全入力機器11との間には通信遅延時間(通信処理時間)が存在する。そこで、補正部806は、通信遅延時間の分だけ付加情報に付与されているタイムスタンプを補正する。履歴記録部807は、記録条件が満たされると、安全入力信号、安全出力信号、ファンクションブロックの状態、付加情報を含むレコードを作成し、このレコードに対して、リアルタイムクロック803から取得されたタイムスタンプを付与して、履歴データ18に追記する。記録条件は、たとえば、スキャンサイクルごとであってもよい。スキャンサイクルとは、実行エンジン801による安全プログラム16の繰り返し実行周期である。つまり、実行エンジン801が安全プログラム16を一回実行するたびに、一つのレコードが作成されて、履歴データ18に追記される。記録条件は、所定のイベント(例:安全出力信号などの指定信号がONからOFFに変化したことなど)が発生したことであってもよい(変化点記録)。この場合、履歴データ18のサイズが小さくなるといったメリットが得られる。 Execution engine 801 executes safety program 16. The time synchronization unit 802 synchronizes the real-time clock of the expansion module 4 and the real-time clock of the safety input device 11 with the real-time clock 803 of the main module 3 . The FB information acquisition unit 804 acquires, from the execution engine 801, the status of each function block that constitutes the safety program executed by the execution engine 801. The additional information acquisition unit 805 acquires additional information by communicating with the safety input device 11 connected to the main module 3 or the expansion module 4. The safety input device 11 may attach a time stamp and transmit the additional information to the additional information acquisition unit 805. The correction unit 806 corrects the time stamp added to the additional information. A communication delay time (communication processing time) exists between the main module 3 and the safety input device 11. Therefore, the correction unit 806 corrects the time stamp added to the additional information by the communication delay time. When the recording conditions are met, the history recording unit 807 creates a record including the safety input signal, safety output signal, function block status, and additional information, and adds a timestamp obtained from the real-time clock 803 to this record. is added to the history data 18. The recording condition may be, for example, every scan cycle. A scan cycle is a cycle in which the safety program 16 is repeatedly executed by the execution engine 801. That is, each time the execution engine 801 executes the safety program 16, one record is created and added to the history data 18. The recording condition may be that a predetermined event (for example, a specified signal such as a safety output signal changes from ON to OFF) has occurred (change point recording). In this case, there is an advantage that the size of the history data 18 is reduced.

履歴表示部820はMCU23が履歴表示プログラム830を実行することで実現される機能である。履歴表示部820はWebブラウザ93に提供されるソースデータ92を作成したり、表示装置5aに表示される簡易画面の表示データを作成したりする。簡易画面とは、履歴データ18における信号やファンクションブロックの状態の変化点を表示するための画面である。簡易画面は、図5ないし図7を用いて説明されたUIと同等のものであってもよいし、より情報量の少ない画面であってもよい。ソースデータ作成部821は、履歴データ18とWebアプリケーションのテンプレートなどに基づきソースデータ92を作成する。Webサーバ822は、Webサーバプログラム831をMCU23が実行することで実現される。Webサーバ822は、PC2bで動作しているWebブラウザ93と通信し、Webブラウザ93によりリクエストされたソースデータ92をWebブラウザ93に送信する。Webサーバ822は、Webブラウザ93上でユーザにより入力された各種の操作情報をソースデータ作成部821に受け渡すことで、操作情報に応じてソースデータ92を更新するようソースデータ作成部821に指示してもよい。 The history display section 820 is a function realized by the MCU 23 executing the history display program 830. The history display unit 820 creates source data 92 provided to the Web browser 93 and creates display data for a simple screen displayed on the display device 5a. The simple screen is a screen for displaying changes in the states of signals and function blocks in the history data 18. The simple screen may be equivalent to the UI described using FIGS. 5 to 7, or may be a screen with less information. The source data creation unit 821 creates source data 92 based on the history data 18 and the web application template. The web server 822 is realized by the MCU 23 executing a web server program 831. The web server 822 communicates with a web browser 93 running on the PC 2b, and transmits source data 92 requested by the web browser 93 to the web browser 93. The web server 822 instructs the source data creation unit 821 to update the source data 92 according to the operation information by passing various operation information input by the user on the web browser 93 to the source data creation unit 821. You may.

簡易画面作成部823は、履歴データ18に基づき簡易画面用の表示データを作成し、表示装置5aに簡易画面を表示する。簡易画面作成部823は、操作部6aから入力された操作情報に従って表示装置5aに表示される簡易画面を更新または変更する。つまり、簡易画面についての表示モードの変更指示や、付加情報の変更指示、表示条件の選択、履歴レコード(イベント)の選択は操作部6aを通じて入力される。なお、操作部6aは、タッチ感応式パネルとして表示装置5aに一体化されて実装されてもよい。 The simple screen creation unit 823 creates display data for a simple screen based on the history data 18, and displays the simple screen on the display device 5a. The simple screen creation unit 823 updates or changes the simple screen displayed on the display device 5a according to the operation information input from the operation unit 6a. That is, instructions to change the display mode for the simple screen, instructions to change additional information, selection of display conditions, and selection of history records (events) are input through the operation unit 6a. Note that the operation unit 6a may be integrated and mounted on the display device 5a as a touch-sensitive panel.

(履歴の記録タイミング)
図9はスキャンサイクルごとの履歴記録を説明する図である。Scan0~Scan5は、スキャンサイクルごとに取得された安全制御に関する情報である。安全制御に関する情報とは、たとえば、安全出力信号の演算に関連または関与した情報(例:安全入力信号、ファンクションブロックの状態、安全出力信号)である。A01~A03は、たとえば、ライトカーテンの付加情報である。B01~B03はドアスイッチの付加情報である。この事例で、安全入力機器は、それぞれ個別の制御周期を有しているため、付加情報の取得タイミングが異なっている。履歴レコードは、スキャンサイクルごとに取得された安全制御に関する情報および付加情報を含む。スキャンサイクルと、安全入力機器の制御周期がずれているため、履歴レコードには、スキャンサイクルを基準とした安全制御に関する情報および付加情報が含まれている。この場合、履歴レコードに付与されるタイムスタンプは、スキャンサイクルを基準としたタイムスタンプとなる。
(history recording timing)
FIG. 9 is a diagram illustrating history records for each scan cycle. Scan0 to Scan5 are information related to safety control acquired for each scan cycle. Information related to safety control is, for example, information related to or involved in the calculation of safety output signals (eg, safety input signals, states of function blocks, safety output signals). A01 to A03 are, for example, additional information of the light curtain. B01 to B03 are additional information of the door switch. In this case, the safety input devices each have individual control cycles, so the additional information acquisition timings are different. The history record includes information regarding safety controls and additional information obtained for each scan cycle. Since the scan cycle and the control cycle of the safety input device are different from each other, the history record includes information regarding safety control based on the scan cycle and additional information. In this case, the timestamp given to the history record is a timestamp based on the scan cycle.

ところで、ON信号が継続的に出力されている安全な期間などにおいては、連続した複数の履歴レコードがそれぞれ同一となることがある。この場合、履歴記録部807は、それぞれ同一である連続した複数の履歴レコードのうち最初の履歴レコードを残し、残りの履歴レコードを削除してもよい(変化点圧縮)。 By the way, during a safe period when the ON signal is continuously output, a plurality of consecutive history records may be the same. In this case, the history recording unit 807 may leave the first history record among a plurality of consecutive history records that are the same, and delete the remaining history records (change point compression).

ここでは、スキャンサイクルごとに一つの履歴レコードが作成されているが、記録対象となるデータにはデータの種類ごとそれぞれ個別にタイムスタンプを付与されて、データの種類ごとにレコードが作成されてもよい。たとえば、安全出力信号については、スキャンサイクルごとに安全出力信号が取得されて、タイムスタンプが付与される。同様に、安全入力信号についても、スキャンサイクルごとに安全入力信号が取得されて、タイムスタンプが付与される。付加情報もスキャンサイクルごとまたは制御周期ごとに取得されて、タイムスタンプが付与されてもよい。この場合、PC2aが各データのタイムスタンプに基づき、ブロック表示部40またはタイムチャートUI60を作成して表示装置5bに表示してもよい。 Here, one history record is created for each scan cycle, but the data to be recorded is given a separate time stamp for each type of data, and even if a record is created for each type of data. good. For example, for safety output signals, the safety output signals are acquired and timestamped every scan cycle. Similarly, the safety input signal is acquired every scan cycle, and a time stamp is added to the safety input signal. Additional information may also be acquired every scan cycle or every control period, and a timestamp may be added. In this case, the PC 2a may create the block display section 40 or the time chart UI 60 based on the time stamps of each data and display it on the display device 5b.

<フローチャート>
(履歴記録)
図10はメインモジュール3により実行される履歴記録処理を示すフローチャートである。メインモジュール3のMCU23は履歴記録プログラム19にしたがって以下の処理を実行する。
<Flowchart>
(history record)
FIG. 10 is a flowchart showing the history recording process executed by the main module 3. The MCU 23 of the main module 3 executes the following processing according to the history recording program 19.

S1でMCU23(時刻同期部802)は時刻同期を実行する。時刻同期部802は、安全入力IF21aに接続された安全入力機器11と、バスIF26aを介して接続された拡張モジュール4と、拡張モジュール4に接続された安全入力機器11とにそれぞれ時刻同期コマンドを送信することで、自己のリアルタイムクロック803に時刻同期させる。 In S1, the MCU 23 (time synchronization unit 802) executes time synchronization. The time synchronization unit 802 sends time synchronization commands to the safety input device 11 connected to the safety input IF 21a, the expansion module 4 connected via the bus IF 26a, and the safety input device 11 connected to the expansion module 4. By transmitting the data, the time is synchronized with its own real-time clock 803.

S2でMCU23(実行エンジン801)は安全入力信号を取得する。たとえば、実行エンジン801は、安全入力IF21aに接続された安全入力機器11と、拡張モジュール4に接続された安全入力機器11とからそれぞれ安全入力信号を取得する。 In S2, the MCU 23 (execution engine 801) obtains a safety input signal. For example, the execution engine 801 obtains safety input signals from the safety input device 11 connected to the safety input IF 21a and the safety input device 11 connected to the expansion module 4, respectively.

S3でMCU23(実行エンジン801)は安全プログラム16を実行する。実行エンジン801は、安全プログラム16を実行することで、安全入力信号に対する安全出力信号を演算して求める。 In S3, the MCU 23 (execution engine 801) executes the safety program 16. The execution engine 801 calculates and obtains a safety output signal for a safety input signal by executing the safety program 16.

S4でMCU23(実行エンジン801)は安全出力信号を出力する。実行エンジン801は、安全出力IF22aに接続された動力源と、拡張モジュール4の安全出力IF22b、22cに接続された動力源に対して安全出力信号を出力する。 In S4, the MCU 23 (execution engine 801) outputs a safety output signal. The execution engine 801 outputs a safety output signal to the power source connected to the safety output IF 22a and the power source connected to the safety output IF 22b, 22c of the expansion module 4.

S5でMCU23(FB情報取得部804)は実行エンジン801から安全プログラム16を形成している各ファンクションブロックの状態情報を取得する。 In S5, the MCU 23 (FB information acquisition unit 804) acquires status information of each function block forming the safety program 16 from the execution engine 801.

S6でMCU23(付加情報取得部805)は安全入力IF21aに接続された安全入力機器11と、拡張モジュール4に接続された安全入力機器11とからそれぞれ付加情報を取得する。 In S6, the MCU 23 (additional information acquisition unit 805) acquires additional information from the safety input device 11 connected to the safety input IF 21a and the safety input device 11 connected to the expansion module 4, respectively.

S7でMCU23(履歴記録部807)は、安全入力信号、安全出力信号、ファンクションブロックの状態情報、および付加情報を含む履歴レコードを作成し、履歴データ18に含まれている最新の履歴レコードに対して変化があるかどうかを判定する。履歴レコードはレコード作成部811により作成される。履歴レコードの変化の判定は変化判定部812により実行される。履歴レコードに変化があれば、MCU23は、S8に進む。履歴レコードに変化がなければ、MCU23は、S8をスキップしてS9に進む。なお、S7はオプションである。 In S7, the MCU 23 (history recording unit 807) creates a history record that includes safety input signals, safety output signals, function block status information, and additional information, and records the latest history record included in the history data 18. and determine whether there is a change. A history record is created by a record creation unit 811. Determination of changes in history records is performed by a change determination unit 812. If there is a change in the history record, the MCU 23 proceeds to S8. If there is no change in the history record, the MCU 23 skips S8 and proceeds to S9. Note that S7 is an option.

S8でMCU23(履歴記録部807)は、履歴レコードにタイムスタンプを付与して、履歴データ18に追記する。 In S8, the MCU 23 (history recording unit 807) adds a time stamp to the history record and adds it to the history data 18.

S9でMCU23(履歴記録部807)は、ユーザにより履歴記録プログラム19また安全プログラム16の終了指示が入力されたかどうかを判定する。終了指示が入力されていなければ、MCU23は、S2に戻る。終了指示が入力されると、MCU23は、履歴記録プログラム19を停止させる。 In S9, the MCU 23 (history recording unit 807) determines whether the user has input an instruction to terminate the history recording program 19 or the safety program 16. If the termination instruction has not been input, the MCU 23 returns to S2. When the termination instruction is input, the MCU 23 stops the history recording program 19.

(履歴表示)
図11はMCU23により実行される履歴表示方法を示している。Webブラウザ93からアクセスがあると、MCU23は以下の処理を実行する。なお、ソースデータ作成部821は、予め安全プログラム16を構成しているファンクションブロックを解析して特定し、ブロック表示部40に表示されるファンクションブロック群のソースデータ92を作成していてもよい。
(History display)
FIG. 11 shows a history display method executed by the MCU 23. When accessed from the Web browser 93, the MCU 23 executes the following processing. Note that the source data creation unit 821 may analyze and identify the function blocks constituting the safety program 16 in advance, and create the source data 92 of the function block group displayed on the block display unit 40.

S10でMCU23(Webサーバ822)は履歴表示UI30のソースデータ92をPC2bのWebブラウザ93に送信することで、履歴表示UI30をWebブラウザ93に提供する。なお、この段階では履歴レコード(イベント)が選択されていないため、ブロック表示部40にはファンクションブロックだけが表示され、履歴レコードは反映されていない。あるいはブロック表示部40はブランクであってもよい。 In S10, the MCU 23 (web server 822) provides the history display UI 30 to the web browser 93 by transmitting the source data 92 of the history display UI 30 to the web browser 93 of the PC 2b. Note that since no history record (event) has been selected at this stage, only the function block is displayed on the block display section 40, and the history record is not reflected. Alternatively, the block display section 40 may be blank.

S11でMCU23(Webサーバ822)はWebブラウザ93から表示条件を受け付ける。 In S11, the MCU 23 (Web server 822) receives display conditions from the Web browser 93.

S12でMCU23(ソースデータ作成部821)は表示条件にしたがって履歴データ18を検索し、抽出された履歴レコードの履歴リスト36を作成し、当該リストを表示するためのソースデータ92を作成し、Webサーバ822を介してWebブラウザ93にソースデータを送信する。Webブラウザ93はソースデータ92にしたがって履歴レコードの履歴リスト36を表示する。 In S12, the MCU 23 (source data creation unit 821) searches the history data 18 according to the display conditions, creates a history list 36 of the extracted history records, creates source data 92 for displaying the list, and The source data is transmitted to the web browser 93 via the server 822. The web browser 93 displays a history list 36 of history records according to the source data 92.

S13でMCU23(Webサーバ822)は表示対象となる履歴レコードの指定をWebブラウザ93から受け付ける。ユーザはWebブラウザ93に表示された履歴リスト36に列挙されている複数の履歴レコードのうち所望の履歴レコードをクリックまたはタッチする。 In S13, the MCU 23 (Web server 822) receives from the Web browser 93 the designation of a history record to be displayed. The user clicks or touches a desired history record among the plurality of history records listed in the history list 36 displayed on the web browser 93.

S14でMCU23(ソースデータ作成部821)は表示対象となる履歴レコードを履歴データ18から読み出し、表示画面情報として履歴表示UI30のソースデータ92を作成する。 In S14, the MCU 23 (source data creation unit 821) reads history records to be displayed from the history data 18, and creates source data 92 of the history display UI 30 as display screen information.

S15でMCU23(Webサーバ822)は履歴表示UI30のソースデータ92をWebブラウザ93に送信する。Webブラウザ93は、受信したソースデータ92にしたがって履歴表示UI30を表示装置5cに表示する。 In S15, the MCU 23 (web server 822) transmits the source data 92 of the history display UI 30 to the web browser 93. The web browser 93 displays the history display UI 30 on the display device 5c according to the received source data 92.

S16でMCU23(Webサーバ822)は表示操作が入力されたかどうかを判定する。表示操作とは、タイムチャートボタン32や操作ボタン45などの操作である。表示操作が入力されていなければ、MCU23は、S18に進む。表示操作が入力されると、MCU23は、S17に進む。 In S16, the MCU 23 (Web server 822) determines whether a display operation has been input. The display operation is an operation of the time chart button 32, operation button 45, and the like. If no display operation has been input, the MCU 23 proceeds to S18. When the display operation is input, the MCU 23 proceeds to S17.

S17でMCU23(Webサーバ822)は表示操作に応じて表示画面を更新する。たとえば、Webサーバ822は、表示操作の内容をソースデータ作成部821に転送し、ソースデータ作成部821は表示操作内容に応じてソースデータ92を書き換える。Webサーバ822は、書き換えられたソースデータ92をWebブラウザ93に送信する。これにより、履歴表示UI30に表示される変化点が変更されたり、表示モードが変更されたりする。 In S17, the MCU 23 (Web server 822) updates the display screen according to the display operation. For example, the Web server 822 transfers the content of the display operation to the source data creation unit 821, and the source data creation unit 821 rewrites the source data 92 according to the content of the display operation. The web server 822 sends the rewritten source data 92 to the web browser 93. As a result, the change point displayed on the history display UI 30 is changed or the display mode is changed.

S18はオプションである。S18でMCU23は終了条件が満たされたかどうかを判定する。終了条件とは、明示的な終了指示の入力やタイムアウトなどである。終了条件が満たされると、MCU23は履歴表示処理を終了する。終了条件が満たされていなければ、MCU23はS16に戻る。 S18 is optional. In S18, the MCU 23 determines whether the termination condition is satisfied. Termination conditions include input of an explicit termination instruction, timeout, and the like. When the termination condition is satisfied, the MCU 23 terminates the history display process. If the termination condition is not met, the MCU 23 returns to S16.

ここでは、MCU23がソースデータ92を作成しているが、履歴データ18の表示処理を担当するWebアプリがJavaScript(登録商標)により作成されてもよい。この場合、WebサーバはWebアプリのソースデータ92をPC2bのWebブラウザ93に送信する。WebアプリはPC2bのWebブラウザ93において動作する。つまり、Webアプリがメインモジュール3から履歴データ18を読み出して、履歴表示UI30などを作成し、表示装置5cに表示する。 Although the MCU 23 creates the source data 92 here, the web application in charge of display processing of the history data 18 may be created using JavaScript (registered trademark). In this case, the Web server transmits the source data 92 of the Web application to the Web browser 93 of the PC 2b. The web application operates on the web browser 93 of the PC 2b. That is, the Web application reads the history data 18 from the main module 3, creates the history display UI 30, etc., and displays it on the display device 5c.

<簡易画面>
図12はメインモジュール3の表示装置5aに表示される履歴表示UI100を示している。なお、MCU23は、履歴表示UI100を表示する前に、履歴データ18を参照して履歴データ18のリストを作成し、操作部6aを通じて履歴レコードの選択を受け付ける。MCU23は、選択された履歴レコードに基づき履歴表示UI100の表示データを作成し、表示装置5aに表示する。
<Simple screen>
FIG. 12 shows a history display UI 100 displayed on the display device 5a of the main module 3. Note that, before displaying the history display UI 100, the MCU 23 refers to the history data 18 to create a list of the history data 18, and receives selection of a history record through the operation unit 6a. The MCU 23 creates display data for the history display UI 100 based on the selected history record and displays it on the display device 5a.

タイムスタンプ表示部101は、選択された履歴レコードに付与されているタイムスタンプを表示する。タイムスタンプ表示部101に表示されるタイムスタンプは、信号またはファンクションブロックの状態の変化点が発生した時刻は絶対的な時刻または相対的な時間のいずれであってもよい。現在状態表示部102は、信号またはファンクションブロックの現在の状態を示している。過去状態表示部104は、信号またはファンクションブロのタイムチャートを表示する。この例で、過去状態表示部104は、現在時刻から10分前に取得された履歴データ18に基づくタイムチャートを表示している。タイムスタンプ表示部101は、現在時刻から10分前に取得された履歴データ18が過去状態表示部104に表示されていることを示唆している。名称表示部103は、信号またはファンクションブロの識別情報(例:名称、略称、アイコン)を表示する。なお、操作部6aを通じて、ユーザは、履歴レコードを過去方向にさかのぼることを指示したり、履歴レコードを過去から現在に向かう方向に進めることを指示したりする。簡易画面作成部823は、入力された指示に応じて履歴データ18から履歴レコードを読み出して、簡易画面を作成し、表示装置5aに表示する。 The timestamp display section 101 displays the timestamp given to the selected history record. The time stamp displayed on the time stamp display section 101 may be an absolute time or a relative time when a change point in the state of a signal or a function block occurs. The current state display section 102 shows the current state of the signal or function block. The past state display section 104 displays a time chart of a signal or a function block. In this example, the past state display section 104 displays a time chart based on history data 18 acquired 10 minutes before the current time. The time stamp display section 101 suggests that history data 18 acquired 10 minutes before the current time is displayed on the past state display section 104. The name display section 103 displays identification information (eg, name, abbreviation, icon) of the signal or function block. Note that, through the operation unit 6a, the user instructs to trace the history records back in the past, or instructs to advance the history records in the direction from the past to the present. The simple screen creation unit 823 reads history records from the history data 18 in accordance with input instructions, creates a simple screen, and displays it on the display device 5a.

<その他>
上述されたように、安全コントローラシステムにおいて取得された履歴データは、Webブラウザを搭載したPC2b、メインモジュール3の表示装置5a、および、履歴表示プロブラムを実行するPC2aの表示装置5bのいずれかで表示可能とされる。PC2bとメインモジュール3に履歴を表示するケースがすでに詳細に説明されたため、以下では、履歴表示プロブラムを実行するPC2aの表示装置5bに履歴が表示されるケースが詳細に説明される。
<Others>
As described above, the history data acquired in the safety controller system is displayed on either the PC 2b equipped with a web browser, the display device 5a of the main module 3, or the display device 5b of the PC 2a that executes the history display program. It is considered possible. Since the case in which the history is displayed on the PC 2b and the main module 3 has already been described in detail, the case in which the history is displayed on the display device 5b of the PC 2a that executes the history display program will be described in detail below.

図13はプログラム作成支援装置として機能するPC2aのブロック図である。図3と比較して、図13では履歴表示プログラム830と履歴データ18とが記憶装置15bに記憶されている。 FIG. 13 is a block diagram of the PC 2a that functions as a program creation support device. In comparison with FIG. 3, in FIG. 13, a history display program 830 and history data 18 are stored in the storage device 15b.

図14を用いてPC2aのCPU13bにより実行される履歴表示方法を示している。操作部6bから履歴表示の開始指示が入力されると、CPU13bは履歴表示プログラム830を起動する。以下の処理は、履歴表示プログラム830にしたがってCPU13bにより実行される。CPU13bは、履歴表示プログラム830にしたがって履歴データ18をメインモジュール3から読み出して記憶装置15bに記憶する。CPU13bは操作部6bから入力される更新指示に基づき履歴データ18をメインモジュール3から再度読み出して、記憶装置15bに記憶されている履歴データ18を更新してもよい。 A history display method executed by the CPU 13b of the PC 2a is shown using FIG. When an instruction to start displaying the history is input from the operation unit 6b, the CPU 13b starts the history display program 830. The following processing is executed by the CPU 13b according to the history display program 830. The CPU 13b reads the history data 18 from the main module 3 according to the history display program 830 and stores it in the storage device 15b. The CPU 13b may read out the history data 18 again from the main module 3 based on an update instruction input from the operation unit 6b, and update the history data 18 stored in the storage device 15b.

S20でCPU13bは履歴表示UI30を表示装置5bに表示する。なお、この段階では履歴レコード(イベント)が選択されていないため、ブロック表示部40にはファンクションブロックだけが表示され、履歴レコードは反映されていない。あるいはブロック表示部40はブランクであってもよい。 In S20, the CPU 13b displays the history display UI 30 on the display device 5b. Note that since no history record (event) has been selected at this stage, only the function block is displayed on the block display section 40, and the history record is not reflected. Alternatively, the block display section 40 may be blank.

S21でCPU13bは操作部6bから表示条件を受け付ける。 In S21, the CPU 13b receives display conditions from the operation unit 6b.

S22でCPU13bは表示条件にしたがって履歴データ18を検索し、抽出された履歴レコードの履歴リスト36を作成し、当該リストを表示するための表示画面情報を作成し、表示画面情報にしたがって履歴レコードの履歴リスト36を表示装置5bに表示する。 In S22, the CPU 13b searches the history data 18 according to the display conditions, creates a history list 36 of the extracted history records, creates display screen information for displaying the list, and displays the history records according to the display screen information. The history list 36 is displayed on the display device 5b.

S23でCPU13bは表示対象となる履歴レコードの指定を操作部6bから受け付ける。ユーザは表示装置5bに表示された履歴リスト36に列挙されている複数の履歴レコードのうち所望の履歴レコードをクリックまたはタッチする。 In S23, the CPU 13b receives a designation of a history record to be displayed from the operation unit 6b. The user clicks or touches a desired history record among the plurality of history records listed in the history list 36 displayed on the display device 5b.

S24でCPU13bは表示対象となる履歴レコードを履歴データ18から読み出し、履歴表示UI30のための表示画面情報を作成する。 In S24, the CPU 13b reads history records to be displayed from the history data 18 and creates display screen information for the history display UI 30.

S25でCPU13bは表示画面情報にしたがって履歴表示UI30を表示装置5bに表示する。 In S25, the CPU 13b displays the history display UI 30 on the display device 5b according to the display screen information.

S26でCPU13bは操作部6bから表示操作が入力されたかどうかを判定する。表示操作とは、タイムチャートボタン32や操作ボタン45などの操作である。表示操作が入力されていなければ、CPU13bは、S28に進む。表示操作が入力されると、CPU13bは、S27に進む。 In S26, the CPU 13b determines whether a display operation has been input from the operation unit 6b. The display operation is an operation of the time chart button 32, operation button 45, and the like. If no display operation has been input, the CPU 13b proceeds to S28. When the display operation is input, the CPU 13b proceeds to S27.

S27でCPU13bは表示操作に応じて表示画面を更新する。たとえば、CPU13bは、表示操作の内容に応じて表示画面情報を書き換える。これにより、履歴表示UI30に表示される変化点が変更されたり、表示モードが変更されたりする。 In S27, the CPU 13b updates the display screen according to the display operation. For example, the CPU 13b rewrites the display screen information according to the content of the display operation. As a result, the change point displayed on the history display UI 30 is changed or the display mode is changed.

S28はオプションである。S28でCPU13bは終了条件が満たされたかどうかを判定する。終了条件とは、明示的な終了指示の入力やタイムアウトなどである。終了条件が満たされると、CPU13bは履歴表示処理を終了する。終了条件が満たされていなければ、CPU13bはS26に戻る。 S28 is optional. In S28, the CPU 13b determines whether the termination condition is satisfied. Termination conditions include input of an explicit termination instruction, timeout, and the like. When the termination condition is satisfied, the CPU 13b terminates the history display process. If the termination condition is not met, the CPU 13b returns to S26.

<まとめ>
図2が示すように、安全入力IF21a、21bは、一つ以上の安全入力機器から入力信号が入力される入力部として機能する。制御部20aは、入力信号に基づき所定の演算を実行して出力信号を求め、当該出力信号として安全状態を示すON信号または安全ではない状態を示すOFF信号を出力する安全制御部として機能する。図9などが示すように、履歴記録部807は入力信号および出力信号を時刻情報とともに履歴情報として記録する履歴記録手段として機能する。履歴表示部820は、履歴記録手段に記録された履歴情報(例:履歴データ18)を読み出して入力信号の変化点および出力信号の変化点を示す表示画面情報(履歴表示UI30、100)を作成して表示装置に提供する提供手段として機能する。このように、安全プログラムの動作に関連した信号または状態の変化点の履歴を記録してユーザに提供することで、誤ったOFF信号の原因の解明に資することが可能となる。
<Summary>
As shown in FIG. 2, the safety input IFs 21a and 21b function as input units into which input signals are input from one or more safety input devices. The control unit 20a functions as a safety control unit that performs a predetermined calculation based on an input signal to obtain an output signal, and outputs an ON signal indicating a safe state or an OFF signal indicating an unsafe state as the output signal. As shown in FIG. 9 and the like, the history recording unit 807 functions as a history recording means for recording input signals and output signals together with time information as history information. The history display unit 820 reads the history information (for example, history data 18) recorded in the history recording means and creates display screen information (history display UI 30, 100) indicating the change points of the input signal and the change points of the output signal. It functions as a providing means for providing the information to the display device. In this way, by recording the history of signal or state change points related to the operation of the safety program and providing it to the user, it becomes possible to contribute to elucidation of the cause of the erroneous OFF signal.

制御部20aは、入力信号または入力信号から求められた演算信号に対してそれぞれ論理演算を実行する複数のファンクションブロックを有する安全プログラム16を、スキャンサイクルごとに繰り返し実行するように構成されている。履歴記録部807は、所定の記録周期であるスキャンサイクルごとに、時刻情報とともに、複数のファンクションブロックのそれぞれの状態、入力信号および出力信号を履歴情報として記録してもよい。スキャンサイクルは安全プログラムを監視するうえで非常に短い間隔であるため、誤ったOFF信号の原因を解明するために多くの情報をユーザに提供することが可能となる。 The control unit 20a is configured to repeatedly execute the safety program 16, which has a plurality of function blocks that perform logical operations on input signals or operation signals obtained from the input signals, in each scan cycle. The history recording unit 807 may record the states, input signals, and output signals of the plurality of function blocks as history information, along with time information, for each scan cycle that is a predetermined recording period. Since the scan cycle is a very short interval for monitoring the safety program, it is possible to provide the user with a lot of information in order to determine the cause of the false OFF signal.

図6や図12が示すように、表示装置5は、安全プログラムを形成している複数のファンクションブロックと、複数のファンクションブロックのそれぞれの状態を示すアイコンとを含む表示画面を表示してもよい。これにより安全プログラムのバグに起因した、誤ったOFF信号の原因を解明しやすくなろう。 As shown in FIGS. 6 and 12, the display device 5 may display a display screen including a plurality of function blocks forming a safety program and icons indicating the status of each of the plurality of function blocks. . This will make it easier to determine the cause of the erroneous OFF signal caused by a bug in the safety program.

複数のファンクションブロックは、少なくとも二つの入力端子と少なくとも一つの出力端子を有しうる。表示装置5は、複数のファンクションブロックのそれぞれについて少なくとも二つの入力端子の状態と少なくとも一つの出力端子の状態とを表示してもよい。これによりユーザは自己が意図した通りにファンクションブロックが動作しているかどうかを確認しやすくなるであろう。 The plurality of function blocks may have at least two input terminals and at least one output terminal. The display device 5 may display the states of at least two input terminals and the state of at least one output terminal for each of the plurality of function blocks. This will make it easier for the user to check whether the function block is operating as intended.

提供手段(例:ソースデータ作成部821、簡易画面作成部823)は、表示装置において表示されている履歴情報よりも古い履歴情報または新しい履歴情報を表示することを指示されると、指示に基づき古い履歴情報または新しい履歴情報を示す表示画面情報を作成して表示装置に提供してもよい。これにより注目している変化点の前後の変化点の様子をユーザは容易に確認できるようになろう。 When the providing means (e.g., source data creation unit 821, simple screen creation unit 823) is instructed to display history information that is older or newer than the history information displayed on the display device, the provision means (e.g., source data creation unit 821, simple screen creation unit 823) Display screen information indicating old history information or new history information may be created and provided to the display device. This will allow the user to easily check the state of the change points before and after the change point of interest.

表示装置5は、入力信号の変化または出力信号の変化が生じた複数のイベントのうち一つのイベントを選択する選択オブジェクト(例:履歴リスト36)を表示してもよい。提供手段(例:ソースデータ作成部821、簡易画面作成部823)は、選択オブジェクトを通じて選択されたイベントに関連付けられている履歴情報を履歴記録手段から取得して表示画面情報を作成してもよい。これによりユーザはイベントを容易に選択することが可能となろう。 The display device 5 may display a selection object (eg, history list 36) for selecting one event from among a plurality of events in which a change in the input signal or a change in the output signal has occurred. The providing means (e.g., source data creation section 821, simple screen creation section 823) may create display screen information by acquiring history information associated with the event selected through the selection object from the history recording means. . This will allow the user to easily select events.

表示条件選択部33や操作部6aは、選択オブジェクトに列挙される複数のイベントを検索するための検索条件を入力する入力手段として機能する。MCU23(例:ソースデータ作成部821、簡易画面作成部823)は、入力手段に入力された検索条件にしたがってイベントを検索し、見つかったイベントを選択オブジェクトに列挙する列挙手段として機能する。これによりユーザは所望のイベント(履歴レコード)を容易に探し出すことが可能となろう。 The display condition selection section 33 and the operation section 6a function as input means for inputting search conditions for searching for a plurality of events listed in the selected object. The MCU 23 (eg, source data creation unit 821, simple screen creation unit 823) functions as an enumeration unit that searches for events according to the search conditions input to the input unit and lists the found events as selected objects. This will allow the user to easily search for a desired event (history record).

メインモジュール3には、通信IF27aを介してカメラが接続されてもよい。この場合、履歴記録部807は、一つ以上の安全入力機器の設置された設置環境をカメラに撮影させて、カメラにより得られた画像データを履歴データ18の一部として記録してもよい。この場合、履歴情報(履歴データ18)は、一つ以上の安全入力機器の設置された設置環境を撮影して得られた画像データを含む。表示装置5は、入力信号の変化点および出力信号の変化点とともに、画像データを表示してもよい。これにより、ユーザが注目している変化点の原因がさらに解明されやすくなろう。たとえば、ドアスイッチがONからOFFに変化したタイミングで取得された画像データからドアスイッチに対してどのようなイベントが発生したのかを、ユーザは視覚的に把握することが可能となる。信号やファンクションブロックの状態だけでは判別できない原因が、画像データであれば、判別可能となることもあろう。 A camera may be connected to the main module 3 via the communication IF 27a. In this case, the history recording unit 807 may cause a camera to photograph the installation environment in which one or more safety input devices are installed, and record the image data obtained by the camera as part of the history data 18. In this case, the history information (history data 18) includes image data obtained by photographing an installation environment in which one or more safety input devices are installed. The display device 5 may display the image data together with the change points of the input signal and the change points of the output signal. This will make it easier to clarify the cause of the change point that the user is paying attention to. For example, the user can visually understand what kind of event has occurred with respect to the door switch from image data acquired at the timing when the door switch changes from ON to OFF. If the cause cannot be determined based on the signal or function block state alone, it may be possible to determine the cause if it is image data.

図7や図12などが示すように、表示装置5は、複数の履歴情報をタイムチャート上に表示してもよい。これにより変化点の前後における信号の状態などを把握しやすくなろう。 As shown in FIGS. 7 and 12, the display device 5 may display a plurality of pieces of history information on a time chart. This will make it easier to understand the state of the signal before and after the change point.

表示装置5は、安全コントローラに内蔵されている表示装置5aであってもよいし、安全コントローラに接続された外部コンピュータ(例:PC2)に設けられた表示装置5b、5cのいずれであってもよい。 The display device 5 may be a display device 5a built into the safety controller, or a display device 5b or 5c provided in an external computer (e.g., PC 2) connected to the safety controller. good.

PC2bは履歴表示装置の一例である。PC2bで動作するCPU13(Webブラウザ93)は、履歴記録手段に記録された履歴情報に含まれている入力信号の変化点および出力信号の変化点を示す表示画面を作成する作成手段として機能してもよい。表示装置5cは表示画面を表示する表示手段として機能する。同様に、PC2aで動作するCPU13(履歴表示プロブラム830)も作成手段として機能してもよい。この場合、表示装置5bが表示手段として機能する。 The PC 2b is an example of a history display device. The CPU 13 (Web browser 93) operating on the PC 2b functions as a creation means for creating a display screen showing the change points of the input signal and the change point of the output signal included in the history information recorded in the history recording means. Good too. The display device 5c functions as a display means for displaying a display screen. Similarly, the CPU 13 (history display program 830) operating on the PC 2a may also function as a creation means. In this case, the display device 5b functions as a display means.

履歴情報は、安全プログラム16のスキャンサイクルごとに、時刻情報とともに、記録された複数のファンクションブロックのそれぞれの状態、入力信号および出力信号を含んでもよい。 The history information may include the recorded states, input signals, and output signals of each of the plurality of function blocks, along with time information, for each scan cycle of the safety program 16.

Webブラウザ93および表示装置5c(履歴表示プロブラム830および表示装置5b)は、安全プログラムを形成している複数のファンクションブロックと、複数のファンクションブロックのそれぞれの状態を示すアイコンとを含む表示画面を表示してもよい。 The web browser 93 and display device 5c (history display program 830 and display device 5b) display a display screen that includes a plurality of function blocks forming a safety program and icons indicating the status of each of the plurality of function blocks. You may.

複数のファンクションブロックは、少なくとも二つの入力端子と少なくとも一つの出力端子を有してもよい。Webブラウザ93および表示装置5c(履歴表示プロブラム830および表示装置5b)は、複数のファンクションブロックのそれぞれについて少なくとも二つの入力端子の状態と少なくとも一つの出力端子の状態とを表示してもよい。 The plurality of function blocks may have at least two input terminals and at least one output terminal. The Web browser 93 and the display device 5c (the history display program 830 and the display device 5b) may display the states of at least two input terminals and the state of at least one output terminal for each of the plurality of function blocks.

発明は上記の実施形態に制限されるものではなく、発明の要旨の範囲内で、種々の変形・変更が可能である。 The invention is not limited to the above-described embodiments, and various modifications and changes can be made within the scope of the invention.

Claims (14)

一つ以上の安全入力機器から入力信号が入力される入力部と、
前記入力信号と、ファンクションブロックを含む安全プログラムと、に基づき所定の演算を実行して出力信号を求め、当該出力信号として安全状態を示すON信号または安全ではない状態を示すOFF信号を出力する安全制御部と、
前記入力信号、前記ファンクションブロックの状態および前記出力信号を時刻情報とともに履歴情報として記録する履歴記録手段と、
前記履歴記録手段に記録された履歴情報を読み出して、当該履歴情報が記録された記録タイミングにおいて論理が変化した入力信号および出力信号の各信号またはファンクションブロックを強調するためのアイコンを前記安全プログラム上に変化点として示す表示画面情報を作成して表示装置に提供する提供手段と、
を有することを特徴とする安全コントローラ。
an input section into which input signals are input from one or more safety input devices;
A safety system that calculates an output signal by performing a predetermined calculation based on the input signal and a safety program including a function block, and outputs an ON signal indicating a safe state or an OFF signal indicating an unsafe state as the output signal. a control unit;
history recording means for recording the input signal , the state of the function block , and the output signal together with time information as history information;
The history information recorded in the history recording means is read out, and an icon for emphasizing each signal or function block of the input signal and output signal whose logic changed at the recording timing at which the history information was recorded is displayed in the safe. providing means for creating display screen information shown as change points on the program and providing it to the display device;
A safety controller characterized by having:
前記提供手段は、前記アイコンを前記安全プログラム上に変化点として示すとともに、当該安全プログラム上に前記各信号または前記ファンクションブロックの状態を示す前記表示画面情報を提供することを特徴とする請求項1に記載の安全コントローラ。10. The providing means shows the icon as a change point on the safety program, and provides the display screen information indicating the state of each signal or the function block on the safety program. Safety controller as described in. 一つ以上の安全入力機器から入力信号が入力される入力部と、
前記入力信号に基づき所定の演算を実行して出力信号を求め、当該出力信号として安全状態を示すON信号または安全ではない状態を示すOFF信号を出力する安全制御部と、
前記入力信号および前記出力信号を時刻情報とともに履歴情報として記録する履歴記録手段と、
前記履歴記録手段に記録された履歴情報を読み出して、前記入力信号または前記出力信号に変化が生じた記録タイミングのうち一の記録タイミングにおける前記入力信号の変化点および前記出力信号の変化点を選択的に示す表示画面情報を作成して、内蔵する表示装置に提供する提供手段と、
を有することを特徴とする安全コントローラ。
an input section into which input signals are input from one or more safety input devices;
a safety control unit that performs a predetermined calculation based on the input signal to obtain an output signal, and outputs an ON signal indicating a safe state or an OFF signal indicating an unsafe state as the output signal;
history recording means for recording the input signal and the output signal together with time information as history information;
reading the history information recorded in the history recording means and selecting a change point of the input signal and a change point of the output signal at one of the recording timings at which a change occurred in the input signal or the output signal; providing means for creating display screen information showing the information and providing it to the built-in display device;
A safety controller characterized by having:
前記提供手段は、前記一の記録タイミングにおける前記入力信号および前記出力信号の変化点を示すとともに、前記入力信号および前記出力信号の現在の状態を示す前記表示画面情報を提供することを特徴とする請求項3に記載の安全コントローラ。The providing means is characterized in that it provides the display screen information that indicates a change point of the input signal and the output signal at the one recording timing and also indicates the current state of the input signal and the output signal. The safety controller according to claim 3. 前記安全制御部は、前記入力信号または前記入力信号から求められた演算信号に対してそれぞれ論理演算を実行する複数のファンクションブロックを有する安全プログラムを、スキャンサイクルごとに繰り返し実行するように構成されており、
前記履歴記録手段は、前記スキャンサイクルごとに、前記時刻情報とともに、前記複数のファンクションブロックのそれぞれの状態、前記入力信号および前記出力信号を前記履歴情報として記録することを特徴とする請求項1ないし4のいずれか一項に記載の安全コントローラ。
The safety control unit is configured to repeatedly execute a safety program having a plurality of function blocks each performing a logical operation on the input signal or a calculation signal obtained from the input signal, in each scan cycle. Ori,
2. The history recording means records the state of each of the plurality of function blocks, the input signal, and the output signal as the history information together with the time information for each scan cycle . 4. The safety controller according to any one of 4 .
前記複数のファンクションブロックは、少なくとも二つの入力端子と少なくとも一つの出力端子を有し、
前記表示装置は、前記複数のファンクションブロックのそれぞれについて前記少なくとも二つの入力端子の状態と前記少なくとも一つの出力端子の状態とを表示することを特徴とする請求項に記載の安全コントローラ。
The plurality of function blocks have at least two input terminals and at least one output terminal,
6. The safety controller according to claim 5 , wherein the display device displays the states of the at least two input terminals and the state of the at least one output terminal for each of the plurality of function blocks.
前記提供手段は、前記表示装置において表示されている履歴情報よりも古い履歴情報または新しい履歴情報を表示することを指示されると、前記指示に基づき前記古い履歴情報または新しい履歴情報を示す表示画面情報を作成して前記表示装置に提供することを特徴とする請求項1ないしのいずれか一項に記載の安全コントローラ。 When the providing means is instructed to display historical information older or newer than the historical information displayed on the display device, the providing means displays a display screen showing the old historical information or new historical information based on the instruction. The safety controller according to any one of claims 1 to 6 , wherein information is created and provided to the display device. 前記表示装置は、前記入力信号の変化または前記出力信号の変化が生じた複数のイベントのうち一つのイベントを選択する選択オブジェクトを表示し、
前記提供手段は、前記選択オブジェクトを通じて選択されたイベントに関連付けられている履歴情報を前記履歴記録手段から取得して前記表示画面情報を作成することを特徴とする請求項1ないしのいずれか一項に記載の安全コントローラ。
the display device displays a selection object for selecting one event from among a plurality of events in which a change in the input signal or a change in the output signal occurs;
8. The providing means creates the display screen information by acquiring history information associated with the event selected through the selection object from the history recording means. Safety controller as described in Section.
前記選択オブジェクトに列挙される複数のイベントを検索するための検索条件を入力する入力手段と、
前記入力手段に入力された前記検索条件にしたがってイベントを検索し、見つかったイベントを前記選択オブジェクトに列挙する列挙手段と、
をさらに有することを特徴とする請求項に記載の安全コントローラ。
input means for inputting search conditions for searching for a plurality of events listed in the selected object;
enumeration means for searching for events according to the search conditions input to the input means and enumerating the found events in the selection object;
9. The safety controller according to claim 8 , further comprising:
前記履歴情報は、前記一つ以上の安全入力機器の設置された設置環境を撮影して得られた画像データをさらに含み、
前記表示装置は、前記入力信号の変化点および前記出力信号の変化点とともに、前記画像データを表示することを特徴とする請求項1ないしのいずれか一項に記載の安全コントローラ。
The history information further includes image data obtained by photographing an installation environment in which the one or more safety input devices are installed,
The safety controller according to any one of claims 1 to 9 , wherein the display device displays the image data together with a change point of the input signal and a change point of the output signal.
前記表示装置は、複数の履歴情報をタイムチャート上に表示することを特徴とする請求項1ないし10のいずれか一項に記載の安全コントローラ。 The safety controller according to any one of claims 1 to 10 , wherein the display device displays a plurality of pieces of historical information on a time chart. 一つ以上の安全入力機器から入力信号が入力される入力部と、前記入力信号と、ファンクションブロックを含む安全プログラムと、に基づき所定の演算を実行して出力信号を求め、当該出力信号として安全状態を示すON信号または安全ではない状態を示すOFF信号を出力する安全制御部と、前記入力信号、前記ファンクションブロックの状態および前記出力信号を時刻情報とともに履歴情報として記録する履歴記録手段と、を有する安全コントローラに接続される履歴表示装置であって、
前記履歴記録手段に記録された履歴情報を読み出して、当該履歴情報が記録された記録タイミングにおいて論理が変化した入力信号および出力信号の各信号またはファンクションブロックを強調するためのアイコンを前記安全プログラム上に変化点として示す表示画面情報を作成する作成手段と、
前記表示画面情報を表示する表示手段と
を有することを特徴とする履歴表示装置。
An input section receives an input signal from one or more safety input devices, performs a predetermined operation based on the input signal , and a safety program including a function block to obtain an output signal, and determines the output signal as a safe output signal. a safety control section that outputs an ON signal indicating a state or an OFF signal indicating an unsafe state; and a history recording means that records the input signal , the state of the function block, and the output signal together with time information as history information. A history display device connected to a safety controller having
The history information recorded in the history recording means is read out, and an icon for emphasizing each signal or function block of the input signal and output signal whose logic has changed at the recording timing when the history information was recorded is displayed in the safe. a creation means for creating display screen information shown as change points on the program ;
A history display device comprising: display means for displaying the display screen information .
前記安全制御部は、前記入力信号または前記入力信号から求められた演算信号に対してそれぞれ論理演算を実行する複数のファンクションブロックを有する安全プログラムを、スキャンサイクルごとに繰り返し実行するように構成されており、
前記履歴記録手段は、前記スキャンサイクルごとに、前記時刻情報とともに、前記複数のファンクションブロックのそれぞれの状態、前記入力信号および前記出力信号を前記履歴情報として記録することを特徴とする請求項12に記載の履歴表示装置。
The safety control unit is configured to repeatedly execute, in each scan cycle, a safety program having a plurality of function blocks that each perform a logical operation on the input signal or a calculation signal obtained from the input signal. Ori,
13. The history recording means records the state of each of the plurality of function blocks, the input signal, and the output signal as the history information together with the time information for each scan cycle. History display device as described.
前記複数のファンクションブロックは、少なくとも二つの入力端子と少なくとも一つの出力端子を有し、
前記表示手段は、前記複数のファンクションブロックのそれぞれについて前記少なくとも二つの入力端子の状態と前記少なくとも一つの出力端子の状態とを表示することを特徴とする請求項13に記載の履歴表示装置。
The plurality of function blocks have at least two input terminals and at least one output terminal,
14. The history display device according to claim 13 , wherein the display means displays the states of the at least two input terminals and the state of the at least one output terminal for each of the plurality of function blocks.
JP2019209184A 2019-11-19 2019-11-19 Safety controller and history display device Active JP7418188B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019209184A JP7418188B2 (en) 2019-11-19 2019-11-19 Safety controller and history display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019209184A JP7418188B2 (en) 2019-11-19 2019-11-19 Safety controller and history display device

Publications (2)

Publication Number Publication Date
JP2021082029A JP2021082029A (en) 2021-05-27
JP7418188B2 true JP7418188B2 (en) 2024-01-19

Family

ID=75965284

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019209184A Active JP7418188B2 (en) 2019-11-19 2019-11-19 Safety controller and history display device

Country Status (1)

Country Link
JP (1) JP7418188B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003216229A (en) 2001-10-05 2003-07-31 Idis Co Ltd Telecontrol and management system
JP2009501968A (en) 2005-07-06 2009-01-22 ハネウェル・インターナショナル・インコーポレーテッド System and method for providing direct web access to a controller in a process control environment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003216229A (en) 2001-10-05 2003-07-31 Idis Co Ltd Telecontrol and management system
JP2009501968A (en) 2005-07-06 2009-01-22 ハネウェル・インターナショナル・インコーポレーテッド System and method for providing direct web access to a controller in a process control environment

Also Published As

Publication number Publication date
JP2021082029A (en) 2021-05-27

Similar Documents

Publication Publication Date Title
US11188048B2 (en) Programmable logic controller and main unit
US11656596B2 (en) Programmable logic controller and program creation supporting apparatus
US20200310733A1 (en) Programmable Display And Programmable Logic Controller System Including The Same
US11409257B2 (en) Setting device that sets a programmable logic controller and PLC system that collects control data and a dashboard for displaying control data
EP3540593B1 (en) Program development assist system, program development assist method, and program development assist program
JP7450471B2 (en) Programmable logic controller and PLC system
JP3963174B2 (en) Display / editing apparatus, display method, and program
JP2012190219A (en) Information processing device and trace log acquisition method
EP2309358B1 (en) Plant monitoring control system
JP2024052959A (en) Safety controller and history display device
JP7418188B2 (en) Safety controller and history display device
JP2022158228A (en) Monitoring device and programmable logic controller system
JP2020166827A (en) Programmable display device and programmable logic controller system including the same
JP2020067751A (en) Programmable logic controller system, program creation assisting device, and computer program
JP2020067752A (en) Programmable logic controller system, program creation assisting device, and computer program
EP3506034B1 (en) Control system
US11803376B2 (en) Programming support apparatus for developing a user program to be executed by a programmable logic controller
JP6948450B2 (en) Programmable logic controller and main unit
US20220317650A1 (en) Analysis apparatus, control method thereof, and analysis system
WO2020189142A1 (en) Control system, control method, and control program
JP6806946B2 (en) External setting devices and programs
JP7331507B2 (en) Controller, control system and control method
CN115202282A (en) Analysis device, analysis system, and control method thereof
JP2022158229A (en) Programmable logic controller system
EP4040242A1 (en) Program development device, and program for implementing program development device

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20210113

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220912

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230726

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230731

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230921

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: 20231215

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240109

R150 Certificate of patent or registration of utility model

Ref document number: 7418188

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150