JPH0944209A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH0944209A
JPH0944209A JP18999895A JP18999895A JPH0944209A JP H0944209 A JPH0944209 A JP H0944209A JP 18999895 A JP18999895 A JP 18999895A JP 18999895 A JP18999895 A JP 18999895A JP H0944209 A JPH0944209 A JP H0944209A
Authority
JP
Japan
Prior art keywords
specific processing
command
specific
processing command
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP18999895A
Other languages
Japanese (ja)
Other versions
JP3350699B2 (en
Inventor
Naoki Seno
直紀 瀬野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP18999895A priority Critical patent/JP3350699B2/en
Publication of JPH0944209A publication Critical patent/JPH0944209A/en
Application granted granted Critical
Publication of JP3350699B2 publication Critical patent/JP3350699B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

(57)【要約】 【課題】 メモリ資源等の使用効率を低減させることな
く、またプログラム実行サイクルを長くせずに周辺機器
が要求した特定処理を実行する。 【解決手段】 ツール2は、ツール2の特定処理コマン
ド送信部21は、I/Oユニット4のデータを読出す命
令(IORD)と、読出し元となるI/Oユニット4の
ユニットNoからなる特定処理コマンドC2をコントロ
ーラ本体1へ送信する。コントローラ本体1では、MP
U16が、周辺サービス処理サイクル中にその特定処理
コマンドC2を受信して、ワークRAM15の特定処理
コマンドエリアに格納して解読し、入出力データの読出
し命令と解読できた場合には、その命令実行により当該
周辺サービス処理中にI/Oユニット4からその入出力
データを読出し、読出せた場合には読出し完了という実
行結果と、その読出データとをレスポンスR2としてツ
ール2へ返送する。
(57) Abstract: A specific process requested by a peripheral device is executed without reducing the efficiency of use of memory resources and the like and without lengthening the program execution cycle. SOLUTION: A specific processing command transmission unit 21 of the tool 2 includes a command (IORD) for reading data of the I / O unit 4 and a unit number of the I / O unit 4 which is a read source. The processing command C2 is transmitted to the controller body 1. In the controller body 1, MP
When the U16 receives the specific processing command C2 during the peripheral service processing cycle, stores it in the specific processing command area of the work RAM 15 and decodes it, and if it can be decoded as a read / write command of input / output data, executes the command. Thus, when the input / output data is read and read from the I / O unit 4 during the peripheral service processing, the execution result of read completion and the read data are returned to the tool 2 as a response R2.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プログラム実行処
理等をサイクリックに実行して被制御機器の動作を制御
するコントローラ本体と、そのコントローラ本体に対し
特定の処理(以下、「特定処理」という。)を要求する
周辺機器とを具備するプログラマブルコントローラに関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a controller body for cyclically executing a program execution process or the like to control the operation of a controlled device, and a specific process for the controller body (hereinafter referred to as "specific process"). And a peripheral device that requires the.

【0002】[0002]

【従来の技術】従来、プログラム実行処理、入出力処理
および周辺サービス処理をサイクリックに実行して被制
御機器の動作を制御するコントローラ本体と、そのコン
トローラ本体に対し特定の処理を要求する周辺機器とを
具備するプログラマブルコントローラでは、コントロー
ラ本体に対し特定処理を実行させるために、コントロー
ラ本体が実行するユーザプログラム中に、その特定処理
を予め命令として組み込んでいた。
2. Description of the Related Art Conventionally, a controller body for cyclically executing a program execution process, an input / output process and a peripheral service process to control the operation of a controlled device, and a peripheral device for requesting a specific process from the controller body. In the programmable controller including the above, in order to make the controller main body execute the specific processing, the specific processing is incorporated as a command in advance in the user program executed by the controller main body.

【0003】そして、通常はその特定処理命令の実行条
件をオフにセットしておく一方、周辺機器からコントロ
ーラ本体に対しその特定処理を要求しようとする場合に
は、コントローラ本体の周辺サービス処理中に、その周
辺機器がその特定処理命令の実行条件をオフからオンに
セットし、コントローラ本体がプログラム実行サイクル
中にその特定処理命令を実行して、その特定処理を実行
させていた。
While the execution condition of the specific processing instruction is normally set to OFF, when the peripheral device requests the specific processing from the controller body, the peripheral service processing of the controller body is performed. The peripheral device sets the execution condition of the specific processing instruction from off to on, and the controller main body executes the specific processing instruction during the program execution cycle to execute the specific processing.

【0004】[0004]

【発明が解決しようとする課題】しかし、このような従
来のプログラマブルコントローラでは、周辺機器がコン
トローラ本体へ要求する特定処理が、例えば当該周辺機
器からコントローラ本体を介し他の周辺機器へデータを
送信するという簡単な処理の場合でも、コントローラ本
体の実行するユーザプログラム中にその特定処理を実行
させるための命令を組み込んでおく必要があったため、
コントローラ本体のユーザプログラムメモリやI/Oメ
モリ等のメモリ資源の使用効率が良くない、という問題
もあった。
However, in such a conventional programmable controller, the specific processing requested by the peripheral device to the controller main body transmits data from the peripheral device to another peripheral device via the controller main body. Even in the case of such a simple process, it was necessary to include an instruction for executing the specific process in the user program executed by the controller body,
There is also a problem that the use efficiency of memory resources such as the user program memory and I / O memory of the controller body is not good.

【0005】また、周辺機器がその特定処理をコントロ
ーラ本体に対し要求する場合には、コントローラ本体の
周辺サービス処理サイクル中に、その周辺機器がその特
定処理命令の実行条件をオフからオンにセットし、コン
トローラ本体のプログラム実行サイクル中にその特定処
理命令を実行させて、その特定処理を実行させるように
していたので、特定処理実行のための手順が繁雑である
と共に、ユーザプログラム中にその特定処理命令を組み
込むため、プログラム実行サイクルが長くなる、という
問題があった。
Further, when the peripheral device requests the specific processing to the controller main body, the peripheral device sets the execution condition of the specific processing instruction from OFF to ON during the peripheral service processing cycle of the controller main body. Since the specific processing instruction is executed during the program execution cycle of the controller main body to execute the specific processing, the procedure for executing the specific processing is complicated and the specific processing is executed in the user program. Since the instructions are incorporated, the program execution cycle becomes long.

【0006】そこで、本発明はこのような問題に着目し
てなされたもので、メモリ資源等の使用効率を低減させ
ることなく、手順が簡単で、かつ、プログラム実行サイ
クルも長くせずに周辺機器が要求した特定処理を実行可
能なプログラマブルコントローラを提供することを目的
とする。
Therefore, the present invention has been made in view of such a problem, and the peripheral device can be used without reducing the efficiency of use of memory resources and the like, the procedure is simple, and the program execution cycle is not lengthened. An object of the present invention is to provide a programmable controller capable of executing the specific processing requested by the.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、請求項1記載の発明では、プログラム実行処理、入
出力処理および周辺サービス処理をサイクリックに実行
して被制御機器の動作を制御するコントローラ本体と、
そのコントローラ本体に対し特定処理を要求する周辺機
器と、を具備するプログラマブルコントローラであっ
て、上記周辺機器は、特定処理の命令を記述した特定処
理コマンドを作成して送信する特定処理コマンド送信手
段を具備する一方、上記コントローラ本体は、周辺サー
ビス処理中に上記特定処理コマンド送信手段から特定処
理コマンドを受信して、周辺サービス処理中にその特定
処理コマンドの特定処理命令を実行して特定処理を行
い、その処理結果をレスポンスとして上記周辺機器へ送
信する特定処理実行手段を具備する、ことを特徴とす
る。
In order to achieve the above object, in the invention described in claim 1, the program execution process, the input / output process and the peripheral service process are cyclically executed to control the operation of the controlled device. Controller body,
A programmable controller comprising: a peripheral device requesting a specific process to the controller body, wherein the peripheral device includes a specific process command transmitting means for creating and transmitting a specific process command in which a command for the specific process is described. On the other hand, the controller main body receives the specific processing command from the specific processing command transmitting means during the peripheral service processing, and executes the specific processing instruction of the specific processing command during the peripheral service processing to perform the specific processing. It is characterized by comprising specific processing execution means for transmitting the processing result as a response to the peripheral device.

【0008】請求項2記載の発明では、請求項1記載の
プログラマブルコントローラにおいて、特定処理コマン
ド送信手段は、コントローラ本体内でのみ処理する特定
処理命令を記述した特定処理コマンドを作成して送信す
る、ことを特徴とする。
According to a second aspect of the present invention, in the programmable controller according to the first aspect, the specific processing command transmitting means creates and transmits a specific processing command describing a specific processing instruction to be processed only in the controller body. It is characterized by

【0009】請求項3記載の発明では、請求項1記載の
プログラマブルコントローラにおいて、特定処理コマン
ド送信手段は、コントローラ本体が他の周辺機器に対し
処理を行う特定処理命令を記述した特定処理コマンドを
作成して送信する、ことを特徴とする。
According to a third aspect of the invention, in the programmable controller according to the first aspect, the specific processing command transmitting means creates a specific processing command in which the controller main body describes a specific processing instruction for processing to another peripheral device. And then send.

【0010】請求項4記載の発明では、請求項1、請求
項2または請求項3記載のプログラマブルコントローラ
において、特定処理実行手段は、周辺サービス処理中に
特定処理コマンド送信手段から特定処理コマンドを受信
して、その特定処理コマンドを受信した当該周辺サービ
ス処理中にその特定処理コマンドの特定処理命令を実行
して特定処理を行い、その処理結果をレスポンスとして
上記周辺機器へ送信する、ことを特徴とする。
According to a fourth aspect of the present invention, in the programmable controller according to the first aspect, the second aspect or the third aspect, the specific processing executing means receives the specific processing command from the specific processing command transmitting means during peripheral service processing. Then, during the peripheral service processing that receives the specific processing command, the specific processing command of the specific processing command is executed to perform the specific processing, and the processing result is transmitted to the peripheral device as a response. To do.

【0011】請求項5記載の発明では、請求項1、請求
項2または請求項3記載のプログラマブルコントローラ
において、特定処理実行手段は、周辺サービス処理中に
特定処理コマンド送信手段から特定処理コマンドを受信
して、その特定処理コマンドを受信した当該周辺サービ
ス処理中にその特定処理コマンドの実行を完了できるか
否かを判断し、当該周辺サービス処理中にその特定処理
コマンドの実行を完了できないと判断した場合には、次
サイクル以降の周辺サービス処理中にその特定処理コマ
ンドの特定命令を実行して特定処理を行い、その処理結
果をレスポンスとして周辺機器へ送信する、ことを特徴
とする。
According to a fifth aspect of the present invention, in the programmable controller according to the first aspect, the second aspect or the third aspect, the specific processing execution means receives the specific processing command from the specific processing command transmitting means during the peripheral service processing. Then, it is determined whether the execution of the specific processing command can be completed during the peripheral service processing in which the specific processing command is received, and it is determined that the execution of the specific processing command cannot be completed during the peripheral service processing. In this case, during the peripheral service processing of the next cycle and thereafter, the specific instruction of the specific processing command is executed to perform the specific processing, and the processing result is transmitted to the peripheral device as a response.

【0012】請求項6記載の発明では、請求項5記載の
プログラマブルコントローラにおいて、特定処理実行手
段は、特定処理コマンドを受信した当該周辺サービス処
理中にその特定処理コマンドの実行を完了できないと判
断した場合には、次サイクル以降の空き時間のある周辺
サービス処理中にその特定処理コマンドの特定命令を実
行して特定処理を行い、その処理結果をレスポンスとし
て周辺機器へ送信する、ことを特徴とする。
According to a sixth aspect of the present invention, in the programmable controller according to the fifth aspect, the specific processing execution means determines that the execution of the specific processing command cannot be completed during the peripheral service processing in which the specific processing command is received. In this case, during the peripheral service processing having a free time after the next cycle, the specific instruction of the specific processing command is executed to perform the specific processing, and the processing result is transmitted to the peripheral device as a response. .

【0013】請求項7記載の発明では、請求項5記載の
プログラマブルコントローラにおいて、特定処理実行手
段は、特定処理コマンドを受信した当該周辺サービス処
理中にその特定処理コマンドの実行を完了できないと判
断した場合には、次サイクル以降の複数サイクルの周辺
サービス処理にわたってその特定処理コマンドの特定命
令を実行して特定処理を行い、その処理結果をレスポン
スとして周辺機器へ送信する、ことを特徴とする。
According to a seventh aspect of the invention, in the programmable controller according to the fifth aspect, the specific processing execution means determines that the execution of the specific processing command cannot be completed during the peripheral service processing in which the specific processing command is received. In this case, the specific command of the specific processing command is executed over a plurality of cycles of the peripheral service processing after the next cycle to perform the specific processing, and the processing result is transmitted to the peripheral device as a response.

【0014】このため、本発明では、周辺機器は、特定
処理の命令を記述した特定処理コマンドを作成して送信
して、コントローラ本体は、周辺サービス処理中にその
周辺機器からの特定処理コマンドを受信して、その周辺
サービス処理中、またはその周辺サービス処理中にやり
きれない場合には次サイクル以降の周辺サービス処理中
にその特定処理コマンドに基づく特定の処理を行い、そ
の処理結果をレスポンスとしてその周辺機器へ送信する
ようにする。
Therefore, in the present invention, the peripheral device creates and transmits a specific processing command in which a specific processing command is described, and the controller main body receives the specific processing command from the peripheral device during the peripheral service processing. When receiving and processing cannot be completed during the peripheral service processing or during the peripheral service processing, specific processing based on the specific processing command is performed during the peripheral service processing in the next cycle and thereafter, and the processing result is used as a response for the peripheral processing. Send it to the device.

【0015】なお、特定処理コマンドは、コントローラ
本体内でのみ処理する特定処理コマンドであっても、ま
たコントローラ本体が他の周辺機器に対し処理する特定
処理コマンドであっても勿論良く、その内容としては、
例えば、データの加算命令や、設定命令、読出命令等を
含むコマンドがある。
The specific processing command may be a specific processing command which is processed only in the controller main body or a specific processing command which the controller main body processes to other peripheral equipment. Is
For example, there are commands including a data addition command, a setting command, and a read command.

【0016】[0016]

【発明の実施の形態】以下、本発明に係るプログラマブ
ルコントローラの実施形態を図面に基づいて説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of a programmable controller according to the present invention will be described below with reference to the drawings.

【0017】図1に、本発明に係るプログラマブルコン
トローラの実施形態の構成を示す。このプログラマブル
コントローラは、コントローラ本体1と、周辺機器とし
てのプログラミングツール2、高速カウンタユニット3
およびI/Oユニット4と、から構成されている。
FIG. 1 shows the configuration of an embodiment of a programmable controller according to the present invention. This programmable controller includes a controller body 1, a programming tool 2 as a peripheral device, a high-speed counter unit 3
And an I / O unit 4.

【0018】コントローラ本体1は、応用演算命令およ
びビット演算命令からなるユーザプログラムを格納した
ユーザプログラムメモリ(UM)11と、入出力(I/
O)データを格納するI/Oメモリ12と、システムプ
ログラムが格納されたシステムメモリ13と、ワークR
AM14と、ユーザプログラムを読出してビット演算命
令のみを実行し、応用演算命令をMPU11に渡すBP
U15と、応用演算命令を実行するMPU16と、内部
バス17を介して接続して構成されている。
The controller body 1 has a user program memory (UM) 11 storing a user program consisting of an application operation instruction and a bit operation instruction, and an input / output (I / I).
O) I / O memory 12 for storing data, system memory 13 for storing system programs, work R
BP that reads the AM 14 and the user program, executes only the bit operation instruction, and passes the applied operation instruction to the MPU 11.
A U15, an MPU 16 that executes an application operation instruction, and an internal bus 17 are connected to each other.

【0019】プログラミングツール2は、シリアルI/
F18を介してMPU16と接続されており、高速カウ
ンタユニット3は、内部バス17上に直接接続され、I
/Oユニット4は、I/Oバス19を介してBPU15
と接続されている。
The programming tool 2 is a serial I /
The high-speed counter unit 3 is connected to the MPU 16 via the F18, is directly connected to the internal bus 17,
The I / O unit 4 is connected to the BPU 15 via the I / O bus 19.
Is connected to

【0020】そして、本実施形態では、プログラミング
ツール2およびI/Oユニット4が、各々、コントロー
ラ本体1や他の周辺機器に対し特定の処理内容を記述し
た特定処理コマンドを作成して送信する特定処理コマン
ド送信部21,41を有している。
In this embodiment, the programming tool 2 and the I / O unit 4 respectively create and send a specific processing command describing specific processing contents to the controller body 1 and other peripheral devices. It has processing command transmission units 21 and 41.

【0021】また、MPU16は、応用命令実行による
ユーザプログラム実行処理、入出力処理および周辺サー
ビス処理をサイクリックに実行してI/Oユニット4を
介し被制御機器の動作を制御するもので、周辺サービス
処理中にプログラミングツール2やI/Oユニット4の
特定処理コマンド送信部21,41からの特定処理コマ
ンドを受信して、周辺サービス処理中にその特定処理コ
マンドに基づく特定の処理を行い、その処理結果をレス
ポンスとしてプログラミングツール2やI/Oユニット
4へ送信する特定処理実行部16aを有している。
The MPU 16 cyclically executes a user program execution process, an input / output process, and a peripheral service process by executing application instructions to control the operation of the controlled device via the I / O unit 4. During the service processing, the specific processing command is received from the programming tool 2 and the specific processing command transmitting units 21 and 41 of the I / O unit 4, and the specific processing based on the specific processing command is performed during the peripheral service processing. It has a specific processing execution unit 16a that sends the processing result as a response to the programming tool 2 and the I / O unit 4.

【0022】次に、このように構成された本実施形態に
係るプログラマブルコントローラの動作について説明す
る。
Next, the operation of the programmable controller according to this embodiment having the above structure will be described.

【0023】図2に、本実施形態に係るプログラマブル
コントローラの全体処理を示す。まず、このプログラマ
ブルコントローラでは、スイッチONによる立ち上げ
後、まず初期処理を行い、次いで以下に示す処理をサイ
クリックに実行して、図示しない被制御機器に対し駆動
制御を行う。
FIG. 2 shows the overall processing of the programmable controller according to this embodiment. First, in this programmable controller, after the switch is turned on, the initial processing is first performed, and then the following processing is cyclically executed to control the drive of a controlled device (not shown).

【0024】具体的には、図2に示すように、まずユー
ザプログラムメモリ11やI/Oバス等の異常等をチェ
ックする自己診断処理を行い(ステップ100)、次に
ユーザプログラムメモリ11に格納されたユーザプログ
ラムを先頭の命令からエンド命令まで1スキャン実行す
るプログラム実行処理を行い(ステップ200)、次に
I/Oメモリ12とI/Oユニット4との間で入出力デ
ータのリフレッシュ処理を行い(ステップ300)、最
後にプログラミングツール2等からのコマンドに基づい
て周辺サービス処理を実行する(ステップ400)、と
いう一連の処理を高速にサイクリックに実行して、被制
御機器の動作制御を行う。
Specifically, as shown in FIG. 2, first, a self-diagnosis process for checking the abnormality of the user program memory 11, the I / O bus, etc. is performed (step 100), and then stored in the user program memory 11. A program execution process for executing one scan from the first instruction to the end instruction of the generated user program is performed (step 200), and then the input / output data refresh process is performed between the I / O memory 12 and the I / O unit 4. Perform (step 300) and finally execute peripheral service processing based on a command from the programming tool 2 or the like (step 400) in a cyclic manner at high speed to control the operation of the controlled device. To do.

【0025】なお、本実施形態に係るプログラムコント
ローラでは、上記ステップ400の周辺サービス処理中
に、本コントローラ1に接続されたI/Oユニット4や
プログラミングツール2等からの後述する特定処理コマ
ンドを受信して、その特定コマンドの内容に基づき特定
処理を行って、レスポンスを返送する。
In the program controller according to the present embodiment, during the peripheral service processing in step 400, a specific processing command described later from the I / O unit 4 or the programming tool 2 connected to the controller 1 is received. Then, specific processing is performed based on the content of the specific command, and a response is returned.

【0026】図3に、I/Oユニット4の特定処理コマ
ンド送信部41が作成した特定処理コマンドによる、I
/Oユニット4とコントローラ本体1との間のコマンド
・レスポンス処理を説明する。
FIG. 3 shows the I / O unit 4 according to the specific processing command created by the specific processing command transmitting section 41 of the I / O unit 4.
The command / response processing between the / O unit 4 and the controller body 1 will be described.

【0027】この場合、I/Oユニット4の特定処理コ
マンド送信部41は、加算命令(ADD)と、加算演算
すべきソースデータとからなる特定処理コマンドC1を
コントローラ本体1に対し送信する。
In this case, the specific processing command transmitting unit 41 of the I / O unit 4 transmits to the controller main body 1 a specific processing command C1 including an addition instruction (ADD) and source data to be added.

【0028】コントローラ本体1では、MPU16の特
定処理実行部16aが、図2に示すステップ400の周
辺サービス処理サイクル中にその特定処理コマンドC1
を受信して、ワークRAM14の特定処理コマンドエリ
ア等にいったん格納して解読し、I/Oユニット4から
の加算命令(ADD)が格納された特定処理コマンドC
1であると解読できた場合には、通常加算演算は周辺サ
ービス処理中に完結できるので、その周辺サービス処理
サイクル中にその特定処理コマンドC1中のソースデー
タを加算命令(ADD)を実行して、その演算結果をレ
スポンスR1としてI/Oユニット4に返送するように
する。
In the controller main body 1, the specific processing execution unit 16a of the MPU 16 receives the specific processing command C1 during the peripheral service processing cycle of step 400 shown in FIG.
Is stored in the specific processing command area of the work RAM 14 for decoding, and the specific processing command C in which the addition instruction (ADD) from the I / O unit 4 is stored.
If it can be decoded as 1, the normal addition operation can be completed during the peripheral service processing. Therefore, during the peripheral service processing cycle, the source data in the specific processing command C1 is executed by the addition instruction (ADD). , The calculation result is returned to the I / O unit 4 as a response R1.

【0029】従って、本実施例によれば、特定処理を実
行するための命令を予めコントローラ本体1のユーザプ
ログラム内に作り込んでおく必要がなく、プログラミン
グツール2等からのコマンドのみでコントローラ本体に
命令を実行させることができるので、ユーザプログラム
の運転開始後でもユーザプログラムの変更なしに各種特
定処理に対応できる。
Therefore, according to this embodiment, it is not necessary to previously prepare an instruction for executing the specific processing in the user program of the controller body 1, and the controller body can be provided only by the command from the programming tool 2 or the like. Since the command can be executed, various specific processes can be handled without changing the user program even after the operation of the user program is started.

【0030】このため、特定処理実行のための手順が簡
略化して、特定処理の自由度が向上すると共に、ユーザ
プログラムメモリ11やI/Oメモリ12を余分に消費
しないので、メモリ資源等の使用効率が向上する。
Therefore, the procedure for executing the specific process is simplified, the degree of freedom of the specific process is improved, and the user program memory 11 and the I / O memory 12 are not additionally consumed. Efficiency is improved.

【0031】また、上記の加算命令のような特定処理コ
マンドであれば、1回の周辺サービス処理中にその特定
処理が完結するので、プログラム実行サイクルに何等影
響を与えず、スキャンタイムにも影響を与えないので、
応答性能を低下させずに特定処理が可能になる。
Further, in the case of a specific processing command such as the above addition instruction, since the specific processing is completed during one peripheral service processing, there is no effect on the program execution cycle and the scan time. Is not given,
Specific processing is possible without degrading the response performance.

【0032】次に、他の特定処理コマンドについても説
明する。
Next, other specific processing commands will be described.

【0033】図4に、プログラミングツール2の特定処
理コマンド送信部21が作成したデータ読出命令の特定
処理コマンドによる、プログラミングツール2とコント
ローラ本体1との間のコマンド・レスポンス処理を説明
する。
FIG. 4 illustrates command / response processing between the programming tool 2 and the controller body 1 by the specific processing command of the data read command created by the specific processing command transmitting section 21 of the programming tool 2.

【0034】この場合、プログラミングツール2の特定
処理コマンド送信部21は、I/Oユニット4のデータ
を読出す命令(IORD)と、読出し元となるI/Oユ
ニット4のユニットNoからなる特定処理コマンドC2
をコントローラ本体1へ送信する。
In this case, the specific processing command transmitting unit 21 of the programming tool 2 has a specific processing including an instruction (IORD) for reading the data of the I / O unit 4 and a unit number of the I / O unit 4 which is the reading source. Command C2
To the controller body 1.

【0035】コントローラ本体1では、上記特定処理コ
マンドC1の場合と同様に、MPU16が、周辺サービ
ス処理サイクル中にその特定処理コマンドC2を受信し
て、ワークRAM15の特定処理コマンドエリアに格納
して解読し、プログラミングツール2からの入出力デー
タの読出し命令(IORD)が格納された特定処理コマ
ンドC2と解読できた場合には、当該周辺サービス処理
中にその命令を実行してI/Oユニット4からその入出
力データを読出し、読出せた場合には読出完了という実
行結果と、その読出しデータとをレスポンスR2として
プログラミングツール2へ返送する。
In the controller main body 1, as in the case of the specific processing command C1, the MPU 16 receives the specific processing command C2 during the peripheral service processing cycle, stores it in the specific processing command area of the work RAM 15, and decodes it. However, if the read / write command (IORD) for reading / outputting data from the programming tool 2 can be decoded with the specific processing command C2 stored therein, the command is executed during the peripheral service processing to execute from the I / O unit 4. When the input / output data can be read and read, the execution result of reading completion and the read data are returned to the programming tool 2 as a response R2.

【0036】従って、この特定処理コマンドC2によっ
ても、上記特定処理コマンドC1,C2の場合と同様
に、その特定処理を実行するための命令をユーザプログ
ラム内に作り込んでおく必要がなくなるので、特定処理
実行のための手順が簡略化して、特定処理の自由度が向
上すると共に、ユーザプログラムメモリ11やI/Oメ
モリ12を余分に消費せず資源使用効率が向上し、さら
にはプログラム実行サイクルに何等影響を与えず、すな
わち応答性能を低下させずに特定処理が可能になる。
Therefore, even with this specific processing command C2, as in the case of the specific processing commands C1 and C2, it is not necessary to prepare an instruction for executing the specific processing in the user program. The procedure for processing execution is simplified, the degree of freedom in specific processing is improved, resource utilization efficiency is improved without consuming additional user program memory 11 and I / O memory 12, and the program execution cycle The specific processing can be performed without any influence, that is, without lowering the response performance.

【0037】図5に、プログラミングツール2の特定処
理コマンド送信部21が作成したデータ書込命令の特定
処理コマンドによる、プログラミングツール2とコント
ローラ本体1との間のコマンド・レスポンス処理を説明
する。
FIG. 5 illustrates command / response processing between the programming tool 2 and the controller body 1 by the specific processing command of the data write command created by the specific processing command transmitting section 21 of the programming tool 2.

【0038】この場合、プログラミングツール2の特定
処理コマンド送信部21は、I/Oユニット4のデータ
の書込み命令(IOWR)と、書込み先となる高速カウ
ンタユニット3のユニットNoと、書込むべき設定値と
からなる特定処理コマンドC3をコントローラ本体1へ
送信する。
In this case, the specific processing command transmission unit 21 of the programming tool 2 writes the data write command (IOWR) of the I / O unit 4, the unit number of the high-speed counter unit 3 as the write destination, and the setting to be written. A specific processing command C3 consisting of a value and is transmitted to the controller body 1.

【0039】コントローラ本体1では、上記特定処理コ
マンドC1,C2の場合と同様に、MPU16が、周辺
サービス処理サイクル中にその特定処理コマンドC3を
受信して、ワークRAM15等の特定処理コマンドエリ
アに格納して解読し、プログラミングツール2からの設
定値の書込み命令(IOWR)が含まれていると解読で
きた場合には、その命令実行により当該周辺サービス処
理中に高速カウンタユニット3へその設定値を書込みに
いき、書込みができた場合には書込み完了という実行結
果と、その読出した入出力データとをレスポンスR2と
してプログラミングツール2へ返送する。
In the controller body 1, as in the case of the specific processing commands C1 and C2, the MPU 16 receives the specific processing command C3 during the peripheral service processing cycle and stores it in the specific processing command area such as the work RAM 15. If it can be decoded that the write command (IOWR) of the set value from the programming tool 2 is included, the set value is written to the high-speed counter unit 3 during the peripheral service processing by executing the command. When the writing is completed, the execution result indicating that the writing is completed and the read input / output data are returned to the programming tool 2 as a response R2.

【0040】従って、この特定処理コマンドC3によっ
ても、上記特定処理コマンドC1,C2の場合と同様
に、その特定処理を実行するための命令をユーザプログ
ラム内に作り込んでおく必要がなくなるので、特定処理
実行のための手順が簡略化して、特定処理の自由度が向
上すると共に、ユーザプログラムメモリ11やI/Oメ
モリ12を余分に消費せず資源使用効率が向上し、さら
にはプログラム実行サイクルに何等影響を与えずに特定
処理が可能になる。
Therefore, even with this specific processing command C3, as in the case of the specific processing commands C1 and C2, there is no need to prepare an instruction for executing the specific processing in the user program. The procedure for processing execution is simplified, the degree of freedom in specific processing is improved, resource utilization efficiency is improved without consuming additional user program memory 11 and I / O memory 12, and the program execution cycle The specific processing can be performed without any influence.

【0041】なお、上記実施形態では、MPU16の特
定処理実行部16aは、周辺サービス処理中にプログラ
マブルツール2等の周辺機器から特定処理コマンドを受
信した場合には、その周辺処理サービス中にその特定処
理中に含まれる特定命令を完了して、そのレスポンスを
その周辺機器に返送するように説明したが、本発明で
は、その特定処理コマンドを受信した際に、その特定処
理コマンドを受信した当該周辺サービス処理中にその特
定処理コマンドの実行を完了できるか否かを判断して、
当該周辺サービス処理中にその特定処理コマンドの実行
を完了できないと判断した場合には、次サイクル以降の
周辺サービス処理中にその特定処理コマンドを実行する
ようにしても良い。
In the above embodiment, when the specific processing execution unit 16a of the MPU 16 receives a specific processing command from a peripheral device such as the programmable tool 2 during the peripheral service processing, the specific processing execution unit 16a performs the specific processing during the peripheral processing service. Although it has been described that the specific command included in the process is completed and the response is sent back to the peripheral device, in the present invention, when the specific process command is received, the peripheral that receives the specific process command is received. Judge whether the execution of the specific processing command can be completed during service processing,
When it is determined that the execution of the specific processing command cannot be completed during the peripheral service processing, the specific processing command may be executed during the peripheral service processing of the next cycle and thereafter.

【0042】つまり、ここでの判断で、例えば特定処理
コマンドが複雑で、その実行に周辺サービス処理サイク
ル以上の時間を要し、かつ、特にデータの同期を取る必
要がなく複数サイクルにわたってもかまわないと判断し
た場合には、複数サイクルの複数周辺サービス処理にわ
たってその特定処理コマンドを実行するようにして、周
辺サービス処理サイクルが長くならないようにする。な
お、その際、特定処理コマンドの実行途中のデータは、
ワークRAM14等の任意のエリアに格納すれば良い。
In other words, according to the judgment here, for example, the specific processing command is complicated, it takes more time than the peripheral service processing cycle to execute it, and there is no particular need to synchronize the data, so that it may take a plurality of cycles. If it is determined that the specific processing command is executed over a plurality of cycles of peripheral service processing, the peripheral service processing cycle is not lengthened. At this time, the data during the execution of the specific processing command is
It may be stored in any area such as the work RAM 14.

【0043】また、受信した特定処理コマンドが簡単な
もので、周辺サービス処理サイクル中に完了できるが、
特定処理コマンドを受信した際の周辺サービス処理中
は、すでにこのコマンド受信処理や他の周辺サービス処
理等によって当該周辺サービス処理サイクルの残り時間
がなく、当該周辺サービス処理中ではその特定処理コマ
ンドを実行できないと判断した場合には、その特定処理
コマンドをワークRAM14等に記憶しておいて、次サ
イクル以降の周辺サービス処理の空いている時間に行う
ようにする。このようにすれば、周辺サービス処理が一
時的に長くなることはないので、全体としてスキャンタ
イムを一定かつ高速にでき、応答速度が速くなる。
The specific processing command received is simple and can be completed during the peripheral service processing cycle.
During the peripheral service processing when the specific processing command is received, there is no remaining time in the peripheral service processing cycle due to this command receiving processing or other peripheral service processing, and the specific processing command is executed during the peripheral service processing. If it is determined that it is not possible, the specific processing command is stored in the work RAM 14 or the like, and the specific processing command is executed during the idle time of the peripheral service processing after the next cycle. By doing so, the peripheral service processing does not temporarily become long, so that the scan time can be made constant and fast as a whole, and the response speed becomes fast.

【0044】[0044]

【発明の効果】以上説明したように、本発明では、周辺
機器が特定処理の命令を記述した特定処理コマンドを作
成して送信する一方、コントローラ本体が周辺サービス
処理中にその特定処理コマンドを受信して、その周辺サ
ービス処理中もしくは次サイクル以降の周辺サービス処
理中にその特定処理コマンドの特定処理命令を実行して
特定の処理を行い、その処理結果をレスポンスとしてそ
の周辺機器へ送信するようにしたため、特定処理を実行
するための命令を予めコントローラ本体1のユーザプロ
グラム内に作り込んでおく必要がなく、周辺機器からの
コマンドのみでコントローラ本体に命令を実行させるこ
とができる。
As described above, according to the present invention, while the peripheral device creates and transmits the specific processing command in which the specific processing command is described, the controller body receives the specific processing command during the peripheral service processing. Then, during the peripheral service processing or during the peripheral service processing of the next cycle or later, the specific processing command of the specific processing command is executed to perform the specific processing, and the processing result is transmitted to the peripheral device as a response. Therefore, it is not necessary to prepare a command for executing the specific process in the user program of the controller body 1 in advance, and the controller body can execute the command only by the command from the peripheral device.

【0045】このため、ユーザプログラムの運転開始後
でもユーザプログラムの変更なしに各種特定処理に対応
でき、特定処理実行のための手順が簡略化して、特定処
理の自由度が向上すると共に、ユーザプログラムメモリ
等を余分に消費せずに、メモリ資源等の使用効率が向上
する。
Therefore, even after the operation of the user program is started, it is possible to deal with various kinds of specific processing without changing the user program, the procedure for executing the specific processing is simplified, and the degree of freedom of the specific processing is improved. Use efficiency of memory resources and the like is improved without consuming extra memory and the like.

【0046】また、周辺サービス処理中にその特定処理
を実行するので、プログラム実行サイクルに何等影響を
与えず、スキャンタイムに影響を与えないので、応答性
能を低下せずに特定処理が可能になる。
Further, since the specific processing is executed during the peripheral service processing, the program execution cycle is not affected at all and the scan time is not affected, so that the specific processing can be performed without lowering the response performance. .

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

【図1】本発明に係るプログラマブルコントローラの実
施形態の構成を示す構成図。
FIG. 1 is a configuration diagram showing a configuration of an embodiment of a programmable controller according to the present invention.

【図2】本実施形態に係るプログラマブルコントローラ
の全体処理を示すフローチャート。
FIG. 2 is a flowchart showing the overall processing of the programmable controller according to the present embodiment.

【図3】特定処理コマンドの一例によるコマンド・レス
ポンス処理を説明する説明図。
FIG. 3 is an explanatory diagram illustrating command / response processing according to an example of a specific processing command.

【図4】他の特定処理コマンドによるコマンド・レスポ
ンス処理を説明する説明図。
FIG. 4 is an explanatory diagram illustrating command / response processing by another specific processing command.

【図5】他の特定処理コマンドによるコマンド・レスポ
ンス処理を説明する説明図。
FIG. 5 is an explanatory diagram illustrating command response processing by another specific processing command.

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

1 コントローラ本体 2 プログラミングツール(周辺機器) 3 高速カウンタユニット(周辺機器) 4 I/Oユニット 11 ユーザプログラムメモリ 12 I/Oメモリ 13 システムROM 14 ワークRAM 15 BPU 16 MPU 16a 特定処理実行部(特定処理実行手段) 17 内部バス 18 シリアルI/F 19 I/Oバス 21 特定処理コマンド送信部(特定処理コマンド送信
手段) 41 特定処理コマンド送信部(特定処理コマンド送信
手段)
1 Controller Main Body 2 Programming Tool (Peripheral Device) 3 High Speed Counter Unit (Peripheral Device) 4 I / O Unit 11 User Program Memory 12 I / O Memory 13 System ROM 14 Work RAM 15 BPU 16 MPU 16a Specific Process Execution Unit (Specific Process) Execution unit) 17 Internal bus 18 Serial I / F 19 I / O bus 21 Specific processing command transmission unit (specific processing command transmission unit) 41 Specific processing command transmission unit (specific processing command transmission unit)

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 プログラム実行処理、入出力処理および
周辺サービス処理をサイクリックに実行して被制御機器
の動作を制御するコントローラ本体と、そのコントロー
ラ本体に対し特定処理を要求する周辺機器と、を具備す
るプログラマブルコントローラであって、 上記周辺機器は、 特定処理の命令を記述した特定処理コマンドを作成して
送信する特定処理コマンド送信手段を具備する一方、 上記コントローラ本体は、 周辺サービス処理中に上記特定処理コマンド送信手段か
ら特定処理コマンドを受信して、周辺サービス処理中に
その特定処理コマンドの特定処理命令を実行して特定処
理を行い、その処理結果をレスポンスとして上記周辺機
器へ送信する特定処理実行手段を具備する、 ことを特徴とするプログラマブルコントローラ。
1. A controller main body for cyclically executing a program execution process, an input / output process, and a peripheral service process to control the operation of a controlled device, and a peripheral device requesting a specific process to the controller main body. In the programmable controller, the peripheral device includes a specific processing command transmitting unit that creates and transmits a specific processing command in which a specific processing command is described. Specific processing for receiving a specific processing command from the specific processing command transmitting means, executing a specific processing instruction of the specific processing command during peripheral service processing to perform specific processing, and transmitting the processing result as a response to the peripheral device A programmable controller comprising: an execution unit.
【請求項2】 特定処理コマンド送信手段は、 コントローラ本体内でのみ処理する特定処理命令を記述
した特定処理コマンドを作成して送信する、 ことを特徴とする請求項1記載のプログラマブルコント
ローラ。
2. The programmable controller according to claim 1, wherein the specific processing command transmitting means creates and transmits a specific processing command in which a specific processing command to be processed only within the controller body is described.
【請求項3】 特定処理コマンド送信手段は、 コントローラ本体が他の周辺機器に対し処理を行う特定
処理命令を記述した特定処理コマンドを作成して送信す
る、 ことを特徴とする請求項1記載のプログラマブルコント
ローラ。
3. The specific processing command transmitting means creates and transmits a specific processing command in which the controller main body describes a specific processing command for performing processing to another peripheral device. Programmable controller.
【請求項4】 特定処理実行手段は、 周辺サービス処理中に特定処理コマンド送信手段から特
定処理コマンドを受信して、その特定処理コマンドを受
信した当該周辺サービス処理中にその特定処理コマンド
の特定処理命令を実行して特定処理を行い、その処理結
果をレスポンスとして上記周辺機器へ送信する、 ことを特徴とする請求項1、請求項2または請求項3記
載のプログラマブルコントローラ。
4. The specific processing execution means receives the specific processing command from the specific processing command transmission means during peripheral service processing, and receives the specific processing command during the peripheral service processing and performs specific processing of the specific processing command. The programmable controller according to claim 1, 2 or 3, wherein an instruction is executed to perform a specific process, and a result of the process is transmitted to the peripheral device as a response.
【請求項5】 特定処理実行手段は、 周辺サービス処理中に特定処理コマンド送信手段から特
定処理コマンドを受信して、その特定処理コマンドを受
信した当該周辺サービス処理中にその特定処理コマンド
の実行を完了できるか否かを判断し、当該周辺サービス
処理中にその特定処理コマンドの実行を完了できないと
判断した場合には、次サイクル以降の周辺サービス処理
中にその特定処理コマンドの特定命令を実行して特定処
理を行い、その処理結果をレスポンスとして周辺機器へ
送信する、 ことを特徴とする請求項1、請求項2または請求項3記
載のプログラマブルコントローラ。
5. The specific processing execution means receives the specific processing command from the specific processing command transmission means during the peripheral service processing, and executes the specific processing command during the peripheral service processing receiving the specific processing command. If it is determined that the specific processing command cannot be completed during the peripheral service processing, the specific instruction of the specific processing command is executed during the peripheral service processing of the next cycle and thereafter. The programmable controller according to claim 1, 2 or 3, wherein a specific process is performed as a response, and a result of the process is transmitted to a peripheral device as a response.
【請求項6】 特定処理実行手段は、 特定処理コマンドを受信した当該周辺サービス処理中に
その特定処理コマンドの実行を完了できないと判断した
場合には、次サイクル以降の空き時間のある周辺サービ
ス処理中にその特定処理コマンドの特定命令を実行して
特定処理を行い、その処理結果をレスポンスとして周辺
機器へ送信する、 ことを特徴とする請求項5記載のプログラマブルコント
ローラ。
6. The specific processing execution means, when it determines that the execution of the specific processing command cannot be completed during the peripheral service processing that received the specific processing command, the peripheral service processing having a free time after the next cycle. The programmable controller according to claim 5, wherein a specific instruction of the specific processing command is executed to perform a specific processing, and the processing result is transmitted to a peripheral device as a response.
【請求項7】 特定処理実行手段は、 特定処理コマンドを受信した当該周辺サービス処理中に
その特定処理コマンドの実行を完了できないと判断した
場合には、次サイクル以降の複数サイクルの周辺サービ
ス処理にわたってその特定処理コマンドの特定命令を実
行して特定処理を行い、その処理結果をレスポンスとし
て周辺機器へ送信する、 ことを特徴とする請求項5記載のプログラマブルコント
ローラ。
7. The specific processing execution means, when it determines that the execution of the specific processing command cannot be completed during the peripheral service processing that received the specific processing command, continues over the peripheral service processing of a plurality of cycles after the next cycle. The programmable controller according to claim 5, wherein a specific instruction of the specific processing command is executed to perform a specific processing, and the processing result is transmitted to the peripheral device as a response.
JP18999895A 1995-07-26 1995-07-26 Programmable controller Expired - Fee Related JP3350699B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18999895A JP3350699B2 (en) 1995-07-26 1995-07-26 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18999895A JP3350699B2 (en) 1995-07-26 1995-07-26 Programmable controller

Publications (2)

Publication Number Publication Date
JPH0944209A true JPH0944209A (en) 1997-02-14
JP3350699B2 JP3350699B2 (en) 2002-11-25

Family

ID=16250688

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18999895A Expired - Fee Related JP3350699B2 (en) 1995-07-26 1995-07-26 Programmable controller

Country Status (1)

Country Link
JP (1) JP3350699B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009271933A (en) * 2000-10-10 2009-11-19 Schneider Automation Inc Plc executive with integrated web server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009271933A (en) * 2000-10-10 2009-11-19 Schneider Automation Inc Plc executive with integrated web server

Also Published As

Publication number Publication date
JP3350699B2 (en) 2002-11-25

Similar Documents

Publication Publication Date Title
CN111267111B (en) A robot control method, device and system
US7024495B2 (en) Programmable controller
JP3651573B2 (en) Control method for factory automation system, central controller for factory automation system
JP3350699B2 (en) Programmable controller
JP2001051871A (en) Remote debugging device
CN112631975B (en) SPI transmission method based on Linux
JP4451010B2 (en) Programmable controller
JP3358045B2 (en) Programmable controller
JPH1165623A (en) Programmable controller
JPH0365735A (en) Vicarious execution system for diagnosis processing
CN101169745A (en) Modular execution device and modular program
JPS6314260A (en) System for generating communication control program
JP3450549B2 (en) Image processing method and apparatus
JPS6020771B2 (en) Micro diagnosis method
JP2001265610A (en) Device control method
KR0157456B1 (en) User determined function of robot controller
JP5194360B2 (en) Information processing apparatus and control method thereof
JP2002312302A (en) Peripheral equipment
JPH0535643A (en) Fully duplex channel input/output control system
JPS6382536A (en) Channel device
JPH09160786A (en) Microprocessor
JPS6237720A (en) Power supply cut-off control system
JPS63219042A (en) Program debug device
JPH01255932A (en) Instruction processor
JPS61101864A (en) Program control system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020731

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

Free format text: PAYMENT UNTIL: 20080920

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080920

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090920

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090920

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100920

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100920

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110920

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110920

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120920

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20130920

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees