JP2008146402A - Cpu unit, system processing execution method and program for making cpu unit execute the same method - Google Patents

Cpu unit, system processing execution method and program for making cpu unit execute the same method Download PDF

Info

Publication number
JP2008146402A
JP2008146402A JP2006333667A JP2006333667A JP2008146402A JP 2008146402 A JP2008146402 A JP 2008146402A JP 2006333667 A JP2006333667 A JP 2006333667A JP 2006333667 A JP2006333667 A JP 2006333667A JP 2008146402 A JP2008146402 A JP 2008146402A
Authority
JP
Japan
Prior art keywords
unit
system configuration
processing
scan time
execution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2006333667A
Other languages
Japanese (ja)
Other versions
JP4584235B2 (en
Inventor
Yusuke Murai
裕介 村井
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2006333667A priority Critical patent/JP4584235B2/en
Publication of JP2008146402A publication Critical patent/JP2008146402A/en
Application granted granted Critical
Publication of JP4584235B2 publication Critical patent/JP4584235B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To obtain a CPU unit for shortening a scan time according to a processing content assigned to a CPU unit configuring a programmable controller. <P>SOLUTION: A CPU unit to be used by a programmable controller where units including a plurality of CPU units, input units, and output units are mounted to a base unit is provided with a user program storage part 31 for storing a sequence program; a user program execution part 32 for executing the sequence program stored in the user program storage part 31; a system processing execution part 36 for executing predetermined system processing; and a system configuration confirmation part 34 for determining whether or not it is necessary to execute each processing in the system processing, and for preparing system configuration information showing the necessity/non-necessity of the execution of each processing. The system processing execution part 36 executes the system processing on the basis of the system configuration information. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

この発明は、プログラマブルコントローラで使用されるCPU(Central Processing Unit)ユニットに関するものである。また、そのシステム処理実行方法とその方法をCPUユニットに実行させるプログラムにも関するものである。   The present invention relates to a CPU (Central Processing Unit) unit used in a programmable controller. The present invention also relates to a system processing execution method and a program for causing a CPU unit to execute the method.

プログラマブルコントローラは、シーケンスプログラムにしたがって、制御対象を制御することによって所定の処理を実行させて、製品の加工や製造を行っている。このプログラマブルコントローラには種々の種類のものがあるが、その中に、構築するシステムの構成に応じたプログラマブルコントローラの構築を行うことができるベース装着タイプのものが知られている。このベース装着タイプのプログラマブルコントローラは、ベースユニット上に、電源ユニット、CPUユニット、入力ユニット、出力ユニット、機能ユニット、ネットワークユニットなどのユニットが、構築するシステムに応じて装着される構成を有する。   The programmable controller performs a predetermined process by controlling a control target according to a sequence program, and processes and manufactures a product. There are various types of programmable controllers, and among them, a base-mounted type that can construct a programmable controller according to the configuration of the system to be constructed is known. This base mounting type programmable controller has a configuration in which units such as a power supply unit, a CPU unit, an input unit, an output unit, a functional unit, and a network unit are mounted on a base unit according to a system to be constructed.

図1は、ベース装着タイプのプログラマブルコントローラの構成の一例を示す図である。ベース装着タイプのプログラマブルコントローラ1は、バスが設けられたベースユニット20に、入出力制御や演算処理を行う複数のCPUユニット10A,10Bと、制御対象の外部機器からの制御結果を受信する入力ユニット51と、CPUユニット10Aからの指示により所定の外部機器に出力を行う出力ユニット52とが、装着されている。ここで、CPUユニット10Aは、入力ユニット51と出力ユニット52との間で入出力制御を行い、CPUユニット10Bは、CPUユニット10Aからのデータに基づいて演算を行っているものとする。また、この図では、電源ユニットを省略して図示している。   FIG. 1 is a diagram illustrating an example of a configuration of a base mounting type programmable controller. A base-mounted type programmable controller 1 includes a base unit 20 provided with a bus, a plurality of CPU units 10A and 10B that perform input / output control and arithmetic processing, and an input unit that receives control results from an external device to be controlled. 51 and an output unit 52 that outputs to a predetermined external device according to an instruction from the CPU unit 10A are mounted. Here, it is assumed that the CPU unit 10A performs input / output control between the input unit 51 and the output unit 52, and the CPU unit 10B performs calculations based on data from the CPU unit 10A. In this figure, the power supply unit is omitted.

図6は、プログラマブルコントローラによるシーケンサ動作処理の手順の概要を示す図である。なお、この図6に示されるシーケンサ動作処理は、各CPUユニット10A,10Bによってそれぞれ実行されるものである。この図に示されるように、従来のプログラマブルコントローラにおける制御対象を制御するシーケンサ動作処理では、最初にイニシャル処理を実行した(ステップS11)後、一連の制御手順が記述されたシーケンスプログラムを実行し(ステップS12)、さらに、シーケンスプログラムによる演算の実行結果の出力処理や演算を行うためのデータの入力処理などのシステム処理を行う(ステップS13)。そして、このステップS12のシーケンスプログラム実行処理とステップS13のシステム処理を繰り返し実行する(たとえば、特許文献1参照)。このとき、ステップS12のシーケンスプログラム実行処理の開始からステップS13のシステム処理の完了までの時間をスキャンタイムといい、また1回のシーケンスプログラム実行処理の開始からシステム処理の完了までを1スキャンという。   FIG. 6 is a diagram showing an outline of the sequence of sequencer operation processing by the programmable controller. The sequencer operation process shown in FIG. 6 is executed by each of the CPU units 10A and 10B. As shown in this figure, in a sequencer operation process for controlling a control target in a conventional programmable controller, an initial process is first executed (step S11), and then a sequence program describing a series of control procedures is executed ( Further, system processing such as output processing of the execution result of the operation by the sequence program and data input processing for performing the operation is performed (step S13). Then, the sequence program execution process in step S12 and the system process in step S13 are repeatedly executed (see, for example, Patent Document 1). At this time, the time from the start of the sequence program execution process in step S12 to the completion of the system process in step S13 is referred to as a scan time, and the period from the start of one sequence program execution process to the completion of the system process is referred to as one scan.

図15は、図6のシステム処理の手順の従来例を示す図である。この図に示されるように、CPUユニット10A,10Bは、同じベースユニット20上に装着されている出力ユニット52に出力情報を反映させる(ステップS201)。ついで、CPUユニット10A,10Bは、スキャンタイムの測定を行い(ステップS202)、さらにハードウェアの異常チェックを行う(ステップS203)。そして、割り込み回数チェックを行って(ステップS204)、同じベースユニット20上に装着されている入力ユニット51からの入力情報を自CPUユニット10A,10Bの有するメモリに取り込んで反映させて(ステップS205)、システム処理が終了する。   FIG. 15 is a diagram showing a conventional example of the system processing procedure of FIG. As shown in this figure, the CPU units 10A and 10B reflect the output information on the output unit 52 mounted on the same base unit 20 (step S201). Next, the CPU units 10A and 10B measure the scan time (step S202), and further check for hardware abnormality (step S203). Then, the number of interruptions is checked (step S204), and the input information from the input unit 51 mounted on the same base unit 20 is taken in and reflected in the memory of the CPU units 10A and 10B (step S205). , System processing ends.

特開平8−123514号公報JP-A-8-123514

ところで、従来のプログラマブルコントローラでは、図6と図15に示した処理は、装着ユニットに装着されるすべてのCPUユニットにおいて実行される。たとえば図1に示したように、ベースユニット20上に複数のCPUユニット10A,10Bが装着されたプログラマブルコントローラ1では、CPUユニット10Aは、入力ユニット51と出力ユニット52との間の入出力制御用に使用され、他方のCPUユニット10Bは、入力ユニット51と出力ユニット52とは情報のやり取りを行わず、CPUユニット10Aからのデータを受けて演算処理用に使用される場合などがある。このような場合においても、CPUユニット10A,10Bは、入力ユニット51と出力ユニット52との間の情報のやり取りの有無にかかわらず、一律に図6と図15の処理を実行していた。そのため、入力ユニット51と出力ユニット52との間で情報のやり取りを行わないCPUユニット10Bの場合には、システム処理を行う時間が不要な処理によって長くなってしまい、結果的にスキャンタイムが長くなってしまうという問題点があった。   By the way, in the conventional programmable controller, the processing shown in FIGS. 6 and 15 is executed in all the CPU units mounted on the mounting unit. For example, as shown in FIG. 1, in the programmable controller 1 in which a plurality of CPU units 10A and 10B are mounted on the base unit 20, the CPU unit 10A is used for input / output control between the input unit 51 and the output unit 52. The other CPU unit 10B does not exchange information between the input unit 51 and the output unit 52 and receives data from the CPU unit 10A and may be used for arithmetic processing. Even in such a case, the CPU units 10A and 10B uniformly execute the processes of FIGS. 6 and 15 regardless of whether or not information is exchanged between the input unit 51 and the output unit 52. Therefore, in the case of the CPU unit 10B that does not exchange information between the input unit 51 and the output unit 52, the time for performing the system processing becomes longer due to unnecessary processing, and as a result, the scan time becomes longer. There was a problem that it was.

この発明は、上記に鑑みてなされたもので、プログラマブルコントローラを構成するCPUユニットにおいて、そのCPUユニットに割り当てられた処理内容にしたがって、スキャンタイムを短縮することができるCPUユニットおよびシステム処理実行方法並びにその方法をCPUユニットに実行させるプログラムを得ることを目的とする。   The present invention has been made in view of the above. In a CPU unit constituting a programmable controller, a CPU unit, a system processing execution method, and a CPU unit capable of reducing a scan time according to the processing contents assigned to the CPU unit; An object is to obtain a program for causing a CPU unit to execute the method.

上記目的を達成するため、この発明にかかるCPUユニットは、シーケンスプログラムを格納するユーザプログラム格納手段と、前記ユーザプログラム格納手段に格納されたシーケンスプログラムを実行するユーザプログラム実行手段と、予め定められたシステム処理を実行するシステム処理実行手段と、前記システム処理内の個々の処理の実行が必要か否かを判定し、前記個々の処理の実行の要否を示すシステム構成情報を作成するシステム構成確認手段と、を備え、前記システム処理実行手段は、前記システム構成情報に基づいて前記システム処理を実行することを特徴とする。   In order to achieve the above object, a CPU unit according to the present invention comprises a user program storage unit for storing a sequence program, a user program execution unit for executing a sequence program stored in the user program storage unit, and a predetermined unit. System configuration confirmation means for determining system processing execution means for executing system processing and determining whether or not each processing in the system processing needs to be executed, and creating system configuration information indicating whether or not the individual processing needs to be executed And the system processing execution means executes the system processing based on the system configuration information.

この発明によれば、プログラマブルコントローラ中のCPUユニットに割り当てられた処理内容に関係のないシステム処理中の処理を実行しないように設定したので、1スキャンの時間を短縮することができるという効果を有する。   According to the present invention, since the setting is made so as not to execute the processing in the system processing that is not related to the processing content assigned to the CPU unit in the programmable controller, there is an effect that the time for one scan can be shortened. .

以下に添付図面を参照して、この発明にかかるCPUユニットおよびシステム処理実行方法並びにその方法をCPUユニットに実行させるプログラムの好適な実施の形態を詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。   Exemplary embodiments of a CPU unit, a system processing execution method, and a program for causing the CPU unit to execute the method according to the present invention will be described below in detail with reference to the accompanying drawings. Note that the present invention is not limited to the embodiments.

図1は、この発明が適用されるプログラマブルコントローラの一例を概略的に示す図である。このプログラマブルコントローラ1は、ベースユニット20上に2台のCPUユニット10A,10Bと、1台の入力ユニット51と、1台の出力ユニット52とが装着されている。ここでは、CPUユニット10Aは、入力ユニット51と出力ユニット52との間で入出力制御を行い、CPUユニット10Bは、CPUユニット10Aからのデータに基づいて演算を行っているものとする。   FIG. 1 is a diagram schematically showing an example of a programmable controller to which the present invention is applied. In the programmable controller 1, two CPU units 10 </ b> A and 10 </ b> B, one input unit 51, and one output unit 52 are mounted on a base unit 20. Here, it is assumed that the CPU unit 10A performs input / output control between the input unit 51 and the output unit 52, and the CPU unit 10B performs calculations based on data from the CPU unit 10A.

図2は、ベースユニットに複数のCPUユニットが装着されたプログラマブルコントローラの構成を模式的に示すブロック図である。この図2では、ベースユニット20と、このベースユニット20上に装着されているCPUユニット10A,10Bのみを図示し、その他のユニットについての図示は省略している。   FIG. 2 is a block diagram schematically showing a configuration of a programmable controller in which a plurality of CPU units are mounted on the base unit. In FIG. 2, only the base unit 20 and the CPU units 10A and 10B mounted on the base unit 20 are shown, and the other units are not shown.

それぞれのCPUユニット10A,10Bは、自CPUユニット10A,10B内の処理を制御するMPU(Micro Processing Unit)11と、自CPUユニット10A,10B内における基本的な処理を実行するシステムプログラムを格納するROM(Read-Only Memory)などで構成されるシステムプログラム格納部12と、システムプログラムが使用するメモリ領域であるRAM(Random Access Memory)で構成されるシステムワーク記憶部13と、ベースユニット20内のデータバス21に接続されユーザファイルをフレーム化して所定の宛て先へと送信するとともに、自CPUユニット10A,10B宛のフレームの受信処理を行うデータバスインタフェース(図中、データバスI/Fと表記)14と、自CPUユニット10A,10Bで動作するシーケンスプログラムを格納するROMなどで構成されるユーザプログラム格納部15と、シーケンスプログラムが使用するデータを格納するRAMで構成されるユーザデータ記憶部16と、を備える。これらの各処理部間は、内部バス17を介して接続されている。   Each of the CPU units 10A and 10B stores an MPU (Micro Processing Unit) 11 that controls processing in the CPU units 10A and 10B and a system program that executes basic processing in the CPU units 10A and 10B. A system program storage unit 12 configured by a ROM (Read-Only Memory), a system work storage unit 13 configured by a RAM (Random Access Memory) which is a memory area used by the system program, and a base unit 20 A data bus interface (denoted as a data bus I / F in the figure) that is connected to the data bus 21 and transmits a user file to a predetermined destination and transmits a frame to the CPU units 10A and 10B. 14 and a sequence that operates on its own CPU units 10A and 10B It includes a ROM user program storage unit 15 composed of such as for storing scan program, a user data storage unit 16 composed of a RAM for storing data to sequence program uses, the. These processing units are connected via an internal bus 17.

この図2のように、ベースユニット20に複数のCPUユニット10A,10Bが装着されている場合には、それぞれのCPUユニット10A,10Bのデータバスインタフェース14がベースユニット20内のデータバス21と接続される。これによって、CPUユニット10A,10B間で、フレーム化したデータの送受信を行うことが可能になる。   As shown in FIG. 2, when a plurality of CPU units 10A and 10B are mounted on the base unit 20, the data bus interface 14 of each CPU unit 10A and 10B is connected to the data bus 21 in the base unit 20. Is done. As a result, framed data can be transmitted and received between the CPU units 10A and 10B.

図3は、この発明にかかるCPUユニットの機能構成を模式的に示すブロック図である。この図3は、図2に示される構成を有するCPUユニットを機能構成の点から見たブロック図である。このCPUユニット10は、ユーザプログラム格納部31と、ユーザプログラム実行部32と、スキャンタイム測定パラメータ記憶部33と、システム構成確認部34と、システム構成情報記憶部35と、システム処理実行部36と、これらの各処理部を制御する制御部37と、を備える。   FIG. 3 is a block diagram schematically showing a functional configuration of the CPU unit according to the present invention. FIG. 3 is a block diagram of the CPU unit having the configuration shown in FIG. 2 as viewed from the functional configuration. The CPU unit 10 includes a user program storage unit 31, a user program execution unit 32, a scan time measurement parameter storage unit 33, a system configuration confirmation unit 34, a system configuration information storage unit 35, and a system process execution unit 36. And a control unit 37 for controlling each of these processing units.

ユーザプログラム格納部31は、ユーザによって作成されたシーケンスプログラムを格納し、ユーザプログラム実行部32は、ユーザプログラム格納部31に格納されているシーケンスプログラムを実行する。スキャンタイム測定パラメータ記憶部33は、ユーザによって予めなされたスキャンタイムの測定の可否を記憶する。   The user program storage unit 31 stores a sequence program created by the user, and the user program execution unit 32 executes the sequence program stored in the user program storage unit 31. The scan time measurement parameter storage unit 33 stores whether or not the scan time can be measured in advance by the user.

システム構成確認部34は、シーケンサ動作時の1スキャン内に実行されるシステム処理を構成する個々の処理について、実行する必要があるか否かを確認する。たとえば、システム処理として、入力ユニット51や出力ユニット52(以下、入出力ユニットともいう)との情報のやり取り、スキャンタイム測定、割り込み回数の測定の各処理を例示することができるので、これらの処理の実行の可否を確認する。図4は、システム処理の個々の処理の実行の有無についての判定条件の一例を示す図である。   The system configuration confirmation unit 34 confirms whether or not it is necessary to execute each process constituting the system process executed in one scan during the sequencer operation. For example, as system processing, each process of information exchange with the input unit 51 and output unit 52 (hereinafter also referred to as input / output unit), scan time measurement, and interrupt count measurement can be exemplified. Confirm whether or not execution is possible. FIG. 4 is a diagram illustrating an example of a determination condition regarding whether or not each of the system processes is executed.

入出力ユニットとの情報のやり取りの有無については、システム構成確認部34は、ユーザプログラム格納部31に格納されているシーケンスプログラムを参照し、このシーケンスプログラム内に入出力ユニットへアクセスする命令が含まれているか否かを判断する。通常、シーケンスプログラムにおいて、入力ユニット51へアクセスする命令にはXを用いた記号が用いられ、出力ユニット52へアクセスする命令にはYを用いた記号が用いられるので、シーケンスプログラムをスキャンすることによって、入出力ユニットとの情報のやり取りの有無を確認することができる。つまり、シーケンスプログラム中に入出力ユニットへアクセスする命令がない場合には、入出力ユニットとのやり取りがなく、入出力ユニットへアクセスする命令がある場合には、CPUユニット10は入出力リフレッシュ処理を行う。   Regarding the presence / absence of information exchange with the input / output unit, the system configuration confirmation unit 34 refers to the sequence program stored in the user program storage unit 31 and includes an instruction to access the input / output unit in the sequence program. It is determined whether or not. Usually, in a sequence program, a symbol using X is used for an instruction to access the input unit 51, and a symbol using Y is used for an instruction to access the output unit 52. By scanning the sequence program, The presence / absence of information exchange with the input / output unit can be confirmed. That is, when there is no instruction to access the input / output unit in the sequence program, there is no exchange with the input / output unit, and when there is an instruction to access the input / output unit, the CPU unit 10 performs the input / output refresh process. Do.

スキャンタイム測定の可否については、システム構成確認部34は、スキャンタイム測定パラメータ記憶部33を参照することで、スキャンタイム測定の可否を判定する。すなわち、スキャンタイム測定パラメータ記憶部33に、スキャンタイムの測定が設定されている場合には、システム構成確認部34は、スキャンタイム測定を行うと判断し、スキャンタイムの測定が設定されていない場合には、システム構成確認部34は、スキャンタイム測定を行わないと判断する。   Regarding the availability of scan time measurement, the system configuration confirmation unit 34 refers to the scan time measurement parameter storage unit 33 to determine whether scan time measurement is possible. That is, when the scan time measurement is set in the scan time measurement parameter storage unit 33, the system configuration confirmation unit 34 determines that the scan time measurement is performed, and the scan time measurement is not set. Therefore, the system configuration confirmation unit 34 determines not to perform the scan time measurement.

割り込み回数の測定の可否については、システム構成確認部34は、ユーザプログラム格納部31に格納されているシーケンスプログラムを参照し、このシーケンスプログラム内の割り込みポインタの有無を判定する。通常、シーケンスプログラムにおいて、割り込みポインタにはIを用いた記号が用いられるので、シーケンスプログラムをスキャンすることによって、割り込み回数の測定の可否を確認することができる。つまり、システム構成確認部34は、シーケンスプログラム内に割り込みポインタがある場合には、割り込みがあるものと判定し、逆にシーケンスプログラム内に割り込みポインタがない場合には、割り込みがないものと判定する。   As to whether or not the number of interrupts can be measured, the system configuration confirmation unit 34 refers to a sequence program stored in the user program storage unit 31 and determines the presence or absence of an interrupt pointer in the sequence program. Usually, in a sequence program, a symbol using I is used for an interrupt pointer, and therefore, whether or not the number of interrupts can be measured can be confirmed by scanning the sequence program. That is, the system configuration confirmation unit 34 determines that there is an interrupt if there is an interrupt pointer in the sequence program, and conversely determines that there is no interrupt if there is no interrupt pointer in the sequence program. .

システム構成確認部34は、上記のようにシステム処理の各処理について、実行する必要があるか否かを確認すると、これらの結果をシステム構成情報としてシステム構成情報記憶部35に記憶する。   When the system configuration confirmation unit 34 confirms whether it is necessary to execute each processing of the system processing as described above, the system configuration confirmation unit 34 stores these results as system configuration information in the system configuration information storage unit 35.

システム構成情報記憶部35には、システム構成確認部34によって確認されたシステム処理内の各処理の実行の有無を示すシステム構成情報が格納される。図5は、システム構成情報の一例を示す図である。このシステム構成情報は、4ビットからなり0ビット目(Bit0)には、入力リフレッシュの要否が格納され、1ビット目(Bit1)には、出力リフレッシュの要否が格納され、2ビット目(Bit2)には、スキャンタイム測定の可否が格納され、3ビット目(Bit3)には、割り込み回数測定の可否が設定される。これらは、実行/非実行の2ビットで表すことができる。この図では、実行は「1」で示し、非実行は「0」で表している。なお、この図5に示されるように、システム構成情報のビットは、予めシステム処理内の各処理に対応付けられている。   The system configuration information storage unit 35 stores system configuration information indicating whether or not each process in the system process confirmed by the system configuration confirmation unit 34 is executed. FIG. 5 is a diagram illustrating an example of system configuration information. This system configuration information is composed of 4 bits, the necessity of input refresh is stored in the 0th bit (Bit0), the necessity of output refresh is stored in the first bit (Bit1), and the second bit ( Bit 2) stores whether or not scan time measurement is possible, and the third bit (Bit 3) sets whether or not interrupt count measurement is possible. These can be represented by 2 bits of execution / non-execution. In this figure, execution is indicated by “1” and non-execution is indicated by “0”. As shown in FIG. 5, the bits of the system configuration information are associated in advance with each process in the system process.

システム処理実行部36は、システム構成情報記憶部35に記憶されているシステム構成情報におけるシステム処理内の処理実行の要否に基づいて、システム処理を実行する。   The system processing execution unit 36 executes system processing based on the necessity of processing execution in the system processing in the system configuration information stored in the system configuration information storage unit 35.

つぎに、このようなプログラマブルコントローラ1を構成するCPUユニット10におけるシステム処理の手順について説明する。図6は、CPUユニットにおける動作処理の手順の概略を示すフローチャートである。この図に示されるように、各CPUユニット10では、まずイニシャル処理を実行する(ステップS11)。このイニシャル処理では、システム構成確認部34によるシステム構成情報の作成と、システム処理実行部36によるイニシャル処理が行われる。   Next, a procedure of system processing in the CPU unit 10 constituting such a programmable controller 1 will be described. FIG. 6 is a flowchart showing an outline of a procedure of operation processing in the CPU unit. As shown in this figure, each CPU unit 10 first executes an initial process (step S11). In this initial process, creation of system configuration information by the system configuration confirmation unit 34 and initial processing by the system process execution unit 36 are performed.

ついで、ユーザプログラム実行部32は、ユーザプログラム格納部31に格納されているシーケンスプログラムを実行する(ステップS12)。さらに、システム処理実行部36は、システム構成情報記憶部35内のシステム構成情報に基づいてシステム処理を実行する(ステップS13)。その後、ユーザプログラム実行部32とシステム処理実行部36は、ステップS12のシーケンスプログラムの実行処理の開始からステップS13のシステムプログラムの実行処理の完了までを1スキャンとする処理を、繰り返し実行する。   Next, the user program execution unit 32 executes the sequence program stored in the user program storage unit 31 (step S12). Furthermore, the system process execution unit 36 executes the system process based on the system configuration information in the system configuration information storage unit 35 (step S13). Thereafter, the user program execution unit 32 and the system process execution unit 36 repeatedly execute a process in which one scan is performed from the start of the execution process of the sequence program in step S12 to the completion of the execution process of the system program in step S13.

図7は、図6のイニシャル処理の手順の一例を示すフローチャートであり、図8は、図7のユーザシステム構成チェック処理の手順の一例を示すフローチャートである。イニシャル処理において、まず、システム構成確認部34は、ユーザシステム構成チェックを行う(ステップS21)。   7 is a flowchart showing an example of the procedure of the initial process of FIG. 6, and FIG. 8 is a flowchart showing an example of the procedure of the user system configuration check process of FIG. In the initial process, first, the system configuration confirmation unit 34 performs a user system configuration check (step S21).

このユーザシステム構成チェック処理では、図8に示される処理が行われる。まず、システム構成確認部34は、入出力リフレッシュ可否チェックを行う(ステップS31)。具体的には、システム構成確認部34は、ユーザプログラム格納部31内のシーケンスプログラムをスキャンし、その中に入出力ユニットにアクセスする命令が含まれているか否かを確認する。そして、入出力ユニットにアクセスする命令が含まれている場合には、入出力リフレッシュ処理を行うものと判定し、入出力ユニットにアクセスする命令が含まれていない場合には、入出力リフレッシュ処理を行わないものと判定する。   In this user system configuration check process, the process shown in FIG. 8 is performed. First, the system configuration confirmation unit 34 checks whether input / output refresh is possible (step S31). Specifically, the system configuration confirmation unit 34 scans a sequence program in the user program storage unit 31 and confirms whether or not an instruction for accessing the input / output unit is included therein. If an instruction to access the input / output unit is included, it is determined that the input / output refresh process is performed. If an instruction to access the input / output unit is not included, the input / output refresh process is performed. It is determined not to be performed.

図9−1は、入出力ユニットへアクセスする命令が含まれる場合のシーケンスプログラムの一例を示す図であり、図9−2は、入出力ユニットへアクセスする命令が含まれない場合のシーケンスプログラムの一例を示す図である。   FIG. 9A is a diagram illustrating an example of a sequence program when an instruction to access the input / output unit is included, and FIG. 9B illustrates an example of the sequence program when an instruction to access the input / output unit is not included. It is a figure which shows an example.

図9−1に示されるように、「Y」という文字が入出力ユニットへアクセスする命令として使用される場合には、シーケンスプログラム中に、出力ユニットへアクセスする命令である「Y0」という変数がシーケンスプログラム中に含まれると、システム構成確認部34は、このシーケンスプログラムは出力ユニットの端子のリフレッシュ動作が必要であるものと判定する。   As shown in FIG. 9A, when the character “Y” is used as an instruction to access the input / output unit, a variable “Y0” that is an instruction to access the output unit is included in the sequence program. When included in the sequence program, the system configuration confirmation unit 34 determines that this sequence program requires a refresh operation of the terminals of the output unit.

一方、図9−2に示されるように、シーケンスプログラム中に、入力ユニットと出力ユニットへアクセスするデバイスである「X」と「Y」という文字がまったく含まれない場合には、システム構成確認部34は、このシーケンスプログラムは入出力ユニットの端子のリフレッシュ動作が必要ないものと判定する。   On the other hand, as shown in FIG. 9-2, when the characters “X” and “Y” that are devices for accessing the input unit and the output unit are not included in the sequence program, the system configuration confirmation unit 34, it is determined that this sequence program does not require the refresh operation of the terminals of the input / output unit.

ついで、システム構成確認部34は、スキャンタイム測定パラメータ記憶部33を参照し、スキャンタイム測定の可否についてチェックを行う(ステップS32)。具体的には、スキャンタイム測定パラメータ記憶部33にスキャンタイム測定の実行が設定されている場合には、スキャンタイムの測定を行い、スキャンタイム測定パラメータ記憶部33にスキャンタイム測定の実行が設定されていない場合には、スキャンタイムの測定は行わない。   Next, the system configuration confirmation unit 34 refers to the scan time measurement parameter storage unit 33 and checks whether scan time measurement is possible (step S32). Specifically, when execution of scan time measurement is set in the scan time measurement parameter storage unit 33, scan time measurement is performed, and execution of scan time measurement is set in the scan time measurement parameter storage unit 33. If not, the scan time is not measured.

ついで、システム構成確認部34は、割り込み回数測定可否チェックを行う(ステップS33)。具体的には、システム構成確認部34は、ユーザプログラム格納部31内のシーケンスプログラムをスキャンし、その中に割り込みポインタが含まれるか否かを確認する。そして、書込ポインタが含まれている場合には、割り込み回数測定を行うものと判定し、割り込みポインタが含まれていない場合には、割り込み回数測定を行わないものと判定する。   Next, the system configuration confirmation unit 34 performs an interrupt count measurement availability check (step S33). Specifically, the system configuration confirmation unit 34 scans the sequence program in the user program storage unit 31 and confirms whether or not an interrupt pointer is included therein. When the write pointer is included, it is determined that the interrupt count is measured. When the interrupt pointer is not included, it is determined that the interrupt count is not measured.

図10は、割り込みポインタを含むシーケンスプログラムの一例を示す図である。この図10に示されるように、割り込みポインタとして「I」という文字が使用される場合には、シーケンスプログラム中に「I10」や「I50」という割り込みポインタが含まれると、システム構成確認部34は、このシーケンスプログラムは割り込み回数の測定が必要であると判定する。   FIG. 10 is a diagram illustrating an example of a sequence program including an interrupt pointer. As shown in FIG. 10, when the letter “I” is used as an interrupt pointer, the system configuration confirmation unit 34 displays the interrupt pointer “I10” or “I50” in the sequence program. The sequence program determines that the number of interrupts needs to be measured.

その後、システム構成確認部34は、上記のステップS31〜S33で得られた結果を、システム構成情報記憶部35内の対応する領域に書込み、システム構成情報を作成する(ステップS34)。以上によって、ユーザシステム構成チェック処理が終了する。   Thereafter, the system configuration confirmation unit 34 writes the results obtained in the above steps S31 to S33 into the corresponding area in the system configuration information storage unit 35, and creates system configuration information (step S34). Thus, the user system configuration check process ends.

その後、図7に戻り、システム処理実行部36は、CPUユニット10の動作に必要なその他のイニシャル処理を実行し(ステップS22)、イニシャル処理が終了する。   Thereafter, returning to FIG. 7, the system process execution unit 36 executes other initial processes necessary for the operation of the CPU unit 10 (step S22), and the initial process ends.

図11は、図6のステップS13におけるシステム処理の手順の一例を示すフローチャートである。まず、システム構成確認部34は、シーケンスプログラムの変更などのシステム構成の変更があったか否かを判定する(ステップS51)。システム構成の変更がある場合(ステップS51でYesの場合)には、システム構成確認部34は、ユーザシステム構成チェック処理を行う(ステップS52)。このユーザシステム構成チェック処理は、図8で説明した処理と同じである。   FIG. 11 is a flowchart showing an example of the procedure of the system process in step S13 of FIG. First, the system configuration confirmation unit 34 determines whether or not there has been a change in the system configuration such as a change in the sequence program (step S51). When there is a change in the system configuration (Yes in step S51), the system configuration confirmation unit 34 performs a user system configuration check process (step S52). This user system configuration check process is the same as the process described with reference to FIG.

一方、システム構成の変更がない場合(ステップS51でNoの場合)には、システム処理実行部36は、システム構成情報記憶部35を参照して、出力リフレッシュ処理が必要か否かを判定する(ステップS53)。図5に示されるシステム構成情報の例では、出力リフレッシュの実行の可否はBit1に書き込まれているので、システム処理実行部36は、システム構成情報記憶部35のBit1を参照して、実行の可否を取得する。   On the other hand, if there is no change in the system configuration (No in step S51), the system process execution unit 36 refers to the system configuration information storage unit 35 to determine whether or not an output refresh process is necessary ( Step S53). In the example of the system configuration information shown in FIG. 5, whether or not output refresh can be executed is written in Bit 1, so the system processing execution unit 36 refers to Bit 1 in the system configuration information storage unit 35 and determines whether or not execution is possible. To get.

出力リフレッシュ処理が必要な場合(ステップS53でYesの場合)には、システム処理実行部36は、出力ユニット52へ出力情報を反映させる処理を行う(ステップS54)。その後、またはステップS53で出力リフレッシュ処理が必要でない場合(ステップS53でNoの場合)には、システム処理実行部36は、スキャンタイム測定が必要か否かを判定する(ステップS55)。図5に示されるシステム構成情報の例では、スキャンタイム測定の可否は、Bit2に書き込まれているので、システム処理実行部36は、システム構成情報記憶部35のBit2を参照して、実行の可否を取得する。   When the output refresh process is necessary (Yes in step S53), the system process execution unit 36 performs a process of reflecting the output information on the output unit 52 (step S54). After that, or when the output refresh process is not necessary in step S53 (No in step S53), the system process execution unit 36 determines whether or not the scan time measurement is necessary (step S55). In the example of the system configuration information shown in FIG. 5, whether or not the scan time measurement is possible is written in Bit 2, so the system process execution unit 36 refers to Bit 2 in the system configuration information storage unit 35 and determines whether or not execution is possible. To get.

スキャンタイム測定が必要な場合(ステップS55でYesの場合)には、システム処理実行部36は、スキャンタイムの測定処理を行う(ステップS56)。その後、またはステップS55でスキャンタイム測定が必要でない場合(ステップS55でNoの場合)には、システム処理実行部36は、ハードウェアの異常チェックを行う(ステップS57)。   If scan time measurement is necessary (Yes in step S55), the system process execution unit 36 performs scan time measurement processing (step S56). Thereafter, or when scan time measurement is not necessary in step S55 (No in step S55), the system process execution unit 36 performs a hardware abnormality check (step S57).

ついで、システム処理実行部36は、システム構成情報記憶部35を参照して、割り込み回数の測定処理が必要か否かを判定する(ステップS58)。図5に示されるシステム構成情報の例では、割り込み回数測定の要否は、Bit3に書き込まれているので、システム処理実行部36は、システム構成情報記憶部35のBit3を参照して、処理実行の要否を取得する。   Next, the system process execution unit 36 refers to the system configuration information storage unit 35 and determines whether or not the interrupt count measurement process is necessary (step S58). In the example of the system configuration information shown in FIG. 5, the necessity of measuring the number of interrupts is written in Bit 3, so the system process execution unit 36 executes the process with reference to Bit 3 in the system configuration information storage unit 35. Acquire the necessity of.

割り込み回数の測定処理が必要な場合(ステップS58でYesの場合)には、システム処理実行部36は、割り込み回数の測定処理を実行する(ステップS59)。その後、またはステップS58で割り込み回数の測定処理が不要な場合(ステップS58でNoの場合)には、システム処理実行部36は、入力リフレッシュ処理が必要か否かを判定する(ステップS60)。図5に示されるシステム構成情報の例では、入力リフレッシュの実行の可否はBit0に書き込まれているので、システム処理実行部36は、システム構成情報記憶部35のBit0を参照して、処理実行の可否を取得する。   When the interrupt count measurement process is necessary (Yes in step S58), the system process execution unit 36 executes the interrupt count measurement process (step S59). Thereafter, or when the interrupt count measurement process is unnecessary in step S58 (No in step S58), the system process execution unit 36 determines whether the input refresh process is necessary (step S60). In the example of the system configuration information shown in FIG. 5, whether or not the input refresh can be executed is written in Bit 0, so the system process execution unit 36 refers to Bit 0 in the system configuration information storage unit 35 and executes the process execution. Get the availability.

入力リフレッシュ処理が必要な場合(ステップS60でYesの場合)には、システム処理実行部36は、入力ユニット51からの入力情報を反映させる処理を行う(ステップS61)。その後、またはステップS60で入力リフレッシュ処理が不要な場合(ステップS60でNoの場合)には、システム処理が終了する。   When the input refresh process is necessary (Yes in step S60), the system process execution unit 36 performs a process of reflecting the input information from the input unit 51 (step S61). Thereafter, or when the input refresh process is unnecessary in step S60 (in the case of No in step S60), the system process ends.

この実施の形態によるシステム処理の流れの具体的な例について説明する。図12は、プログラマブルコントローラの構成の一例を示す図である。このプログラマブルコントローラ1は、ベースユニット20上に、入出力制御を専用に行う入出力制御専用CPUユニット10Cと、入出力制御専用CPUユニット10Cから渡されるデータに基づいて所定の演算処理を専用に行う高速演算用CPUユニット10Dと、外部機器からの入力情報を受ける入力ユニット51と、入出力制御専用CPUユニット10Cからの出力信号を外部機器へ伝達する出力ユニット52と、が装着されている。   A specific example of the flow of system processing according to this embodiment will be described. FIG. 12 is a diagram illustrating an example of the configuration of the programmable controller. The programmable controller 1 performs dedicated arithmetic processing on the base unit 20 based on the input / output control dedicated CPU unit 10C that performs dedicated input / output control and the data passed from the input / output control dedicated CPU unit 10C. A high-speed CPU unit 10D, an input unit 51 that receives input information from an external device, and an output unit 52 that transmits an output signal from the input / output control dedicated CPU unit 10C to the external device are mounted.

ここで、入出力制御専用CPUユニット10Cは、上記した入力ユニット51と出力ユニット52へのアクセスのほかに、スキャンタイムの測定および割り込み回数の測定を実行するものとする。また、高速演算用CPUユニット10Dは、上記した入力ユニット51と出力ユニット52とのやり取りを行わないほかに、スキャンタイムの測定と割り込み回数の測定も実行しないものとする。   Here, the input / output control dedicated CPU unit 10C performs the scan time measurement and the interrupt count measurement in addition to the access to the input unit 51 and the output unit 52 described above. The high-speed arithmetic CPU unit 10D does not perform the exchange between the input unit 51 and the output unit 52, and does not perform the measurement of the scan time and the number of interrupts.

図13は、入出力制御専用CPUユニットにおけるシステム処理の手順の一例を示すフローチャートであり、図14は、高速演算用CPUユニットにおけるシステム処理の手順の一例を示すフローチャートである。   FIG. 13 is a flowchart showing an example of a procedure of system processing in the CPU unit dedicated to input / output control, and FIG. 14 is a flowchart showing an example of a procedure of system processing in the CPU unit for high speed calculation.

入出力制御専用CPUユニット10Cにおけるシステム処理は、図13に示されるように、1スキャンごとに、出力ユニット52へ出力情報を反映させ(ステップS101)、スキャンタイムの測定を行い(ステップS102)、ハードウェアの異常チェックを行い(ステップS103)、割り込み回数の測定チェックを行い(ステップS104)、入力ユニット51からの入力情報を反映させる(ステップS105)という処理を実行する。   In the system processing in the CPU unit 10C dedicated to input / output control, as shown in FIG. 13, the output information is reflected to the output unit 52 for each scan (step S101), and the scan time is measured (step S102). A hardware abnormality check is performed (step S103), an interrupt count measurement check is performed (step S104), and a process of reflecting input information from the input unit 51 (step S105) is executed.

一方、高速演算用CPUユニット10Dにおけるシステム処理は、図14に示されるように、1スキャンごとに、スキャンタイムの測定を行い(ステップS111)、ハードウェアの異常チェックを行う(ステップS112)という処理を実行する。   On the other hand, as shown in FIG. 14, the system processing in the high-speed arithmetic CPU unit 10D is a process of measuring the scan time for each scan (step S111) and checking for hardware abnormality (step S112). Execute.

このように、入力ユニット51と出力ユニット52へのアクセスを行わない高速演算用CPUユニット10Dのシステム処理は、入力ユニット51と出力ユニット52へのアクセスを行う入出力制御専用CPUユニット10Cのシステム処理と比較して、出力ユニット52へ出力情報を反映させる処理、スキャンタイムの測定処理、割り込み回数測定チェック処理、および入力ユニット51からの入力情報を反映させる処理を実行しなくて済み、その文の時間を短縮することができる。その結果、高速演算用CPUユニット10Dにおける1スキャンのスキャンタイムを短縮することが可能になる。   As described above, the system processing of the high-speed arithmetic CPU unit 10D that does not access the input unit 51 and the output unit 52 is the system processing of the CPU unit 10C dedicated to input / output control that accesses the input unit 51 and the output unit 52. Compared with the above, it is not necessary to execute processing for reflecting output information to the output unit 52, scan time measurement processing, interrupt count measurement check processing, and processing for reflecting input information from the input unit 51. Time can be shortened. As a result, it is possible to shorten the scan time of one scan in the high-speed arithmetic CPU unit 10D.

なお、CPUユニットにおける入出力ユニットへのアクセスは、入出力点数が同じであれば、CPUユニットの種類に関係なくほぼどのCPUユニットも同じ時間(入出力点数が16点ユニットの場合、約7μs。また、入出力点数が16×n(nは自然数)ユニットの場合、16点ユニット×n台分と同等の性能となるので、約7μs×n[μs]。)となる。そのため、入出力ユニットへのアクセスの有無によるスキャンタイムの短縮時間は、ベースユニット20上に装着される入力ユニット51と出力ユニット52の総数に比例して大きくなる。この例の場合、ベースユニット20には1個の入力ユニット51と1個の出力ユニット52と(ともに入出力点数が16点)が装着されているので、高速演算用CPUユニット10Dは、入出力制御専用CPUユニット10Cに比較して、約14μs程度スキャンタイムを高速化することが可能となった。   The access to the input / output unit in the CPU unit is the same for almost any CPU unit regardless of the type of CPU unit if the number of input / output points is the same (about 7 μs when the number of input / output points is 16 points). In addition, when the number of input / output points is 16 × n (n is a natural number) unit, the performance is equivalent to that of 16 point units × n units, and therefore, approximately 7 μs × n [μs]. Therefore, the reduction time of the scan time depending on whether or not the input / output unit is accessed increases in proportion to the total number of input units 51 and output units 52 mounted on the base unit 20. In this example, since the base unit 20 is provided with one input unit 51 and one output unit 52 (both 16 input / output points), the high-speed calculation CPU unit 10D Compared with the control-only CPU unit 10C, the scan time can be increased by about 14 μs.

また、上述したCPUユニット10におけるシーケンサ動作処理方法を、これらの方法の処理手順が格納されたプログラムとして構成し、このプログラムをCPU(MPU),ROM,RAMを有するコンピュータで実行することによって実現することができる。   Further, the above-described sequencer operation processing method in the CPU unit 10 is implemented as a program storing the processing procedures of these methods, and is executed by a computer having a CPU (MPU), ROM, and RAM. be able to.

この実施の形態によれば、入出力ユニットと情報のやり取りを行わないCPUユニットについて、1スキャンごとに行われるシステム処理中の不要な処理を実行させないようにしたので、スキャンタイムを短縮することができるという効果を有する。   According to this embodiment, the CPU unit that does not exchange information with the input / output unit is prevented from executing unnecessary processing during system processing that is performed for each scan, so that the scan time can be shortened. It has the effect of being able to.

以上のように、この発明にかかるプログラマブルコントローラは、入出力ユニットとの間で情報のやり取りを行わないCPUユニットを含む複数のCPUユニットを備えるプログラマブルコントローラに有用である。   As described above, the programmable controller according to the present invention is useful for a programmable controller including a plurality of CPU units including a CPU unit that does not exchange information with an input / output unit.

この発明が適用されるプログラマブルコントローラの一例を概略的に示す図である。It is a figure which shows roughly an example of the programmable controller to which this invention is applied. ベースユニットに複数のCPUユニットが装着されたプログラマブルコントローラの構成を模式的に示すブロック図である。It is a block diagram which shows typically the structure of the programmable controller by which the some CPU unit was mounted | worn with the base unit. この発明によるCPUユニットの機能構成を模式的に示すブロック図である。It is a block diagram which shows typically the function structure of the CPU unit by this invention. システム処理の個々の処理の実行の有無についての判定条件の一例を示す図である。It is a figure which shows an example of the determination conditions about the presence or absence of execution of each process of a system process. システム構成情報の一例を示す図である。It is a figure which shows an example of system configuration information. CPUユニットにおける動作処理の手順の概略を示すフローチャートである。It is a flowchart which shows the outline of the procedure of the operation process in a CPU unit. 図6のイニシャル処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the initial process of FIG. 図7のユーザシステム構成チェック処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of a user system structure check process of FIG. 入出力ユニットへアクセスする命令が含まれる場合のシーケンスプログラムの一例を示す図である。It is a figure which shows an example of the sequence program in case the instruction | indication which accesses an input / output unit is included. 入出力ユニットへアクセスする命令が含まれない場合のシーケンスプログラムの一例を示す図である。It is a figure which shows an example of the sequence program in case the instruction | indication which accesses an input / output unit is not included. 割り込みポインタを含むシーケンスプログラムの一例を示す図である。It is a figure which shows an example of the sequence program containing an interruption pointer. 図6のステップS13におけるシステム処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the system process in step S13 of FIG. プログラマブルコントローラの構成の一例を示す図である。It is a figure which shows an example of a structure of a programmable controller. 入出力制御専用CPUユニットにおけるシステム処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the system processing in a CPU unit only for input / output control. 高速演算用CPUユニットにおけるシステム処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of the system process in the CPU unit for high speed calculation. 図6のシステム処理の手順の一例を示す図である。It is a figure which shows an example of the procedure of the system processing of FIG.

符号の説明Explanation of symbols

1 プログラマブルコントローラ
10,10A,10B,10C,10D CPUユニット
11 MPU
12 システムプログラム格納部
13 システムワーク記憶部
14 データバスインタフェース
15,31 ユーザプログラム格納部
16 ユーザデータ記憶部
17 内部バス
20 ベースユニット
21 データバス
32 ユーザプログラム実行部
33 スキャンタイム測定パラメータ記憶部
34 システム構成確認部
35 システム構成情報記憶部
36 システム処理実行部
37 制御部
51 入力ユニット
52 出力ユニット
1 Programmable Controller 10, 10A, 10B, 10C, 10D CPU Unit 11 MPU
12 System Program Storage Unit 13 System Work Storage Unit 14 Data Bus Interface 15, 31 User Program Storage Unit 16 User Data Storage Unit 17 Internal Bus 20 Base Unit 21 Data Bus 32 User Program Execution Unit 33 Scan Time Measurement Parameter Storage Unit 34 System Configuration Confirmation unit 35 System configuration information storage unit 36 System processing execution unit 37 Control unit 51 Input unit 52 Output unit

Claims (9)

プログラマブルコントローラを構成するCPUユニットにおいて、
シーケンスプログラムを格納するユーザプログラム格納手段と、
前記ユーザプログラム格納手段に格納されたシーケンスプログラムを実行するユーザプログラム実行手段と、
予め定められたシステム処理を実行するシステム処理実行手段と、
前記システム処理内の個々の処理の実行が必要か否かを判定し、前記個々の処理の実行の要否を示すシステム構成情報を作成するシステム構成確認手段と、
を備え、
前記システム処理実行手段は、前記システム構成情報に基づいて前記システム処理を実行することを特徴とするCPUユニット。
In the CPU unit constituting the programmable controller,
User program storage means for storing a sequence program;
User program execution means for executing a sequence program stored in the user program storage means;
System process execution means for executing a predetermined system process;
A system configuration confirmation unit that determines whether or not each process in the system process needs to be executed, and creates system configuration information indicating whether or not the individual process needs to be executed;
With
The CPU processing unit executes the system processing based on the system configuration information.
前記システム構成確認手段は、前記ユーザプログラム格納手段内の前記シーケンスプログラムに入力ユニットまたは出力ユニットとの間の情報のやり取りがあるか否かを確認し、前記入力ユニットまたは前記出力ユニットとの間の情報のやり取りがない場合には、前記入力ユニットからの入力情報の反映処理または前記出力ユニットへの出力情報の反映処理を実行不要とする前記システム構成情報を作成することを特徴とする請求項1に記載のCPUユニット。   The system configuration confirmation means confirms whether or not there is information exchange between the input unit or the output unit in the sequence program in the user program storage means, and between the input unit or the output unit, 2. The system configuration information according to claim 1, wherein when there is no exchange of information, the system configuration information that does not require execution of a reflection process of input information from the input unit or a reflection process of output information to the output unit is created. The CPU unit described in 1. 前記システム構成確認手段は、前記ユーザプログラム格納手段内の前記シーケンスプログラムに割り込み処理があるか否かを確認し、割り込み回数の測定処理が含まれない場合には、前記割り込み回数の測定処理を実行不要とする前記システム構成情報を作成することを特徴とする請求項1または2に記載のCPUユニット。   The system configuration confirmation means confirms whether or not the sequence program in the user program storage means has an interrupt process, and if the interrupt count measurement process is not included, executes the interrupt count measurement process 3. The CPU unit according to claim 1, wherein the system configuration information that is unnecessary is created. 前記プログラマブルコントローラの使用者によって設定されるスキャンタイムの測定の可否を示すスキャンタイム測定パラメータを記憶するスキャンタイム測定パラメータ記憶手段をさらに備え、
前記システム構成確認手段は、前記スキャンタイム測定パラメータ記憶手段内の前記スキャンタイム測定パラメータを確認し、スキャンタイムの測定処理が不要と設定されている場合には、前記スキャンタイムの測定処理を実行不要とする前記システム構成情報を作成することを特徴とする請求項1〜3のいずれか1つに記載のCPUユニット。
A scan time measurement parameter storage means for storing a scan time measurement parameter indicating whether or not a scan time can be measured set by a user of the programmable controller;
The system configuration confirmation means confirms the scan time measurement parameter in the scan time measurement parameter storage means, and when the scan time measurement process is set to be unnecessary, the scan time measurement process need not be executed. The CPU unit according to claim 1, wherein the system configuration information is created.
プログラマブルコントローラを構成するCPUユニットにおけるシステム処理実行方法において、
予め定められたシステム処理を構成する個々の処理の実行が必要か否かを判定し、前記個々の処理の実行の要否を示すシステム構成情報を作成するシステム構成確認工程と、
シーケンスプログラムを実行するユーザプログラム実行工程と、
前記システム構成情報に基づいて前記システム処理を実行するシステム処理実行工程と、
を含むことを特徴とするシステム処理実行方法。
In the system processing execution method in the CPU unit constituting the programmable controller,
A system configuration confirmation step for determining whether or not execution of individual processes constituting a predetermined system process is necessary, and creating system configuration information indicating the necessity of execution of the individual processes;
A user program execution step for executing a sequence program;
A system processing execution step for executing the system processing based on the system configuration information;
A system processing execution method comprising:
前記システム構成確認工程では、前記ユーザプログラム実行工程で実行される前記シーケンスプログラムに入力ユニットまたは出力ユニットとの間の情報のやり取りがあるか否かを確認し、前記入力ユニットまたは前記出力ユニットとの間の情報のやり取りがない場合には、前記入力ユニットからの入力情報の反映処理または前記出力ユニットへの出力情報の反映処理を実行不要とする前記システム構成情報を作成することを特徴とする請求項5に記載のシステム処理実行方法。   In the system configuration confirmation step, it is confirmed whether or not the sequence program executed in the user program execution step includes information exchange between the input unit or the output unit, and The system configuration information is created so that execution of input information reflection processing from the input unit or output information reflection processing to the output unit is not required when there is no exchange of information between the input units. Item 6. The system processing execution method according to Item 5. 前記システム構成確認工程では、前記ユーザプログラム実行工程で実行される前記シーケンスプログラムに割り込み処理があるか否かを確認し、割り込み回数の測定処理が含まれない場合には、前記割り込み回数の測定処理を実行不要とする前記システム構成情報を作成することを特徴とする請求項5または6に記載のシステム処理実行方法。   In the system configuration confirmation step, it is confirmed whether or not the sequence program executed in the user program execution step includes interrupt processing. If the interrupt count measurement processing is not included, the interrupt count measurement processing is performed. 7. The system processing execution method according to claim 5 or 6, wherein the system configuration information that makes execution unnecessary is created. 前記システム構成確認工程の前に、前記プログラマブルコントローラの使用者によって設定されるスキャンタイムの測定の可否を示すスキャンタイム測定パラメータを、スキャンタイム測定パラメータ記憶手段に記憶するパラメータ記憶工程をさらに含み、
前記システム構成確認工程では、前記スキャンタイム測定パラメータ記憶手段内の前記スキャンタイム測定パラメータを確認し、スキャンタイムの測定処理が不要と設定されている場合には、前記スキャンタイムの測定処理を実行不要とする前記システム構成情報を作成することを特徴とする請求項5〜7のいずれか1つに記載のシステム処理実行方法。
Before the system configuration confirmation step, further includes a parameter storage step of storing a scan time measurement parameter indicating whether or not the scan time can be measured set by a user of the programmable controller in a scan time measurement parameter storage unit,
In the system configuration confirmation step, the scan time measurement parameter in the scan time measurement parameter storage means is confirmed, and when the scan time measurement process is set to be unnecessary, the scan time measurement process is not required to be executed. The system processing execution method according to claim 5, wherein the system configuration information is created.
請求項5〜8のいずれか1つに記載のシステム処理実行方法をCPUユニットに実行させるプログラム。   The program which makes a CPU unit perform the system processing execution method as described in any one of Claims 5-8.
JP2006333667A 2006-12-11 2006-12-11 CPU unit, system processing execution method, and program for causing CPU unit to execute the method Expired - Fee Related JP4584235B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006333667A JP4584235B2 (en) 2006-12-11 2006-12-11 CPU unit, system processing execution method, and program for causing CPU unit to execute the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006333667A JP4584235B2 (en) 2006-12-11 2006-12-11 CPU unit, system processing execution method, and program for causing CPU unit to execute the method

Publications (2)

Publication Number Publication Date
JP2008146402A true JP2008146402A (en) 2008-06-26
JP4584235B2 JP4584235B2 (en) 2010-11-17

Family

ID=39606509

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006333667A Expired - Fee Related JP4584235B2 (en) 2006-12-11 2006-12-11 CPU unit, system processing execution method, and program for causing CPU unit to execute the method

Country Status (1)

Country Link
JP (1) JP4584235B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5116906B1 (en) * 2012-04-04 2013-01-09 三菱電機株式会社 PLC design equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63228301A (en) * 1987-03-18 1988-09-22 Omron Tateisi Electronics Co Programmable controller
JPH04235604A (en) * 1991-01-10 1992-08-24 Fuji Electric Co Ltd Programmable controller

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63228301A (en) * 1987-03-18 1988-09-22 Omron Tateisi Electronics Co Programmable controller
JPH04235604A (en) * 1991-01-10 1992-08-24 Fuji Electric Co Ltd Programmable controller

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5116906B1 (en) * 2012-04-04 2013-01-09 三菱電機株式会社 PLC design equipment
WO2013150618A1 (en) * 2012-04-04 2013-10-10 三菱電機株式会社 Plc designing device
KR101372197B1 (en) * 2012-04-04 2014-03-07 미쓰비시덴키 가부시키가이샤 Plc designing apparatus
TWI472889B (en) * 2012-04-04 2015-02-11 Mitsubishi Electric Corp Plc design device

Also Published As

Publication number Publication date
JP4584235B2 (en) 2010-11-17

Similar Documents

Publication Publication Date Title
EP2816427B1 (en) Plc simulation system, plc simulator, recording medium, and simulation method
JPH03244003A (en) Partial executing method for programmable controller and sequence program
EP2533114A1 (en) Controller support device, controller support program to be executed in said device, recording medium storing said program, and method for estimating execution duration of control program
US20100312541A1 (en) Program test device and program
WO2012056537A1 (en) Programmable controller
JP4584235B2 (en) CPU unit, system processing execution method, and program for causing CPU unit to execute the method
JP5996150B2 (en) Programmable display and drawing software
JP2016045712A (en) Programmable logic controller
CN116089124A (en) Communication method, device and medium of simulation system
JP2020149439A (en) Control system, support unit, and program for support unit
JP6366811B2 (en) Inspection device, inspection method, and program
JP4529964B2 (en) Simulation device, simulation method, and simulation program
JP3892873B2 (en) Programmable controller
JP6463445B1 (en) In-vehicle control device
CN112885403A (en) Function test method, device and equipment of Flash controller
JP2004265001A (en) Process control apparatus and cpu unit
JPH04303209A (en) Programmable controller
JP5413793B2 (en) Measuring system
JPH02121039A (en) Load prediction simulation system for computer system
JP2018156528A (en) Measurement system, measurement program, and control method
JP2006039843A (en) Ram test circuit, information processing apparatus, and ram testing method
JP6620653B2 (en) Emulator for plant monitoring and control system
JP2023151742A (en) Control system, controller, and control program
CN108541307A (en) Programmable controller and synchronous control program
JP6631063B2 (en) Electronic equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20081217

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100325

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100330

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100427

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100901

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130910

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees