JP6996887B2 - Programmable logic controller system and data acquisition device - Google Patents

Programmable logic controller system and data acquisition device Download PDF

Info

Publication number
JP6996887B2
JP6996887B2 JP2017135376A JP2017135376A JP6996887B2 JP 6996887 B2 JP6996887 B2 JP 6996887B2 JP 2017135376 A JP2017135376 A JP 2017135376A JP 2017135376 A JP2017135376 A JP 2017135376A JP 6996887 B2 JP6996887 B2 JP 6996887B2
Authority
JP
Japan
Prior art keywords
unit
program
data
user
logic controller
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
JP2017135376A
Other languages
Japanese (ja)
Other versions
JP2019016326A (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 JP2017135376A priority Critical patent/JP6996887B2/en
Publication of JP2019016326A publication Critical patent/JP2019016326A/en
Application granted granted Critical
Publication of JP6996887B2 publication Critical patent/JP6996887B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Description

本発明は、プログラマブル・ロジック・コントローラおよびデータ収集装置に関する。 The present invention relates to a programmable logic controller and a data acquisition device.

プログラマブル・ロジック・コントローラ(以下、PLCと称す)は、FA(Factory Automation)制御システムにおいて広く使用されているシーケンス制御装置であり、ラダープログラムなどのユーザプログラムにしたがって動作する。操作者(オペレータ)は、リミットスイッチ、センサ、温度計などの入力機器や、電磁開閉器、ソレノイド、モータ、アクチュエータ、シリンダ、リレー、位置決めシステムなどの出力機器をPLCに接続し、ラダープログラムによってこれらの被制御機器を制御する。オペレータは、パーソナルコンピュータ(以下、PCと称す)などのプログラム作成支援装置上でラダープログラムを作成し、PCとPLCを接続し、ラダープログラムをPLCの記憶部に記憶させる。PLCの記憶部にはデバイス情報等の各種データも記憶される。デバイス情報とは、入力機器からの入力状態、出力機器への出力状態およびラダープログラム上で設定される内部リレー(補助リレー)、タイマー、カウンタ、データメモリ等の状態を示す情報である。デバイスとは、デバイス情報を格納するために設けられたメモリ上の領域を指す名称である。PLCにプログラム作成支援装置を接続することで、PLCが保持しているデバイス情報(デバイスの値)をプログラム作成支援装置に表示させ、視認することもできる。PLCは一般に基本ユニット(CPUユニット)と拡張ユニットにより構成される。CPUユニットと拡張ユニットは予め割り付けられたデバイスを通じてスキャン周期ごとに実行されるリフレッシュによってデバイス値を相互に交換する。 A programmable logic controller (hereinafter referred to as PLC) is a sequence control device widely used in an FA (Factory Automation) control system, and operates according to a user program such as a ladder program. The operator connects input devices such as limit switches, sensors, and thermometers, and output devices such as electromagnetic switches, solenoids, motors, actuators, cylinders, relays, and positioning systems to the PLC, and uses a ladder program to connect these. Controls the controlled device. The operator creates a ladder program on a program creation support device such as a personal computer (hereinafter referred to as a PC), connects the PC and the PLC, and stores the ladder program in the storage unit of the PLC. Various data such as device information is also stored in the storage unit of the PLC. The device information is information indicating the input state from the input device, the output state to the output device, and the state of the internal relay (auxiliary relay), timer, counter, data memory, etc. set on the ladder program. The device is a name indicating an area on the memory provided for storing device information. By connecting the program creation support device to the PLC, the device information (device value) held by the PLC can be displayed on the program creation support device and visually recognized. PLC is generally composed of a basic unit (CPU unit) and an expansion unit. The CPU unit and the expansion unit exchange device values with each other through refreshes performed at each scan cycle through pre-allocated devices.

ところで、ワーク(部品)の生産工程において安定してワークを生産するためには、生産工程の予知保全が必要となる。これは生産工程において使用される製造機械にはメンテナンスが必要な部分が存在するからである。特許文献1によれば、産業機械が所定のテンプレートにしたがってデータをクラウドに転送することで、クラウドがデータを分析することが提案されている。 By the way, in order to stably produce a work in the work (parts) production process, predictive maintenance of the production process is required. This is because there are parts of the manufacturing machine used in the production process that require maintenance. According to Patent Document 1, it is proposed that an industrial machine transfers data to the cloud according to a predetermined template, and the cloud analyzes the data.

米国特許第9128472号明細書U.S. Pat. No. 9,128,472

特許文献1によれば、予め用意されたテンプレートが必要となる。つまり、ユーザのニーズに応じたテンプレートがなければ、ユーザは自らテンプレートを作成しなければならず、面倒であった。また、上述した予知保全においては時系列データの中から個々の部品に対応した個別データの検討が必要となる。しかし、デバイス値の時系列データは膨大な量となるため、その中からユーザが必要な個別データを抽出することは困難であった。 According to Patent Document 1, a template prepared in advance is required. In other words, if there is no template that meets the needs of the user, the user has to create the template by himself, which is troublesome. Further, in the above-mentioned predictive maintenance, it is necessary to examine individual data corresponding to individual parts from the time series data. However, since the time-series data of device values is enormous, it is difficult to extract the individual data required by the user.

そこで、本発明は、時系列データから個別データを抽出することをユーザにとって容易にすることを目的とする。 Therefore, it is an object of the present invention to make it easy for the user to extract individual data from the time series data.

本発明は、たとえば、
ユーザプログラムを繰り返し実行することで、被制御機器の動作を制御するプログラマブル・ロジック・コントローラシステムであって、
前記ユーザプログラムを記憶するプログラム記憶部と、
前記ユーザプログラム上で指定可能であり、1ビットの情報を記憶するビットデバイスおよび1ワード又は数ワードの情報を記憶するワードデバイスを含む複数のデバイスを保持するデバイス記憶部と、
前記プログラム記憶部に記憶されているユーザプログラムを繰り返し実行し、当該ユーザプログラムにしたがって前記複数のデバイスに記憶されている情報を演算処理するプログラム実行部と、
前記デバイス記憶部に保持されたデバイスのうち少なくとも一つのデバイスに記憶されているデバイスデータを繰り返し収集することで、前記被制御機器の繰り返し動作に応じた周期性を有する時系列デバイスデータを形成するデータ収集部と、
前記ユーザプログラムを解析することにより、実行トリガの立ち上り又は立ち下りに応じて複数の命令が繰り返し実行される命令ループを特定し、当該特定された命令ループに基づき、前記時系列デバイスデータから前記周期性に応じた複数の個別データを抽出するための抽出期間を定める基準となる前記実行トリガを決定する決定部と、
前記決定部により決定された前記実行トリガが変化するタイミングに基づいて、前記時系列デバイスデータから前記周期性に応じた複数の個別データを抽出する抽出部と、
前記抽出部により抽出された個別データに対して、当該各個別データを識別するための識別情報を付与する付与部と
を有することを特徴とするプログラマブル・ロジック・コントローラシステムを提供する。
The present invention is, for example,
A programmable logic controller system that controls the operation of controlled devices by repeatedly executing user programs.
A program storage unit that stores the user program and
A device storage unit that can be specified on the user program and holds a plurality of devices including a bit device that stores one bit of information and a word device that stores one word or several words of information.
A program execution unit that repeatedly executes a user program stored in the program storage unit and performs arithmetic processing on information stored in the plurality of devices according to the user program.
By repeatedly collecting device data stored in at least one device among the devices held in the device storage unit, time-series device data having periodicity corresponding to the repeated operation of the controlled device is formed. Data collection department and
By analyzing the user program, an instruction loop in which a plurality of instructions are repeatedly executed according to the rise or fall of the execution trigger is identified, and based on the specified instruction loop, the cycle is obtained from the time-series device data. A decision unit that determines the execution trigger that serves as a reference for determining an extraction period for extracting a plurality of individual data according to gender .
An extraction unit that extracts a plurality of individual data according to the periodicity from the time-series device data based on the timing at which the execution trigger determined by the determination unit changes.
Provided is a programmable logic controller system characterized by having an addition unit for assigning identification information for identifying each individual data to each individual data extracted by the extraction unit.

本発明によれば、時系列データから個別データを抽出することがユーザにとって容易になる。 According to the present invention, it becomes easy for the user to extract individual data from the time series data.

PLCシステムを示す図Diagram showing a PLC system ラダープログラムを説明する図Diagram illustrating the ladder program プログラム作成支援装置を説明する図Diagram explaining the program creation support device PLCを説明する図Diagram illustrating PLC ラダープログラムのスキャンを説明する図Diagram illustrating a scan of a ladder program IPCを説明する図Diagram illustrating IPC クラウドを説明する図Diagram explaining the cloud 時系列データと抽出期間を説明する図Diagram explaining time series data and extraction period 抽出期間の決定方法を説明する図The figure explaining the method of determining the extraction period 抽出期間の決定方法を説明する図The figure explaining the method of determining the extraction period 抽出期間の決定方法を説明する図The figure explaining the method of determining the extraction period 抽出期間の決定方法を説明する図The figure explaining the method of determining the extraction period 抽出期間の決定方法を説明する図The figure explaining the method of determining the extraction period 抽出期間の決定に関連する機能を説明する図Diagram illustrating features related to determining the extraction period データ収集と抽出に関連する機能を説明する図Diagram illustrating features related to data collection and extraction データ収集と抽出に関連する機能を説明する図Diagram illustrating features related to data collection and extraction データ収集と抽出に関連する機能を説明する図Diagram illustrating features related to data collection and extraction 抽出期間の決定処理を説明するフローチャートFlowchart explaining the process of determining the extraction period 収集処理を説明するフローチャートFlow chart explaining the collection process 時系列データを説明する図Diagram explaining time series data 抽出処理を説明するフローチャートFlow chart explaining the extraction process 個別データを説明する図Diagram explaining individual data 統合された収集処理および抽出処理を説明するフローチャートFlowchart explaining integrated collection process and extraction process 個別データを表示するUIを説明する図A diagram illustrating a UI that displays individual data 個別データを表示するUIを説明する図A diagram illustrating a UI that displays individual data 個別データを表示するUIを説明する図A diagram illustrating a UI that displays individual data 個別データの送受信に関するシーケンス図Sequence diagram for sending and receiving individual data 個別データの送受信に関するシーケンス図Sequence diagram for sending and receiving individual data 個別データの送受信に関するシーケンス図Sequence diagram for sending and receiving individual data 個別データの送受信に関するシーケンス図Sequence diagram for sending and receiving individual data 個別データの表示例を示す図The figure which shows the display example of individual data

<システム構成>
はじめにプログラマブル・ロジック・コントローラ(PLC、単にプログラマブルコントローラと呼ばれてもよい)を当業者にとってよりよく理解できるようにするために、一般的なPLCの構成とその動作について説明する。
<System configuration>
First, a general PLC configuration and its operation will be described so that a person skilled in the art can better understand a programmable logic controller (PLC, which may be simply referred to as a programmable controller).

図1は、本発明の実施の形態によるプログラマブル・ロジック・コントローラシステムの一構成例を示す概念図である。図1が示すように、このシステムは、ラダープログラムなどのユーザプログラムの編集を行うためのプログラム作成支援装置2と、工場等に設置される各種制御装置を統括的に制御するためのPLC(プログラマブル・ロジック・コントローラ)1とを備えている。ユーザプログラムは、ラダー言語やフローチャート形式のモーションプログラムなどのグラフィカルプログラミング言語を用いて作成されてもよいし、C言語などの高級プログラミング言語を用いて作成されてもよい。以下では、説明の便宜上、ユーザプログラムはラダープログラムとする。PLC1は、CPUが内蔵された基本ユニット3と、1つないし複数の拡張ユニット4を備えている。基本ユニット3に対して1つないし複数の拡張ユニット4が着脱可能となっている。基本ユニット3はCPUユニットと呼ばれることもある。 FIG. 1 is a conceptual diagram showing a configuration example of a programmable logic controller system according to an embodiment of the present invention. As shown in FIG. 1, this system is a PLC (programmable) for comprehensively controlling a program creation support device 2 for editing a user program such as a ladder program and various control devices installed in factories and the like. -It is equipped with a logic controller) 1. The user program may be created using a graphical programming language such as a ladder language or a flow chart-type motion program, or may be created using a high-level programming language such as C language. In the following, for convenience of explanation, the user program will be a ladder program. The PLC 1 includes a basic unit 3 having a built-in CPU and one or more expansion units 4. One or more expansion units 4 can be attached to and detached from the basic unit 3. The basic unit 3 is sometimes called a CPU unit.

基本ユニット3には、表示部5および操作部6が備えられている。表示部5は、基本ユニット3に取り付けられている各拡張ユニット4の動作状況などを表示することができる。操作部6の操作内容に応じて表示部5は表示内容を切り替える。表示部5は、通常、PLC1内のデバイスの現在値(デバイス値)やPLC1内で生じたエラー情報などを表示する。デバイスとは、デバイス値(デバイスデータ)を格納するために設けられたメモリ上の領域を指す名称であり、デバイスメモリと呼ばれてもよい。デバイス値とは、入力機器からの入力状態、出力機器への出力状態およびユーザプログラム上で設定される内部リレー(補助リレー)、タイマー、カウンタ、データメモリ等の状態を示す情報である。デバイス値の型にはビット型とワード型がある。ビットデバイスは1ビットのデバイス値を記憶する。ワードデバイスは1ワードのデバイス値を記憶する。 The basic unit 3 is provided with a display unit 5 and an operation unit 6. The display unit 5 can display the operating status of each expansion unit 4 attached to the basic unit 3. The display unit 5 switches the display content according to the operation content of the operation unit 6. The display unit 5 usually displays the current value (device value) of the device in PLC1, error information generated in PLC1, and the like. The device is a name indicating an area on a memory provided for storing a device value (device data), and may be referred to as a device memory. The device value is information indicating the input state from the input device, the output state to the output device, and the state of the internal relay (auxiliary relay), timer, counter, data memory, etc. set on the user program. There are two types of device values: bit type and word type. The bit device stores a 1-bit device value. The word device stores the device value of one word.

拡張ユニット4は、PLC1の機能を拡張するために用意されている。各拡張ユニット4には、その拡張ユニット4の機能に対応するフィールドデバイス(被制御装置)10が接続され、これにより、各フィールドデバイス10が拡張ユニット4を介して基本ユニット3に接続される。フィールドデバイス10には、センサなどの入力機器や、アクチュエータなどの出力機器が含まれる。なお、複数のフィールドデバイス10を識別する必要があるときには、10a、10bのように参照符号の末尾にa、b、c・・・の文字が付与される。 The expansion unit 4 is prepared to expand the function of the PLC1. A field device (controlled device) 10 corresponding to the function of the expansion unit 4 is connected to each expansion unit 4, whereby each field device 10 is connected to the basic unit 3 via the expansion unit 4. The field device 10 includes an input device such as a sensor and an output device such as an actuator. When it is necessary to identify a plurality of field devices 10, characters a, b, c ... Are added to the end of the reference code, such as 10a and 10b.

プログラム作成支援装置2は、たとえば、携帯可能なノートタイプやタブレットタイプのパーソナルコンピュータであって、表示部7および操作部8を備えている。PLC1を制御するためのユーザプログラムの一例であるラダープログラムは、プログラム作成支援装置2を用いて作成される。その作成されたラダープログラムは、プログラム作成支援装置2内でニモニックコードに変換される。プログラム作成支援装置2は、USB(Universal Serial Bus)などの通信ケーブル9を介してPLC1の基本ユニット3に接続され、ニモニックコードに変換されたラダープログラムを基本ユニット3に送る。基本ユニット3はラダープログラムをマシンコードに変換し、基本ユニット3に備えられたメモリ内に記憶する。なお、ここではニモニックコードが基本ユニット3に送信されているが、本発明はこれに限られない。たとえば、プログラム作成支援装置2は、ニモニックコードを中間コードに変換し、中間コードを基本ユニット3に送信してもよい。 The program creation support device 2 is, for example, a portable notebook type or tablet type personal computer, and includes a display unit 7 and an operation unit 8. The ladder program, which is an example of the user program for controlling the PLC 1, is created by using the program creation support device 2. The created ladder program is converted into a mnemonic code in the program creation support device 2. The program creation support device 2 is connected to the basic unit 3 of the PLC1 via a communication cable 9 such as USB (Universal Serial Bus), and sends a ladder program converted into a mnemonic code to the basic unit 3. The basic unit 3 converts the ladder program into machine code and stores it in the memory provided in the basic unit 3. Although the mnemonic code is transmitted to the basic unit 3 here, the present invention is not limited to this. For example, the program creation support device 2 may convert the mnemonic code into an intermediate code and transmit the intermediate code to the basic unit 3.

なお、図1は示していないが、プログラム作成支援装置2の操作部8には、プログラム作成支援装置2に接続されたマウスなどのポインティングデバイスが含まれていてもよい。また、プログラム作成支援装置2は、USB以外の他の通信ケーブル9を介して、PLC1の基本ユニット3に対して着脱可能に接続されるような構成であってもよい。また、通信ケーブル9を介さず、PLC1の基本ユニット3に対して無線によって接続されるような構成であってもよい。 Although not shown in FIG. 1, the operation unit 8 of the program creation support device 2 may include a pointing device such as a mouse connected to the program creation support device 2. Further, the program creation support device 2 may be configured to be detachably connected to the basic unit 3 of the PLC 1 via a communication cable 9 other than USB. Further, the configuration may be such that the basic unit 3 of the PLC 1 is wirelessly connected without the communication cable 9.

IPC11はPLC1から時系列データを収集するデータ収集装置である。IPC11は時系列データをクラウド12に送信してもよい。クラウドとは、データを蓄積したり、データに所定の処理を実行したりするサーバ装置の集合体である。 IPC11 is a data collection device that collects time series data from PLC1. The IPC 11 may transmit the time series data to the cloud 12. The cloud is a collection of server devices that store data and execute predetermined processing on the data.

<ラダープログラム>
図2は、ラダープログラムの作成時にプログラム作成支援装置2の表示部7に表示されるラダー図Ldの一例を示す図である。プログラム作成支援装置2はマトリックス状に配置された複数のセルを表示部7に表示する。各セルには仮想デバイスのシンボルが配置される。シンボルは入力リレーや出力リレーなどを示している。複数のシンボルによってリレー回路が形成される。ラダー図Ldには、たとえば、10列×N行(Nは任意の自然数)のセルが配置されている。そして、各行のセル内には仮想デバイスのシンボルが適宜配置される。
<Ladder program>
FIG. 2 is a diagram showing an example of the ladder diagram Ld displayed on the display unit 7 of the program creation support device 2 when the ladder program is created. The program creation support device 2 displays a plurality of cells arranged in a matrix on the display unit 7. A virtual device symbol is placed in each cell. Symbols indicate input relays, output relays, and the like. A relay circuit is formed by a plurality of symbols. In the ladder diagram Ld, for example, cells of 10 columns × N rows (N is an arbitrary natural number) are arranged. Then, the symbol of the virtual device is appropriately arranged in the cell of each row.

図2が示すリレー回路は、入力装置からの入力信号に基づいてオン/オフされる3つの仮想デバイス(以下、「入力デバイス」と呼ぶ。)のシンボルと、出力装置の動作を制御するためにオン/オフされる仮想デバイス(以下、「出力デバイス」と呼ぶ。)のシンボルとが適宜結合されることにより構成されている。 The relay circuit shown in FIG. 2 is used to control the symbols of three virtual devices (hereinafter referred to as “input devices”) that are turned on / off based on the input signal from the input device and the operation of the output device. It is configured by appropriately combining the symbols of virtual devices (hereinafter referred to as "output devices") that are turned on / off.

各入力デバイスのシンボルの上方に表示されている文字(「R0001」、「R0002」および「R0003」)は、その入力デバイスのデバイス名(アドレス名)を表している。各入力デバイスのシンボルの下方に表示されている文字(「フラグ1」、「フラグ2」および「フラグ3」)は、その入力デバイスに対応付けられたデバイスコメントを表している。出力デバイスのシンボルの上方に表示されている文字(「原点復帰」)は、その出力デバイスの機能を表す文字列からなるラベルである。 The characters (“R0001”, “R0002”, and “R0003”) displayed above the symbol of each input device represent the device name (address name) of the input device. The characters (“flag 1”, “flag 2”, and “flag 3”) displayed below the symbol of each input device represent the device comment associated with that input device. The character displayed above the symbol of the output device (“return to origin”) is a label consisting of a character string representing the function of the output device.

図2が示す例では、デバイス名「R0001」および「R0002」にそれぞれ対応する2つの入力デバイスのシンボルが直列的に結合されることにより、AND回路が構成されている。また、これらの2つの入力デバイスのシンボルからなるAND回路に対して、デバイス名「R0003」に対応する入力デバイスのシンボルが並列的に結合されることにより、OR回路が構成されている。すなわち、このリレー回路では、一行目の2つのシンボルに対応する入力デバイスがいずれもオンした場合、または、二行目のシンボルに対応する入力デバイスがオンした場合にのみ、一行目のシンボルに対応する出力デバイスがオンになる。 In the example shown in FIG. 2, the AND circuit is configured by connecting the symbols of the two input devices corresponding to the device names “R0001” and “R0002” in series. Further, the OR circuit is configured by connecting the symbols of the input devices corresponding to the device name "R0003" in parallel to the AND circuit composed of the symbols of these two input devices. That is, this relay circuit corresponds to the symbol of the first line only when both the input devices corresponding to the two symbols in the first line are turned on, or when the input device corresponding to the symbol of the second line is turned on. The output device to turn on.

<プログラム作成支援装置>
図3は、プログラム作成支援装置2の電気的構成について説明するためのブロック図である。図3が示すように、プログラム作成支援装置2は、CPU21、表示部7、操作部8、記憶装置22および通信部23を備えている。表示部7、操作部8、記憶装置22および通信部23は、それぞれCPU21に対して電気的に接続されている。記憶装置22は、少なくともRAMを含み、プログラム記憶部24と、編集ソフト記憶部25とを備えている。
<Program creation support device>
FIG. 3 is a block diagram for explaining the electrical configuration of the program creation support device 2. As shown in FIG. 3, the program creation support device 2 includes a CPU 21, a display unit 7, an operation unit 8, a storage device 22, and a communication unit 23. The display unit 7, the operation unit 8, the storage device 22, and the communication unit 23 are each electrically connected to the CPU 21. The storage device 22 includes at least a RAM, and includes a program storage unit 24 and an editing software storage unit 25.

ユーザは、編集ソフト記憶部25に記憶されている編集ソフトをCPU21に実行させて、操作部8を通じてラダープログラムを編集する。ここで、ラダープログラムの編集には、ラダープログラムの作成および変更が含まれる。編集ソフトを用いて作成されたラダープログラムは、プログラム記憶部24に記憶される。また、ユーザは、必要に応じてプログラム記憶部24に記憶されているラダープログラムを読み出し、そのラダープログラムを、編集ソフトを用いて変更することができる。通信部23は、通信ケーブル9を介してプログラム作成支援装置2を基本ユニット3に通信可能に接続するためのものである。 The user causes the CPU 21 to execute the editing software stored in the editing software storage unit 25, and edits the ladder program through the operation unit 8. Here, editing the ladder program includes creating and modifying the ladder program. The ladder program created by using the editing software is stored in the program storage unit 24. Further, the user can read the ladder program stored in the program storage unit 24 as needed and change the ladder program by using the editing software. The communication unit 23 is for connecting the program creation support device 2 to the basic unit 3 so as to be communicable via the communication cable 9.

<PLC>
図4は、PLC1の電気的構成について説明するためのブロック図である。図4が示すように、基本ユニット3は、CPU31、表示部5、操作部6、記憶装置32および通信部33を備えている。表示部5、操作部6、記憶装置32、および通信部33は、それぞれCPU31に電気的に接続されている。記憶装置32は、RAMやROM、メモリカードなどを含んでもよい。記憶装置32はデバイス部34やプログラム記憶部35などの複数の記憶領域を有している。デバイス部34はビットデバイスやワードデバイスなどを有し、各デバイスはデバイス値を記憶する。プログラム記憶部35は、プログラム作成支援装置2から入力されたラダープログラムやユーザデータを記憶する。プログラム記憶部35は、基本ユニット3用の制御プログラムも記憶する。図4が示すように基本ユニット3と拡張ユニット4とは拡張バスの一種であるユニット外部バス90を介して接続されている。なお、ユニット外部バス90に関する通信機能は通信部33の一部として実装されてもよい。
<PLC>
FIG. 4 is a block diagram for explaining the electrical configuration of PLC1. As shown in FIG. 4, the basic unit 3 includes a CPU 31, a display unit 5, an operation unit 6, a storage device 32, and a communication unit 33. The display unit 5, the operation unit 6, the storage device 32, and the communication unit 33 are each electrically connected to the CPU 31. The storage device 32 may include a RAM, a ROM, a memory card, and the like. The storage device 32 has a plurality of storage areas such as a device unit 34 and a program storage unit 35. The device unit 34 has a bit device, a word device, and the like, and each device stores a device value. The program storage unit 35 stores the ladder program and user data input from the program creation support device 2. The program storage unit 35 also stores the control program for the basic unit 3. As shown in FIG. 4, the basic unit 3 and the expansion unit 4 are connected to each other via a unit external bus 90, which is a kind of expansion bus. The communication function related to the unit external bus 90 may be implemented as a part of the communication unit 33.

図5は、基本ユニット3のスキャンタイムを示す模式図である。図5が示すように1つのスキャンタイムTは、入出力のリフレッシュを行うためのユニット間通信201、プログラム実行202、END処理204により構成されている。ユニット間通信201で、基本ユニット3は、ラダープログラムを実行して得られた出力データを基本ユニット3内の記憶装置32から拡張ユニット4など外部機器などに送信する。さらに、基本ユニット3は、拡張ユニット4など外部機器などから受信した入力データを基本ユニット3内の記憶装置32に取り込む。つまり、基本ユニット3のデバイスに記憶されているデバイス値は出力リフレッシュによって拡張ユニット4のデバイスに反映される。同様に、拡張ユニット4のデバイスに記憶されているデバイス値は入力リフレッシュによって基本ユニット3のデバイスに反映される。このように入出力リフレッシュによって基本ユニット3のデバイスと拡張ユニット4のデバイスが同期する。なお、リフレッシュ以外のタイミングでデバイス値をユニット間で更新する仕組みが採用されてもよい。ただし、基本ユニット3のデバイスは基本ユニット3が随時書き換えており、同様に、拡張ユニット4のデバイスは拡張ユニット4が随時書き換えている。つまり、基本ユニット3のデバイスは基本ユニット3の内部の装置によって随時アクセス可能である。同様に、拡張ユニット4のデバイスは拡張ユニット4の内部の装置によって随時アクセス可能になっている。基本ユニット3と拡張ユニット4との間では基本的にリフレッシュのタイミングにおいて相互にデバイス値を更新して同期する。プログラム実行202で、基本ユニット3は、更新された入力データを用いてプログラムを実行(演算)する。基本ユニット3はプログラムの実行によりデータを演算処理する。なお、END処理とは、プログラム作成支援装置2や基本ユニット3に接続された表示器(図示せず)等の外部機器とのデータ通信、システムのエラーチェック等の周辺サービスに関する処理全般を意味する。IPC11はEND処理204においてPLC1から時系列データを収集してもよい。 FIG. 5 is a schematic diagram showing the scan time of the basic unit 3. As shown in FIG. 5, one scan time T is composed of inter-unit communication 201 for input / output refresh, program execution 202, and END process 204. In the inter-unit communication 201, the basic unit 3 transmits the output data obtained by executing the ladder program from the storage device 32 in the basic unit 3 to an external device such as the expansion unit 4. Further, the basic unit 3 takes in the input data received from an external device such as the expansion unit 4 into the storage device 32 in the basic unit 3. That is, the device value stored in the device of the basic unit 3 is reflected in the device of the expansion unit 4 by the output refresh. Similarly, the device value stored in the device of the expansion unit 4 is reflected in the device of the basic unit 3 by the input refresh. In this way, the device of the basic unit 3 and the device of the expansion unit 4 are synchronized by the input / output refresh. A mechanism for updating the device value between units at a timing other than refreshing may be adopted. However, the device of the basic unit 3 is rewritten by the basic unit 3 at any time, and similarly, the device of the expansion unit 4 is rewritten by the expansion unit 4 at any time. That is, the device of the basic unit 3 can be accessed at any time by the device inside the basic unit 3. Similarly, the device of the expansion unit 4 is made accessible at any time by the device inside the expansion unit 4. The basic unit 3 and the expansion unit 4 basically update their device values and synchronize with each other at the refresh timing. In the program execution 202, the basic unit 3 executes (calculates) the program using the updated input data. The basic unit 3 processes data by executing a program. The END process means all processes related to peripheral services such as data communication with external devices such as a display (not shown) connected to the program creation support device 2 and the basic unit 3, and system error check. .. The IPC 11 may collect time series data from the PLC 1 in the END process 204.

このように、プログラム作成支援装置2はユーザの操作に応じたラダープログラムを作成し、作成したラダープログラムをPLC1に転送する。PLC1は、入出力リフレッシュ、ラダープログラムの実行およびEND処理を1サイクル(1スキャン)として、このサイクルを周期的、すなわちサイクリックに繰り返し実行する。これにより、各種入力機器(センサ等)からのタイミング信号に基づいて、各種出力機器(モータ等)を制御する。よって、PLC1は汎用のパーソナルコンピュータ(PC)とは全く異なる動きをする。 In this way, the program creation support device 2 creates a ladder program according to the user's operation, and transfers the created ladder program to PLC1. The PLC1 sets input / output refresh, execution of the ladder program, and END processing as one cycle (one scan), and repeatedly executes this cycle periodically, that is, cyclically. As a result, various output devices (motors, etc.) are controlled based on timing signals from various input devices (sensors, etc.). Therefore, the PLC1 behaves completely differently from a general-purpose personal computer (PC).

<データ収集装置>
図6はIPC11の電気的構成について説明するためのブロック図である。IPC11は、CPU51、記憶装置52、通信部53、表示部57、操作部58などを備えている。記憶装置52、通信部53、表示部57および操作部58は、内部バスなどを介してそれぞれCPU51に電気的に接続されている。記憶装置52は、RAMやROM、メモリカード、ハードディスクドライブ(HDD)、ソリッドステートドライブ(SSD)などを含んでもよい。記憶装置52には、PLC1から収集された時系列記憶データを記憶する時系列データ記憶部54や、CPU51により実行される制御プログラムを記憶するプログラム記憶部55が設けられている。IPC11は、通信部53を介してPLC1やクラウド12と通信する。たとえば、CPU51は通信部53を介してPLC1からデバイス値またはその集合体である時系列データを収集して時系列データ記憶部54に記憶する。また、CPU51は時系列データを時系列データ記憶部54から読み出して、通信部53を介してクラウド12へ送信してもよい。
<Data collection device>
FIG. 6 is a block diagram for explaining the electrical configuration of the IPC 11. The IPC 11 includes a CPU 51, a storage device 52, a communication unit 53, a display unit 57, an operation unit 58, and the like. The storage device 52, the communication unit 53, the display unit 57, and the operation unit 58 are electrically connected to the CPU 51 via an internal bus or the like. The storage device 52 may include a RAM, a ROM, a memory card, a hard disk drive (HDD), a solid state drive (SSD), and the like. The storage device 52 is provided with a time-series data storage unit 54 for storing time-series storage data collected from the PLC 1 and a program storage unit 55 for storing a control program executed by the CPU 51. The IPC 11 communicates with the PLC 1 and the cloud 12 via the communication unit 53. For example, the CPU 51 collects time-series data, which is a device value or an aggregate thereof, from the PLC1 via the communication unit 53 and stores it in the time-series data storage unit 54. Further, the CPU 51 may read the time-series data from the time-series data storage unit 54 and transmit the time-series data to the cloud 12 via the communication unit 53.

<クラウド>
図7はクラウド12の電気的構成について説明するためのブロック図である。クラウド12は、CPU61、記憶装置62、通信部63、表示部67および操作部68を備えている。記憶装置62、通信部63、表示部67および操作部68は、内部バスなどを介してそれぞれCPU61に電気的に接続されている。記憶装置62は、RAMやROM、メモリカード、ハードディスクドライブ(HDD)、ソリッドステートドライブ(SSD)などを含んでもよい。記憶装置62には、IPC11を介してPLC1から収集された時系列記憶データを記憶する時系列データ記憶部64や、CPU61により実行される制御プログラムを記憶するプログラム記憶部65が設けられている。クラウド12は、通信部63を介してPLC1やIPC11、クライアント(例:プログラム作成支援装置2)と通信する。たとえば、CPU61は通信部63を介してPLC1またはIPC11から時系列データを収集して時系列データ記憶部64に記憶する。また、CPU61は時系列データに演算を施し、通信部63を介してクライアントに送信してもよい。
<Cloud>
FIG. 7 is a block diagram for explaining the electrical configuration of the cloud 12. The cloud 12 includes a CPU 61, a storage device 62, a communication unit 63, a display unit 67, and an operation unit 68. The storage device 62, the communication unit 63, the display unit 67, and the operation unit 68 are each electrically connected to the CPU 61 via an internal bus or the like. The storage device 62 may include a RAM, a ROM, a memory card, a hard disk drive (HDD), a solid state drive (SSD), and the like. The storage device 62 is provided with a time-series data storage unit 64 for storing time-series storage data collected from the PLC 1 via the IPC 11 and a program storage unit 65 for storing a control program executed by the CPU 61. The cloud 12 communicates with the PLC 1, the IPC 11, and a client (eg, the program creation support device 2) via the communication unit 63. For example, the CPU 61 collects time-series data from the PLC 1 or the IPC 11 via the communication unit 63 and stores the time-series data in the time-series data storage unit 64. Further, the CPU 61 may perform an operation on the time series data and transmit it to the client via the communication unit 63.

<抽出期間>
ある部品を製造する工場のラインにおいて部品の加工を制御したり、完成した部品を検査したりするためにPLC1が使用されることがある。たとえば、PLC1はユーザプログラムにしたがって部品に圧力を加えて切断したり、部品に熱を加えたりすることもある。また、PLC1は拡張ユニット4に接続されたXYステージなどを制御して部品の位置を移動させることもあろう。いずれの場合であっても部品の加工精度に問題が発生したときや発生しそうなときにその原因を探るにはPLC1のデバイス値を収集して分析することが必要となる。デバイス値は時々刻々と変化する。たとえば、一つの部品の加工や検査において数百回も変化することもあろう。これは、一つの部品につきラダープログラムが数百スキャンされることを意味する。また、時系列データの収集期間が長くなると、時系列データのうちどの部分がどの部品に対応した個別データであるかをユーザが目で確認して見つけ出すことは簡単ではない。そこで、本実施例では、PLC1やIPC11またはクラウド12が部品ごとの個別データを抽出することで、ユーザの負担を軽減する。ユーザは、プログラム作成支援装置2などのクライアントを通じて個別データを確認する。
<Extraction period>
PLC1 may be used to control the machining of a part or inspect a finished part in a factory line that manufactures a part. For example, PLC1 may apply pressure to a component to cut it or heat the component according to a user program. Further, the PLC 1 may control the XY stage connected to the expansion unit 4 to move the position of the component. In any case, it is necessary to collect and analyze the device values of PLC1 in order to find out the cause when a problem occurs or is likely to occur in the machining accuracy of the part. Device values change from moment to moment. For example, it may change hundreds of times in the processing and inspection of one part. This means that hundreds of ladder programs are scanned for each part. Further, when the collection period of time-series data becomes long, it is not easy for the user to visually confirm and find out which part of the time-series data corresponds to which component. Therefore, in this embodiment, the PLC 1, the IPC 11, or the cloud 12 extracts individual data for each component, thereby reducing the burden on the user. The user confirms the individual data through a client such as the program creation support device 2.

図8はデバイス値の時系列データを示す図である。ここでは4つのデバイス値91aないし91dが例示されているが、一つ以上のデバイス値が存在すればよい。抽出期間とは時系列データのうち個別データの時間的な位置を示す情報である。抽出期間は、個別データの開始位置(開始時刻)tsと終了位置(終了時刻)teにより定義される。また、抽出期間は、抽出期間の時間的な長さPと基準時trとによって定義されてもよい。長さPは位相期間と呼ばれてもよい。基準時trは基準位相と呼ばれてもよい。なお、抽出期間の長さPは開始位置tsから終了位置teまでの時間的な長さである。基準時trは、開始位置tsから終了位置teまでのいずれかの位置(時刻)を示している。たとえば、開始位置tsは基準時trからΔoffset1だけマイナスした時刻として定義されてもよい。終了位置teは基準時trからΔoffset2だけプラスした時刻として定義されてもよい。Δoffset1は0であり、Δoffset2はPであってもよい。つまり、終了位置teは開始位置tsから長さPをプラスした時刻として定義されてもよい。図8では基準時trが開始位置tsに一致している事例を示している。図8では横軸は時間を示しているが、スキャンの回数やデバイス値の収集回数(サンプリング数)であってもよい。なお、一スキャンの時間的な長さは必ずしも一定ではない。 FIG. 8 is a diagram showing time-series data of device values. Here, four device values 91a to 91d are exemplified, but one or more device values may be present. The extraction period is information indicating the temporal position of individual data in the time series data. The extraction period is defined by the start position (start time) ts and the end position (end time) te of the individual data. Further, the extraction period may be defined by the temporal length P of the extraction period and the reference time tr. The length P may be referred to as the phase period. The reference time tr may be referred to as a reference phase. The length P of the extraction period is the time length from the start position ts to the end position te. The reference time tr indicates any position (time) from the start position ts to the end position te. For example, the start position ts may be defined as a time obtained by subtracting Δoffset1 from the reference time tr. The end position te may be defined as a time obtained by adding Δoffset2 from the reference time tr. Δoffset1 may be 0 and Δoffset2 may be P. That is, the end position te may be defined as the time obtained by adding the length P from the start position ts. FIG. 8 shows an example in which the reference time tr coincides with the start position ts. Although the horizontal axis shows time in FIG. 8, it may be the number of scans or the number of device value collections (sampling number). The time length of one scan is not always constant.

図8においてデバイス値91aはフィールドデバイスであるXYステージのX軸の座標変化を示している。デバイス値91bはXYステージのY軸の座標変化を示している。デバイス値91cは要求リレーを示している。要求リレーとは、基本ユニット3が拡張ユニット4に対して所定の処理の実行開始を指示するリレーである。デバイス値91dは完了リレーを示している。完了リレーとは、拡張ユニット4が基本ユニット3に対して所定の処理が完了したことを通知するリレーである。 In FIG. 8, the device value 91a shows the coordinate change of the X axis of the XY stage which is a field device. The device value 91b indicates the coordinate change of the Y axis of the XY stage. The device value 91c indicates a request relay. The request relay is a relay in which the basic unit 3 instructs the expansion unit 4 to start executing a predetermined process. The device value 91d indicates a completion relay. The completion relay is a relay in which the expansion unit 4 notifies the basic unit 3 that a predetermined process has been completed.

図8が示すように部品ごとの個別データには周期性がある。この周期性はユーザプログラムにおける繰り返し処理の周期性に起因しいている。したがって、CPU21がユーザプログラムを解析して周期性を特定し、CPU21、31、51、61などがこの周期性にしたがって個別データを抽出してもよい。 As shown in FIG. 8, the individual data for each component has periodicity. This periodicity is due to the periodicity of iterative processing in the user program. Therefore, the CPU 21 may analyze the user program to specify the periodicity, and the CPU 21, 31, 51, 61 and the like may extract individual data according to this periodicity.

●ラダープログラムのファンクションブロックに基づく抽出期間の決定手法
図9はファンクションブロック301を含むラダープログラム36aを示している。CPU31がラダープログラム36aを実行している間にファンクションブロック301は何度も実行される。したがって、プログラム作成支援装置2のCPU21は、ラダープログラム36aを解析してファンクションブロック301を見つけると、ファンクションブロック301の周期を抽出期間に決定する。たとえば、ファンクションブロック301の実行トリガはEN信号であってもよい。つまり、EN信号の立ち上がりが抽出期間の開始位置tsに相当する。また、ファンクションブロック301は完了リレーであるCompleteが立ち上がったときに終了する。つまり、完了リレーの立ち上がりは抽出期間の終了位置teに相当する。したがって、CPU21は、EN信号の立ち上がりから完了リレーの立ち上がりまでが抽出期間であることを示す設定情報を作成し、PLC1、IPC11またはクラウド12に転送する。
● Method for determining the extraction period based on the function block of the ladder program FIG. 9 shows the ladder program 36a including the function block 301. The function block 301 is executed many times while the CPU 31 is executing the ladder program 36a. Therefore, when the CPU 21 of the program creation support device 2 analyzes the ladder program 36a and finds the function block 301, the period of the function block 301 is determined in the extraction period. For example, the execution trigger of the function block 301 may be an EN signal. That is, the rising edge of the EN signal corresponds to the start position ts of the extraction period. Further, the function block 301 ends when the complete relay, which is a completion relay, starts up. That is, the rising edge of the completion relay corresponds to the end position te of the extraction period. Therefore, the CPU 21 creates setting information indicating that the extraction period is from the rise of the EN signal to the rise of the completion relay, and transfers the setting information to the PLC 1, the IPC 11, or the cloud 12.

●ラダープログラムにおける命令の繰り返しに基づく抽出期間の決定手法
図10は命令の繰り返しを含むラダープログラム36bを示している。ラダープログラム36bによれば、R1000、R1001、R1002、R1003はそれぞれ異なる状態を示すデバイスである。STGとJMPはラダープログラム36bが状態遷移を有していることを表記するための命令である。この例では、R1001がオンである間は繰り返し特定の命令が実行される。とりわけ、R002がオンであれば、R1001の行が繰り返し実行される。R003がオンになると、この繰り返しループが終了する。したがって、R1001がオフからオンに切り替わるタイミングは抽出期間の開始位置tsに相当する。また、R1001がオンからオフに切り替わるタイミングは抽出期間の終了位置teに相当する。CPU21は、R1001がオフからオンに切り替わるタイミングからR1001がオンからオフに切り替わったタイミングまでが抽出期間であることを示す設定情報を作成し、PLC1、IPC11またはクラウド12に転送する。
● Method for determining the extraction period based on the repetition of instructions in the ladder program FIG. 10 shows the ladder program 36b including the repetition of instructions. According to the ladder program 36b, R1000, R1001, R1002, and R1003 are devices showing different states. STG and JMP are instructions for indicating that the ladder program 36b has a state transition. In this example, a particular instruction is repeatedly executed while R1001 is on. In particular, if R002 is on, the line of R1001 is repeatedly executed. When R003 is turned on, this repeating loop ends. Therefore, the timing at which R1001 switches from off to on corresponds to the start position ts of the extraction period. Further, the timing at which R1001 is switched from on to off corresponds to the end position te of the extraction period. The CPU 21 creates setting information indicating that the extraction period is from the timing at which R1001 is switched from off to on to the timing at which R1001 is switched from on to off, and transfers the setting information to the PLC1, IPC11, or cloud 12.

●フローチャート形式のモーションプログラムにおける命令の繰り返しに基づく抽出期間の決定手法
図11はフローチャート形式のモーションプログラム320を示している。フローチャート形式のモーションプログラム320はXYステージなどの、位置決めモーションユニットを制御するためのユーザプログラムである。図11が示すように、R100というリレーデバイスがオンでない場合、位置決め制御が繰り返し実行される。つまり、R100がオフである間は位置決め制御が繰り返し実行される。したがって、CPU21は、R100がオフである期間が抽出期間であることを示す設定情報を作成し、PLC1、IPC11またはクラウド12に転送する。
● Method for determining extraction period based on repetition of instructions in a flow chart-type motion program FIG. 11 shows a flowchart-type motion program 320. The flow chart type motion program 320 is a user program for controlling a positioning motion unit such as an XY stage. As shown in FIG. 11, when the relay device R100 is not on, the positioning control is repeatedly executed. That is, the positioning control is repeatedly executed while R100 is off. Therefore, the CPU 21 creates setting information indicating that the period during which R100 is off is the extraction period, and transfers the setting information to the PLC1, the IPC11, or the cloud 12.

●ユーザ設定に含まれているポイントパラメータの解析に基づく抽出期間の決定手法
図12はモーションユニットのポイントパラメータを設定するユーザインタフェース(UI400)を示している。ポイントパラメータは、ポイント番号、軸番号、動作モード、目標座標、速度、次ポイント番号などを含む。とりわけ、次ポイント番号は、一種のポインターであり、あるポイント番号の次のポイント番号を示している。この例では、1->2->3->4->5->6->7->8->1・・・・となっている。つまり、複数のポイントパラメータが順番に繰り返し適用される。CPU21は、ポイント番号1~8を一つの命令ループと判定すると、ポイント番号1~8を実行している期間が抽出期間であることを示す設定情報を作成し、PLC1、IPC11またはクラウド12に転送する。
● Method for determining the extraction period based on the analysis of the point parameters included in the user settings FIG. 12 shows a user interface (UI400) for setting the point parameters of the motion unit. Point parameters include point number, axis number, operation mode, target coordinates, velocity, next point number, and the like. In particular, the next point number is a kind of pointer and indicates the point number next to a certain point number. In this example, 1->2->3->4->5->6->7->8-> 1 ... That is, a plurality of point parameters are repeatedly applied in order. When the CPU 21 determines that the point numbers 1 to 8 are one instruction loop, the CPU 21 creates setting information indicating that the period during which the point numbers 1 to 8 are executed is the extraction period, and transfers the points to the PLC1, IPC11, or the cloud 12. do.

●ユーザ設定に含まれているユニット設定の解析に基づく抽出期間の決定手法
図13は高速カウンタユニットの動作パラメータを設定するユーザインタフェース(UI410)を示している。高速カウンタユニットは、拡張ユニット4の一種であり、周波数カウントモードと回転計動作モードとを有している。ここではUI410により周波数カウントモードが選択されている。とりわけ、周波数カウントモードでは、高速カウンタユニットに入力される入力パルスの間隔から周波数が計算される。この周波数の逆数が一周期である。CPU21は、高速カウンタユニットが算出した周波数の逆数が抽出期間であることを示す設定情報を作成し、PLC1、IPC11またはクラウド12に転送する。なお、ある入力パルスの立ち上がりは抽出期間の開始位置tsに相当する。また、ある入力パルスの次の入力パルスの立ち上がりは抽出期間の終了位置teに相当する。
● Method for determining the extraction period based on the analysis of the unit settings included in the user settings FIG. 13 shows a user interface (UI410) for setting the operation parameters of the high-speed counter unit. The high-speed counter unit is a kind of expansion unit 4, and has a frequency count mode and a tachometer operation mode. Here, the frequency count mode is selected by the UI410. In particular, in the frequency count mode, the frequency is calculated from the interval of the input pulse input to the high speed counter unit. The reciprocal of this frequency is one cycle. The CPU 21 creates setting information indicating that the reciprocal of the frequency calculated by the high-speed counter unit is the extraction period, and transfers the setting information to the PLC 1, the IPC 11 or the cloud 12. The rising edge of a certain input pulse corresponds to the start position ts of the extraction period. Further, the rising edge of the next input pulse of a certain input pulse corresponds to the end position te of the extraction period.

<機能ブロック>
図14は抽出期間の決定に関与する機能を説明するブロック図である。ここでは、プログラム作成支援装置2がユーザプログラムやユーザ設定を解析することで抽出期間を決定する。CPU21は編集ソフト記憶部25に記憶されている編集ソフトを実行することで、決定部82、編集部94、転送部97および表示制御部98などを実現する。編集部94のUI表示部95はユーザプログラムの入力を補助するユーザインタフェース(UI)を表示部7に表示する。UI表示部95は、図9ないし図13に表示したようなUIを表示部7に表示する。入力受付部96は、ユーザインタフェースを通じてユーザによるユーザプログラムの入力を受け付ける。ユーザは操作部8を操作することでユーザプログラムを入力する。つまり、入力受付部96は、操作部8を介して入力されるユーザの指示を受け付ける。UI表示部95はユーザ入力をユーザインタフェースに反映させる。図9ないし図13を用いて説明したように、決定部82は、ユーザプログラムやそのユーザ設定を解析し、抽出期間を決定する。決定部82は、決定した抽出期間を示す情報を設定情報39に格納する。転送部97は、ラダープログラム36などのユーザプログラムをPLC1に転送したり、設定情報39をPLC1やIPC11、クラウド12へ転送したりする。表示制御部98は、PLC1やIPC11、クラウド12から送信される個別データを表示部7に表示する。
<Functional block>
FIG. 14 is a block diagram illustrating a function involved in determining the extraction period. Here, the program creation support device 2 determines the extraction period by analyzing the user program and the user setting. The CPU 21 realizes a determination unit 82, an editing unit 94, a transfer unit 97, a display control unit 98, and the like by executing the editing software stored in the editing software storage unit 25. The UI display unit 95 of the editorial unit 94 displays a user interface (UI) that assists the input of the user program on the display unit 7. The UI display unit 95 displays the UI as shown in FIGS. 9 to 13 on the display unit 7. The input receiving unit 96 accepts the input of the user program by the user through the user interface. The user inputs a user program by operating the operation unit 8. That is, the input receiving unit 96 receives the user's instruction input via the operation unit 8. The UI display unit 95 reflects the user input in the user interface. As described with reference to FIGS. 9 to 13, the determination unit 82 analyzes the user program and its user settings, and determines the extraction period. The determination unit 82 stores information indicating the determined extraction period in the setting information 39. The transfer unit 97 transfers a user program such as the ladder program 36 to the PLC 1, and transfers the setting information 39 to the PLC 1, the IPC 11, and the cloud 12. The display control unit 98 displays individual data transmitted from the PLC 1, the IPC 11, and the cloud 12 on the display unit 7.

図15は個別データの抽出処理に関与する機能を説明する図である。ここではPLC1に時系列データの収集と個別データの抽出に関与する機能が実装されている。ただし、図16や図17が示すようにこれらの機能はIPC11に実装されてもよいし、クラウド12に実装されてもよい。 FIG. 15 is a diagram illustrating a function involved in the extraction process of individual data. Here, the functions involved in the collection of time series data and the extraction of individual data are implemented in PLC1. However, as shown in FIGS. 16 and 17, these functions may be implemented in the IPC 11 or in the cloud 12.

図15において基本ユニット3のCPU31は記憶装置32に記憶されている制御プログラムを実行することで以下の機能を実現する。ラダー実行部80はユーザプログラムを実行し、当該ユーザプログラムにしたがって複数のデバイスに記憶されている情報を演算処理するプログラム実行部である。ここではユーザプログラムの一例としてラダープログラム36が使用されている。ユーザプログラムがSFC(シーケンシャルファンクションチャート)などのフローチャート形式のモーションプログラムである場合、ラダー実行部80はフローチャート形式のモーションプログラムを実行する実行部として機能する。ラダー実行部80は記憶装置32に記憶されているラダープログラム36を実行し、一スキャンごとにデバイス値91を更新する。収集部81は少なくとも一つのデバイスに記憶されているデバイスデータ(デバイス値91)を繰り返し収集することで時系列デバイスデータ(時系列データ92)を形成するデータ収集部である。 In FIG. 15, the CPU 31 of the basic unit 3 realizes the following functions by executing the control program stored in the storage device 32. The ladder execution unit 80 is a program execution unit that executes a user program and performs arithmetic processing on information stored in a plurality of devices according to the user program. Here, the ladder program 36 is used as an example of the user program. When the user program is a flowchart-type motion program such as an SFC (sequential function chart), the ladder execution unit 80 functions as an execution unit that executes the flowchart-type motion program. The ladder execution unit 80 executes the ladder program 36 stored in the storage device 32, and updates the device value 91 for each scan. The collection unit 81 is a data collection unit that repeatedly collects device data (device value 91) stored in at least one device to form time-series device data (time-series data 92).

選択部87は、収集部81により収集されるデバイス値を選択する。たとえば、選択部87は設定情報39により指定された収集対象のデバイス値を記憶するデバイスを選択してもよい。選択部87はユーザプログラムを分析し、収集対象のデバイスを選択してもよい。たとえば、選択部87はユーザプログラムに記述されたすべてのデバイスを選択してもよい。ユーザはプログラム作成支援装置2において複数のデバイスをいくつかのグループに分け、各グループにロギング対象IDを付与することがある。さらに、ユーザは、プログラム作成支援装置2においてロギング対象IDを選択することでグループを選択する。選択されたグループのID、つまり、ロギング対象IDは設定情報39に格納されて、ユーザプログラムとともにPLC1に転送される。そこで、選択部87は設定情報39に格納されているロギング対象IDを取得し、さらにロギング対象IDに関連付けられている一つ以上のデバイスを取得し、取得したデバイスの識別情報を収集部81に設定する。収集部81は設定されたデバイスからデバイス値を収集する。ユーザはプログラム作成支援装置2においてリアルタイムでのチャート形式モニタやデバッグ用に一つ以上のデバイスを選択し、選択したデバイスの識別情報を設定情報39に格納して、ユーザプログラムとともにPLC1に転送することがある。選択部87は設定情報39に格納されているデバイスの識別情報を収集部81に設定してもよい。リアルタイムでのチャート形式モニタとは、プログラム作成支援装置2がPLC1から高速にデバイス値を読み出して、時系列のデバイス値を、チャート形式(グラフ形式)でリアルタイムに表示部7に表示する機能である。デバッグとはユーザプログラムのデバッグのことである。デバッグ用のデバイスの識別情報も設定情報39に格納されて、ユーザプログラムとともにPLC1に転送される。プログラム作成支援装置2は、デバッグ用のデバイスのデバイス値をPLC1から取得して、表示部7に表示する。このように、リアルタイムでのチャート形式モニタやデバッグ用のデバイスが個別データ93の抽出のために選択されてもよい。プログラム作成支援装置2の表示部7だけではなく、PLC1の表示部5に一つ以上のデバイス値が表示されることもある。この場合にも取得対象のデバイスの識別情報は設定情報39に格納されて、ユーザプログラムとともにPLC1に転送される。したがって、選択部87は設定情報39を解析することで、収集部81に取得させるデバイス値を選択してもよい。選択部87は収集部81の内部に設けられていてもよい。 The selection unit 87 selects the device values collected by the collection unit 81. For example, the selection unit 87 may select a device that stores the device value to be collected specified by the setting information 39. The selection unit 87 may analyze the user program and select the device to be collected. For example, the selection unit 87 may select all the devices described in the user program. The user may divide a plurality of devices into several groups in the program creation support device 2 and assign a logging target ID to each group. Further, the user selects a group by selecting the logging target ID in the program creation support device 2. The ID of the selected group, that is, the logging target ID is stored in the setting information 39 and transferred to the PLC 1 together with the user program. Therefore, the selection unit 87 acquires the logging target ID stored in the setting information 39, further acquires one or more devices associated with the logging target ID, and collects the acquired device identification information in the collection unit 81. Set. The collection unit 81 collects device values from the set device. The user selects one or more devices for real-time chart format monitoring and debugging in the program creation support device 2, stores the identification information of the selected devices in the setting information 39, and transfers the identification information to the PLC 1 together with the user program. There is. The selection unit 87 may set the device identification information stored in the setting information 39 in the collection unit 81. The real-time chart format monitor is a function in which the program creation support device 2 reads device values from PLC1 at high speed and displays the time-series device values on the display unit 7 in real time in chart format (graph format). .. Debugging is the debugging of the user program. The identification information of the device for debugging is also stored in the setting information 39 and transferred to the PLC 1 together with the user program. The program creation support device 2 acquires the device value of the debugging device from the PLC 1 and displays it on the display unit 7. In this way, a real-time chart format monitor or a device for debugging may be selected for extracting the individual data 93. One or more device values may be displayed not only on the display unit 7 of the program creation support device 2 but also on the display unit 5 of the PLC1. Also in this case, the identification information of the device to be acquired is stored in the setting information 39 and transferred to the PLC 1 together with the user program. Therefore, the selection unit 87 may select the device value to be acquired by the collection unit 81 by analyzing the setting information 39. The selection unit 87 may be provided inside the collection unit 81.

抽出部84は、設定情報39により指定された各抽出期間における個別データ93を時系列データ92から抽出する。付与部85は、抽出部84により抽出された各個別データに対して各個別データを識別するための識別情報を付与する。識別情報は、たとえば、シリアル番号であってもよいが、各個別データを区別できる情報であれば他の情報であってもよい。送信部86はオプションであり、個別データ93をクライアントであるプログラム作成支援装置2へ送信する。ユーザがPLC1において個別データ93を検討する場合、CPU31は表示部5に個別データ93を表示してもよい。表示部5はPLC1に接続された外部表示装置であってもよい。個別データ93のフォーマットはCSV形式であってもよいし、SQL形式であってもよい。SQLはデータベース言語の一種である。 The extraction unit 84 extracts the individual data 93 in each extraction period designated by the setting information 39 from the time series data 92. The granting unit 85 assigns identification information for identifying each individual data to each individual data extracted by the extraction unit 84. The identification information may be, for example, a serial number, but may be other information as long as it is information that can distinguish each individual data. The transmission unit 86 is an option and transmits the individual data 93 to the program creation support device 2 which is a client. When the user considers the individual data 93 in the PLC 1, the CPU 31 may display the individual data 93 on the display unit 5. The display unit 5 may be an external display device connected to the PLC1. The format of the individual data 93 may be CSV format or SQL format. SQL is a type of database language.

図16はIPC11がデバイス値の収集機能や抽出機能を有している事例を示している。すでに説明されている機能については説明が省略されるか、簡潔に説明される。IPC11のCPU51はプログラム記憶部55に記憶されている制御プログラムを実行することで様々な機能を実現する。図16が示すように、収集部81、選択部87、抽出部84、付与部85および送信部86などを実装する。選択部87は設定情報39に基づき取得対象デバイスを収集部81に設定する。収集部81は設定情報39により指定された取得対象デバイスからデバイス値を収集する。たとえば、収集部81は、取得条件(例:定期的)が満たされたときにPLC1からデバイス値91を取得し、記憶装置52の時系列データ記憶部54に記憶する。抽出部84は設定情報39により指定された抽出期間にしたがって部品ごとの個別データ93を抽出する。付与部85は抽出された個別データ93に識別情報を付与する。送信部86はオプションであり、クラウド12やプログラム作成支援装置2に個別データ93を送信する。なお、IPC11において個別データ93の検討が実行される場合、CPU51は表示部57に個別データ93を表示する。なお、IPC11が省略される場合、これらの機能はクラウド12のCPU61と記憶装置62、表示部67などにより実現される。 FIG. 16 shows an example in which the IPC 11 has a device value collection function and an extraction function. Functions that have already been described are either omitted or briefly explained. The CPU 51 of the IPC 11 realizes various functions by executing a control program stored in the program storage unit 55. As shown in FIG. 16, a collection unit 81, a selection unit 87, an extraction unit 84, an addition unit 85, a transmission unit 86, and the like are mounted. The selection unit 87 sets the acquisition target device in the collection unit 81 based on the setting information 39. The collection unit 81 collects device values from the acquisition target device specified by the setting information 39. For example, the collection unit 81 acquires the device value 91 from the PLC 1 when the acquisition condition (eg, periodical) is satisfied, and stores it in the time-series data storage unit 54 of the storage device 52. The extraction unit 84 extracts individual data 93 for each component according to the extraction period specified by the setting information 39. The giving unit 85 gives identification information to the extracted individual data 93. The transmission unit 86 is an option and transmits individual data 93 to the cloud 12 or the program creation support device 2. When the examination of the individual data 93 is executed in the IPC 11, the CPU 51 displays the individual data 93 on the display unit 57. When the IPC 11 is omitted, these functions are realized by the CPU 61 of the cloud 12, the storage device 62, the display unit 67, and the like.

図17はIPC11がデバイス値の収集機能を有し、クラウド12が抽出機能を有している事例を示している。IPC11の収集部81は設定情報39により指定されたデバイスからデバイス値を収集して時系列データ92を作成し、クラウド12へ送信する。クラウド12のCPU61はプログラム記憶部65に記憶されている制御プログラムを実行することで、抽出部84および付与部85などを実現する。クラウド12のCPU61はIPC11から受信した時系列データ92を時系列データ記憶部64に記憶する。抽出部84は設定情報39により指定された抽出期間にしたがって部品ごとの個別データ93を抽出する。付与部85は抽出された個別データ93に識別情報を付与する。また、CPU61は表示部67に個別データ93を表示する。あるいは、プログラム作成支援装置2の表示部7に個別データ93を表示させるために、送信部86は個別データ93をプログラム作成支援装置2に送信してもよい。 FIG. 17 shows an example in which the IPC 11 has a device value collection function and the cloud 12 has an extraction function. The collection unit 81 of the IPC 11 collects device values from the device designated by the setting information 39, creates time-series data 92, and transmits the time-series data 92 to the cloud 12. The CPU 61 of the cloud 12 realizes the extraction unit 84, the addition unit 85, and the like by executing the control program stored in the program storage unit 65. The CPU 61 of the cloud 12 stores the time-series data 92 received from the IPC 11 in the time-series data storage unit 64. The extraction unit 84 extracts individual data 93 for each component according to the extraction period specified by the setting information 39. The giving unit 85 gives identification information to the extracted individual data 93. Further, the CPU 61 displays the individual data 93 on the display unit 67. Alternatively, in order to display the individual data 93 on the display unit 7 of the program creation support device 2, the transmission unit 86 may transmit the individual data 93 to the program creation support device 2.

<フローチャート>
●抽出期間の決定処理
図18はプログラム作成支援装置2のCPU21が実行する抽出期間の決定処理を示している。CPU21は編集ソフトにしたがって以下のステップを実行する。
・S1でCPU21(UI表示部95)はラダープログラム36などのユーザプログラムを編集するための編集UIを表示部7に表示する。
・S2でCPU21(入力受付部96)は操作部8を介したユーザプログラムの入力を受け付ける。入力受付部96や操作部8は入力部として機能する。
・S3でCPU21(決定部82)はユーザプログラムやユーザ設定を解析して抽出期間を決定する。たとえば、決定部82は図9ないし図13を用いて説明されたいずれかの決定手法を用いて抽出期間を決定する。
・S4でCPU21(決定部82)はユーザプログラムやユーザ設定を解析して収集対象デバイスを決定する。たとえば、決定部82はユーザプログラムに記述されているすべてのデバイスを収集対象として選択してもよい。決定部82はロギング対象のデバイスやデバック用に指定されたデバイスを収集対象として選択してもよい。
・S5でCPU21(決定部82)は、抽出期間を示す情報と収集対象デバイスを示す情報とを含む設定情報39を作成する。
・S6でCPU21(転送部97)は、ラダープログラム36などのユーザプログラムと設定情報39をPLC1などに転送する。
<Flow chart>
● Extraction period determination process FIG. 18 shows an extraction period determination process executed by the CPU 21 of the program creation support device 2. The CPU 21 executes the following steps according to the editing software.
In S1, the CPU 21 (UI display unit 95) displays an editing UI for editing a user program such as the ladder program 36 on the display unit 7.
In S2, the CPU 21 (input receiving unit 96) accepts the input of the user program via the operation unit 8. The input receiving unit 96 and the operation unit 8 function as an input unit.
-In S3, the CPU 21 (decision unit 82) analyzes the user program and the user setting to determine the extraction period. For example, the determination unit 82 determines the extraction period using any of the determination methods described with reference to FIGS. 9 to 13.
In S4, the CPU 21 (decision unit 82) analyzes the user program and user settings to determine the device to be collected. For example, the determination unit 82 may select all the devices described in the user program as the collection target. The determination unit 82 may select a device to be logged or a device designated for debugging as a collection target.
In S5, the CPU 21 (decision unit 82) creates the setting information 39 including the information indicating the extraction period and the information indicating the collection target device.
In S6, the CPU 21 (transfer unit 97) transfers the user program such as the ladder program 36 and the setting information 39 to the PLC1 or the like.

●収集処理
図19はPLC1のCPU31が実行する収集処理を示すフローチャートである。操作部6には設定モードと運転モードとを切り替えるスイッチが設けられている。設定モードとは、プログラム作成支援装置2からユーザプログラムやプロジェクトデータを受信する処理である。運転モードとはユーザプログラムを実行するモードである。CPU31は設定モードから運転モードへの切り替えが指示されると、以下の処理を実行する。
・S11でCPU31(ラダー実行部80)はユーザプログラムをRAMにロードする。
・S12でCPU31(ラダー実行部80)はユーザプログラムのスキャンを実行する。ラダー実行部80はユーザプログラムにしたがって各種のデバイスに格納されているデバイス値に所定の演算を実行し、デバイス値を更新する。所定の演算の内容はユーザプログラムによって定義されている。
・S14でCPU31(収集部81)はデバイス値を収集する。収集部81は、選択部87により選択された取得対象のデバイスからデバイス値を読み出し、時系列データ92に追加する。上述したように収集処理はIPC11のCPU51により実行されてもよいし、クラウド12のCPU61により実行されてもよい。デバイス値の収集タイミング(サンプリングタイミング)は、一スキャンごとであってもよいし、数スキャンごとであってもよい。また、収集はエンド処理において実行されてもよいし、スキャン中であってもよい。また、一スキャンにおいて複数回の収集が実行されてもよい。収集タイミングも設定情報39により指定されていてもよい。
・S15でCPU31(ラダー実行部80)はプログラムの停止が指示されたかどうかを判定する。たとえば、CPU31は上述したスイッチが運転モードから設定モードに切り替えられると、プログラムの停止が指示されたと判定する。プログラムの停止が指示されていなければ、CPU31はS12ないしS14の処理を繰り返し実行する。プログラムの停止が指示されると、CPU31はユーザプログラムを停止する。このようにして時系列データ92が収集される。
● Collection process FIG. 19 is a flowchart showing a collection process executed by the CPU 31 of the PLC1. The operation unit 6 is provided with a switch for switching between a setting mode and an operation mode. The setting mode is a process of receiving a user program or project data from the program creation support device 2. The operation mode is a mode for executing a user program. When the CPU 31 is instructed to switch from the setting mode to the operation mode, the CPU 31 executes the following processing.
-In S11, the CPU 31 (ladder execution unit 80) loads the user program into the RAM.
-In S12, the CPU 31 (ladder execution unit 80) scans the user program. The ladder execution unit 80 executes a predetermined operation on the device values stored in various devices according to the user program, and updates the device values. The content of the predetermined operation is defined by the user program.
-In S14, the CPU 31 (collecting unit 81) collects device values. The collection unit 81 reads the device value from the device to be acquired selected by the selection unit 87 and adds it to the time series data 92. As described above, the collection process may be executed by the CPU 51 of the IPC 11 or may be executed by the CPU 61 of the cloud 12. The device value collection timing (sampling timing) may be every scan or every few scans. Also, the collection may be performed in the end process or may be in the process of being scanned. Also, multiple collections may be performed in one scan. The collection timing may also be specified by the setting information 39.
-In S15, the CPU 31 (ladder execution unit 80) determines whether or not the program stop is instructed. For example, when the switch described above is switched from the operation mode to the setting mode, the CPU 31 determines that the program is instructed to stop. If the program stop is not instructed, the CPU 31 repeatedly executes the processes of S12 to S14. When the program is instructed to stop, the CPU 31 stops the user program. In this way, the time series data 92 is collected.

図20は時系列データ92の一例を示している。時刻情報は「分:秒:1/100秒」により表記されている。ここでは、選択部87により取得対象としてデバイスa、b、c、dが選択されている。デバイスa,bはXYステージのX座標とY座標など、1ワードのデータを格納している。デバイスcは、ビットデバイスであり、ここでは要求リレーである。デバイスdは、ビットデバイスであり、ここでは完了リレーである。図20が示すようにこの段階では時系列データ92のどの部分がどの部品に対応しているかをユーザは特定しにくいだろう。 FIG. 20 shows an example of time series data 92. The time information is expressed by "minutes: seconds: 1/100 seconds". Here, the devices a, b, c, and d are selected as acquisition targets by the selection unit 87. The devices a and b store one word of data such as the X coordinate and the Y coordinate of the XY stage. The device c is a bit device, here a request relay. The device d is a bit device, here a completion relay. As shown in FIG. 20, at this stage, it will be difficult for the user to identify which part of the time series data 92 corresponds to which component.

●抽出処理
図21は個別データの抽出処理を示すフローチャートである。上述したように抽出処理はCPU21、31、51、61の何れにより実行されてもよいが、ここではCPU31により実行されるものとする。
・S21でCPU31(抽出部84)は設定情報39から個別データの抽出期間を示す情報を取得する。
・S22でCPU31(抽出部84)は抽出期間を示す情報にしたがって部品ごとの個別データ93を時系列データ92から抽出する。
・S23でCPU31(付与部85)は抽出部84により抽出された各個別データ93に識別情報を付与する。
● Extraction process FIG. 21 is a flowchart showing an extraction process of individual data. As described above, the extraction process may be executed by any of the CPUs 21, 31, 51, and 61, but here, it is assumed that the extraction process is executed by the CPU 31.
In S21, the CPU 31 (extraction unit 84) acquires information indicating an individual data extraction period from the setting information 39.
In S22, the CPU 31 (extraction unit 84) extracts the individual data 93 for each component from the time-series data 92 according to the information indicating the extraction period.
In S23, the CPU 31 (giving unit 85) assigns identification information to each individual data 93 extracted by the extracting unit 84.

図22は個別データ93の一例を示している。抽出部84は時系列データ92から部品ごとの個別データ93を切り出して、各個別データ93に識別情報を付与している。図22においては二つの個別データ93が例示されており、それぞれ異なる識別情報として"01"と"02"が付与されている。したがって、ユーザは部品ごとの個別データ93を容易に区別できるようになる。 FIG. 22 shows an example of the individual data 93. The extraction unit 84 cuts out individual data 93 for each component from the time-series data 92, and adds identification information to each individual data 93. In FIG. 22, two individual data 93 are exemplified, and "01" and "02" are given as different identification information, respectively. Therefore, the user can easily distinguish the individual data 93 for each component.

S24でCPU31は個別データ93を表示部5に表示する。上述したようにCPU31は個別データ93をプログラム作成支援装置2に送信することで、プログラム作成支援装置2の表示部7に個別データ93を表示してもよい。なお、S23からS24は、同期実行であってもよいし、非同期実行であってもよい。すなわち、例えばCPU31は、ユーザの表示指示に基づきS24の処理へ移行してもよい。この場合、例えば操作部8を介してユーザの表示指示がなされるまでは、CPU31は、S22及びS23の処理を繰り返し実行し、ユーザの表示指示があったときに、S24の処理へと移行してもよい。 In S24, the CPU 31 displays the individual data 93 on the display unit 5. As described above, the CPU 31 may display the individual data 93 on the display unit 7 of the program creation support device 2 by transmitting the individual data 93 to the program creation support device 2. Note that S23 to S24 may be executed synchronously or asynchronously. That is, for example, the CPU 31 may shift to the processing of S24 based on the display instruction of the user. In this case, for example, the CPU 31 repeatedly executes the processes of S22 and S23 until the user's display instruction is given via the operation unit 8, and when the user's display instruction is given, the process proceeds to the process of S24. You may.

図19や図21によれば時系列データ92の収集処理と個別データ93の抽出処理とが、便宜上、分離されている。しかし、収集処理と抽出処理とが統合されてもよい。図23は、収集処理と抽出処理とが統合された処理を示している。
・S31でCPU31(ラダー実行部80)はユーザプログラムをRAMにロードする。
・S32でCPU31(ラダー実行部80)はユーザプログラムのスキャンを実行する。ラダー実行部80はユーザプログラムにしたがって各種のデバイスに格納されているデバイス値に所定の演算を実行し、デバイス値を更新する。所定の演算の内容はユーザプログラムによって定義されている。
・S33でCPU31(収集部81)はデバイス値を収集する。収集部81は、選択部87により選択された取得対象のデバイスからデバイス値を読み出す。
・S34でCPU31(抽出部84)は収集部81がデバイス値を収集したタイミングが、設定情報39により指定された抽出期間中かどうかを判定する。たとえば、あるリレーデバイスがオンとなっている期間が抽出期間として指定されていたと仮定する。この場合に、抽出部84は、設定情報39により指定されたリレーデバイスのデバイス値を読み出し、デバイス値がオンかどうかを判定する。抽出部84は、このリレーデバイスのデバイス値がオンであれば、抽出期間中であると判定して、S35に進む。一方、抽出部84は、このリレーデバイスのデバイス値がオンでなければ、抽出期間中ではないと判定して、S32に進む。
・S35でCPU31(付与部85)は抽出期間中に収集されたデバイス値に識別情報を付与することで個別データ93を作成する。
・S36でCPU31(ラダー実行部80)はプログラムの停止が指示されたかどうかを判定する。プログラムの停止が指示されていなければ、CPU31はS32ないしS36の処理を繰り返し実行する。プログラムの停止が指示されると、CPU31はユーザプログラムを停止する。このようにして一連の個別データ93が収集される。
According to FIGS. 19 and 21, the collection process of the time series data 92 and the extraction process of the individual data 93 are separated for convenience. However, the collection process and the extraction process may be integrated. FIG. 23 shows a process in which the collection process and the extraction process are integrated.
-In S31, the CPU 31 (ladder execution unit 80) loads the user program into the RAM.
-In S32, the CPU 31 (ladder execution unit 80) scans the user program. The ladder execution unit 80 executes a predetermined operation on the device values stored in various devices according to the user program, and updates the device values. The content of the predetermined operation is defined by the user program.
-In S33, the CPU 31 (collection unit 81) collects device values. The collection unit 81 reads the device value from the device to be acquired selected by the selection unit 87.
In S34, the CPU 31 (extraction unit 84) determines whether or not the timing at which the collection unit 81 collects the device values is during the extraction period specified by the setting information 39. For example, suppose the period during which a relay device is on was specified as the extraction period. In this case, the extraction unit 84 reads out the device value of the relay device specified by the setting information 39, and determines whether or not the device value is on. If the device value of the relay device is on, the extraction unit 84 determines that the extraction period is in progress, and proceeds to S35. On the other hand, if the device value of the relay device is not on, the extraction unit 84 determines that the extraction period is not in progress, and proceeds to S32.
-In S35, the CPU 31 (giving unit 85) creates individual data 93 by giving identification information to the device values collected during the extraction period.
-In S36, the CPU 31 (ladder execution unit 80) determines whether or not the program is instructed to stop. If the program stop is not instructed, the CPU 31 repeatedly executes the processes of S32 to S36. When the program is instructed to stop, the CPU 31 stops the user program. In this way, a series of individual data 93 is collected.

図24は個別データ93を表示するユーザインタフェース(UI100)の一例を示している。個別データ表示部101は、個別データ93を表示する表示領域である。この例では二つの個別データ93が表示されている。フレーム103は抽出期間を示すUIである。図25は個別データ表示部101の他の例を示している。この例では二つの個別データ93が縦に並んで表示されている。図26は個別データ表示部101の他の例を示している。この例では二つの個別データ93が重ねて表示されている。たとえば、CPU21(表示制御部98)は、二つの個別データ93の抽出期間が重なるように二つの個別データ93を重ねてもよい。表示制御部98は、二つの個別データ93の重なっている部分が多くなるように、一方の個別データ93を他方の個別データ93に対して位置合わせしてもよい。とりわけ、二つの個別データ93を重ねて表示することで、ユーザは二つの個別データ93の微妙な差を視覚的に見つけやすくなろう。 FIG. 24 shows an example of a user interface (UI100) that displays individual data 93. The individual data display unit 101 is a display area for displaying the individual data 93. In this example, two individual data 93 are displayed. Frame 103 is a UI indicating the extraction period. FIG. 25 shows another example of the individual data display unit 101. In this example, two individual data 93 are displayed vertically side by side. FIG. 26 shows another example of the individual data display unit 101. In this example, two individual data 93 are displayed on top of each other. For example, the CPU 21 (display control unit 98) may superimpose the two individual data 93 so that the extraction periods of the two individual data 93 overlap. The display control unit 98 may align one individual data 93 with respect to the other individual data 93 so that the overlapping portion of the two individual data 93 increases. In particular, by displaying the two individual data 93 on top of each other, it will be easier for the user to visually find the subtle difference between the two individual data 93.

<シーケンス>
図27は個別データ93の送受信に関連したシーケンスを示している。この例では、PLC1のCPU31に収集部81、選択部87、付与部85、送信部86が実装される。プログラム作成支援装置2のCPU21には編集部94、決定部82、転送部97および表示制御部98が実装される。
・Sq1でプログラム作成支援装置2はユーザプログラムと設定情報39を送信し、PLC1がこれを受信して記憶装置32に記憶する。
・Sq2でPLC1はユーザプログラムにしたがってデバイス値を求め、設定情報39にしたがって時系列データ92を収集する。PLC1は設定情報39にしたがって個別データ93を抽出して、プログラム作成支援装置2に送信する。プログラム作成支援装置2は個別データ93を表示部7に表示する。
<Sequence>
FIG. 27 shows a sequence related to the transmission / reception of the individual data 93. In this example, the collection unit 81, the selection unit 87, the addition unit 85, and the transmission unit 86 are mounted on the CPU 31 of the PLC1. An editing unit 94, a determination unit 82, a transfer unit 97, and a display control unit 98 are mounted on the CPU 21 of the program creation support device 2.
-The program creation support device 2 transmits the user program and the setting information 39 in Sq1, and the PLC 1 receives the user program and stores the setting information 39 in the storage device 32.
-In Sq2, PLC1 obtains a device value according to a user program, and collects time-series data 92 according to setting information 39. The PLC 1 extracts the individual data 93 according to the setting information 39 and transmits the individual data 93 to the program creation support device 2. The program creation support device 2 displays the individual data 93 on the display unit 7.

図28は個別データ93の送受信に関連した別のシーケンスを示している。この例では、IPC11のCPU51に収集部81、選択部87、抽出部84、付与部85および送信部86が実装される。
・Sq1でプログラム作成支援装置2はユーザプログラムを送信し、PLC1がこれを受信して記憶装置32に記憶する。
・Sq10でプログラム作成支援装置2は設定情報39をIPC11へ送信し、IPC11がこれを受信して記憶装置52に記憶する。
・Sq11でPLC1はユーザプログラムにしたがってデバイス値を求める。IPC11は設定情報39にしたがってデバイス値をPLC1から読み出す(受信する)。
・Sq12でIPC11は収集したデバイス値から時系列データ92を作成する。IPC11は、設定情報39にしたがって時系列データ92から個別データ93を抽出し、プログラム作成支援装置2に個別データ93を送信する。プログラム作成支援装置2は個別データ93をIPC11から受信すると、表示部7に個別データ93を表示する。
FIG. 28 shows another sequence associated with the transmission and reception of the individual data 93. In this example, the collection unit 81, the selection unit 87, the extraction unit 84, the addition unit 85, and the transmission unit 86 are mounted on the CPU 51 of the IPC 11.
-The program creation support device 2 transmits the user program in Sq1, and the PLC 1 receives it and stores it in the storage device 32.
-In Sq10, the program creation support device 2 transmits the setting information 39 to the IPC11, and the IPC11 receives the setting information 39 and stores it in the storage device 52.
-In Sq11, PLC1 obtains a device value according to a user program. The IPC 11 reads (receives) the device value from the PLC 1 according to the setting information 39.
-IPC11 in Sq12 creates time series data 92 from the collected device values. The IPC 11 extracts the individual data 93 from the time-series data 92 according to the setting information 39, and transmits the individual data 93 to the program creation support device 2. When the program creation support device 2 receives the individual data 93 from the IPC 11, the individual data 93 is displayed on the display unit 7.

図29は個別データ93の送受信に関連したさらに別のシーケンスを示している。この例では、IPC11のCPU51に収集部81と選択部87が実装されている。クラウド12のCPU61に抽出部84、付与部85、送信部86が実装される。
・Sq1でプログラム作成支援装置2はユーザプログラムを送信し、PLC1がこれを受信して記憶装置32に記憶する。
・Sq20でプログラム作成支援装置2は設定情報39をIPC11へ送信し、IPC11がこれを受信して記憶装置52に記憶する。この設定情報39には収集対象デバイスを示す情報が含まれている。
・Sq21でプログラム作成支援装置2は設定情報39をクラウド12へ送信し、クラウド12がこれを受信して記憶装置62に記憶する。この設定情報39には抽出期間を示す情報が含まれている。
・Sq22でPLC1はユーザプログラムにしたがってデバイス値を求める。IPC11は設定情報39にしたがってデバイス値をPLC1から読み出す(受信する)。
・Sq23でIPC11は収集したデバイス値から時系列データ92を作成し、クラウド12に時系列データ92を送信する。クラウド12はIPC11から時系列データ92を受信する。
・Sq23でからクラウド12は設定情報39にしたがって時系列データ92から個別データ93を抽出し、プログラム作成支援装置2に個別データ93を送信する。プログラム作成支援装置2はクラウド12から個別データ93を受信すると、表示部7に個別データ93を表示する。
FIG. 29 shows yet another sequence associated with the transmission and reception of the individual data 93. In this example, the collection unit 81 and the selection unit 87 are mounted on the CPU 51 of the IPC 11. An extraction unit 84, an addition unit 85, and a transmission unit 86 are mounted on the CPU 61 of the cloud 12.
-The program creation support device 2 transmits the user program in Sq1, and the PLC 1 receives it and stores it in the storage device 32.
-In Sq20, the program creation support device 2 transmits the setting information 39 to the IPC11, and the IPC11 receives the setting information 39 and stores it in the storage device 52. The setting information 39 includes information indicating the device to be collected.
-In Sq21, the program creation support device 2 transmits the setting information 39 to the cloud 12, and the cloud 12 receives this and stores it in the storage device 62. The setting information 39 includes information indicating an extraction period.
-In Sq22, PLC1 obtains a device value according to a user program. The IPC 11 reads (receives) the device value from the PLC 1 according to the setting information 39.
-IPC11 creates time-series data 92 from the collected device values in Sq23, and transmits the time-series data 92 to the cloud 12. The cloud 12 receives the time series data 92 from the IPC 11.
From Sq23, the cloud 12 extracts the individual data 93 from the time-series data 92 according to the setting information 39, and transmits the individual data 93 to the program creation support device 2. When the program creation support device 2 receives the individual data 93 from the cloud 12, the individual data 93 is displayed on the display unit 7.

図30は個別データ93の送受信に関連したさらに別のシーケンスを示している。この例では、クラウド12のCPU61に収集部81、選択部87、抽出部84、付与部85、送信部86が実装される。
・Sq1でプログラム作成支援装置2はユーザプログラムを送信し、PLC1がこれを受信して記憶装置32に記憶する。
・Sq30でプログラム作成支援装置2は設定情報39をクラウド12へ送信し、クラウド12がこれを受信して記憶装置62に記憶する。この設定情報39には収集対象デバイスを示す情報と抽出期間を示す情報が含まれている。
・Sq31でPLC1はユーザプログラムにしたがってデバイス値を求める。クラウド12は設定情報39にしたがってPLC1の収集対象デバイスからデバイス値を収集する(読み出す)。クラウド12は収集したデバイス値から時系列データ92を作成する。
・Sq32でクラウド12は設定情報39にしたがって時系列データ92から個別データ93を抽出し、プログラム作成支援装置2に個別データ93を送信する。プログラム作成支援装置2はクラウド12から個別データ93を受信すると、表示部7に個別データ93を表示する。
FIG. 30 shows yet another sequence associated with the transmission and reception of the individual data 93. In this example, the collection unit 81, the selection unit 87, the extraction unit 84, the grant unit 85, and the transmission unit 86 are mounted on the CPU 61 of the cloud 12.
-The program creation support device 2 transmits the user program in Sq1, and the PLC 1 receives it and stores it in the storage device 32.
-In Sq30, the program creation support device 2 transmits the setting information 39 to the cloud 12, and the cloud 12 receives this and stores it in the storage device 62. The setting information 39 includes information indicating the collection target device and information indicating the extraction period.
-In Sq31, PLC1 obtains a device value according to a user program. The cloud 12 collects (reads) device values from the collection target device of PLC1 according to the setting information 39. The cloud 12 creates time series data 92 from the collected device values.
-In Sq32, the cloud 12 extracts the individual data 93 from the time-series data 92 according to the setting information 39, and transmits the individual data 93 to the program creation support device 2. When the program creation support device 2 receives the individual data 93 from the cloud 12, the individual data 93 is displayed on the display unit 7.

<表示結果>
図31は個別データ93の表示例を示している。プログラム作成支援装置2のCPU21(表示制御部98)は複数の個別データ93を表示部7に表示する。この例では00:00:00から00:02:70までに取得されたデバイス値により第一の個別データ93が形成され、識別情報として"01"が付与されている。00:03:00から00:06:00までに取得されたデバイス値により第二の個別データ93が形成され、識別情報として"02"が付与されている。00:06:30から00:09:00までに取得されたデバイス値により第三の個別データ93が形成され、識別情報として"03"が付与されている。CPU21は各デバイス値と公差(閾値)とを比較し、公差を逸脱しているデバイス値を強調表示してもよい。また、CPU21は、通常のタイミングとは異なるタイミングに完了リレーが1となっているデバイス値を強調表示してもよい。
<Display result>
FIG. 31 shows a display example of the individual data 93. The CPU 21 (display control unit 98) of the program creation support device 2 displays a plurality of individual data 93 on the display unit 7. In this example, the first individual data 93 is formed by the device values acquired from 00:00:00 to 00:02:70, and "01" is added as the identification information. The second individual data 93 is formed by the device values acquired from 00:03:00 to 00:06:00, and "02" is added as the identification information. The third individual data 93 is formed by the device values acquired from 00:06:30 to 00:09: 00, and "03" is added as the identification information. The CPU 21 may compare each device value with a tolerance (threshold value) and highlight a device value that deviates from the tolerance. Further, the CPU 21 may highlight the device value in which the completion relay is 1 at a timing different from the normal timing.

図31に示した事例では第一の個別データ93における時刻00:01:50に取得されたデバイス値cがNGと判定されており、強調表示されている。ユーザは、時刻00:01:20に取得されたデバイス値aと、第二の個別データ93と第三の個別データ93における同位相(時刻00:04:20、00:07:20)のデバイス値aを比較する。時刻00:04:20に取得されたデバイス値aは5.9であり、ユーザは適正な値であると判断する。また、時刻00:07:20に取得されたデバイス値aは4.4であり、ユーザは適正な値であるが、NGである4.2に対するマージンはほとんどないと判断できる。これによりユーザはデバイス値aに関して何らかの対策が必要であると判断できる。 In the example shown in FIG. 31, the device value c acquired at time 00:01:50 in the first individual data 93 is determined to be NG and is highlighted. The user uses the device value a acquired at time 00:01:20 and the device having the same phase (time 00:04:20, 00:07:20) in the second individual data 93 and the third individual data 93. Compare the values a. The device value a acquired at time 00:04:20 is 5.9, and the user determines that it is an appropriate value. Further, the device value a acquired at time 00:07:20 is 4.4, which is an appropriate value for the user, but it can be determined that there is almost no margin for 4.2, which is NG. As a result, the user can determine that some measures are required for the device value a.

<まとめ>
以上の実施例から導かれる技術思想について説明する。PLC1はユーザプログラムを繰り返し実行するプログラマブル・ロジック・コントローラの一例である。なお、PLC1はユーザプログラムにしたがって複数の部品に対する検査または加工を制御してもよい。部品はワークと呼ばれてもよく、完成品を含む用語である。記憶装置32はユーザプログラムを記憶するプログラム記憶部の一例である。記憶装置32はユーザプログラムにより指定可能であり、1ビット又は数ワードの情報を記憶するビットデバイスおよび1ワードの情報を記憶するワードデバイスを含む複数のデバイスを保持するデバイス記憶部の一例である。ラダー実行部80はプログラム記憶部に記憶されているユーザプログラムを繰り返し実行し、当該ユーザプログラムにしたがって複数のデバイスに記憶されている情報を演算処理するプログラム実行部の一例である。収集部81は少なくとも一つのデバイスに記憶されているデバイスデータを繰り返し収集することで、周期性を有する時系列デバイスデータを形成するデータ収集部の一例である。決定部82は時系列デバイスデータから周期ごとの個別データを抽出するための抽出期間を決定する決定部の一例である。抽出部84は決定部82により決定された各抽出期間における個別データを時系列デバイスデータから抽出する抽出部の一例である。付与部85は抽出部84により抽出された各個別データに対して各個別データを識別するための識別情報を付与する付与部の一例である。とりわけ、決定部82は、ユーザプログラムにおける繰り返し命令の実行タイミングまたは実行周期に基づき抽出期間を決定する。たとえば、決定部82は、ユーザプログラムやそれに付随するユーザ情報を解析することで個別データの抽出期間を決定する。このように、本実施例によれば、時系列データから個別データを抽出することがユーザにとって容易になる。なお、「繰り返し命令」は、ユーザプログラムの種類に応じた種々の命令が含まれる。例えば、ユーザプログラムがラダープログラムの場合には、ラダープログラムに記述される命令語を含んでもよい。また、ユーザプログラムがSFC(シーケンシャルファンクションチャート)など、フローチャート形式のプログラムの場合には、フローチャートを構成する命令モジュールを含んでもよい。
<Summary>
The technical idea derived from the above examples will be described. PLC1 is an example of a programmable logic controller that repeatedly executes a user program. The PLC1 may control inspection or machining of a plurality of parts according to a user program. A part may be called a work, and is a term including a finished product. The storage device 32 is an example of a program storage unit that stores a user program. The storage device 32 can be specified by a user program, and is an example of a device storage unit that holds a plurality of devices including a bit device that stores one bit or several words of information and a word device that stores one word of information. The ladder execution unit 80 is an example of a program execution unit that repeatedly executes a user program stored in the program storage unit and performs arithmetic processing on information stored in a plurality of devices according to the user program. The collection unit 81 is an example of a data collection unit that repeatedly collects device data stored in at least one device to form time-series device data having periodicity. The determination unit 82 is an example of a determination unit that determines an extraction period for extracting individual data for each cycle from time-series device data. The extraction unit 84 is an example of an extraction unit that extracts individual data in each extraction period determined by the determination unit 82 from the time-series device data. The granting unit 85 is an example of a granting unit that assigns identification information for identifying each individual data to each individual data extracted by the extraction unit 84. In particular, the determination unit 82 determines the extraction period based on the execution timing or execution cycle of the repetitive instruction in the user program. For example, the determination unit 82 determines the extraction period of the individual data by analyzing the user program and the user information accompanying the user program. As described above, according to this embodiment, it becomes easy for the user to extract individual data from the time series data. The "repeated instruction" includes various instructions according to the type of the user program. For example, when the user program is a ladder program, the instruction word described in the ladder program may be included. Further, when the user program is a flowchart format program such as SFC (sequential function chart), an instruction module constituting the flowchart may be included.

PLC1はプログラム実行部におけるユーザプログラムの実行処理とデータ収集部におけるデータ収集部の収集処理とを同期させる同期部をさらに有していてもよい。たとえば、ラダー実行部80がラダープログラムの実行を開始すると、収集部81は時系列データの収集を開始してもよい。 The PLC 1 may further have a synchronization unit that synchronizes the execution process of the user program in the program execution unit with the collection process of the data collection unit in the data collection unit. For example, when the ladder execution unit 80 starts executing the ladder program, the collection unit 81 may start collecting time-series data.

図11が示すように、ユーザプログラムは、制御対象の位置を制御するフローチャート形式のモーションプログラムであってもよい。図12が示すように、決定部82は、制御対象を特定の位置に移動させるためのポイントパラメータに基づき抽出期間を決定してもよい。図12が示すように、ポイントパラメータの設定情報は、複数のポイント番号と、各ポイント番号ごとの制御対象の移動量(例:目標座標)と、各ポイント番号の次のポイント番号とを有していてもよい。決定部82は、各ポイント番号の次のポイント番号に基づき制御対象の移動命令のループを検知し、当該ループに相当する期間を抽出期間に決定してもよい。 As shown in FIG. 11, the user program may be a flow chart type motion program that controls the position of the controlled object. As shown in FIG. 12, the determination unit 82 may determine the extraction period based on the point parameter for moving the controlled object to a specific position. As shown in FIG. 12, the point parameter setting information includes a plurality of point numbers, a movement amount of a controlled object for each point number (example: target coordinates), and a point number next to each point number. May be. The determination unit 82 may detect a loop of the movement command to be controlled based on the point number next to each point number, and determine a period corresponding to the loop as the extraction period.

図9や図10に示したように、ユーザプログラムはラダープログラムであってもよい。図9が示すように、決定部82は、ラダープログラム36aに記述された命令である特定のファンクションブロックの実行周期を求め、当該実行周期を抽出期間に決定してもよい。決定部82は、特定のファンクションブロックの実行トリガである第一信号(例:EN信号)の立ち上がり又は立ち下がりから特定のファンクションブロックの実行完了を示す第二信号(例:完了リレー)の立ち上がり又は立ち下がりまでの期間を抽出期間に決定してもよい。 As shown in FIGS. 9 and 10, the user program may be a ladder program. As shown in FIG. 9, the determination unit 82 may obtain an execution cycle of a specific function block, which is an instruction described in the ladder program 36a, and determine the execution cycle as the extraction period. The determination unit 82 rises or falls from the rise or fall of the first signal (eg, EN signal) that is the execution trigger of the specific function block to the rise or fall of the second signal (eg, the completion relay) that indicates the completion of execution of the specific function block. The period until the fall may be determined as the extraction period.

図13を用いて説明したように、PLC1には高速カウンタユニットが接続されていてもよい。決定部82は、ユーザプログラムにおいて高速カウンタユニットの動作モードが周波数カウントモードに設定されているかどうかを解析する。決定部82は、高速カウンタユニットの動作モードが周波数カウントモードに設定されているときに、高速カウンタユニットに入力されるパルス信号の間隔に基づき抽出期間を決定してもよい。 As described with reference to FIG. 13, a high-speed counter unit may be connected to the PLC1. The determination unit 82 analyzes whether or not the operation mode of the high-speed counter unit is set to the frequency count mode in the user program. The determination unit 82 may determine the extraction period based on the interval of the pulse signal input to the high-speed counter unit when the operation mode of the high-speed counter unit is set to the frequency count mode.

PLC1は、ユーザによるユーザプログラムの作成を支援するプログラム作成支援装置2を有していてもよい(或いは、プログラム作成支援装置2に接続されていてもよい)。図14が示すように、決定部82は、プログラム作成支援装置2に設けられていてもよい。このように、決定部82はPLC1、プログラム作成支援装置2またはクラウド12に設けられてもよい。 The PLC 1 may have a program creation support device 2 that assists the user in creating a user program (or may be connected to the program creation support device 2). As shown in FIG. 14, the determination unit 82 may be provided in the program creation support device 2. As described above, the determination unit 82 may be provided in the PLC 1, the program creation support device 2, or the cloud 12.

プログラム作成支援装置2は、決定部82により決定された抽出期間を示す情報をユーザプログラムとともにプログラム記憶部35に書き込む。抽出部84は、プログラム記憶部35に記憶されている抽出期間を示す情報(例:設定情報39)に基づき時系列デバイスデータ(時系列データ92)から個別データ93を抽出してもよい。 The program creation support device 2 writes information indicating the extraction period determined by the determination unit 82 in the program storage unit 35 together with the user program. The extraction unit 84 may extract the individual data 93 from the time-series device data (time-series data 92) based on the information indicating the extraction period stored in the program storage unit 35 (example: setting information 39).

なお、収集部81はIPC11、クラウド12またはプログラム作成支援装置2のいずれに設けられていてもよい。抽出部84や付与部85も、IPC11、クラウド12またはプログラム作成支援装置2のいずれに設けられていてもよい。なお、この場合に、IPC11、クラウド12またはプログラム作成支援装置2はデータ収集装置として機能する。 The collecting unit 81 may be provided in any of the IPC 11, the cloud 12, and the program creation support device 2. The extraction unit 84 and the grant unit 85 may also be provided in any of the IPC 11, the cloud 12, and the program creation support device 2. In this case, the IPC 11, the cloud 12, or the program creation support device 2 functions as a data collection device.

抽出期間の開始位置と終了位置は、個別データ93の抽出の基準位置を示す情報(例:基準時tr)と、抽出期間の時間的な長さ(例:長さP)を示す情報によって定義されてもよい。時系列デバイスデータは、収集部81が複数のデバイスからそれぞれ収集したデータを含むデータ群と、当該データを収集したタイミングを示すタイミング情報とを含んでもよい。図16などに示したように時系列データ92においてデバイスa~dの各デバイス値はデータ群の一例である。取得時刻の情報はタイミング情報の一例である。 The start position and end position of the extraction period are defined by the information indicating the reference position for extraction of the individual data 93 (example: reference time tr) and the information indicating the temporal length of the extraction period (example: length P). May be done. The time-series device data may include a data group including data collected by the collection unit 81 from a plurality of devices, and timing information indicating the timing at which the data is collected. As shown in FIG. 16 and the like, in the time series data 92, each device value of the devices a to d is an example of a data group. The acquisition time information is an example of timing information.

決定部82は、複数のデバイスのうち少なくとも一つのデバイスから収集された時系列デバイスデータの周期に基づき、各抽出期間の基準位置を決定してもよい。数値入力ボックス105、部品に対するタクトタイムttの入力を受け付ける受付部の一例である。図9に示したように、決定部82は、複数のデバイスからそれぞれ収集されたデータの周期を求め、タクトタイムttに対して相対的に近い周期のデータに基づき各抽出期間の基準位置を決定してもよい。図10を用いて説明したように、決定部82は、時系列デバイスデータを微分して微分エッジを求め、当該求められた微分エッジの位置を抽出期間の基準位置に決定してもよい。メニュー104に関連して説明したように、決定部82は、基準位置を決定する複数の決定手法を有していてもよい。決定部82は、ユーザにより選択された決定手法を用いて基準位置を決定してもよい。 The determination unit 82 may determine a reference position for each extraction period based on the period of time-series device data collected from at least one of the plurality of devices. This is an example of a reception unit that accepts input of a numerical input box 105 and a tact time tt for a part. As shown in FIG. 9, the determination unit 82 obtains the cycle of the data collected from each of the plurality of devices, and determines the reference position of each extraction period based on the data having a cycle relatively close to the takt time tt. You may. As described with reference to FIG. 10, the determination unit 82 may differentiate the time-series device data to obtain the differential edge, and determine the position of the obtained differential edge as the reference position of the extraction period. As described in connection with the menu 104, the determination unit 82 may have a plurality of determination methods for determining the reference position. The determination unit 82 may determine the reference position using a determination method selected by the user.

決定部82は時系列デバイスデータをフーリエ変換または自己回帰モデルにより複数のスペクトルを取得し、当該複数のスペクトルのうち相対的に大きなスペクトルの周波数の逆数を抽出期間の時間的な長さに決定してもよい。部品などのワークは一定の周期で生産または検査される。そのため、時系列データは周期性を有する。よって、FFTやARモデルを用いることで比較的に正確に抽出期間の時間的な長さPが特定されよう。図11を用いて説明したように、決定部82は時系列デバイスデータにおける波形の類似性に基づき抽出期間の時間的な長さPを決定してもよい。決定部82は、抽出期間の時間的な長さPを決定する複数の決定手法を有しており、ユーザにより選択された決定手法を用いて抽出期間の時間的な長さPを決定してもよい。ユーザはより適切と考える決定方法を選択しやすくなろう。たとえば、決定部82はFFTにより決定手法、ARモデルに基づく決定手法、形状類似性に基づく決定手法などからユーザにより選択された決定手法を採用してもよい。決定手法を選択するためのメニューがUI100に追加されてもよい。 The determination unit 82 acquires a plurality of spectra of the time-series device data by Fourier transform or an autoregressive model, and determines the inverse of the frequency of the relatively large spectrum among the plurality of spectra as the temporal length of the extraction period. You may. Workpieces such as parts are produced or inspected at regular intervals. Therefore, the time series data has periodicity. Therefore, the temporal length P of the extraction period can be specified relatively accurately by using the FFT or AR model. As described with reference to FIG. 11, the determination unit 82 may determine the temporal length P of the extraction period based on the similarity of the waveforms in the time series device data. The determination unit 82 has a plurality of determination methods for determining the temporal length P of the extraction period, and determines the temporal length P of the extraction period using the determination method selected by the user. May be good. It will be easier for users to choose the decision method that they consider more appropriate. For example, the determination unit 82 may adopt a determination method selected by the user from a determination method based on an FFT, a determination method based on an AR model, a determination method based on shape similarity, and the like. A menu for selecting a determination method may be added to the UI 100.

記憶装置32はユーザプログラムを管理するためのプロジェクト情報(設定情報39)を記憶していてもよい。収集部81は、プロジェクト情報に基づきデバイスデータを収集される複数のデバイスを選択し、当該選択された複数のデバイスのそれぞれからデバイスデータを収集してもよい。たとえば、プロジェクト情報にはユーザにより登録されたデバック用のデバイスを指定する情報が含まれていてもよい。収集部81や選択部87は、デバック用のデバイスを指定する情報に基づきデバイスデータを収集される複数のデバイスを選択し、当該選択された複数のデバイスのそれぞれからデバイスデータを収集してもよい。これにより、収集対象のデバイスを指定するためのユーザの負担が軽減されよう。 The storage device 32 may store the project information (setting information 39) for managing the user program. The collection unit 81 may select a plurality of devices for which device data is to be collected based on the project information, and collect device data from each of the selected plurality of devices. For example, the project information may include information that specifies a device for debugging registered by the user. The collection unit 81 or the selection unit 87 may select a plurality of devices for which device data is to be collected based on information specifying a device for debugging, and may collect device data from each of the selected plurality of devices. .. This will reduce the burden on the user to specify the device to be collected.

プロジェクト情報にはユーザにより登録された表示対象のデバイスを指定する情報が含まれていてもよい。収集部81や選択部87は、表示対象のデバイスを指定する情報に基づきデバイスデータを収集される複数のデバイスを選択し、当該選択された複数のデバイスのそれぞれからデバイスデータを収集してもよい。 The project information may include information that specifies the device to be displayed registered by the user. The collection unit 81 or the selection unit 87 may select a plurality of devices for which device data is to be collected based on information specifying the device to be displayed, and may collect device data from each of the selected plurality of devices. ..

図24や図25に示したように、表示部7は、第一デバイスから収集された時系列デバイスデータの波形と、第二デバイスから収集された時系列デバイスデータの波形とを共通の時間軸上において並べて表示してもよい。図26に示したように、表示部7は、第一デバイスから収集された時系列デバイスデータの波形と、第二デバイスから収集された時系列デバイスデータの波形とを共通の時間軸上において重ねて表示してもよい。これによりワークごとの個別データの違いをユーザは見つけやすくなろう。なお、表示部7は、PLC1に接続され、ユーザによるユーザプログラムの作成を支援するプログラム作成支援装置2に設けられていてもよい。 As shown in FIGS. 24 and 25, the display unit 7 has a common time axis of the waveform of the time-series device data collected from the first device and the waveform of the time-series device data collected from the second device. It may be displayed side by side on the top. As shown in FIG. 26, the display unit 7 superimposes the waveform of the time-series device data collected from the first device and the waveform of the time-series device data collected from the second device on a common time axis. May be displayed. This will make it easier for users to find differences in individual data for each work. The display unit 7 may be provided in the program creation support device 2 which is connected to the PLC 1 and supports the user to create a user program.

送信部86は、時系列データ92や識別情報を付与された個別データ93をクラウド12に送信する送信部の一例である。これにより、クラウド12は時系列データ92から個別データを抽出してもよいし、個別データ93をさらに詳細に分析してもよい。たとえば、クラウド12のCPU61は、複数の個別データ93を比較したり、NGデータを含む個別データ93を特定したりしてもよい。NGはno goodの略称である。 The transmission unit 86 is an example of a transmission unit that transmits the time-series data 92 and the individual data 93 to which the identification information is attached to the cloud 12. As a result, the cloud 12 may extract individual data from the time series data 92, or may analyze the individual data 93 in more detail. For example, the CPU 61 of the cloud 12 may compare a plurality of individual data 93 or specify individual data 93 including NG data. NG is an abbreviation for no good.

CPU31、51はそれぞれ識別情報を付与された複数の個別データ93から形成されたデータファイルを記憶装置32、52に記憶させてもよい。たとえば、CSV形式やSQL形式のデータファイルが作成されてもよい。CPU31、51の送信部86はデータファイルをクラウド12へ転送する。なお、CSV形式やSQL形式は一例にすぎず、クラウド12が要求する形式が採用されればよい。また、個別データ93は、データファイルの形式で記憶されるのではなく、時系列データ92の一部として記憶装置32、52に記憶されてもよい。すなわち、「個別データ93を時系列データ92から抽出する」とは、時系列データ92から個別データ93を切り出し又はコピーすることにより、時系列データ92から分離されたデータとして抽出することは勿論、時系列データ92中で個別データ93に相当する部分を単に特定することをも含む。この場合、個別データ93は、時系列データ92から分離されず、時系列データ92の一部として記憶装置32、52に記憶される。 The CPUs 31 and 51 may store the data files formed from the plurality of individual data 93 to which the identification information is given in the storage devices 32 and 52, respectively. For example, CSV format or SQL format data files may be created. The transmission unit 86 of the CPUs 31 and 51 transfers the data file to the cloud 12. The CSV format and SQL format are only examples, and the format required by the cloud 12 may be adopted. Further, the individual data 93 is not stored in the format of a data file, but may be stored in the storage devices 32 and 52 as a part of the time series data 92. That is, "extracting the individual data 93 from the time-series data 92" means, of course, extracting the individual data 93 from the time-series data 92 as data separated from the time-series data 92 by cutting out or copying the individual data 93. It also includes simply specifying the part corresponding to the individual data 93 in the time series data 92. In this case, the individual data 93 is not separated from the time series data 92 and is stored in the storage devices 32 and 52 as a part of the time series data 92.

Claims (13)

ユーザプログラムを繰り返し実行することで、被制御機器の動作を制御するプログラマブル・ロジック・コントローラシステムであって、
前記ユーザプログラムを記憶するプログラム記憶部と、
前記ユーザプログラム上で指定可能であり、1ビットの情報を記憶するビットデバイスおよび1ワード又は数ワードの情報を記憶するワードデバイスを含む複数のデバイスを保持するデバイス記憶部と、
前記プログラム記憶部に記憶されているユーザプログラムを繰り返し実行し、当該ユーザプログラムにしたがって前記複数のデバイスに記憶されている情報を演算処理するプログラム実行部と、
前記デバイス記憶部に保持されたデバイスのうち少なくとも一つのデバイスに記憶されているデバイスデータを繰り返し収集することで、前記被制御機器の繰り返し動作に応じた周期性を有する時系列デバイスデータを形成するデータ収集部と、
前記ユーザプログラムを解析することにより、実行トリガの立ち上り又は立ち下りに応じて複数の命令が繰り返し実行される命令ループを特定し、当該特定された命令ループに基づき、前記時系列デバイスデータから前記周期性に応じた複数の個別データを抽出するための抽出期間を定める基準となる前記実行トリガを決定する決定部と、
前記決定部により決定された前記実行トリガが変化するタイミングに基づいて、前記時系列デバイスデータから前記周期性に応じた複数の個別データを抽出する抽出部と、
前記抽出部により抽出された個別データに対して、当該各個別データを識別するための識別情報を付与する付与部と
を有することを特徴とするプログラマブル・ロジック・コントローラシステム。
A programmable logic controller system that controls the operation of controlled devices by repeatedly executing user programs.
A program storage unit that stores the user program and
A device storage unit that can be specified on the user program and holds a plurality of devices including a bit device that stores one bit of information and a word device that stores one word or several words of information.
A program execution unit that repeatedly executes a user program stored in the program storage unit and performs arithmetic processing on information stored in the plurality of devices according to the user program.
By repeatedly collecting device data stored in at least one device among the devices held in the device storage unit, time-series device data having periodicity corresponding to the repeated operation of the controlled device is formed. Data collection department and
By analyzing the user program, an instruction loop in which a plurality of instructions are repeatedly executed according to the rise or fall of the execution trigger is identified, and based on the specified instruction loop, the cycle is obtained from the time-series device data. A decision unit that determines the execution trigger that serves as a reference for determining an extraction period for extracting a plurality of individual data according to gender .
An extraction unit that extracts a plurality of individual data according to the periodicity from the time-series device data based on the timing at which the execution trigger determined by the determination unit changes.
A programmable logic controller system characterized by having an addition unit that assigns identification information for identifying each individual data to each individual data extracted by the extraction unit.
前記プログラム実行部におけるユーザプログラムの実行処理と前記データ収集部における前記データ収集部の収集処理とを同期させる同期部をさらに有することを特徴とする請求項1に記載のプログラマブル・ロジック・コントローラシステム。 The programmable logic controller system according to claim 1, further comprising a synchronization unit that synchronizes the execution process of the user program in the program execution unit with the collection process of the data collection unit in the data collection unit. 前記決定部は、制御対象を特定の位置に移動させるためのポイントパラメータに基づき前記抽出期間を決定することを特徴とする請求項1または2に記載のプログラマブル・ロジック・コントローラシステム。 The programmable logic controller system according to claim 1 or 2, wherein the determination unit determines the extraction period based on a point parameter for moving a controlled object to a specific position. 前記ポイントパラメータの設定情報は、複数のポイント番号と、各ポイント番号ごとの前記制御対象の移動量と、各ポイント番号の次のポイント番号とを有し、
前記決定部は、各ポイント番号の次のポイント番号に基づき前記制御対象の移動命令のループを検知し、当該ループに相当する期間を前記抽出期間に決定することを特徴とする請求項3に記載のプログラマブル・ロジック・コントローラシステム。
The point parameter setting information includes a plurality of point numbers, a movement amount of the controlled object for each point number, and a point number next to each point number.
The third aspect of claim 3, wherein the determination unit detects a loop of the movement command to be controlled based on the point number next to each point number, and determines a period corresponding to the loop in the extraction period. Programmable logic controller system.
前記ユーザプログラムは、ラダープログラムであり、
前記決定部は、前記ラダープログラムに記述された命令である特定のファンクションブロックの実行周期を求め、当該実行周期を前記抽出期間に決定することを特徴とする請求項1または2に記載のプログラマブル・ロジック・コントローラシステム。
The user program is a ladder program.
The programmable system according to claim 1 or 2, wherein the determination unit obtains an execution cycle of a specific function block which is an instruction described in the ladder program, and determines the execution cycle in the extraction period. Logic controller system.
前記決定部は、前記特定のファンクションブロックの実行トリガである第一信号の立ち上がり又は立ち下がりから前記特定のファンクションブロックの実行完了を示す第二信号の立ち上がり又は立ち下がりまでの期間を前記抽出期間に決定することを特徴とする請求項5に記載のプログラマブル・ロジック・コントローラシステム。 The determination unit sets the period from the rise or fall of the first signal, which is the execution trigger of the specific function block, to the rise or fall of the second signal indicating the completion of execution of the specific function block as the extraction period. The programmable logic controller system according to claim 5, wherein the determination is made. 前記プログラマブル・ロジック・コントローラシステムに設けられたプログラマブル・ロジック・コントローラには高速カウンタユニットが接続されており、
前記決定部は、前記ユーザプログラムにおいて前記高速カウンタユニットの動作モードが周波数カウントモードに設定されているかどうかを解析し、前記高速カウンタユニットの動作モードが周波数カウントモードに設定されているときに、前記高速カウンタユニットに入力されるパルス信号の立ち上がりまたは立ち下りを基準位置とし、かつ、当該パルス信号の間隔から求められる周期を長さとする前記抽出期間を決定することを特徴とする請求項1または2に記載のプログラマブル・ロジック・コントローラシステム。
A high-speed counter unit is connected to the programmable logic controller provided in the programmable logic controller system.
The determination unit analyzes whether or not the operation mode of the high-speed counter unit is set to the frequency count mode in the user program, and when the operation mode of the high-speed counter unit is set to the frequency count mode, the determination unit Claim 1 or 2 is characterized in that the extraction period is determined with the rising edge or falling edge of the pulse signal input to the high-speed counter unit as the reference position and the period obtained from the interval of the pulse signals as the length. Programmable logic controller system described in.
前記抽出期間の開始位置と終了位置は、前記個別データの抽出の基準位置を示す情報と、前記抽出期間の時間的な長さを示す情報によって定義されていることを特徴とする請求項1ないし7のいずれか一項に記載のプログラマブル・ロジック・コントローラシステム。 Claim 1 to claim 1, wherein the start position and the end position of the extraction period are defined by information indicating a reference position for extraction of the individual data and information indicating the temporal length of the extraction period. 7. The programmable logic controller system according to any one of 7. 前記プログラマブル・ロジック・コントローラシステムに設けられたプログラマブル・ロジック・コントローラは、ユーザによる前記ユーザプログラムの作成を支援するプログラム作成支援装置に接続され、
前記決定部は、前記プログラム作成支援装置に設けられていることを特徴とする請求項1ないし8のいずれか一項に記載のプログラマブル・ロジック・コントローラシステム。
The programmable logic controller provided in the programmable logic controller system is connected to a program creation support device that assists the user in creating the user program.
The programmable logic controller system according to any one of claims 1 to 8, wherein the determination unit is provided in the program creation support device.
前記プログラム作成支援装置は、前記決定部により決定された前記抽出期間を示す情報を前記ユーザプログラムとともにプログラム記憶部に書き込み、
前記抽出部は、前記プログラム記憶部に記憶されている前記抽出期間を示す情報に基づき前記時系列デバイスデータから前記個別データを抽出することを特徴とする請求項9に記載のプログラマブル・ロジック・コントローラシステム。
The program creation support device writes information indicating the extraction period determined by the determination unit to the program storage unit together with the user program.
The programmable logic controller according to claim 9, wherein the extraction unit extracts the individual data from the time-series device data based on the information indicating the extraction period stored in the program storage unit. system.
ユーザプログラムを繰り返し実行することで、被制御機器の動作を制御するプログラマブル・ロジック・コントローラに接続されたデータ収集装置であって、
前記プログラマブル・ロジック・コントローラは、
ユーザプログラムを記憶するプログラム記憶部と、
前記ユーザプログラム上で指定可能であり、1ビットの情報を記憶するビットデバイスおよび1ワード又は数ワードの情報を記憶するワードデバイスを含む複数のデバイスを保持するデバイス記憶部と、
前記プログラム記憶部に記憶されているユーザプログラムを繰り返し実行し、当該ユーザプログラムにしたがって前記複数のデバイスに記憶されている情報を演算処理するプログラム実行部と、を有し、
前記データ収集装置は、
前記デバイス記憶部に保持されたデバイスのうち少なくとも一つのデバイスに記憶されているデバイスデータを繰り返し収集することで、前記被制御機器の繰り返し動作に応じた周期性を有する時系列デバイスデータを形成するデータ収集部と、
前記時系列デバイスデータから前記周期性に応じた複数の個別データを抽出するための抽出期間を定める基準となる実行トリガが変化するタイミングに基づいて、前記時系列デバイスデータから前記周期性に応じた複数の個別データを抽出する抽出部と、
前記抽出部により抽出された個別データに対して、当該各個別データを識別するための識別情報を付与する付与部と
を有し、
前記プログラマブル・ロジック・コントローラは、
前記ユーザプログラムを解析することにより、前記実行トリガの立ち上り又は立ち下りに応じて複数の命令が繰り返し実行される命令ループを特定し、当該特定された命令ループに基づき、前記時系列デバイスデータから前記周期性に応じた複数の個別データを抽出するための抽出期間を定める基準となる前記実行トリガを決定する決定部を有し、
前記抽出部は、前記決定部により決定された前記実行トリガが変化するタイミングに基づいて、前記時系列デバイスデータから前記周期性に応じた複数の個別データを抽出することを特徴とするデータ収集装置。
A data acquisition device connected to a programmable logic controller that controls the operation of controlled devices by repeatedly executing user programs.
The programmable logic controller is
A program storage unit that stores user programs and
A device storage unit that can be specified on the user program and holds a plurality of devices including a bit device that stores one bit of information and a word device that stores one word or several words of information.
It has a program execution unit that repeatedly executes a user program stored in the program storage unit and performs arithmetic processing on information stored in the plurality of devices according to the user program.
The data acquisition device is
By repeatedly collecting device data stored in at least one device among the devices held in the device storage unit, time-series device data having periodicity corresponding to the repeated operation of the controlled device is formed. Data collection department and
Based on the timing at which the execution trigger, which is the reference for determining the extraction period for extracting a plurality of individual data according to the periodicity from the time-series device data, changes, the periodicity is adjusted from the time-series device data. An extraction unit that extracts multiple individual data, and an extraction unit
Each individual data extracted by the extraction unit has an addition unit that assigns identification information for identifying each individual data.
The programmable logic controller is
By analyzing the user program, an instruction loop in which a plurality of instructions are repeatedly executed according to the rise or fall of the execution trigger is identified, and based on the specified instruction loop, the time-series device data is used to identify the instruction loop. It has a determination unit that determines the execution trigger that serves as a reference for determining the extraction period for extracting a plurality of individual data according to the periodicity .
The extraction unit is a data collection device characterized by extracting a plurality of individual data according to the periodicity from the time-series device data based on the timing at which the execution trigger determined by the determination unit changes. ..
前記データ収集装置は、クラウドを構成するサーバであることを特徴とする請求項11に記載のデータ収集装置。 The data collection device according to claim 11, wherein the data collection device is a server constituting a cloud. 被制御機器の動作を制御するプログラマブル・ロジック・コントローラにより繰り返し実行されるユーザプログラムの、ユーザによる作成を支援するプログラム作成支援装置であって、
前記ユーザプログラムの入力を補助するユーザインタフェースを表示する表示部と、
前記ユーザインタフェースを通じて前記ユーザプログラムの入力を受け付ける入力部と、
前記ユーザプログラムを解析し、実行トリガの立ち上り又は立ち下りに応じて複数の命令が繰り返し実行される命令ループを特定し、当該特定された命令ループに基づき、前記被制御機器の繰り返し動作に応じた周期性を有する時系列デバイスデータから当該周期性に応じた複数の個別データを抽出するための抽出期間を定める基準となる前記実行トリガを決定する決定部と、
前記ユーザプログラムと前記実行トリガを示す情報とを前記プログラマブル・ロジック・コントローラに転送する転送部と
を有し、
前記実行トリガは、前記プログラマブル・ロジック・コントローラにおける少なくとも一つのデバイスに記憶されているデバイスデータを繰り返し収集することで形成された時系列デバイスデータから、前記実行トリガが変化するタイミングに基づいて、前記周期性に応じた複数の個別データを抽出するための抽出期間を定める基準となることを特徴とするプログラム作成支援装置。
A program creation support device that assists the user in creating a user program that is repeatedly executed by a programmable logic controller that controls the operation of the controlled device.
A display unit that displays a user interface that assists the input of the user program, and
An input unit that accepts input from the user program through the user interface,
The user program is analyzed, an instruction loop in which a plurality of instructions are repeatedly executed according to the rise or fall of the execution trigger is identified, and based on the specified instruction loop, the repeated operation of the controlled device is performed. A determination unit that determines the execution trigger that serves as a reference for determining an extraction period for extracting a plurality of individual data according to the periodicity from time-series device data having periodicity .
It has a transfer unit that transfers the user program and information indicating the execution trigger to the programmable logic controller.
The execution trigger is based on the timing at which the execution trigger changes from the time-series device data formed by repeatedly collecting the device data stored in at least one device in the programmable logic controller. A program creation support device characterized in that it serves as a standard for determining an extraction period for extracting a plurality of individual data according to periodicity .
JP2017135376A 2017-07-11 2017-07-11 Programmable logic controller system and data acquisition device Active JP6996887B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017135376A JP6996887B2 (en) 2017-07-11 2017-07-11 Programmable logic controller system and data acquisition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017135376A JP6996887B2 (en) 2017-07-11 2017-07-11 Programmable logic controller system and data acquisition device

Publications (2)

Publication Number Publication Date
JP2019016326A JP2019016326A (en) 2019-01-31
JP6996887B2 true JP6996887B2 (en) 2022-01-17

Family

ID=65358572

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017135376A Active JP6996887B2 (en) 2017-07-11 2017-07-11 Programmable logic controller system and data acquisition device

Country Status (1)

Country Link
JP (1) JP6996887B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110174870B (en) * 2019-05-17 2020-10-30 珠海格力电器股份有限公司 PLC timing method, PLC timer and PLC controller

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000181525A (en) 1998-12-11 2000-06-30 Mitsubishi Electric Corp Positioning device
JP2000235412A (en) 1999-02-15 2000-08-29 Omron Corp Logging device
JP2001034312A (en) 1999-07-23 2001-02-09 Toshiba Corp Programmable controller
JP2005115426A (en) 2003-10-02 2005-04-28 Omron Corp Anomaly recovery support apparatus and anomaly recovery support system
JP2008287559A (en) 2007-05-18 2008-11-27 Keyence Corp Plc operation display system
JP2015076049A (en) 2013-10-11 2015-04-20 横河電機株式会社 Program development support device, and computer program
JP2016143169A (en) 2015-01-30 2016-08-08 株式会社キーエンス Device monitoring apparatus and device monitoring method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63206802A (en) * 1987-02-23 1988-08-26 Omron Tateisi Electronics Co Programmable controller
JP2568878Y2 (en) * 1992-04-16 1998-04-15 株式会社キーエンス Optical length measurement

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000181525A (en) 1998-12-11 2000-06-30 Mitsubishi Electric Corp Positioning device
JP2000235412A (en) 1999-02-15 2000-08-29 Omron Corp Logging device
JP2001034312A (en) 1999-07-23 2001-02-09 Toshiba Corp Programmable controller
JP2005115426A (en) 2003-10-02 2005-04-28 Omron Corp Anomaly recovery support apparatus and anomaly recovery support system
JP2008287559A (en) 2007-05-18 2008-11-27 Keyence Corp Plc operation display system
JP2015076049A (en) 2013-10-11 2015-04-20 横河電機株式会社 Program development support device, and computer program
JP2016143169A (en) 2015-01-30 2016-08-08 株式会社キーエンス Device monitoring apparatus and device monitoring method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
PLCopen,"Technical Specification PLCopen - Technical Committee 2 -Task Force Function blocks for motion control ",2005年04月09日,[2.3.1節]-[2.3.2節]の記載、図

Also Published As

Publication number Publication date
JP2019016326A (en) 2019-01-31

Similar Documents

Publication Publication Date Title
JP6996888B2 (en) Programmable logic controller, data acquisition device and programming support device
JP6493506B1 (en) INDUSTRIAL CONTROL SYSTEM, ITS SUPPORT DEVICE, CONTROL SUPPORT METHOD AND PROGRAM
JP7450471B2 (en) Programmable logic controller and PLC system
US10838938B2 (en) Process monitorer, process monitering system, process monitering method, process monitering program, and recording mediam
EP3361330B1 (en) Event analyzing device, event analyzing system, event analyzing method, event analyzing program, and non-transitory computer readable storage medium
CN108780306B (en) Program creation support device, method for controlling program creation support device, and computer-readable recording medium
EP3422214B1 (en) Control system, coupling method, and computer program
JP2018159981A (en) Control system, control apparatus, control program, and control method
EP3382485A1 (en) Controller, control program, control system, and control method
WO2022030041A1 (en) Prediction system, information processing device, and information processing program
JP2018133037A (en) Control device
JP6996886B2 (en) Programmable logic controller, programmable logic controller system and data acquisition device
JP6996887B2 (en) Programmable logic controller system and data acquisition device
KR101566358B1 (en) System and method of alarming uncommon state of automatic process
JP2022158228A (en) Monitoring device and programmable logic controller system
JP7102801B2 (en) Control system, control device and display device
WO2021111936A1 (en) Prediction system, information processing device, and information processing program
CN113330382A (en) Control device, control program, and control system
WO2023053511A1 (en) Control system, information processing method, and information processing device
US20220317650A1 (en) Analysis apparatus, control method thereof, and analysis system
EP4254104A1 (en) Device and program for collecting data
EP4254106A1 (en) Device, system, method, and program for collecting data
JP2023151886A (en) Information processing device and information processing program
JP2022158229A (en) Programmable logic controller system
CN114967604A (en) Data acquisition system and method for industrial machine and information storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200326

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20210113

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210226

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210308

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210422

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210709

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210826

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211216

R150 Certificate of patent or registration of utility model

Ref document number: 6996887

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150