JP3439945B2 - Programmable controller and sequence program execution method - Google Patents

Programmable controller and sequence program execution method

Info

Publication number
JP3439945B2
JP3439945B2 JP13559297A JP13559297A JP3439945B2 JP 3439945 B2 JP3439945 B2 JP 3439945B2 JP 13559297 A JP13559297 A JP 13559297A JP 13559297 A JP13559297 A JP 13559297A JP 3439945 B2 JP3439945 B2 JP 3439945B2
Authority
JP
Japan
Prior art keywords
program
execution
information
processing
sequence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP13559297A
Other languages
Japanese (ja)
Other versions
JPH10326104A (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.)
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 JP13559297A priority Critical patent/JP3439945B2/en
Publication of JPH10326104A publication Critical patent/JPH10326104A/en
Application granted granted Critical
Publication of JP3439945B2 publication Critical patent/JP3439945B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】この発明は、プログラマブル
コントローラ(プログラマブルロジックコントローラ:
PLC)およびシーケンスプログラム実行方法に関し、
特に複数個のシーケンスプログラムを連続して繰り返し
実行させる場合において所定条件で或る特定のシーケン
スプログラムを実行させるプログラマブルコントローラ
およびシーケンスプログラム実行方法に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller (programmable logic controller:
PLC) and sequence program execution method,
In particular, the present invention relates to a programmable controller and a sequence program execution method for executing a specific sequence program under a predetermined condition when a plurality of sequence programs are continuously and repeatedly executed.

【0002】[0002]

【従来の技術】図13は従来のプログラマブルコントロ
ーラ(プログラマブルコントローラ:PLC)のハード
ウエア構成を示している。プログラマブルコントローラ
1は、CPU2と、システムプログラムを格納したプロ
グラムメモリ3と、デバイス情報を格納したデバイスメ
モリ4と、ユーザデータメモリ5と、通信バッファ6と
を有し、通信バッファ6を介して外部周辺機器7とデー
タ通信することができる。
2. Description of the Related Art FIG. 13 shows a hardware configuration of a conventional programmable controller (programmable controller: PLC). The programmable controller 1 has a CPU 2, a program memory 3 storing a system program, a device memory 4 storing device information, a user data memory 5, and a communication buffer 6, and the external peripherals via the communication buffer 6. Data communication with the device 7 is possible.

【0003】ユーザデータメモリ5には、プログラム情
報テーブル10を含むパラメータ格納部8と、シーケン
スプログラム格納部9とが割り当てられており、パラメ
ータ格納部8のプログラム情報テーブル10にはプログ
ラム情報(プログラム名および属性)が書き込まれ、シ
ーケンスプログラム格納部9には各シーケンスプログラ
ミングA、B、Cが格納される(図15参照)。
A parameter storage unit 8 including a program information table 10 and a sequence program storage unit 9 are allocated to the user data memory 5, and the program information (program name) is stored in the program information table 10 of the parameter storage unit 8. And attribute) are written, and each sequence programming A, B, C is stored in the sequence program storage unit 9 (see FIG. 15).

【0004】つぎにプログラマブルコントローラ1のC
PU2により実行されるシステムプログラムの処理を図
14に示されているフローチャートと図15に示されて
いる動作図とを参照として説明する。
Next, C of the programmable controller 1
The processing of the system program executed by PU2 will be described with reference to the flowchart shown in FIG. 14 and the operation diagram shown in FIG.

【0005】まず、プログラム情報取得処理として、パ
ラメータ格納部8のプログラム情報テーブル10からプ
ログラム情報を取得する(ステップS100)。ここ
で、プログラム情報テーブル10から取得するプログラ
ム情報は、ユーザデータメモリ5のシーケンスプログラ
ム格納部9に格納されている各シーケンスプログラムの
プログラム名および属性である(図15(a)参照)。
First, as program information acquisition processing, program information is acquired from the program information table 10 of the parameter storage unit 8 (step S100). Here, the program information acquired from the program information table 10 is the program name and attribute of each sequence program stored in the sequence program storage unit 9 of the user data memory 5 (see FIG. 15A).

【0006】つぎに、イニシャルプログラム実行処理と
して、ステップS100で取得したプログラム情報のプ
ログラム名および属性から、シーケンスプログラム格納
部9(図15(b)参照)に格納されているプログラム
Aを実行する(ステップS101)。
Next, as the initial program execution processing, the program A stored in the sequence program storage section 9 (see FIG. 15B) is executed from the program name and attribute of the program information acquired in step S100 (see FIG. 15B). Step S101).

【0007】つぎに、スキャンプログラム実行処理とし
て、プログラム情報のプログラム名および属性から、シ
ーケンスプログラム格納部9のプログラムBを実行する
(ステップS102)。
Next, as the scan program execution process, the program B in the sequence program storage unit 9 is executed from the program name and attribute of the program information (step S102).

【0008】つぎに、他スキャンプログラム有無判別処
理として、プログラム情報のプログラム名および属性か
ら、他のスキャンプログラムの有無を判別する(ステッ
プS103)。他のスキャンプログラムがあれば、次ス
キャンプログラム移動処理として、そのシーケンスプロ
グラムへの移動を行い(ステップS104)、この後に
スキャンプログラム実行処理として、そのプログラム
(プログラムC)を実行する(ステップS102)。
Next, as another scan program presence / absence determining process, the presence / absence of another scan program is determined from the program name and attribute of the program information (step S103). If there is another scan program, it moves to the sequence program as a next scan program moving process (step S104), and then executes that program (program C) as a scan program executing process (step S102).

【0009】これに対し、他のスキャンプログラムがな
ければ、ステップS102に直接戻り、スキャンプログ
ラム実行処理からを繰り返し実行する。
On the other hand, if there is no other scan program, the process directly returns to step S102 and the steps from the scan program execution process are repeated.

【0010】以上のような処理により、図15(c)に
示されているような順序にてシーケンスプログラムが実
行される。
By the above processing, the sequence program is executed in the order as shown in FIG.

【0011】このため、たとえば、プログラムCの実行
有無をビットデバイスのオン/オフの状態によって決定
する場合には、図16(a)に示されているプログラム
Bに、図16(b)に示されているように、参照ビット
情報によるシーケンスジャンプ処理ステップ(ステップ
S200)を追加し、図16(c)に示されているプロ
グラムCには、図16(d)に示されているように、ジ
ャンプ先ポインタPn(たとえば、P0)と、シーケン
スリターン処理ステップ(ステップS300)を追加す
る必要がある。
Therefore, for example, in the case of determining whether the program C is executed or not depending on the ON / OFF state of the bit device, the program B shown in FIG. 16A and the program B shown in FIG. 16C, a sequence jump processing step (step S200) based on reference bit information is added, and the program C shown in FIG. It is necessary to add a jump destination pointer Pn (for example, P0) and a sequence return processing step (step S300).

【0012】また、プログラムCの実行有無をワードデ
バイスのオン/オフの値の状態によって決定する場合に
は、図17(a)に示されているプログラムBに、図1
7(b)に示されているように、ワード情報によるシー
ケンスジャンプ処理ステップ(ステップS201)を追
加し、図17(c)に示されているプログラムCには、
図17(d)に示されているように、ジャンプ先ポイン
タPn(たとえば、P0)と、シーケンスリターン処理
ステップ(ステップS300)を追加する必要がある。
Further, in the case of determining whether the program C is to be executed or not depending on the ON / OFF state of the word device, the program B shown in FIG.
As shown in FIG. 7 (b), a sequence jump processing step (step S201) based on word information is added, and the program C shown in FIG.
As shown in FIG. 17D, it is necessary to add a jump destination pointer Pn (for example, P0) and a sequence return processing step (step S300).

【0013】また、プログラムCの実行有無をプログラ
ミング/デバックユニットなどの外部周辺機器からの要
求によって決定する場合には、図18(a)に示されて
いるプログラムBに、図18(b)に示されているよう
に、周辺要求によるシーケンスジャンプ処理ステップ
(ステップS202)を追加し、図18(c)に示され
ているプログラムCには、図18(d)に示されている
ように、ジャンプ先ポインタPn(たとえば、P0)
と、シーケンスリターン処理ステップ(ステップS30
0)を追加する必要がある。
When determining whether to execute the program C according to a request from an external peripheral device such as a programming / debug unit, the program B shown in FIG. 18A and the program B shown in FIG. As shown, a sequence jump processing step (step S202) by a peripheral request is added, and in the program C shown in FIG. 18C, as shown in FIG. Jump destination pointer Pn (for example, P0)
And a sequence return processing step (step S30
0) needs to be added.

【0014】また、プログラムCの実行有無をプログラ
ムの実行回数によって決定する場合には、図19(a)
に示されているプログラムBに、図19(b)に示され
ているように、プログラム実行回数によるシーケンスジ
ャンプ処理ステップ(ステップS203〜ステップS2
05)を追加し、図19(c)に示されているプログラ
ムCには、図19(d)に示されているように、ジャン
プ先ポインタPn(たとえば、P0)と、シーケンスリ
ターン処理ステップ(ステップS300)を追加する必
要がある。
Further, in the case of determining whether or not the program C is executed by the number of times the program is executed, FIG.
In the program B shown in FIG. 19B, as shown in FIG. 19B, the sequence jump processing step (steps S203 to S2) depending on the number of times the program is executed.
05) is added to the program C shown in FIG. 19C, as shown in FIG. 19D, the jump destination pointer Pn (for example, P0) and the sequence return processing step ( Step S300) needs to be added.

【0015】また、プログラムCの実行有無を時間によ
って決定する場合には、図20(a)に示されているプ
ログラムBに、図20(b)に示されているように、時
間によるシーケンスジャンプ処理ステップ(ステップS
206〜ステップS207)を追加し、図20(c)に
示されているプログラムCには、図20(d)に示され
ているように、ジャンプ先ポインタPn(たとえば、P
0)と、シーケンスリターン処理ステップ(ステップS
300)を追加する必要がある。
Further, in the case of determining whether or not the program C is executed by time, as shown in FIG. 20 (b), the program B shown in FIG. 20 (a) has a sequence jump depending on time. Processing step (step S
206 to step S207) is added, and the jump destination pointer Pn (for example, Pn) is added to the program C shown in FIG. 20C as shown in FIG.
0) and a sequence return processing step (step S
300) needs to be added.

【0016】[0016]

【発明が解決しようとする課題】従来のプログラマブル
コントローラでは、上述のように、入力/出力ビット情
報や内部ビット情報などのビットデバイスのオン/オフ
の状態に応じて或る特定シーケンスプログラムを実行さ
せるには、シーケンスプログラム中にビットデバイスの
オン/オフ状態で実行有無を判別させるプログラムコー
ドを記述する必要があるため、実行有無を判別するビッ
トデバイスや判別条件を容易に変更することができない
と云う問題点がある。
In the conventional programmable controller, as described above, a certain specific sequence program is executed according to the ON / OFF state of the bit device such as input / output bit information and internal bit information. Since it is necessary to describe a program code for determining whether the bit device is executed or not in the sequence program in the sequence program, it is not possible to easily change the bit device which determines whether the device is executed or not and the determination condition. There is a problem.

【0017】また、内部レジスタ情報などのワードデバ
イスの値の状態に応じて或る特定シーケンスプログラム
を実行させるには、シーケンスプログラム中にワードデ
バイスの状態で実行有無を判別させるプログラムコード
を記述する必要があるため、実行有無を判別するワード
デバイスや判別値を容易に変更することができないと云
う問題点がある。
Further, in order to execute a certain specific sequence program according to the state of the value of the word device such as internal register information, it is necessary to write a program code in the sequence program for determining whether or not to execute in the state of the word device. Therefore, there is a problem in that it is not possible to easily change the word device and the determination value for determining whether or not to execute.

【0018】また、プログラマブルコントローラに接続
されるプログラミング/デバッグユニットなどの外部周
辺機器からの実行/非実行要求に応じて或る特定シーケ
ンスプログラムを実行させるには、シーケンスプログラ
ム中に外部周辺機器からの実行/非実行要求を判別させ
るプログラムコードを記述する必要があるため、外部周
辺機器からの実行/非実行要求を判別させるためのビッ
トデバイスを準備しなければならないと云う問題点があ
る。
In order to execute a certain specific sequence program in response to an execution / non-execution request from an external peripheral device such as a programming / debug unit connected to the programmable controller, during execution of the sequence program, the external peripheral device does not receive a specific sequence program. Since it is necessary to write a program code for discriminating an execution / non-execution request, there is a problem that a bit device for discriminating an execution / non-execution request from an external peripheral device must be prepared.

【0019】また、ある特定シーケンスプログラムをプ
ログラム実行回数基準で間欠実行させるには、シーケン
スプログラム中にシーケンスプログラムを回数基準で間
欠実行させるプログラムコードを記述する必要があるた
め、間欠実行回数を容易に変更することができないと云
う問題点がある。
Further, in order to intermittently execute a certain specific sequence program on the basis of the number of times of program execution, it is necessary to write a program code for intermittently executing the sequence program on the basis of the number of times of execution of the program. There is a problem that it cannot be changed.

【0020】また、ある特定シーケンスプログラムを時
間基準で間欠実行させるには、シーケンスプログラム中
にシーケンスプログラムを時間基準で間欠実行させるプ
ログラムコードを記述する必要があるため、間欠実行時
間を容易に変更することができないと云う問題点があ
る。
In order to intermittently execute a specific sequence program on a time basis, it is necessary to write a program code for intermittently executing the sequence program on a time basis in the sequence program, so that the intermittent execution time can be easily changed. There is a problem that you cannot do it.

【0021】また、いずれの場合も、シーケンスプログ
ラム中にプログラム実行の有無判別のプログラムコード
を記述する必要があるため、シーケンスプログラムが複
雑になり、シーケンスプログラムの可読性が悪化し、各
プログラムの関連を理解するためには、プログラム全体
を解読しなければならない。
Further, in any case, since it is necessary to write a program code for determining the presence or absence of program execution in the sequence program, the sequence program becomes complicated, the readability of the sequence program deteriorates, and the relation of each program is related. To understand, you have to decipher the whole program.

【0022】この発明は、上述のような問題点を解消す
るためになされたものであり、ビットデバイスのオン/
オフの状態やワードデバイスの値の状態や外部周辺機器
からの実行/非実行要求に応じて或る特定シーケンスプ
ログラムを実行させたり、ある特定シーケンスプログラ
ムをプログラム実行回数基準や時間基準で間欠実行させ
る場合に、ビットデバイス、ワードデバイスの判別条件
や間欠実行のプログラム実行回数、時間を容易に変更す
ることができ、また特別なビットデバイスを準備する必
要がなく、またシーケンスプログラムを複雑することも
なく、シーケンスプログラムの可読性を悪化することが
ないプログラマブルコントローラおよびシーケンスプロ
グラム実行方法を得ることを目的としている。
The present invention has been made in order to solve the above-mentioned problems, and turns on / off the bit device.
Executes a specific sequence program in response to the off state, the state of the value of the word device, or the execution / non-execution request from the external peripheral device, or intermittently executes the specific sequence program on the basis of the number of program executions or the time. In this case, it is possible to easily change the determination condition of the bit device and the word device, the number of times the program is executed intermittently, and the time, and it is not necessary to prepare a special bit device and the sequence program is not complicated. An object of the present invention is to obtain a programmable controller and a sequence program execution method that do not deteriorate the readability of the sequence program.

【0023】[0023]

【課題を解決するための手段】上述の目的を達成するた
めに、この発明によるプログラマブルコントローラは、
複数のシーケンスプログラムを繰り返し実行させるプロ
グラマブルコントローラにおいて、前記複数のシーケン
スプログラムが格納されているシーケンスプログラム格
納部と、前記複数のシーケンスプログラムを実行させる
システムプログラムが格納されるシステムプログラムメ
モリと、スキャンプログラムとしての第1のプログラム
であるかあるいはスキャンプログラムのスキャン間に行
われる第2のプログラムに含まれるかの区別を示してい
るプログラム属性情報と、前記第2のプログラムを実行
させるための実行条件情報とを含むプログラム情報が、
前記複数のシーケンスプログラムについてそれぞれ設定
されたプログラム情報テーブルとを備え、前記システム
プログラムに、前記第2のプログラムを実行させるため
の実行条件を判定するための実行条件判別処理プログラ
ムを備えさせて、このシステムプログラムを実行させる
ことにより、前記プログラム情報テーブルから取得した
プログラム情報に前記第2のプログラムが存在している
場合、前記第1のプログラムのスキャン間に前記実行条
件判別処理プログラムを実行させて前記第2のプログラ
ムの実行の有無を判別し、この判別結果に基づいて前記
第2のプログラムを実行させることにより、前記シーケ
ンスプログラムに前記実行条件情報に対応する記述を不
要としたことを特徴とする。
In order to achieve the above object, a programmable controller according to the present invention comprises:
A professional who repeatedly executes multiple sequence programs
In the programmable controller, the plurality of sequences
Sequence program case where the program is stored
Execution of the plurality of sequence programs with the storage unit
The system program that stores the system program
Mori and the first program as a scan program
Or the line between scans in the scan program
Shows the distinction that it is included in the second program
Program attribute information and execution of the second program
The program information including the execution condition information for
Settings for each of the sequence programs
And a stored program information table.
To cause a program to execute the second program
Execution condition determination program for determining the execution condition of
System and run this system program
The program information table
The second program exists in the program information
If the first program is scanned during the execution
The second program is executed by executing the case determination processing program.
It is determined whether or not the
By executing the second program, the sequence
The description corresponding to the above execution condition information is
Characterized by the point.

【0024】つぎの発明によるプログラマブルコントロ
ーラは、上記の発明において、前記プログラム情報テー
ブルは、前記プログラム属性情報として、ビット判別に
より実行する前記第2のプログラムに含まれるビット判
別プログラムであることを示すビット判別属性が設定さ
れるとともに、前記実行条件情報として、ビット判別に
よるプログラム実行有無判別対象のデバイス情報および
その実行条件を示すデバイス設定値情報が設定され、前
記実行条件判別処理プログラムは、前記プログラム属性
情報に基づきビット判別プログラムの有無を判別するビ
ット判別プログラム有無判別処理と、前記デバイス情報
で指定されたデバイスメモリからのビットデバイスデー
タを取得するビットデバイスデータ取得処理と、取得し
たビットデバイスデータの値が前記デバイス設定値情報
で示される実行条件を満足するか否かを判別し、実行条
件成立であれば前記ビット判別属性として設定されたビ
ット判別プログラムを実行させるビット判別プログラム
実行処理と、を含む一連の処理ルーチンを行うものであ
ることを特徴とする。
Programmable controller according to the next invention
In the above invention, the software is the program information
Bull is used for bit discrimination as the program attribute information.
Bit format included in the second program to be executed
The bit discrimination attribute indicating that it is another program is set.
At the same time, as the execution condition information, the bit discrimination
Device execution target information
The device setting value information indicating the execution condition is set,
The execution condition determination processing program has the program attribute
Based on the information, the
Device identification information
Bit device data from the device memory specified by
Bit device data acquisition process that acquires data
The bit device data value is the device setting value information
The execution condition is determined by determining whether the execution conditions shown in are satisfied.
If the condition is satisfied, the bit set as the bit discrimination attribute is set.
Bit discriminating program for executing the bit discriminating program
Execution processing and a series of processing routines including
It is characterized by

【0025】つぎの発明によるプログラマブルコントロ
ーラは、上記の発明において、前記プログラム情報テー
ブルは、前記プログラム属性情報として、ワード判別に
より実行する前記第2のプログラムに含まれるワード判
別プログラムであることを示すワード判別属性が設定さ
れるとともに、前記実行条件情報として、ワード判別に
よるプログラム実行有無判別対象のデバイス情報および
その実行条件を示すデバイス設定値情報が設定され、前
記実行条件判別処理プログラムは、前記プログラム属性
情報に基づきワード判別プログラムの有無を判別するワ
ード判別プログラム有無判別処理と、前記デバイス情報
で指定されたデバイスメモリからのワードデバイスデー
タを取得するワードデバイスデータ取得処理と、取得し
たワードデバイスデータの値が前記デバイス設定値情報
で示される実行条件を満足するか否かを判別し、実行条
件成立であれば前記ワード判別属性として設定されたワ
ード判別プログラムを実行させるワード判別プログラム
実行処理と、を含む一連の処理ルーチンを行うものであ
ることを特徴とする。
A programmable controller according to the next invention is the program information table in the above invention.
Bull is used for word identification as the program attribute information.
Word format included in the second program to be executed
The word discrimination attribute indicating that it is another program is set.
The execution condition information is used for word determination.
Device execution target information
The device setting value information indicating the execution condition is set,
The execution condition determination processing program has the program attribute
A program that determines the presence or absence of a word determination program based on the information.
Code determination program presence / absence determination processing and the device information
From the device memory specified by
Data acquisition process to acquire data
The value of the word device data is the device setting value information
The execution condition is determined by determining whether the execution conditions shown in are satisfied.
If the condition is satisfied, the word set as the word discrimination attribute is set.
Word discriminating program for executing the word discriminating program
Execution processing and a series of processing routines including
It is characterized by

【0026】つぎの発明によるプログラマブルコントロ
ーラは、上記の発明において、前記プログラム情報テー
ブルは、前記プログラム属性情報として、外部周辺機器
からの周辺要求により実行する前記第2のプログラムに
含まれる周辺要求プログラムであることを示す周辺要求
属性が設定され、前記実行条件判別処理プログラムは、
前記プログラム属性情報に基づき周辺要求プログラムの
有無を判別する周辺要求プログラム有無判別処理と、通
信バッファを介して外部周辺機器からのデータを取得す
る周辺要求取得処理と、前記外部周辺機器からのデータ
が前記周辺要求プログラムの実行要求であるか否かを判
別する周辺要求判別処理と、前記判別結果に基づき外部
周辺機器からのデータが周辺要求プログラムの実行要求
である場合に前記周辺要求属性として設定された周辺要
求プログラムを実行させる周辺要求プログラム実行処理
と、を含む一連の処理ルーチンを行うものであることを
特徴とする。
Programmable controller according to the next invention
In the above invention, the software is the program information
Bull is an external peripheral device as the program attribute information.
To the second program executed by the peripheral request from
Peripheral request included Indicates that the program is a peripheral request
Attributes are set, and the execution condition determination processing program
Of the peripheral request program based on the program attribute information
Peripheral request program presence / absence determination process
Data from external peripherals via the communication buffer.
Peripheral request acquisition process and data from the external peripheral device
Determines whether the request is for the execution of the peripheral request program.
Different peripheral request discrimination processing and external based on the discrimination result
Data from peripheral device is a request to execute peripheral request program
If it is, the peripheral requirement set as the peripheral requirement attribute is
Peripheral request program execution processing to execute the request program
And a series of processing routines including
Characterize.

【0027】つぎの発明によるプログラマブルコントロ
ーラは、上記の発明において、前記プログラム情報テー
ブルは、前記プログラム属性情報として、第1のプログ
ラムの実行回数に応じて間欠的に実行する前記第2のプ
ログラムに含まれる回数間欠プログラムであることを示
す回数間欠属性が設定されるとともに、前記実行条件情
報として、前記実行回数を示す実行回数情報が設定さ
れ、前記実行条件判別処理プログラムは、前記プログラ
ム属性情報に基づき回数間欠プログラムの有無を判別す
る回数間欠プログラム有無判別処理と、第1のプログラ
ムの実行回数の計数値が前記設定された実行回数情報が
示す実行回数に達したか否かを判定する回数判別処理
と、前記判別結果に基づき計数値が実行回数情報が示す
実行回数に達した場合に前記回数間欠属性として設定さ
れた回数間欠プログラムを実行させる回数間欠プログラ
ム実行処理と、を含む一連の処理ルーチンを行うもので
あることを特徴とする。
A programmable controller according to the next invention is the program information table in the above invention.
Bull is the first program as the program attribute information.
The second program is executed intermittently according to the number of times the RAM is executed.
Indicates that the program is an intermittent program included in the program
The intermittent attribute is set and the execution condition information is
As information, the execution count information indicating the execution count is set.
The execution condition determination processing program is
The presence or absence of the intermittent program is determined based on the program attribute information.
Number of times intermittent program presence / absence determination processing and the first program
The count value of the number of executions of the
Number of times determination process to determine whether the number of executions shown has been reached
And the execution count information indicates the count value based on the determination result.
When the number of executions is reached, it is set as the above-mentioned intermittent attribute.
Number of times intermittent program that executes the intermittent program
It executes a series of processing routines including
It is characterized by being.

【0028】つぎの発明によるプログラマブルコントロ
ーラは、上記の発明において、前記プログラム情報テー
ブルは、前記プログラム属性情報として、所定の時点か
らの経過時間に応じて間欠的に実行する前記第2のプロ
グラムに含まれる時間間欠プログラムであることを示す
時間間欠属性が設定されるとともに、前記実行条件情報
として、前記経過時間を示す経過時間情報が設定され、
前記実行条件判別処理プログラムは、前記プログラム属
性情報に基づき時間間欠プログラムの有無を判別する時
間間欠プログラム有無判別処理と、所定の時点からの経
過時間の計数値が前記設定された経過時間情報が示す経
過時間に達したか否かを判定する時間判別処理と、前記
判別結果に基づき経過時間の計数値が経過時間情報が示
す経過時間に達した場合に前記時間間欠属性として設定
された時間間欠プログラムを実行させる時間間欠プログ
ラム実行処理と、を含む一連の処理ルーチンを行うもの
であることを特徴とする。
Programmable controller according to the next invention
In the above invention, the software is the program information
Bull is the predetermined time as the program attribute information.
The second professional that executes intermittently according to the elapsed time
Indicates that the program is an intermittent program included in Gram
The intermittent attribute is set and the execution condition information
As, the elapsed time information indicating the elapsed time is set,
The execution condition determination processing program is
When determining whether there is an intermittent program based on sex information
Intermittent program presence / absence determination process
The count value of the overtime indicates the elapsed time indicated by the set elapsed time information.
A time determination process for determining whether or not an overtime has been reached,
The elapsed time count value is displayed as elapsed time information based on the determination result.
Set as the intermittent attribute when the elapsed time has been reached
Intermittent program that executes the specified intermittent program
Ram execution processing and a series of processing routines including
Is characterized in that.

【0029】つぎの発明によるプログラマブルコントロ
ーラは、複数個のシーケンスプログラムを連続して繰り
返し実行させることが可能なプログラマブルコントロー
ラにおいて、プログラム情報としてプログラム属性に周
辺要求により実行するシーケンスプログラムであること
を示す属性を有し、そのプログラム属性をパラメータ設
定されるプログラム情報テーブルを有し、システムプロ
グラムの実行により前記プログラム情報テーブルのプロ
グラム情報を参照して周辺要求プログラム有無判別処
理、通信バッファからの周辺要求取得処理、周辺要求判
別処理、周辺要求プログラム実行処理と云う一連の処理
ルーチンを行い、外部周辺機器からの実行/非実行要求
に応じて或る特定シーケンスプログラムの実行有無を切
り換えることを特徴とする。
A programmable controller according to the next invention continuously repeats a plurality of sequence programs.
Programmable controller that can be executed by returning
The program attributes as program information.
Must be a sequence program executed by an edge request
, And the program attribute is set as a parameter.
Has a program information table defined by
The program information table
Peripheral request program presence / absence determination processing by referring to gram information
Processing, peripheral request acquisition processing from communication buffer, peripheral request judgment
A series of processing called separate processing and peripheral request program execution processing
Perform routines and request execution / non-execution from external peripheral devices
The execution of a specific sequence program depending on
It is characterized by replacement.

【0030】つぎの発明によるプログラマブルコントロ
ーラは、複数個のシーケンスプログラムを連続して繰り
返し実行させることが可能なプログラマブルコントロー
ラにおいて、プログラム情報としてプログラム属性にプ
ログラムの実行回数に応じて実行するシーケンスプログ
ラムであることを示す属性を有し、そのプログラム属性
をパラメータ設定されるプログラム情報テーブルを有
し、システムプログラムの実行により前記プログラム情
報テーブルのプログラム情報を参照して回数間欠プログ
ラム有無判別処理、回数初期化処理、回数間欠プログラ
ム有無判別処理、回数判別処理、回数間欠プログラム実
行処理、回数初期化処理、回数更新処理と云う一連の処
理ルーチンを行うことにより、或る特定シーケンスプロ
グラムを回数基準で間欠実行することを特徴とする。
Programmable controller according to the next invention
The controller continuously repeats multiple sequence programs.
Programmable controller that can be executed by returning
Program attributes in the program
Sequence program executed according to the number of times the program is executed
It has an attribute indicating that it is a ram, and its program attribute
Has a program information table that is parameterized
However, by executing the system program, the program information
Refers to the program information in the report table
Ram presence / absence determination process, number initialization process, number intermittent program
System presence / absence determination processing, number of times determination processing, number of intermittent programs
A series of processes called line processing, frequency initialization processing, frequency update processing
A specific sequence program
It is characterized in that the gram is intermittently executed on the basis of the number of times.

【0031】つぎの発明にかかるプログラマブルコント
ローラのシーケンスプログラム実行方法は、複数個のシ
ーケンスプログラムを連続して繰り返し実行させること
が可能なプログラマブルコントローラのシーケンスプロ
グラム実行方法において、プログラム情報としてプログ
ラム属性に周辺要求により実行するシーケンスプログラ
ムであることを示す属性を設け、そのプログラム属性を
プログラム情報としてパラメータ設定し、システムプロ
グラムによる周辺要求プログラム有無判別処理、通信バ
ッファからの周辺要求取得処理、周辺要求判別処理、周
辺要求プログラム実行処理と云う一連の処理ルーチンに
より、外部周辺機器からの実行/非実行要求に応じて或
る特定シーケンスプログラムの実行有無を切り換えられ
るようにしたことを特徴とする。
A programmable controller according to the next invention
Roller sequence program execution method
-To run the sequence program continuously and repeatedly
Programmable controller sequence pro
In the program execution method, the program information is
Sequence program executed by peripheral request for ram attribute
Attribute to indicate that the program is
Set parameters as program information, and
Peripheral request program presence / absence determination processing using communication
Peripheral request acquisition process, peripheral request determination process,
A series of processing routines called edge request program execution processing
Depending on the execution / non-execution request from the external peripheral device,
Whether to execute a specific sequence program
It is characterized by doing so.

【0032】つぎの発明にかかるプログラマブルコント
ローラのシーケンスプログラム実行方法は、複数個のシ
ーケンスプログラムを連続して繰り返し実行させること
が可能なプログラマブルコントローラのシーケンスプロ
グラム実行方法において、プログラム情報としてプログ
ラム属性にプログラムの実行回数に応じて実行するシー
ケンスプログラムであることを示す属性を設け、そのプ
ログラム属性をプログラム情報としてパラメータ設定
し、システムプログラムによる回数間欠プログラム有無
判別処理、回数初期化処理、回数間欠プログラム有無判
別処理、回数判別処理、回数間欠プログラム実行処理、
回数初期化処理、回数更新処理と云う一連の処理ルーチ
ンにより、或る特定シーケンスプログラムを回数基準で
間欠実行することを特徴とする。
A programmable controller according to the next invention
Roller sequence program execution method
-To run the sequence program continuously and repeatedly
Programmable controller sequence pro
In the program execution method, the program information is
The ram attribute is a sequence that is executed according to the number of times the program is executed.
An attribute indicating that it is a
Parameter setting of program attribute as program information
Whether there is an intermittent program by the system program
Judgment processing, frequency initialization processing, frequency intermittent program presence / absence judgment
Separate processing, number of times determination processing, number of times intermittent program execution processing,
A series of processing routines called number initialization processing and number update processing
Depending on the number of times, a specific sequence program can be
It is characterized by intermittent execution.

【0033】[0033]

【0034】[0034]

【0035】[0035]

【0036】[0036]

【0037】[0037]

【0038】[0038]

【0039】[0039]

【0040】[0040]

【0041】[0041]

【0042】[0042]

【0043】[0043]

【発明の実施の形態】以下に添付の図を参照してこの発
明に係るプログラマブルコントローラおよびシーケンス
プログラム実行方法の実施の形態を詳細に説明する。な
お、以下に説明するこの発明の実施の形態において上述
の従来例と同一あるいは同等の部分は、上述の従来例に
付した符号と同一の符号を付してその説明を省略する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of a programmable controller and a sequence program executing method according to the present invention will be described below in detail with reference to the accompanying drawings. In the embodiments of the present invention described below, the same or equivalent parts as those in the above-mentioned conventional example are designated by the same reference numerals as those in the above-mentioned conventional example, and the description thereof will be omitted.

【0044】パラメータ格納部8のプログラム情報テー
ブル11は、プログラム名、属性のデータフィールドに
加えて、プログラム実行有無判別対象のデバイス、実行
条件および間欠条件のデータフィールドを有しており、
これらをパラメータ設定される。
The program information table 11 of the parameter storage unit 8 has, in addition to the program name and attribute data fields, a device for which program execution is to be determined, an execution condition and an intermittent condition data field,
These are parameterized.

【0045】プログラム属性として、「イニシャル」、
「スキャン」以外に、「ビット判別」、「ワード判
別」、「周辺要求」、「回数間欠」、「時間間欠」を追
加されている。
As program attributes, "initial",
In addition to “scan”, “bit discrimination”, “word discrimination”, “peripheral request”, “intermittent number of times”, and “intermittent time” are added.

【0046】「ビット判別」はビット判別により実行す
るシーケンスプログラムであることを示すプログラム属
性であり、「ワード判別」はワード判別により実行する
シーケンスプログラムであることを示すプログラム属性
であり、「周辺要求」は外部周辺機器よりの要求により
実行するシーケンスプログラムであることを示す属性で
あり、「回数間欠」はプログラムの実行回数に応じて実
行するシーケンスプログラムであることを示すプログラ
ム属性であり、「時間間欠」は時間に応じて実行するシ
ーケンスプログラムであることを示すプログラム属性で
ある。
"Bit discrimination" is a program attribute indicating that it is a sequence program executed by bit discrimination, and "word discrimination" is a program attribute indicating that it is a sequence program executed by word discrimination. "Is an attribute indicating that the sequence program is executed according to a request from an external peripheral device, and" intermittent number of times "is a program attribute indicating that the sequence program is executed according to the number of times the program is executed. "Intermittent" is a program attribute indicating that the sequence program is executed according to time.

【0047】システムプログラムメモリ3に格納される
プログラマブルコントローラのシステムプログラム12
は、図2に示されているように、ビット判別による特定
プログラム実行処理部13と、ワード判別による特定プ
ログラム実行処理部14、外部周辺機器7よりの要求に
よる特定プログラム実行処理部15と、プログラミング
実行回数基準のプログラム間欠実行処理部16と、時間
基準のプログラム間欠実行処理部17とを含んでいる。
System program 12 of programmable controller stored in system program memory 3
As shown in FIG. 2, a specific program execution processing unit 13 by bit determination, a specific program execution processing unit 14 by word determination, a specific program execution processing unit 15 by a request from the external peripheral device 7, and programming It includes a program intermittent execution processing unit 16 based on the number of executions and a program intermittent execution processing unit 17 based on the time.

【0048】ビット判別による特定プログラム実行処理
部13は、ビット判別プログラム有無判別処理、デバイ
スメモリ4からのビットデバイスデータ取得処理、ビッ
ト判別プログラム実行処理と云う一連の処理ルーチンで
構成され、ワード判別による特定プログラム実行処理部
14は、ワード判別プログラム有無判別処理、デバイス
メモリ4からのワードデバイスデータ取得処理、ワード
デバイスデータ判別処理、ワード判別プログラム実行処
理と云う一連の処理ルーチンで構成され、外部周辺機器
7よりの要求による特定プログラム実行処理部15は、
周辺要求プログラム有無判別処理、通信バッファ6から
の周辺要求取得処理、周辺要求判別処理、周辺要求プロ
グラム実行処理と云う一連の処理ルーチンで構成されて
いる。
The specific program execution processing section 13 based on bit discrimination is constituted by a series of processing routines such as a bit discrimination program presence / absence discrimination processing, a bit device data acquisition processing from the device memory 4, and a bit discrimination program execution processing. The specific program execution processing unit 14 is composed of a series of processing routines such as word determination program presence / absence determination processing, word device data acquisition processing from the device memory 4, word device data determination processing, word determination program execution processing, and external peripheral devices. The specific program execution processing unit 15 according to the request from 7
It is composed of a series of processing routines including peripheral request program presence / absence determination processing, peripheral request acquisition processing from the communication buffer 6, peripheral request determination processing, and peripheral request program execution processing.

【0049】また、プログラミング実行回数基準のプロ
グラム間欠実行処理部16は、回数間欠プログラム有無
判別処理、回数初期化処理、回数間欠プログラム有無判
別処理、回数判別処理、回数間欠プログラム実行処理、
回数初期化処理、回数更新処理と云う一連の処理ルーチ
ンで構成され、時間基準のプログラム間欠実行処理部1
7は、時間間欠プログラム有無判別処理、時間初期化処
理、時間間欠プログラム有無判別処理、時間判別処理、
時間間欠プログラム実行処理、時間初期化処理と云う一
連の処理ルーチンで構成されている。
Further, the program intermittent execution processing section 16 based on the number of times of programming execution, the number intermittent program presence / absence determination processing, the number initialization processing, the number intermittent program presence / absence determination processing, the number determination processing, the number intermittent program execution processing,
It is composed of a series of processing routines such as a number initialization process and a number update process, and is a time-based program intermittent execution processing unit 1
Reference numeral 7 denotes a time intermittent program presence / absence determination process, a time initialization process, a time intermittent program presence / absence determination process, a time determination process,
It is composed of a series of processing routines called time intermittent program execution processing and time initialization processing.

【0050】(ビット判別による特定プログラム実行処
理)つぎにプログラマブルコントローラ1のCPU2に
より実行されるシステムプログラムの処理(ビット判別
による特定プログラム実行処理)を図3に示されている
フローチャートと図4に示されている動作図とを参照と
して説明する。
(Specific Program Execution Processing by Bit Discrimination) Next, the processing of the system program executed by the CPU 2 of the programmable controller 1 (specific program execution processing by bit discrimination) is shown in the flow chart shown in FIG. 3 and FIG. The operation diagram shown in FIG.

【0051】まず、プログラム情報取得処理として、パ
ラメータ格納部8のプログラム情報テーブル11からプ
ログラム情報を取得する(ステップS10)。ここで、
プログラム情報テーブル11から取得するプログラム情
報は、ユーザデータメモリ5のシーケンスプログラム格
納部9に格納されている各シーケンスプログラムのプロ
グラム名、属性、プログラム実行有無判別対象のデバイ
ス、実行条件、間欠条件である(図4(a)参照)。
First, as program information acquisition processing, program information is acquired from the program information table 11 of the parameter storage unit 8 (step S10). here,
The program information acquired from the program information table 11 is the program name, attribute, device for which program execution is to be determined, execution condition, and intermittent condition of each sequence program stored in the sequence program storage unit 9 of the user data memory 5. (See FIG. 4 (a)).

【0052】つぎに、イニシャルプログラム実行処理と
して、ステップS10で取得したプログラム情報(プロ
グラム名および属性)からシーケンスプログラム格納部
9(図4(b)参照)のプログラムAを実行する(ステ
ップS11)。
Next, as the initial program execution processing, the program A in the sequence program storage section 9 (see FIG. 4B) is executed from the program information (program name and attribute) acquired in step S10 (step S11).

【0053】つぎに、スキャンプログラム実行処理とし
て、プログラム情報(プログラム名および属性)からシ
ーケンスプログラム格納部9のプログラムBを実行する
(ステップS12)。
Next, as the scan program execution processing, the program B in the sequence program storage unit 9 is executed from the program information (program name and attribute) (step S12).

【0054】つぎに、他スキャンプログラム有無判別処
理として、プログラム情報(プログラム名および属性)
から他のスキャンプログラムの有無を判別する(ステッ
プS13)。他のスキャンプログラムがあれば、次スキ
ャンプログラム移動処理として、そのシーケンスプログ
ラムへの移動を行い(ステップS14)、この後にスキ
ャンプログラム実行処理として、そのプログラムを実行
する(ステップS12)。
Next, as another scan program presence / absence determining process, program information (program name and attribute)
Then, the presence / absence of another scan program is determined (step S13). If there is another scan program, it moves to the sequence program as the next scan program moving process (step S14), and then executes that program as the scan program executing process (step S12).

【0055】これに対し、他のスキャンプログラムがな
ければ、ビット判別プログラム有無判別処理として、プ
ログラム情報(プログラム名および属性)からビット判
別プログラムの有無を判別する(ステップS15)。ビ
ット判別プログラムがなければ、ステップS12に直接
戻り、スキャンプログラム実行処理からを繰り返し実行
する。
On the other hand, if there is no other scan program, the presence / absence of the bit determination program is determined from the program information (program name and attribute) as the bit determination program presence / absence determination processing (step S15). If there is no bit discriminating program, the process directly returns to step S12, and the steps from the scan program execution process are repeated.

【0056】これに対し、ビット判別プログラムがあれ
ば、ビットデバイスデータ取得処理として、プログラム
情報のデバイスの示すビットデバイスデータをデバイス
メモリ4から取得する(ステップS16)。
On the other hand, if there is a bit discriminating program, the bit device data indicated by the device of the program information is obtained from the device memory 4 as the bit device data obtaining process (step S16).

【0057】つぎに、ビットデバイスデータ判別処理と
して、ステップS16で取得したビットデバイスデータ
の値がプログラム情報の実行条件(設定値)に等しいか
否かを判別する(ステップS17)。
Next, as the bit device data discrimination processing, it is discriminated whether or not the value of the bit device data acquired in step S16 is equal to the execution condition (set value) of the program information (step S17).

【0058】ビットデバイスデータの値がプログラム情
報の実行条件(設定値)に等しければ、すなわち実行条
件成立であれば、ビット判別プログラム実行処理とし
て、シーケンスプログラム格納部9のプログラムCを実
行する(ステップS18)。
If the value of the bit device data is equal to the execution condition (set value) of the program information, that is, if the execution condition is satisfied, the program C of the sequence program storage unit 9 is executed as the bit discrimination program execution process (step S18).

【0059】これに対し、実行条件不成立であれば、ス
テップS12に直接戻り、スキャンプログラム実行処理
からを繰り返し実行する。
On the other hand, if the execution condition is not satisfied, the process directly returns to step S12, and the process from the scan program execution process is repeatedly executed.

【0060】以上のような処理により、図4(c)に示
されているような順序、条件にてシーケンスプログラム
が実行される。すなわち、図3のフローチャートに示す
ように、システムプログラム12に設定されたビット判
別による特定プログラム実行処理部13(ビット判別プ
ログラムの有無を判別するビット判別プログラム有無判
別処理と、デバイスメモリからのビットデバイスデータ
を取得するビットデバイスデータ取得処理と、取得した
ビットデバイスデータの値がデバイス設定値情報で示さ
れる実行条件を満足するか否かを判別し、実行条件成立
であればビット判別属性として設定されたビット判別プ
ログラムを実行させるビット判別プログラム実行処理と
を含む一連の処理ルーチン)は、スキャンプログラムの
スキャン間に行われるものであり、スキャンプログラム
のスキャン間にビット判別による特定プログラムを実行
処理して、ビット判別プログラムを実行させる。ビット
判別プログラムが終了すると、図3のフローチャートに
示すように、スキャンプログラムを再度スキャンする。
By the above processing, the sequence program is executed in the order and conditions as shown in FIG. That is, as shown in the flowchart of FIG.
The bit size set in the system program 12
Specific program execution processing unit 13 (bit discrimination
Bit discriminating program for discriminating the presence / absence of programs
Separate processing and bit device data from device memory
Bit device data acquisition process to acquire
The bit device data value is indicated by the device setting value information.
Whether the execution condition is satisfied or not is determined, and the execution condition is satisfied
If so, the bit discrimination program set as the bit discrimination attribute is set.
And the bit discrimination program execution process to execute the program
A series of processing routines including
This is done between scans, and the scan program
Executes specific program by bit discrimination between scans
Then, the bit discrimination program is executed. bit
When the determination program ends, the flow chart of FIG.
Rescan the scanning program as shown.

【0061】これにより、入力/出力ビット情報や内部
ビット情報などのビットデバイスのオン/オフの状態
で、ある特定シーケンスプログラムを実行させるのに、
シーケンスプログラム中にビットデバイスのオン/オフ
状態で実行有無を判別させるプログラムコードを記述す
る必要がなくなり、シーケンスプログラムの実行有無を
判別するビットデバイスの変更を容易に行うことができ
るようになる。また、従来に比して、シーケンスプログ
ラムが簡単になり、シーケンスプログラムの可読性が悪
化することがなく、各シーケンスプログラムの関連も容
易に理解され得るようになる。
As a result, in order to execute a specific sequence program in the ON / OFF state of the bit device such as the input / output bit information and the internal bit information,
It is not necessary to write a program code for determining the presence / absence of execution of the bit device in the sequence program on / off state, and the bit device for determining the presence / absence of execution of the sequence program can be easily changed. In addition, the sequence program becomes simpler than before, the readability of the sequence program is not deteriorated, and the relationship between the sequence programs can be easily understood.

【0062】(ワード判別による特定プログラム実行処
理)つぎにプログラマブルコントローラ1のCPU2に
より実行されるシステムプログラムの処理(ワード判別
による特定プログラム実行処理)を図5に示されている
フローチャートと図6に示されている動作図とを参照と
して説明する。
(Specific Program Execution Processing by Word Discrimination) Next, the processing of the system program executed by the CPU 2 of the programmable controller 1 (specific program execution processing by word discrimination) is shown in the flowchart of FIG. 5 and FIG. The operation diagram shown in FIG.

【0063】まず、プログラム情報取得処理として、パ
ラメータ格納部8のプログラム情報テーブル11からプ
ログラム情報を取得する(ステップS10)。ここで、
プログラム情報テーブル11から取得するプログラム情
報は、ユーザデータメモリ5のシーケンスプログラム格
納部9に格納されている各シーケンスプログラムのプロ
グラム名、属性、プログラム実行有無判別対象のデバイ
ス、実行条件、間欠条件である(図6(a)参照)。
First, as program information acquisition processing, program information is acquired from the program information table 11 of the parameter storage unit 8 (step S10). here,
The program information acquired from the program information table 11 is the program name, attribute, device for which program execution is to be determined, execution condition, and intermittent condition of each sequence program stored in the sequence program storage unit 9 of the user data memory 5. (See FIG. 6A).

【0064】つぎに、イニシャルプログラム実行処理と
して、ステップS10で取得したプログラム情報(プロ
グラム名および属性)からシーケンスプログラム格納部
9(図6(b)参照)のプログラムAを実行する(ステ
ップS11)。
Next, as the initial program execution processing, the program A in the sequence program storage section 9 (see FIG. 6B) is executed from the program information (program name and attribute) acquired in step S10 (step S11).

【0065】つぎに、スキャンプログラム実行処理とし
て、プログラム情報(プログラム名および属性)からシ
ーケンスプログラム格納部9のプログラムBを実行する
(ステップS12)。
Next, as the scan program execution processing, the program B in the sequence program storage section 9 is executed from the program information (program name and attribute) (step S12).

【0066】つぎに、他スキャンプログラム有無判別処
理として、プログラム情報(プログラム名および属性)
から他のスキャンプログラムの有無を判別する(ステッ
プS13)。他のスキャンプログラムがあれば、次スキ
ャンプログラム移動処理として、そのシーケンスプログ
ラムへの移動を行い(ステップS14)、この後にスキ
ャンプログラム実行処理として、そのプログラムを実行
する(ステップS12)。
Next, as another scan program presence / absence determining processing, program information (program name and attribute)
Then, the presence / absence of another scan program is determined (step S13). If there is another scan program, it moves to the sequence program as the next scan program moving process (step S14), and then executes that program as the scan program executing process (step S12).

【0067】これに対し、他のスキャンプログラムがな
ければ、ワード判別プログラム有無判別処理として、プ
ログラム情報(プログラム名および属性)からワード判
別プログラムの有無を判別する(ステップS20)。ワ
ード判別プログラムがなければ、ステップS12に直接
戻り、スキャンプログラム実行処理からを繰り返し実行
する。
On the other hand, if there is no other scan program, the presence / absence of the word discrimination program is discriminated from the program information (program name and attribute) as the word discrimination program presence / absence discrimination processing (step S20). If there is no word discriminating program, the process directly returns to step S12, and the process from the scan program executing process is repeatedly executed.

【0068】これに対し、ワード判別プログラムがあれ
ば、ワードデバイスデータ取得処理として、プログラム
情報のデバイスの示すワードデバイスデータをデバイス
メモリ4から取得する(ステップS21)。
On the other hand, if there is a word discrimination program, the word device data indicated by the device of the program information is obtained from the device memory 4 as the word device data obtaining process (step S21).

【0069】つぎに、ワードデバイスデータ判別処理と
して、ステップS21で取得したワードデバイスデータ
の値がプログラム情報の実行条件(設定値)に等しいか
否かを判別する(ステップS22)。
Next, as the word device data discrimination processing, it is discriminated whether or not the value of the word device data acquired in step S21 is equal to the execution condition (set value) of the program information (step S22).

【0070】ワードデバイスデータの値がプログラム情
報の実行条件(設定値)に等しければ、すなわち実行条
件成立であれば、ワード判別プログラム実行処理とし
て、シーケンスプログラム格納部9のプログラムCを実
行する(ステップS23)。
If the value of the word device data is equal to the execution condition (set value) of the program information, that is, if the execution condition is satisfied, the program C of the sequence program storage unit 9 is executed as the word discrimination program execution processing (step S23).

【0071】これに対し、実行条件不成立であれば、ス
テップS12に直接戻り、スキャンプログラム実行処理
からを繰り返し実行する。
On the other hand, if the execution condition is not satisfied, the process directly returns to step S12, and the process from the scan program execution process is repeatedly executed.

【0072】以上のような処理により、図6(c)に示
されているような順序、条件にてシーケンスプログラム
が実行される。すなわち、図5のフローチャートに示す
ように、システムプログラム12に設定されたワード判
別による特定プログラム実行処理部14(ワード判別プ
ログラムの有無を判別するワード判別プログラム有無判
別処理と、デバイスメモリからのワードデバイスデータ
を取得するワードデバイスデータ取得処理と、取得した
ワードデバイスデータの値がデバイス設定値情報で示さ
れる実行条件を満足するか否かを判別し、実行条件成立
であればワード判別属性として設定されたワード判別プ
ログラムを実行させるワード判別プログラム実行処理と
を含む一連の処理ルーチン)は、スキャンプログラムの
スキャン間に行われるものであり、スキャンプログラム
のスキャン間にワード判別による特定プログラムを実行
処理して、ワード判別プログラムを実行させる。ワード
判別プログラムが終了すると、図5のフローチャートに
示すように、スキャンプログラムを再度スキャンする。
Through the above processing, the sequence program is executed in the order and conditions as shown in FIG. 6 (c). That is, as shown in the flowchart of FIG.
The word format set in the system program 12
Specific program execution processing unit 14 (word determination process)
Word judgment program for judging the existence of programs
Separate processing and word device data from device memory
Word device data acquisition process to acquire
The value of word device data is indicated by device setting value information.
Whether the execution condition is satisfied or not is determined, and the execution condition is satisfied
In that case, the word discrimination program set as the word discrimination attribute is set.
Program execution process to execute the word determination program
A series of processing routines including
This is done between scans, and the scan program
Execute a specific program by word discrimination between scans
Then, the word discrimination program is executed. word
When the determination program ends, the flow chart of FIG.
Rescan the scanning program as shown.

【0073】これにより、内部レジスタ情報などのワー
ドデバイスの値の状態で、ある特定シーケンスプログラ
ムを実行させるのに、シーケンスプログラム中にワード
デバイスの状態で実行有無を判別させるプログラムコー
ドを記述する必要がなくなり、シーケンスプログラムの
実行有無を判別するワードデバイスや実行有無を判別す
る値の変更を容易に行うことができるようになる。ま
た、従来に比して、シーケンスプログラムが簡単にな
り、シーケンスプログラムの可読性が悪化することがな
く、各シーケンスプログラムの関連も容易に理解され得
るようになる。
As a result, in order to execute a certain specific sequence program in the state of the value of the word device such as the internal register information, it is necessary to write a program code in the sequence program for determining whether the execution is performed in the state of the word device. Therefore, it becomes possible to easily change the word device that determines whether or not the sequence program is executed and the value that determines whether or not the sequence program is executed. In addition, the sequence program becomes simpler than before, the readability of the sequence program is not deteriorated, and the relationship between the sequence programs can be easily understood.

【0074】(外部周辺機器からの要求による特定プロ
グラム実行処理)つぎにプログラマブルコントローラ1
のCPU2により実行されるシステムプログラムの処理
(外部周辺機器からの要求による特定プログラム実行処
理)を図7に示されているフローチャートと図8に示さ
れている動作図とを参照として説明する。
(Specific Program Execution Processing by Request from External Peripheral Equipment) Next, the programmable controller 1
The processing of the system program executed by the CPU 2 (specific program execution processing in response to a request from an external peripheral device) will be described with reference to the flowchart shown in FIG. 7 and the operation diagram shown in FIG.

【0075】まず、プログラム情報取得処理として、パ
ラメータ格納部8のプログラム情報テーブル11からプ
ログラム情報を取得する(ステップS10)。ここで、
プログラム情報テーブル11から取得するプログラム情
報は、ユーザデータメモリ5のシーケンスプログラム格
納部9に格納されている各シーケンスプログラムのプロ
グラム名、属性、プログラム実行有無判別対象のデバイ
ス、実行条件、間欠条件である(図8(a)参照)。
First, as the program information acquisition processing, the program information is acquired from the program information table 11 of the parameter storage unit 8 (step S10). here,
The program information acquired from the program information table 11 is the program name, attribute, device for which program execution is to be determined, execution condition, and intermittent condition of each sequence program stored in the sequence program storage unit 9 of the user data memory 5. (See FIG. 8A).

【0076】つぎに、イニシャルプログラム実行処理と
して、ステップS10で取得したプログラム情報(プロ
グラム名および属性)からシーケンスプログラム格納部
9(図8(b)参照)のプログラムAを実行する(ステ
ップS11)。
Next, as the initial program execution processing, the program A in the sequence program storage section 9 (see FIG. 8B) is executed from the program information (program name and attribute) acquired in step S10 (step S11).

【0077】つぎに、スキャンプログラム実行処理とし
て、プログラム情報(プログラム名および属性)からシ
ーケンスプログラム格納部9のプログラムBを実行する
(ステップS12)。
Next, as the scan program execution processing, the program B in the sequence program storage section 9 is executed from the program information (program name and attribute) (step S12).

【0078】つぎに、他スキャンプログラム有無判別処
理として、プログラム情報(プログラム名および属性)
から他のスキャンプログラムの有無を判別する(ステッ
プS13)。他のスキャンプログラムがあれば、次スキ
ャンプログラム移動処理として、そのシーケンスプログ
ラムへの移動を行い(ステップS14)、この後にスキ
ャンプログラム実行処理として、そのプログラムを実行
する(ステップS12)。
Next, as other scan program presence / absence determining processing, program information (program name and attribute)
Then, the presence / absence of another scan program is determined (step S13). If there is another scan program, it moves to the sequence program as the next scan program moving process (step S14), and then executes that program as the scan program executing process (step S12).

【0079】これに対し、他のスキャンプログラムがな
ければ、周辺要求プログラム有無判別処理として、プロ
グラム情報(プログラム名および属性)から周辺要求プ
ログラムの有無を判別する(ステップS30)。周辺要
求プログラムがなければ、ステップS12に直接戻り、
スキャンプログラム実行処理からを繰り返し実行する。
On the other hand, if there is no other scan program, the presence / absence of a peripheral request program is determined from the program information (program name and attribute) as peripheral request program presence / absence determining processing (step S30). If there is no peripheral request program, the process directly returns to step S12,
The process from the scan program execution process is repeatedly executed.

【0080】これに対し、周辺要求プログラムがあれ
ば、周辺要求取得処理として、通信バッファ6から外部
周辺機器7からの送信データを通信バッファからの周辺
要求取得処理にて取得する(ステップS31)。
On the other hand, if there is a peripheral request program, the peripheral request acquisition process acquires the transmission data from the external peripheral device 7 from the communication buffer 6 by the peripheral request acquisition process from the communication buffer (step S31).

【0081】つぎに周辺要求判別処理としてステップS
31で取得した送信データが実行要求(特定プログラム
実行要求)であるか否かを判別する(ステップS3
2)。
Next, as a peripheral request determination process, step S
It is determined whether the transmission data acquired in step 31 is an execution request (specific program execution request) (step S3).
2).

【0082】送信データが実行要求であれば、周辺要求
プログラム実行処理として、シーケンスプログラム格納
部9のプログラムCを実行する(ステップS33)。
If the transmission data is an execution request, the program C in the sequence program storage unit 9 is executed as peripheral request program execution processing (step S33).

【0083】これに対し、送信データが非実行要求であ
れば、ステップS12に直接戻り、スキャンプログラム
実行処理からを繰り返し実行する。
On the other hand, if the transmission data is a non-execution request, the process directly returns to step S12 to repeatedly execute the scan program execution process and the subsequent steps.

【0084】以上のような処理により、図8(c)に示
されているような順序、条件にてシーケンスプログラム
が実行される。すなわち、図7のフローチャートに示す
ように、システムプログラム12に設定された外部周辺
機器よりの要求による特定プログラム実行処理部15
(周辺要求プログラムの有無を判別する周辺要求プログ
ラム有無判別処理と、通信バッファを介して外部周辺機
器からのデータを取得する周辺要求取得処理と、外部周
辺機器からのデータが周辺要求プログラムの実行要求で
あるか否かを判別する周辺要求判別処理と、この判別結
果に基づき外部周辺機器からのデータが周辺要求プログ
ラムの実行要求である場合に周辺要求プログラムを実行
させる周辺要求プログラム実行処理と、を含む一連の処
理ルーチン)は、スキャンプログラムのスキャン間に行
われるものであり、スキャンプログラムのスキャン間に
外部周辺機器よりの要求による特定プログラムを実行処
理して、周辺要求プログラムを実行させる。周辺要求プ
ログラムが終了すると、図7のフローチャートに示すよ
うに、スキャンプログラムを再度スキャンする。
By the above processing, the sequence program is executed in the order and conditions shown in FIG. 8 (c). That is, as shown in the flowchart of FIG.
The external peripherals set in the system program 12
Specific program execution processing unit 15 in response to a request from the device
(Peripheral request program that determines the presence / absence of a peripheral request program
Ram peripheral presence / absence determination process and external peripheral device via communication buffer
Peripheral request acquisition processing to acquire data from the
The data from the peripheral device is the execution request of the peripheral request program.
Peripheral request determination processing that determines whether or not there is this determination result
Based on the result, the data from the external peripheral device is processed by the peripheral request
Execute peripheral request program if it is a ram execution request
Peripheral request program execution processing to be performed, and a series of processing including
Processing routine) between scan programs
Between scan programs.
Execution of a specific program in response to a request from an external peripheral device
Then, the peripheral request program is executed. Peripheral request
When the program is finished, it will be shown in the flow chart of FIG.
Scan the scan program again.

【0085】これにより、プログラマブルコントローラ
に接続されるプログラミング/デバッグユニットなどの
外部周辺機器からの実行/非実行要求で、ある特定シー
ケンスプログラムを実行させるのに、シーケンスプログ
ラム中にシーケンスプログラム中に外部周辺機器からの
実行/非実行要求を判別させるプログラムコードを記述
する必要がなくなり、外部周辺機器からの実行/非実行
要求を判別するための特別になビットデバイスを準備す
る必要がなくなり、また、従来に比して、シーケンスプ
ログラムが簡単になり、シーケンスプログラムの可読性
が悪化することがなく、各シーケンスプログラムの関連
も容易に理解され得るようになる。
As a result, in order to execute a specific sequence program in response to an execution / non-execution request from an external peripheral device such as a programming / debug unit connected to the programmable controller, an external peripheral device is included in the sequence program during the sequence program. It is no longer necessary to write a program code to determine the execution / non-execution request from the device, and it is not necessary to prepare a special bit device for determining the execution / non-execution request from the external peripheral device. In comparison, the sequence program is simplified, the readability of the sequence program is not deteriorated, and the relation between the sequence programs can be easily understood.

【0086】(プログラミング実行回数基準のプログラ
ム間欠実行処理)つぎにプログラマブルコントローラ1
のCPU2により実行されるシステムプログラムの処理
(プログラミング実行回数基準のプログラム間欠実行処
理)を図9に示されているフローチャートと図10に示
されている動作図とを参照として説明する。
(Program Intermittent Execution Processing Based on Programming Execution Count) Next, the programmable controller 1
The processing of the system program executed by the CPU 2 (program intermittent execution processing based on the number of times of programming execution) will be described with reference to the flowchart shown in FIG. 9 and the operation diagram shown in FIG.

【0087】まず、プログラム情報取得処理として、パ
ラメータ格納部8のプログラム情報テーブル11からプ
ログラム情報を取得する(ステップS10)。ここで、
プログラム情報テーブル11から取得するプログラム情
報は、ユーザデータメモリ5のシーケンスプログラム格
納部9に格納されている各シーケンスプログラムのプロ
グラム名、属性、プログラム実行有無判別対象のデバイ
ス、実行条件、間欠条件である(図10(a)参照)。
First, as program information acquisition processing, program information is acquired from the program information table 11 of the parameter storage unit 8 (step S10). here,
The program information acquired from the program information table 11 is the program name, attribute, device for which program execution is to be determined, execution condition, and intermittent condition of each sequence program stored in the sequence program storage unit 9 of the user data memory 5. (See FIG. 10 (a)).

【0088】つぎに、イニシャルプログラム実行処理と
して、ステップS10で取得したプログラム情報(プロ
グラム名および属性)からシーケンスプログラム格納部
9(図10(b)参照)のプログラムAを実行する(ス
テップS11)。
Next, as the initial program execution processing, the program A in the sequence program storage section 9 (see FIG. 10B) is executed from the program information (program name and attribute) acquired in step S10 (step S11).

【0089】つぎに、回数間欠プログラム有無判別処理
として、プログラム情報(プログラム名および属性)か
ら回数間欠プログラムの有無を判別し(ステップS4
0)、回数間欠プログラムがあれば、回数初期化処理と
して、プログラム実行の回数データを初期化する(ステ
ップS41)。
Next, as the number-of-times intermittent program presence / absence determination process, the presence / absence of the number of intermittent programs is determined from the program information (program name and attribute) (step S4).
0) If there is a number of times intermittent program, the number of times of program execution is initialized as number initialization processing (step S41).

【0090】つぎに、スキャンプログラム実行処理とし
て、プログラム情報(プログラム名および属性)からシ
ーケンスプログラム格納部9のプログラムBを実行する
(ステップS12)。
Next, as the scan program execution processing, the program B in the sequence program storage section 9 is executed from the program information (program name and attribute) (step S12).

【0091】つぎに、他スキャンプログラム有無判別処
理として、プログラム情報(プログラム名および属性)
から他のスキャンプログラムの有無を判別する(ステッ
プS13)。他のスキャンプログラムがあれば、次スキ
ャンプログラム移動処理として、そのシーケンスプログ
ラムへの移動を行い(ステップS14)、この後にスキ
ャンプログラム実行処理として、そのプログラムを実行
する(ステップS12)。
Next, as other scan program presence / absence determining processing, program information (program name and attribute)
Then, the presence / absence of another scan program is determined (step S13). If there is another scan program, it moves to the sequence program as the next scan program moving process (step S14), and then executes that program as the scan program executing process (step S12).

【0092】これに対し、他のスキャンプログラムがな
ければ、回数間欠プログラム有無判別処理として、プロ
グラム情報(プログラム名および属性)から回数間欠プ
ログラムの有無を判別する(ステップS42)。回数間
欠プログラムがなければ、直接ステップS12に戻り、
スキャンプログラム実行処理からを繰り返し実行する。
On the other hand, if there is no other scan program, the presence / absence of the intermittent program is determined from the program information (program name and attribute) as the intermittent program presence / absence determining process (step S42). If there is no intermittent program, return directly to step S12,
The process from the scan program execution process is repeatedly executed.

【0093】これに対し、回数間欠プログラムがあれ
ば、回数判別処理として、回数データの値がプログラム
情報の間欠条件(設定値)に達したか否かを判別する
(ステップS43)。回数データの値がプログラム情報
の間欠条件(設定値)に達すれば、すなわち間欠条件成
立であれば、回数間欠プログラム実行処理として、シー
ケンスプログラム格納部9のプログラムCを実行し(ス
テップS44)、回数初期化処理として、回数データを
初期化する(ステップS45)。
On the other hand, if there is a number of times intermittent program, it is judged whether or not the value of the number of times data has reached the intermittent condition (set value) of the program information as the number of times judgment processing (step S43). If the value of the number of times data reaches the intermittent condition (set value) of the program information, that is, if the intermittent condition is satisfied, the program C of the sequence program storage unit 9 is executed as the number of times intermittent program execution processing (step S44), and the number of times As the initialization process, the count data is initialized (step S45).

【0094】これに対し、間欠条件不成立であれば、回
数更新処理として、回数データをインクリメントし(ス
テップS46)、ステップS12に戻ってスキャンプロ
グラム実行処理からを繰り返し実行する。
On the other hand, if the intermittent condition is not satisfied, the number of times data is incremented as the number of times updating process (step S46), and the process returns to step S12 to repeat the processes from the scan program execution process.

【0095】以上のような処理により、図10(c)に
示されているような順序、条件にてシーケンスプログラ
ムが実行される。すなわち、図9のフローチャートに示
すように、システムプログラム12に設定されたプログ
ラム実行回数基準のプログラム間欠実行処理部16(回
数間欠プログラムの有無を判別する回数間欠プログラム
有無判別処理と、スキャンプログラムの実行回数の計数
値が設定された実行回数に達したか否かを判定する回数
判別処理と、この判別結果に基づき計数値が設定実行回
数に達した場合に回数間欠プログラムを実行させる回数
間欠プログラム実行処理とを含む一連の処理ルーチン)
は、スキャンプログラムのスキャン間に行われるもので
あり、スキャンプログラムのスキャン間にプログラム実
行回数基準のプログラム間欠実行処理を実行して、回数
間欠プログラムを実行させる。回数間欠プログラムが終
了すると、図9のフローチャートに示すように、スキャ
ンプログラムを再度スキャンする。
Through the above processing, the sequence program is executed in the order and conditions shown in FIG. That is, as shown in the flowchart of FIG.
The program set in the system program 12
Program intermittent execution processing unit 16 (
Number of intermittent programs to determine the presence or absence of intermittent programs
Presence / absence discrimination processing and counting of the number of scan program executions
Number of times to determine whether the value has reached the set number of executions
Judgment processing and the count value is set based on this judgment result.
Number of times the intermittent program is executed when the number is reached
A series of processing routines including intermittent program execution processing)
Is what happens between scans in a scan program
Yes, scan program scan
The number of times the program is executed intermittently based on the number of lines
Run an intermittent program. The intermittent program is over
Then, as shown in the flow chart of FIG.
Scan the program again.

【0096】これにより、ある特定シーケンスプログラ
ムを回数基準で間欠実行させるのに、シーケンスプログ
ラム中にシーケンスプログラムを回数基準で間欠実行さ
せるプログラムコードを記述する必要がなくなり、間欠
実行回数の変更を容易に行うことができるようになる。
また、従来に比して、シーケンスプログラムが簡単にな
り、シーケンスプログラムの可読性が悪化することがな
く、各シーケンスプログラムの関連も容易に理解され得
るようになる。
As a result, in order to intermittently execute a specific sequence program on the basis of the number of times, it is not necessary to write a program code for intermittently executing the sequence program on the basis of the number of times, and the number of times of intermittent execution can be easily changed. You will be able to do it.
In addition, the sequence program becomes simpler than before, the readability of the sequence program is not deteriorated, and the relationship between the sequence programs can be easily understood.

【0097】(時間基準のプログラム間欠実行処理)つ
ぎにプログラマブルコントローラ1のCPU2により実
行されるシステムプログラムの処理(時間基準のプログ
ラム間欠実行処理)を図11に示されているフローチャ
ートと図12に示されている動作図とを参照として説明
する。
(Time-Based Program Intermittent Execution Processing) Next, the processing of the system program executed by the CPU 2 of the programmable controller 1 (time-based program intermittent execution processing) is shown in the flowchart of FIG. 11 and FIG. The operation diagram shown in FIG.

【0098】まず、プログラム情報取得処理として、パ
ラメータ格納部8のプログラム情報テーブル11からプ
ログラム情報を取得する(ステップS10)。ここで、
プログラム情報テーブル11から取得するプログラム情
報は、ユーザデータメモリ5のシーケンスプログラム格
納部9に格納されている各シーケンスプログラムのプロ
グラム名、属性、プログラム実行有無判別対象のデバイ
ス、実行条件、間欠条件である(図12(a)参照)。
First, as program information acquisition processing, program information is acquired from the program information table 11 of the parameter storage unit 8 (step S10). here,
The program information acquired from the program information table 11 is the program name, attribute, device for which program execution is to be determined, execution condition, and intermittent condition of each sequence program stored in the sequence program storage unit 9 of the user data memory 5. (See FIG. 12 (a)).

【0099】つぎに、イニシャルプログラム実行処理と
して、ステップS10で取得したプログラム情報(プロ
グラム名および属性)からシーケンスプログラム格納部
9(図12(b)参照)のプログラムAを実行する(ス
テップS11)。
Next, as the initial program execution processing, the program A in the sequence program storage unit 9 (see FIG. 12B) is executed from the program information (program name and attribute) acquired in step S10 (step S11).

【0100】つぎに、時間間欠プログラム有無判別処理
として、プログラム情報(プログラム名および属性)か
ら時間間欠プログラムの有無を判別し(ステップS5
0)、時間間欠プログラムがあれば、時間(時間計測
値)初期化処理として、時間データを初期化する(ステ
ップS51)。
Next, as the time intermittent program presence / absence determining process, the presence / absence of the time intermittent program is determined from the program information (program name and attribute) (step S5).
0), if there is a time intermittent program, time data is initialized as time (time measurement value) initialization processing (step S51).

【0101】つぎに、スキャンプログラム実行処理とし
て、プログラム情報(プログラム名および属性)からシ
ーケンスプログラム格納部9のプログラムBを実行する
(ステップS12)。
Next, as the scan program execution processing, the program B in the sequence program storage section 9 is executed from the program information (program name and attribute) (step S12).

【0102】つぎに、他スキャンプログラム有無判別処
理として、プログラム情報(プログラム名および属性)
から他のスキャンプログラムの有無を判別する(ステッ
プS13)。他のスキャンプログラムがあれば、次スキ
ャンプログラム移動処理として、そのシーケンスプログ
ラムへの移動を行い(ステップS14)、この後にスキ
ャンプログラム実行処理として、そのプログラムを実行
する(ステップS12)。
Next, as another scan program presence / absence determining process, program information (program name and attribute)
Then, the presence / absence of another scan program is determined (step S13). If there is another scan program, it moves to the sequence program as the next scan program moving process (step S14), and then executes that program as the scan program executing process (step S12).

【0103】これに対し、他のスキャンプログラムがな
ければ、時間間欠プログラム有無判別処理として、プロ
グラム情報(プログラム名および属性)から時間間欠プ
ログラムの有無を判別する(ステップS52)。時間間
欠プログラムがなければ、直接ステップS12に戻り、
スキャンプログラム実行処理からを繰り返し実行する。
On the other hand, if there is no other scan program, the presence / absence of the time intermittent program is determined from the program information (program name and attribute) as the time intermittent program presence / absence determining process (step S52). If there is no intermittent program, return directly to step S12,
The process from the scan program execution process is repeatedly executed.

【0104】これに対し、時間間欠プログラムがあれ
ば、時間判別処理として、時間データの値がプログラム
情報の間欠条件(設定値)に達したか否かを判別する
(ステップS53)。時間データの値がプログラム情報
の間欠条件(設定値)に達すれば、すなわち間欠条件成
立であれば、時間間欠プログラム実行処理として、シー
ケンスプログラム格納部9のプログラムCを実行し(ス
テップS54)、時間初期化処理として、時間データを
初期化する(ステップS55)。
On the other hand, if there is a time intermittent program, it is judged whether or not the value of the time data has reached the intermittent condition (set value) of the program information as the time judgment processing (step S53). If the value of the time data reaches the intermittent condition (set value) of the program information, that is, if the intermittent condition is satisfied, the program C of the sequence program storage unit 9 is executed as the time intermittent program execution process (step S54), As initialization processing, time data is initialized (step S55).

【0105】これに対し、間欠条件不成立であれば、ス
テップS12に戻ってスキャンプログラム実行処理から
を繰り返し実行する。
On the other hand, if the intermittent condition is not satisfied, the process returns to step S12 and the steps from the scan program execution process are repeated.

【0106】以上のような処理により、図12(c)に
示されているような順序、条件にてシーケンスプログラ
ムが実行される。すなわち、図11のフローチャートに
示すように、システムプログラム12に設定された時間
基準のプログラム間欠実行処理部17(時間間欠プログ
ラムの有無を判別する時間間欠プログラム有無判別処理
と、所定の時点からの経過時間の計数値が設定された経
過時間に達したか否かを判定する時間判別処理と、この
判別結果に基づき経過時間の計数値が設定された経過時
間に達した場合に時間間欠プログラムを実行させる時間
間欠プログラム実行処理とを含む一連の処理ルーチン)
は、スキャンプログラムのスキャン間に行われるもので
あり、スキャンプログラムのスキャン間に時間基準のプ
ログラム間欠実行処理を実行して、時間間欠プログラム
を実行させる。時間間欠プログラムが終了すると、図1
1のフローチャートに示すように、スキャンプログラム
を再度スキャンする。
Through the above processing, the sequence program is executed in the order and conditions shown in FIG. That is, in the flowchart of FIG.
As shown, the time set in the system program 12
Standard program intermittent execution processing unit 17 (time intermittent program
Time intermittent program presence / absence determination process for determining the presence / absence of ram
And the count value of the elapsed time from the specified point in time
This is a time determination process to determine whether the overtime has been reached, and
When the elapsed time count value is set based on the determination result
Time to run the intermittent program when the time is reached
A series of processing routines including intermittent program execution processing)
Is what happens between scans in a scan program
Yes, a time-based
Execute the program intermittent execution process, and execute the time intermittent program
To execute. Figure 1
As shown in the flowchart of No. 1, scan program
Scan again.

【0107】これにより、ある特定シーケンスプログラ
ムを時間基準で間欠実行させるのに、シーケンスプログ
ラム中にシーケンスプログラムを時間基準で間欠実行さ
せるプログラムコードを記述する必要がなくなり、間欠
実行時間の変更を容易に行うことができるようになる。
また、従来に比して、シーケンスプログラムが簡単にな
り、シーケンスプログラムの可読性が悪化することがな
く、各シーケンスプログラムの関連も容易に理解され得
るようになる。なお、実行すべき複数のシーケンスプロ
グラムに、スキャンプログラムの他に、ビット判別プロ
グラム、ワード判別プログラム、周辺要求プログラム、
回数間欠プログラム、時間間欠プログラムのうちの2つ
の以上プログラムが含まれている場合は、スキャンと次
のスキャンの間に、これらのプログラム(ビット判別プ
ログラム、ワード判別プログラム、周辺要求プログラ
ム、回数間欠プログラム、時間間欠プログラム)が連続
して実行される。
As a result, in order to intermittently execute a specific sequence program on a time basis, it is not necessary to write a program code for intermittently executing the sequence program on a time basis in the sequence program, and the intermittent execution time can be easily changed. You will be able to do it.
In addition, the sequence program becomes simpler than before, the readability of the sequence program is not deteriorated, and the relationship between the sequence programs can be easily understood. In addition, multiple sequence programs to be executed
In addition to the scanning program
Gram, word discrimination program, peripheral request program,
Two of intermittent program and intermittent program
If more than one of the programs are included, scan and
These programs (bit discriminator
Program, word discrimination program, peripheral requirement program
Program, frequency intermittent program, time intermittent program)
And then executed.

【0108】[0108]

【発明の効果】以上の説明から理解される如く、この発
明によるプログラマブルコントローラによれば、スキャ
ンプログラムとしての第1のプログラムであるかあるい
はスキャンプログラムのスキャン間に行われる第2のプ
ログラムに含まれるかの区別を示しているプログラム属
性情報と、第2のプログラムを実行させるための実行条
件情報とを含むプログラム情報が、複数のシーケンスプ
ログラムについてそれぞれ設定されたプログラム情報テ
ーブルを用意し、システムプログラムに、第2のプログ
ラムを実行させるための実行条件を判定するための実行
条件判別処理プログラムを備えさせて、このシステムプ
ログラムを実行させることにより、プログラム情報テー
ブルから取得したプログラム情報に第2のプログラムが
存在している場合、第1のプログラムのスキャン間に実
行条件判別処理プログラムを実行させて第2のプログラ
ムの実行の有無を判別し、この判別結果に基づいて第2
のプログラムを実行させることにより、シーケンスプロ
グラムに前記実行条件情報に対応する記述を不要として
いる。したがって、従来に比して、シーケンスプログラ
ムが簡単になり、シーケンスプログラムの可読性が悪化
することがなく、各シーケンスプログラムの関連も容易
に理解され得るようになる。
As can be understood from the above description, according to the programmable controller of the present invention, the scan
Is it the first program as an online program?
Is the second process performed during the scan of the scan program.
Program genus indicating the inclusion in the program
Sex information and execution rules for executing the second program
Program information including the case information and multiple sequence
Program information table set for each program
Cable and prepare a second program for the system program.
Execution to determine the execution condition to execute the ram
This system program is equipped with a condition determination processing program.
By executing the program, the program information
The second program is added to the program information obtained from Bull
If it is present, it will be removed during the scan of the first program.
The second program is executed by executing the line condition determination processing program.
The presence or absence of the execution of the system is discriminated, and the second
By executing the program of
The description corresponding to the execution condition information is unnecessary in the gram
There is. Therefore, the sequence program is
Program becomes easier and the readability of the sequence program deteriorates.
Easy to relate to each sequence program
Can be understood by.

【0109】[0109]

【0110】つぎの発明によるプログラマブルコントロ
ーラによれば、システムプログラムの実行により、プロ
グラム情報テーブルのプログラム情報を参照して周辺要
求プログラム有無判別処理、通信バッファからの周辺要
求取得処理、周辺要求判別処理、周辺要求プログラム実
行処理と云う一連の処理ルーチンが行われ、外部周辺機
器からの実行/非実行要求に応じて或る特定シーケンス
プログラムの実行有無が切り換えられるから、プログラ
マブルコントローラに接続されるプログラミング/デバ
ッグユニットなどの外部周辺機器からの実行/非実行要
求で、ある特定シーケンスプログラムを実行させるの
に、シーケンスプログラム中にシーケンスプログラム中
に外部周辺機器からの実行/非実行要求を判別させるプ
ログラムコードを記述する必要がなくなり、外部周辺機
器からの実行/非実行要求を判別するための特別なビッ
トデバイスを準備する必要がなくなり、また、従来に比
して、シーケンスプログラムが簡単になり、シーケンス
プログラムの可読性が悪化することがなく、各シーケン
スプログラムの関連も容易に理解され得るようになる。
According to the programmable controller of the next invention, by executing the system program, by referring to the program information in the program information table, peripheral request program presence / absence determination processing, peripheral request acquisition processing from the communication buffer, peripheral request determination processing, A series of processing routines called peripheral request program execution processing is performed, and the execution / non-execution of a specific sequence program is switched according to execution / non-execution requests from external peripheral devices, so programming / debugging connected to a programmable controller To execute a specific sequence program in response to an execution / non-execution request from an external peripheral device such as a unit, in the sequence program, write the program code to determine the execution / non-execution request from the external peripheral device in the sequence program. To eliminate the need, it is not necessary to prepare a special bit <br/> bets device for determining execution / non-execution request from the external peripheral device, also in comparison with the conventional sequence program easily Therefore, the readability of the sequence program is not deteriorated, and the relation between the sequence programs can be easily understood.

【0111】つぎの発明によるプログラマブルコントロ
ーラによれば、システムプログラムの実行により、プロ
グラム情報テーブルのプログラム情報を参照して回数間
欠プログラム有無判別処理、回数初期化処理、回数間欠
プログラム有無判別処理、回数判別処理、回数間欠プロ
グラム実行処理、回数初期化処理、回数更新処理と云う
一連の処理ルーチンが行われ、或る特定シーケンスプロ
グラムが回数基準で間欠実行されるから、ある特定シー
ケンスプログラムを回数基準で間欠実行させるのに、シ
ーケンスプログラム中にシーケンスプログラムを回数基
準で間欠実行させるプログラムコードを記述する必要が
なくなり、間欠実行回数の変更を容易に行うことができ
るようになる。また、従来に比して、シーケンスプログ
ラムが簡単になり、シーケンスプログラムの可読性が悪
化することがなく、各シーケンスプログラムの関連も容
易に理解され得るようになる。
According to the programmable controller of the next invention, by executing the system program, the program information in the program information table is referred to and the number of intermittent programs presence / absence determination process, the number of times initialization process, the number of intermittent programs presence / absence determination process, and the number of times determination are performed. A series of processing routines such as processing, number of times intermittent program execution processing, number of times initialization processing, and number of times updating processing are performed, and a certain specific sequence program is intermittently executed based on the number of times. To execute the program, it is not necessary to write a program code for intermittently executing the sequence program on the basis of the number of times in the sequence program, and the number of times of intermittent execution can be easily changed. In addition, the sequence program becomes simpler than before, the readability of the sequence program is not deteriorated, and the relationship between the sequence programs can be easily understood.

【0112】[0112]

【0113】[0113]

【0114】[0114]

【0115】つぎの発明によるプログラマブルコントロ
ーラのシーケンスプログラム実行方法によれば、周辺要
求のプログラム属性をプログラム情報としてパラメータ
設定し、システムプログラムによる周辺要求プログラム
有無判別処理、通信バッファからの周辺要求取得処理、
周辺要求判別処理、周辺要求プログラム実行処理と云う
一連の処理ルーチンによって周辺機器からの実行/非実
行要求に応じて或る特定シーケンスプログラムの実行有
無を切り換えられるから、プログラマブルコントローラ
に接続されるプログラミング/デバッグユニットなどの
外部周辺機器からの実行/非実行要求で、ある特定シー
ケンスプログラムを実行させるのに、シーケンスプログ
ラム中にシーケンスプログラム中に外部周辺機器からの
実行/非実行要求を判別させるプログラムコードを記述
する必要がなくなり、外部周辺機器からの実行/非実行
要求を判別するための特別なビットデバイスを準備する
必要がなくなり、また、従来に比して、シーケンスプロ
グラムが簡単になり、シーケンスプログラムの可読性が
悪化することがなく、各シーケンスプログラムの関連も
容易に理解され得るようになる。
According to the sequence program execution method of the programmable controller of the following invention, the program attribute of the peripheral request is set as the program information, and the peripheral request program presence / absence determination processing by the system program, the peripheral request acquisition processing from the communication buffer,
A series of processing routines, such as peripheral request determination processing and peripheral request program execution processing, can switch execution / non-execution of a specific sequence program in response to execution / non-execution requests from peripheral devices. In order to execute a specific sequence program in response to an execution / non-execution request from an external peripheral device such as a debug unit, a program code is included in the sequence program to determine the execution / non-execution request from the external peripheral device in the sequence program. it is not necessary to describe, it is not necessary to prepare a special bit device for determining execution / non-execution request from the external peripheral device, also in comparison with the conventional sequence program is simplified, the sequence program Readability of , So also relates can be readily understood in the sequence programs.

【0116】つぎの発明によるプログラマブルコントロ
ーラのシーケンスプログラム実行方法によれば、回数間
欠のプログラム属性をプログラム情報としてパラメータ
設定し、システムプログラムによる回数間欠プログラム
有無判別処理、回数初期化処理、回数間欠プログラム有
無判別処理、回数判別処理、回数間欠プログラム実行処
理、回数初期化処理、回数更新処理と云う一連の処理ル
ーチンによって或る特定シーケンスプログラムを回数基
準で間欠実行するから、ある特定シーケンスプログラム
を回数基準で間欠実行させるのに、シーケンスプログラ
ム中にシーケンスプログラムを回数基準で間欠実行させ
るプログラムコードを記述する必要がなくなり、間欠実
行回数の変更を容易に行うことができるようになる。ま
た、従来に比して、シーケンスプログラムが簡単にな
り、シーケンスプログラムの可読性が悪化することがな
く、各シーケンスプログラムの関連も容易に理解され得
るようになる。
According to the programmable controller sequence program execution method of the present invention, the number of intermittent program attributes is set as program information, and the system program determines whether or not the program is intermittent, the initialization of the program, and the presence or absence of an intermittent program. A certain sequence program is intermittently executed on the basis of the number of times by a series of processing routines such as a discrimination process, the number of times discrimination process, the number of times intermittent program execution process, the number of times initialization process, and the number of times update process, so that a certain sequence program is performed on the times basis. For intermittent execution, it is not necessary to write a program code for intermittently executing the sequence program on the basis of the number of times in the sequence program, and the number of intermittent executions can be easily changed. In addition, the sequence program becomes simpler than before, the readability of the sequence program is not deteriorated, and the relationship between the sequence programs can be easily understood.

【0117】[0117]

【図面の簡単な説明】[Brief description of drawings]

【図1】 この発明によるプログラマブルコントローラ
のハードウエア構成を示すブロック線図である。
FIG. 1 is a block diagram showing a hardware configuration of a programmable controller according to the present invention.

【図2】 この発明によるプログラマブルコントローラ
で使用されるシステムプログラムの一部を示す説明図で
ある。
FIG. 2 is an explanatory diagram showing a part of a system program used in the programmable controller according to the present invention.

【図3】 システムプログラムの処理(ビット判別によ
る特定プログラム実行処理)のフローチャートである。
FIG. 3 is a flowchart of processing of a system program (specific program execution processing by bit discrimination).

【図4】 (a)〜(c)はビット判別による特定プロ
グラム実行処理における動作図である。
4A to 4C are operation diagrams in a specific program execution process based on bit discrimination.

【図5】 システムプログラムの処理(ワード判別によ
る特定プログラム実行処理)のフローチャートである。
FIG. 5 is a flowchart of processing of a system program (specific program execution processing by word determination).

【図6】 (a)〜(c)はワード判別による特定プロ
グラム実行処理における動作図である。
6A to 6C are operation diagrams in a specific program execution process by word determination.

【図7】 システムプログラムの処理(周辺要求による
特定プログラム実行処理)のフローチャートである。
FIG. 7 is a flowchart of processing of a system program (specific program execution processing by peripheral request).

【図8】 (a)〜(c)は周辺要求による特定プログ
ラム実行処理における動作図である。
8A to 8C are operation diagrams in a specific program execution process according to a peripheral request.

【図9】 システムプログラムの処理(プログラミング
実行回数基準のプログラム間欠実行処理)のフローチャ
ートである。
FIG. 9 is a flowchart of processing of a system program (program intermittent execution processing based on the number of times of programming execution).

【図10】 (a)〜(c)はプログラミング実行回数
基準のプログラム間欠実行処理における動作図である。
10A to 10C are operation diagrams in a program intermittent execution process based on the number of times of programming execution.

【図11】 システムプログラムの処理(時間基準のプ
ログラム間欠実行処理)のフローチャートである。
FIG. 11 is a flowchart of a system program process (time-based program intermittent execution process).

【図12】 (a)〜(c)は時間基準のプログラム間
欠実行処理における動作図である。
12A to 12C are operation diagrams in a time-based program intermittent execution process.

【図13】 従来技術のプログラマブルコントローラの
ハードウエア構成を示すブロック線図である。
FIG. 13 is a block diagram showing a hardware configuration of a conventional programmable controller.

【図14】 従来のプログラマブルコントローラにおけ
るシステムプログラム処理のフローチャートである。
FIG. 14 is a flowchart of system program processing in a conventional programmable controller.

【図15】 (a)〜(c)は従来のプログラマブルコ
ントローラにおけるプログラム実行処理の動作図であ
る。
15A to 15C are operation diagrams of program execution processing in a conventional programmable controller.

【図16】 (a)〜(d)は従来のプログラマブルコ
ントローラにおけるビット判別による特定プログラム実
行処理のためのシーケンスプログラム例を示すラダー図
である。
16A to 16D are ladder diagrams showing an example of a sequence program for a specific program execution process based on bit determination in a conventional programmable controller.

【図17】 (a)〜(d)は従来のプログラマブルコ
ントローラにおけるワード判別による特定プログラム実
行処理のためのシーケンスプログラム例を示すラダー図
である。
17 (a) to 17 (d) are ladder diagrams showing an example of a sequence program for a specific program execution process by word determination in a conventional programmable controller.

【図18】 (a)〜(d)は従来のプログラマブルコ
ントローラにおける周辺要求による特定プログラム実行
処理のためのシーケンスプログラム例を示すラダー図で
ある。
18A to 18D are ladder diagrams showing an example of a sequence program for a specific program execution process in response to a peripheral request in a conventional programmable controller.

【図19】 (a)〜(d)は従来のプログラマブルコ
ントローラにおける回数基準のプログラム間欠実行処理
のためのシーケンスプログラム例を示すラダー図であ
る。
19A to 19D are ladder diagrams showing an example of a sequence program for the number-based program intermittent execution processing in the conventional programmable controller.

【図20】 (a)〜(d)は従来のプログラマブルコ
ントローラにおける時間基準のプログラム間欠実行処理
のためのシーケンスプログラム例を示すラダー図であ
る。
20A to 20D are ladder diagrams showing a sequence program example for a time-based program intermittent execution process in a conventional programmable controller.

【符号の説明】[Explanation of symbols]

1 プログラマブルコントローラ,2 CPU,3 シ
ステムプログラムメモリ,4 デバイスメモリ,5 ユ
ーザデータメモリ,6 通信バッファ,7 外部周辺機
器,8 パラメータ格納部,9 シーケンスプログラム
格納部,11プログラム情報テーブル,12 システム
プログラム,13 ビット判別による特定プログラム実
行処理部,14 ワード判別による特定プログラム実行
処理部,15 外部周辺機器よりの要求による特定プロ
グラム実行処理部,16 プログラミング実行回数基準
のプログラム間欠実行処理部,17 時間基準のプログ
ラム間欠実行処理部。
1 programmable controller, 2 CPU, 3 system program memory, 4 device memory, 5 user data memory, 6 communication buffer, 7 external peripheral device, 8 parameter storage unit, 9 sequence program storage unit, 11 program information table, 12 system program, Specific program execution processing unit based on 13-bit discrimination, 14 program execution processing unit based on word determination, 15 Specific program execution processing unit based on request from external peripheral equipment, 16 Program intermittent execution processing unit based on programming execution count, 17-hour based Program intermittent execution processing unit.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G05B 19/05 G06F 9/32 ─────────────────────────────────────────────────── ─── Continuation of the front page (58) Fields surveyed (Int.Cl. 7 , DB name) G05B 19/05 G06F 9/32

Claims (10)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数のシーケンスプログラムを繰り返し
実行させるプログラマブルコントローラにおいて、 前記複数のシーケンスプログラムが格納されているシー
ケンスプログラム格納部と、 前記複数のシーケンスプログラムを実行させるシステム
プログラムが格納されるシステムプログラムメモリと、 スキャンプログラムとしての第1のプログラムであるか
あるいはスキャンプログラムのスキャン間に行われる第
2のプログラムに含まれるかの区別を示しているプログ
ラム属性情報と、前記第2のプログラムを実行させるた
めの実行条件情報とを含むプログラム情報が、前記複数
のシーケンスプログラムについてそれぞれ設定されたプ
ログラム情報テーブルと、 を備え、 前記システムプログラムに、前記第2のプログラムを実
行させるための実行条件を判定するための実行条件判別
処理プログラムを備えさせて、このシステムプログラム
を実行させることにより、 前記プログラム情報テーブルから取得したプログラム情
報に前記第2のプログラムが存在している場合、前記第
1のプログラムのスキャン間に前記実行条件判別処理プ
ログラムを実行させて前記第2のプログラムの実行の有
無を判別し、この判別結果に基づいて前記第2のプログ
ラムを実行させることにより、前記シーケンスプログラ
ムに前記実行条件情報に対応する記述を不要としたこと
を特徴とするプログラマブルコントローラ。
1. Repeating a plurality of sequence programs
In the programmable controller to be executed, the sequence program that stores the sequence programs
A can program storage unit and a system for executing the plurality of sequence programs
Is it the first program as a scan program and the system program memory that stores the program?
Or the number of scan programs
A program showing the distinction between two programs
The RAM attribute information and the second program are executed.
Program information including execution condition information for
Of each sequence program
Comprising a program information table, and the system program, the real and the second program
Execution condition determination to determine the execution condition to execute
This processing system program is equipped with a processing program.
Is executed, the program information obtained from the program information table is
If the second program exists in the report,
During the scan of the first program, the execution condition determination process
Program to execute the second program.
Nothing is discriminated, and based on the discrimination result, the second program
The sequence program is executed by executing the RAM.
The description corresponding to the execution condition information is unnecessary in the system
Programmable controller.
【請求項2】 前記プログラム情報テーブルは、前記プ
ログラム属性情報として、ビット判別により実行する前
記第2のプログラムに含まれるビット判別プログラムで
あることを示すビット判別属性が設定されるとともに、
前記実行条件情報として、ビット判別によるプログラム
実行有無判別対象のデバイス情報およびその実行条件を
示すデバイス設定値情報が設定され、 前記実行条件判別処理プログラムは、 前記プログラム属性情報に基づきビット判別プログラム
の有無を判別するビッ ト判別プログラム有無判別処理
と、前記デバイス情報で指定されたデバイスメモリから
のビットデバイスデータを取得するビットデバイスデー
タ取得処理と、取得したビットデバイスデータの値が前
記デバイス設定値情報で示される実行条件を満足するか
否かを判別し、実行条件成立であれば前記ビット判別属
性として設定されたビット判別プログラムを実行させる
ビット判別プログラム実行処理と、を含む一連の処理ル
ーチンを行うものである ことを特徴とする請求項1に記
載のプログラマブルコントローラ。
2. The program information table is the program information table.
As program attribute information, before execution by bit discrimination
In the bit determination program included in the second program
While the bit discrimination attribute indicating that there is is set,
A program based on bit discrimination as the execution condition information
The device information and the execution conditions
The device setting value information shown is set, and the execution condition determination processing program is a bit determination program based on the program attribute information.
It bit determining program presence or absence determining process for determining the presence or absence of
And from the device memory specified in the device information
Get the bit device data of
Data acquisition process and the acquired bit device data value
Does the execution condition indicated by the device setting value information be satisfied?
If it is determined whether or not the execution condition is satisfied, the bit determination attribute
To execute the bit discrimination program set as
Bit discrimination program execution processing, including a series of processing
The method according to claim 1, characterized in that
On-board programmable controller.
【請求項3】 前記プログラム情報テーブルは、前記プ
ログラム属性情報として、ワード判別により実行する前
記第2のプログラムに含まれるワード判別プログラムで
あることを示すワード判別属性が設定されるとともに、
前記実行条件情報として、ワード判別によるプログラム
実行有無判別対象のデバイス情報およびその実行条件を
示すデバイス設定値情報が設定され、 前記実行条件判別処理プログラムは、 前記プログラム属性情報に基づきワード判別プログラム
の有無を判別するワード判別プログラム有無判別処理
と、前記デバイス情報で指定されたデバイスメモリから
のワードデバイスデータを取得するワードデバイスデー
タ取得処理と、取得したワードデバイスデータの値が前
記デバイス設定値情報で示される実行条件を満足するか
否かを判別し、実行条件成立であれば前記ワード判別属
性として設定されたワード判別プログラムを実行させる
ワード判別プログラム実行処理と、を含む一連の処理ル
ーチンを行うものである ことを特徴とする請求項1に記
載のプログラマブルコントローラ。
3. The program information table includes the program information table.
Before executing by word discrimination as program attribute information
In the word discrimination program included in the second program
With the word discrimination attribute indicating that there is,
A program based on word determination as the execution condition information
The device information and the execution conditions
The device setting value information shown is set, and the execution condition determination processing program is a word determination program based on the program attribute information.
Word discriminating program for discriminating the presence / absence of presence / absence
And from the device memory specified in the device information
Get the word device data of
Data acquisition process and the acquired word device data value
Does the execution condition indicated by the device setting value information be satisfied?
If the execution condition is satisfied, the word determination attribute is determined.
To execute the word discrimination program set as a sex
Word discrimination program execution processing, including a series of processing
The method according to claim 1, characterized in that
On-board programmable controller.
【請求項4】 前記プログラム情報テーブルは、前記プ
ログラム属性情報として、外部周辺機器からの周辺要求
により実行する前記第2のプログラムに含まれる周辺要
求プログラムであることを示す周辺要求属性が設定さ
れ、 前記実行条件判別処理プログラムは、 前記プログラム属性情報に基づき周辺要求プログラムの
有無を判別する周辺要求プログラム有無判別処理と、通
信バッファを介して外部周辺機器からのデータを取得す
る周辺要求取得処理と、前記外部周辺機器からのデータ
が前記周辺要求プログラムの実行要求であるか否かを判
別する周辺要求判別処理と、前記判別結 果に基づき外部
周辺機器からのデータが周辺要求プログラムの実行要求
である場合に前記周辺要求属性として設定された周辺要
求プログラムを実行させる周辺要求プログラム実行処理
と、を含む一連の処理ルーチンを行うものである ことを
特徴とする請求項1に記載のプログラマブルコントロー
ラ。
4. The program information table is the program information table.
Peripheral request from external peripheral device as program attribute information
The peripheral elements included in the second program executed by
The peripheral request attribute indicating that the program is a request program is set.
Is the execution condition determination processing program, the peripheral request program based on the program attribute information
Peripheral request program presence / absence determination process
Data from external peripherals via the communication buffer.
Peripheral request acquisition process and data from the external peripheral device
Determines whether the request is for the execution of the peripheral request program.
A peripheral request determination process different to the external on the basis of the determination results
Data from peripheral device is a request to execute peripheral request program
If it is, the peripheral requirement set as the peripheral requirement attribute is
Peripheral request program execution processing to execute the request program
When, it performs a series of processing routines including
The programmable controller according to claim 1, characterized in that
La.
【請求項5】 前記プログラム情報テーブルは、前記プ
ログラム属性情報として、第1のプログラムの実行回数
に応じて間欠的に実行する前記第2のプログラムに含ま
れる回数間欠プログラムであることを示す回数間欠属性
が設定されるとともに、前記実行条件情報として、前記
実行回数を示す実行回数情報が設定され、 前記実行条件判別処理プログラムは、 前記プログラム属性情報に基づき回数間欠プログラムの
有無を判別する回数間欠プログラム有無判別処理と、第
1のプログラムの実行回数の計数値が前記設定された実
行回数情報が示す実行回数に達したか否かを判定する回
数判別処理と、前記判別結果に基づき計数値が実行回数
情報が示す実行回数に達した場合に前記回数間欠属性と
して設定された回数間欠プログラムを実行させる回数間
欠プログラム実行処理と、を含む一連の処理ルーチンを
行うものである ことを特徴とする請求項1に記載のプロ
グラマブルコントローラ。
5. The program information table includes the program information table.
Number of executions of the first program as program attribute information
Included in the second program to be executed intermittently according to
Number of times intermittent attribute that indicates that the program is an intermittent program
Is set, and as the execution condition information, the
Execution count information indicating the number of executions is set, the execution condition determination processing program, the number intermittent program based on the program attribute information
Number of times the presence / absence of an intermittent program is determined
The count value of the number of executions of program 1 is
Number of times to determine whether the number of executions indicated by the row count information has been reached
Number judgment processing and the count value is the number of executions based on the judgment result
If the number of executions indicated by the information is reached,
For the number of times that the intermittent program is set
A series of processing routines including missing program execution processing
The professional according to claim 1, characterized in that it is performed.
Programmable controller.
【請求項6】 前記プログラム情報テーブルは、前記プ
ログラム属性情報として、所定の時点からの経過時間に
応じて間欠的に実行する前記第2のプログラムに含まれ
る時間間欠プログラムであることを示す時間間欠属性が
設定されるとともに、前記実行条件情報として、前記経
過時間を示す経過時間情報が設定され、 前記実行条件判別処理プログラムは、 前記プログラム属性情報に基づき時間間欠プログラムの
有無を判別する時間間欠プログラム有無判別処理と、所
定の時点からの経過時間の計数値が前記設定された経過
時間情報が示す経過時間に達したか否かを判定する時間
判別処理と、前記判別結果に基づき経過時間の計数値が
経過時間情報が示す経過時間に達した場合に前記時間間
欠属性として設定された時間間欠プログラムを実行させ
る時間間欠プログラム実行処理と、を含む一連の処理ル
ーチンを行うものである ことを特徴とする請求項1に記
載のプログラマブルコントローラ。
6. The program information table includes the program information table.
As the program attribute information, the elapsed time from a predetermined point in time
Included in the second program to be executed accordingly
The time-intermittent attribute that indicates that the program is a time-intermittent program
The execution condition information is set as
Elapsed time information indicating an overtime is set, and the execution condition determination processing program determines whether the time intermittent program is based on the program attribute information.
Time intermittent program to determine presence / absence
Elapsed time from a fixed time is the set value
Time to determine whether the elapsed time indicated by the time information has been reached
Based on the discrimination process and the discrimination result, the count value of the elapsed time is
If the elapsed time indicated by the elapsed time information is reached, the time
Run the intermittent program set as the missing attribute
A series of processing routines including
The method according to claim 1, characterized in that
On-board programmable controller.
【請求項7】 複数個のシーケンスプログラムを連続し
て繰り返し実行させることが可能なプログラマブルコン
トローラにおいて、 プログラム情報としてプログラム属性に周辺要求により
実行するシーケンスプログラムであることを示す属性を
有し、そのプログラム属性をパラメータ設定されるプロ
グラム情報テーブルを有し、システムプログラムの実行
により前記プログラム情報テーブルのプログラム情報を
参照して周辺要求プログラム有無判別処理、通信バッフ
ァからの周辺要求取得処理、周辺要求判別処理、周辺要
求プログラム実行処理と云う一連の処理ルーチンを行
い、外部周辺機器からの実行/非実行要求に応じて或る
特定シーケンスプログラムの実行有無を切り換えること
を特徴とするプログラマブルコントローラ。
7. A programmable controller capable of continuously and repeatedly executing a plurality of sequence programs, wherein the program information has a program attribute having an attribute indicating that the program is a sequence program to be executed in response to a peripheral request. Having a program information table in which attributes are parameterized, by referring to the program information in the program information table by executing a system program, peripheral request program presence / absence determination processing, peripheral request acquisition processing from a communication buffer, peripheral request determination processing, A programmable controller characterized by executing a series of processing routines called peripheral request program execution processing, and switching execution / non-execution of a certain specific sequence program in response to execution / non-execution requests from external peripheral devices.
【請求項8】 複数個のシーケンスプログラムを連続し
て繰り返し実行させることが可能なプログラマブルコン
トローラにおいて、 プログラム情報としてプログラム属性にプログラムの実
行回数に応じて実行するシーケンスプログラムであるこ
とを示す属性を有し、そのプログラム属性をパラメータ
設定されるプログラム情報テーブルを有し、システムプ
ログラムの実行により前記プログラム情報テーブルのプ
ログラム情報を参照して回数間欠プログラム有無判別処
理、回数初期化処理、回数間欠プログラム有無判別処
理、回数判別処理、回数間欠プログラム実行処理、回数
初期化処理、回数更新処理と云う一連の処理ルーチンを
行うことにより、或る特定シーケンスプログラムを回数
基準で間欠実行することを特徴とするプログラマブルコ
ントローラ。
8. In a programmable controller capable of continuously executing a plurality of sequence programs repeatedly, the program attribute has an attribute indicating that the program is a sequence program to be executed according to the number of times of execution of the program. Then, it has a program information table in which the program attributes are set as parameters, and refers to the program information in the program information table by executing the system program, and determines the number of times intermittent program presence / absence determination processing, the number of times initialization processing, and the number of times intermittent program presence / absence determination. A programmable co-processor characterized in that a certain sequence program is intermittently executed on the basis of the number of times by performing a series of processing routines such as processing, number of times discrimination processing, number of times intermittent program execution processing, number of times initialization processing, and number of times updating processing. Controller.
【請求項9】 複数個のシーケンスプログラムを連続し
て繰り返し実行させることが可能なプログラマブルコン
トローラのシーケンスプログラム実行方法において、 プログラム情報としてプログラム属性に周辺要求により
実行するシーケンスプログラムであることを示す属性を
設け、そのプログラム属性をプログラム情報としてパラ
メータ設定し、システムプログラムによる周辺要求プロ
グラム有無判別処理、通信バッファからの周辺要求取得
処理、周辺要求判別処理、周辺要求プログラム実行処理
と云う一連の処理ルーチンにより、外部周辺機器からの
実行/非実行要求に応じて或る特定シーケンスプログラ
ムの実行有無を切り換えられるようにしたことを特徴と
するプログラマブルコントローラのシーケンスプログラ
ム実行方法。
9. A sequence program execution method of a programmable controller capable of continuously and repeatedly executing a plurality of sequence programs, wherein an attribute indicating that the program program is a sequence program to be executed by a peripheral request is provided as program information. By setting a parameter of the program attribute as program information provided by the system program, peripheral processing request presence / absence determination processing by the system program, peripheral request acquisition processing from the communication buffer, peripheral request determination processing, peripheral request program execution processing A sequence program execution method for a programmable controller, wherein execution / non-execution of a specific sequence program can be switched according to execution / non-execution request from an external peripheral device.
【請求項10】 複数個のシーケンスプログラムを連続
して繰り返し実行させることが可能なプログラマブルコ
ントローラのシーケンスプログラム実行方法において、 プログラム情報としてプログラム属性にプログラムの実
行回数に応じて実行するシーケンスプログラムであるこ
とを示す属性を設け、そのプログラム属性をプログラム
情報としてパラメータ設定し、システムプログラムによ
る回数間欠プログラム有無判別処理、回数初期化処理、
回数間欠プログラム有無判別処理、回数判別処理、回数
間欠プログラム実行処理、回数初期化処理、回数更新処
理と云う一連の処理ルーチンにより、或る特定シーケン
スプログラムを回数基準で間欠実行することを特徴とす
るプログラマブルコントローラのシーケンスプログラム
実行方法。
10. A sequence program execution method of a programmable controller capable of continuously and repeatedly executing a plurality of sequence programs, which is a sequence program executed according to the number of times the program is executed in a program attribute as program information. Is provided, and the program attribute is set as a parameter as program information, and the system program determines the number of times an intermittent program is present, the number of times initialization process,
A certain sequence program is intermittently executed based on the number of times by a series of processing routines such as a number of times intermittent program presence / absence determination process, a number of times determination process, a number of times intermittent program execution process, a number of times initialization process, and a number of times updating process. A programmable controller sequence program execution method.
JP13559297A 1997-05-26 1997-05-26 Programmable controller and sequence program execution method Expired - Lifetime JP3439945B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13559297A JP3439945B2 (en) 1997-05-26 1997-05-26 Programmable controller and sequence program execution method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13559297A JP3439945B2 (en) 1997-05-26 1997-05-26 Programmable controller and sequence program execution method

Publications (2)

Publication Number Publication Date
JPH10326104A JPH10326104A (en) 1998-12-08
JP3439945B2 true JP3439945B2 (en) 2003-08-25

Family

ID=15155434

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13559297A Expired - Lifetime JP3439945B2 (en) 1997-05-26 1997-05-26 Programmable controller and sequence program execution method

Country Status (1)

Country Link
JP (1) JP3439945B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000043883A1 (en) * 1999-01-25 2000-07-27 Mitsubishi Denki Kabushiki Kaisha Peripheral unit of programmable controller
JP2001242915A (en) * 2000-03-01 2001-09-07 Yaskawa Electric Corp Message communicating method for programmable controller
JP7364428B2 (en) * 2019-10-30 2023-10-18 ファナック株式会社 programmable controller

Also Published As

Publication number Publication date
JPH10326104A (en) 1998-12-08

Similar Documents

Publication Publication Date Title
US7266809B2 (en) Software debugger and software development support system for microcomputer operable to execute conditional execution instruction
EP1378833A1 (en) Dynamic breakpoints for computer software
JP2883784B2 (en) Microcomputer
US20050268195A1 (en) Apparatus and method for improving emulation speed of high-level languages in on-chip emulation systems
US5109504A (en) Graphics program adaptor
EP1378832A1 (en) Process and system for comfortable debugging of computer programs
JP3439945B2 (en) Programmable controller and sequence program execution method
CN111352610A (en) Interface return value modification method and device, electronic equipment and storage medium
US5963725A (en) Simulation system and method for microcomputer program
US4807178A (en) Programmable sequence controller having indirect and direct input/output apparatus
EP1211597A2 (en) Parameter tuner system
CN110928753A (en) Method and device for controlling log output of browser console, computer equipment and computer readable storage medium
US8069193B2 (en) Method and system for utilizing a generic scalar function to allow a column function to operate on row data
EP1378835B1 (en) Process and system for comfortable debugging of computer programs
JP3910831B2 (en) Program development support device, recording medium, and program
EP4040294A1 (en) Process scheduling method and apparatus of vision software
JP6802320B2 (en) Information processing system, information processing device, program, and information processing method
JPH0518138B2 (en)
JP2000250779A (en) Programmable controller
JP2953716B2 (en) Timing generation circuit
JP2000222243A (en) Device and method for debugging
EP1378834A2 (en) Dynamic breakpoints for computer software
JP3638505B2 (en) Simulation apparatus and software simulation method for microprocessor
CN111144973A (en) Question ranking method and computer-readable storage medium
JPS6145268B2 (en)

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080613

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20080613

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090613

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100613

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100613

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110613

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120613

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130613

Year of fee payment: 10

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term