JPS6289105A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPS6289105A
JPS6289105A JP22971485A JP22971485A JPS6289105A JP S6289105 A JPS6289105 A JP S6289105A JP 22971485 A JP22971485 A JP 22971485A JP 22971485 A JP22971485 A JP 22971485A JP S6289105 A JPS6289105 A JP S6289105A
Authority
JP
Japan
Prior art keywords
processing time
instruction
program
time length
user program
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.)
Pending
Application number
JP22971485A
Other languages
Japanese (ja)
Inventor
Nagahiro Fukunaga
福永 長弘
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 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 Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP22971485A priority Critical patent/JPS6289105A/en
Publication of JPS6289105A publication Critical patent/JPS6289105A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To know the open-loop executing time of the user program beforehand by providing the storing means to store the instruction processing time length to respective user instruction words and the arithmetic means to calculate total instruction processing time length concerning the instruction word column of the designating section in the user program. CONSTITUTION:When the read instruction is the applying instruction, in accordance with whether or not it is the designation at the time of the program execution, the said processing time is read from an applying instruction processing time table area 2b and substituted for a variable A. Next, a new processing time A is added to a variable X to store total processing time length until then, and as the result, X+A is stored as a new total processing time X. Next, the value of a variable I is renewed by +1, and thereafter, by confirming that the value does not reach the designated calculating address, these processings are repeated. Then, concerning a series of the instruction column up to the designated calculation completing address, the total processing time length is obtained. When the total processing time is obtained, the obtained processing time length is displayed at a display device 5a of a program console 5.

Description

【発明の詳細な説明】 (発明の分野) この発明は、ユーザプログラムの処理時間長を自動算出
する機能を備えたプログラマブル・コントローラに関す
る。
DETAILED DESCRIPTION OF THE INVENTION (Field of the Invention) The present invention relates to a programmable controller having a function of automatically calculating the processing time length of a user program.

(発明の概要) この発明では、各ユーザ命令語に対する命令処理時間長
を記憶する記憶手段と、ユーザプログラム中の指定区間
の命令語列についての総命令処理時間長を、前記記憶手
段を参照して算出する演算手段とを設け、作成されたユ
ーザプログラムの総処理時間を自動算出可能としたもの
である。
(Summary of the Invention) The present invention includes a storage means for storing an instruction processing time length for each user instruction word, and a storage means for storing the total instruction processing time length for an instruction word string in a specified section in a user program. The total processing time of the created user program can be automatically calculated.

(従来技術とその問題点) スキャニング方式のプログラマブル・コントローラにお
いては、ユーザプログラムの一巡実行のたびに、実行結
果で書替えられた出力データを外部へ送出する出力更新
処理、新たな入力データを取込む入力更新処理を行なう
ため、ユーザプログラムの一巡実行時間が増大すると、
それだけ入出力応答性が低下してしまう。
(Prior art and its problems) In a scanning-type programmable controller, every time a user program is executed, output update processing is performed to send output data rewritten with the execution result to the outside, and new input data is taken in. When the user program's round execution time increases due to input update processing,
The input/output responsiveness deteriorates accordingly.

そこで、従来ユーザプログラムの作成にあたっては、命
令語の説明書に記載されている命令実行時間表を参照し
、手計算でユーザプログラムの一巡実行時間を算出した
り、あるいは実際にユーザプログラムを組込んだプログ
ラマブル・コントローラを被制御対象機器に接続して、
実機による入出力応答時間を測定するなどの方法がとら
れている。
Conventionally, when creating a user program, one has to refer to the instruction execution time table written in the instructions for the instruction manual and manually calculate the execution time for one round of the user program, or actually embed the user program. Connect the programmable controller to the device to be controlled,
Methods such as measuring the input/output response time using actual equipment are being used.

しかし、このような方法にあっては、近年のユ−ザブロ
グラム容量の増大に伴い、手計算による一巡実行の時間
の算出は事実上不可能になりつつあり、ざらに、実機に
よる測定にあっては、ユーザプログラムを組込んだプロ
グラマブル・コントローラと被制御対象機器との双方が
現実に存在せねばならず、この点実用性に乏しい等の問
題点がおった。
However, with this method, as the capacity of user programs has increased in recent years, it has become virtually impossible to calculate the time for one round of execution by hand, and it is generally difficult to measure it using an actual machine. In this method, both a programmable controller incorporating a user program and a device to be controlled must actually exist, which poses problems such as poor practicality.

(発明の目的) この発明の目的は、命令語の説明書に記載された命令実
行時間表を参照して手計算を行なったり、あるいは実際
にユーザプログラムを組込んだプログラマブル・コント
ローラを被制御対象機器に実際に接続したりすることな
く、ユーザプログラムの一巡実行時間を知ることができ
るようにしたプログラマブル・コントローラを提供する
ことにおる。
(Objective of the Invention) The object of the present invention is to perform manual calculations by referring to an instruction execution time table written in an instruction manual, or to actually use a programmable controller incorporating a user program as a controlled object. It is an object of the present invention to provide a programmable controller that allows the user to know the execution time of one round of a user program without actually connecting it to a device.

(発明の構成と効果) この発明は上記の目的を達成するために、各ユーザ命令
語に対する命令処理時間長を記憶する記・臘手段と、 ユーザプログラム中の指定区間の命令語列についての総
命令遮理時間長を、前記記憶手段を参照して算出する演
算手段と、 を具備することを特徴とするものである。
(Structure and Effects of the Invention) In order to achieve the above object, the present invention provides a memory/storage means for storing the instruction processing time length for each user instruction word, and a storage means for storing the instruction processing time length for each user instruction word, and a storage means for storing the instruction processing time length for each user instruction word. The present invention is characterized by comprising: arithmetic means for calculating an instruction interruption time length with reference to the storage means;

このような構成によれば、命令実行時間を知る必要があ
るユーザプログラム中の命令語列を指定するだけで、該
当命令語列についての一巡実行時間を直ちに算出するこ
とができる。
According to such a configuration, by simply specifying an instruction string in a user program for which the instruction execution time needs to be known, the one-round execution time for the corresponding instruction string can be immediately calculated.

(実施例の説明) 第1図はこの発明が適用されるプログラマブル・コント
ローラのハードウェア構成を示すブロック図である。
(Description of Embodiments) FIG. 1 is a block diagram showing the hardware configuration of a programmable controller to which the present invention is applied.

同図において、CPU1はマイクロプロセッサを主体と
して構成され、システムプログラムメモリ2に格納され
た各種のシステムプログラムを実行することによって、
プログラマブル・コントローラとしての基本的な機能の
他に、各種のサービス機能を実現するようになされてい
る。
In the figure, a CPU 1 is mainly composed of a microprocessor, and executes various system programs stored in a system program memory 2.
In addition to the basic functions as a programmable controller, it is designed to realize various service functions.

プログラマブル・コントローラの基本的な機能としては
、周知の如く、入出力回路6から取込まれた入力データ
を丁/○メモリの入カニリアに書込む入力更新機能、T
10メモリ7の入出力データを参照して、ユーザプログ
ラムメモリ3に記憶されたユーザプログラムを一巡実行
し、その実行結果でT10メモリ7の出力データを書替
える命令実行機能および命令実行結果で書替えられたT
10メモリ7の出力データを、出力回路6から外部へと
送出する出力更新機能等からなるものである。
As is well-known, the basic functions of the programmable controller include an input update function that writes input data taken in from the input/output circuit 6 to the input canister of the D/○ memory;
A command execution function that refers to the input/output data of the T10 memory 7, executes the user program stored in the user program memory 3 once, and rewrites the output data of the T10 memory 7 with the execution result; T
10 consists of an output update function and the like for sending the output data of the memory 7 from the output circuit 6 to the outside.

また、サービス機能の代表的なものとしては、プログラ
ムコンソール5からのキー人力データに基づき、ユーザ
プログラムメモリ3内にユーザプログラムを書込むプロ
グラム機能、ユーザプログラムメモリ3に記憶されたユ
ーザプログラムの実行状態を、T10メモリ7の入出力
データに基づいて検出し、その検出結果を二−モニツク
等の形でプログラムコンソール5の表示器5に表示させ
るモニタ機能などである。
Typical service functions include a program function that writes a user program into the user program memory 3 based on key manual data from the program console 5, and an execution state of the user program stored in the user program memory 3. is detected based on the input/output data of the T10 memory 7, and the detection result is displayed on the display 5 of the program console 5 in the form of a monitor or the like.

そして、特にこの発明では、新たなサービス機能の1つ
として、ユーザプログラム中の指定された区間について
の一巡実行時間を自動算出し、これを表示器5aに表示
させる機能を設けている。
Particularly, the present invention provides, as one of the new service functions, a function of automatically calculating one round execution time for a designated section in the user program and displaying this on the display 5a.

なお、ワーキングメモリ4は、以上説明した各種システ
ムプログラムの実行の際に、演算途中結果の記憶エリア
等として使用される。
The working memory 4 is used as a storage area for intermediate results of calculations, etc. when executing the various system programs described above.

第2図に示す如く、システムプログラムメモリ2内には
、システムプログラムエリアの他に、本発明に関連した
新たに2つの命令処理時間表エリア2a、2bが設けら
れている。
As shown in FIG. 2, in addition to the system program area, two new instruction processing time table areas 2a and 2b related to the present invention are provided in the system program memory 2.

そして、基本命令処理時間表エリア2aには、LD命令
、AND命令、OR命令等の各基本命令に対応して処理
時間がそれぞれ記憶されている。
The basic instruction processing time table area 2a stores processing times corresponding to each basic instruction such as an LD instruction, an AND instruction, and an OR instruction.

また、応用命令処理時間表エリア2bには、IL命令、
SFT命令、ADD命令などの応用命令に相当する各処
理時間が、命令実行時と命令非実行時とに別けてそれぞ
れ記憶されている。
In addition, the applied instruction processing time table area 2b includes IL instructions,
Each processing time corresponding to an application instruction such as an SFT instruction or an ADD instruction is stored separately for when the instruction is executed and when the instruction is not executed.

次に、プログラマブル・コントローラのシステムプログ
ラムの全体の中で、本発明と特に関連の深いプログラム
モードの動作処理について、第3図のフローチャートを
参照しながら詳細に説明する。
Next, the operation processing of the program mode, which is particularly closely related to the present invention in the entire system program of the programmable controller, will be explained in detail with reference to the flowchart shown in FIG.

プログラムモードの動作が開始されると、イニシャル処
理において各種のフラグ、レジスタ類の初期設定を行な
った後(ステップ301)、プログラムコンソール5の
キーボード5bからの入力データを読込み(ステップ3
02) 、プログラム処理時間計算モードか否かの判定
を行なう(ステップ303)。
When operation in the program mode is started, various flags and registers are initialized in initial processing (step 301), and input data from the keyboard 5b of the program console 5 is read (step 3).
02), it is determined whether the mode is program processing time calculation mode or not (step 303).

ここで、プログラム処理時間計算モードでないと判定さ
れるとくステップ303否定)、キー人力に応じたデー
タを形成し、(ステップ304)、これをユーザプログ
ラムメモリ3内の該当するプログラムアドレスに書込み
、いわゆるユーザプログラムの作成処理を行なう(ステ
ップ305)。
Here, if it is determined that the mode is not the program processing time calculation mode (step 303, negative), data corresponding to the key input is formed (step 304), and this is written to the corresponding program address in the user program memory 3, so-called A user program creation process is performed (step 305).

ユーザプログラムがある程度作成完了して、プログラム
コンソール5からプログラム処理時間計算モードの指定
が行なわれると、プログラム処理時間計算モードとの判
定が行なわれ(ステップ303肯定)、続いて計算開始
番地の読込み(ステップ306)、計算終了番地の読込
み(ステップ゛306)およびユーザプログラムの実行
、非実行の指定の読み込みがそれぞれ行なわれる(ステ
ップ308)。
When the user program has been created to some extent and the program processing time calculation mode is designated from the program console 5, it is determined that the program processing time calculation mode is selected (Yes at step 303), and then the calculation start address is read ( Step 306), the calculation end address is read (step 306), and the user program execution/non-execution designation is read (step 308).

以上が終了すると、次にユーザプログラムの処理時間の
計算処理が行なわれる(ステップ309)。この処理で
は、第4図のフローチャートに示す如く、まず変数Xと
してOを代入しくステップ401)、変数Iに処理時間
を計算するユーザプログラムの開始番地を代入しくステ
ップ402)、次いで変数1で示される番地のユーザプ
ログラムを読み出す(ステップ403)。
When the above steps are completed, the processing time of the user program is then calculated (step 309). In this process, as shown in the flowchart of FIG. 4, first, O is assigned to the variable The user program at the address is read (step 403).

次いで読出された命令が基本命令であれば(ステップ4
04tA定)、第2図に示される基本命令処理時間長エ
リア2aから該当基本命令の処理時間を読出し、これを
変数Aに代入する(ステップ408)。
Next, if the read instruction is a basic instruction (step 4
04tA fixed), the processing time of the corresponding basic instruction is read from the basic instruction processing time length area 2a shown in FIG. 2, and is substituted into variable A (step 408).

また、続出された命令が、応用命令でおれば(ステップ
404否定)、それがプログラム実行時の指定か否かに
応じて(ステップ405肯定または否定)、該当する処
理時間を応用命令処理時間表エリア2bから読出し、同
様に変数Aに代入する(ステップ406または407)
Furthermore, if the successively issued instructions are applied instructions (step 404, negative), the corresponding processing time is determined according to whether or not they are specified during program execution (step 405, affirmative or negative) in the applied instruction processing time table. Read from area 2b and similarly assign to variable A (step 406 or 407)
.

次いで、それまでの総処理時間長を記憶する変数Xに新
たな処理時間Aを加え、その結果X+Aを新たな総処理
時間Xとして記憶する(ステップ409〉。
Next, the new processing time A is added to the variable X that stores the total processing time length up to that point, and the resultant X+A is stored as the new total processing time X (step 409).

次いで、変数■の値を+1更新した後(ステップ410
)、指定された計算終了番地に達していないことを確認
して(ステップ411,412否定)、以上ステップ4
03〜ステツプ411からの処理を繰り返す。
Next, after updating the value of the variable ■ by +1 (step 410
), confirm that the specified calculation end address has not been reached (steps 411 and 412 negative), and then proceed to step 4.
The processing from step 03 to step 411 is repeated.

すると、指定された計算終了番地までの一連の命令列に
ついて、総処理時間長が求められ、計算処理は終了する
(ステップ412肯定)。
Then, the total processing time length is determined for the series of instructions up to the specified calculation end address, and the calculation process ends (Yes at step 412).

このようにして計算開始番地から計算終了番地までの総
処理時間が求められると(第3図ステップ309)、求
められた処理時間長はプログラムコンソール5の表示器
5aに表示されることとなる(ステップ310)。
When the total processing time from the calculation start address to the calculation end address is determined in this way (step 309 in FIG. 3), the determined processing time length is displayed on the display 5a of the program console 5 ( step 310).

このように、プログラムコンソール5において所定のプ
ログラム処理時間計算モードに相当するモード設定処理
を行なった後、計算開始番地、計算終了番地およびユー
ザプログラムの実行、非実行の別をそれぞれ入力するだ
けで、第4図に示されるユーザプログラムの処理時間の
計算処理が実行される結果、一連の命令列で構成される
ユーザプログラムについて総処理時間、すなわち−巡処
理時間が自動的に求められ、表示器5aに表示されるわ
けである。
In this way, after performing the mode setting process corresponding to the predetermined program processing time calculation mode on the program console 5, simply inputting the calculation start address, calculation end address, and whether the user program is to be executed or not. As a result of the execution of the processing time calculation process for the user program shown in FIG. This is why it is displayed on the screen.

従って、この装置によれば、命令語の説明書に記載され
た命令実行時間表を参照して手計算を行なったり、おる
いは実際にユーザプログラムを組込んだプログラマブル
・コントローラを被制御対象に接続して実測したりする
ことなく、任意のユーザプログラム部分について、その
−巡処理時間を容易に知ることができ、これに基づき例
えば入出力応答速度の目安を得ることができるのである
Therefore, with this device, it is possible to perform manual calculations by referring to the instruction execution time table written in the instruction manual, or to actually use a programmable controller incorporating a user program as the controlled object. Without connecting and actually measuring, it is possible to easily know the round processing time for any part of a user program, and based on this, for example, a rough estimate of the input/output response speed can be obtained.

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

第1図は本発明が適用されるプログラマブル・コントロ
ーラのハードウェア構成を示すブロック図、第2図はシ
ステムプログラムメモリ内に設けられた基本命令処理時
間表エリア2a、応用命令処理時間表エリア2bの内容
を示すメモリマツプ、第3図はプログラムモードの動作
処理の詳細を示すフローチャート、第4図はユーザプロ
グラムの処理時間の計算処理の詳細を示すフローチャー
トで必る。 1・・・CPU 2・・・システムプログラムメモリ 3・・・ユーザプログラム 4・・・ワーキングメモリ 5・・・プログラムコンソール 6・・・入出力回路 7・・・I10メモリ 5a・・・表示器 5b・・・キーボード 特許出願人  立石電機株式会社 第2図 筬、″(図 第4図
FIG. 1 is a block diagram showing the hardware configuration of a programmable controller to which the present invention is applied, and FIG. 2 shows a basic instruction processing time table area 2a and an applied instruction processing time table area 2b provided in the system program memory. FIG. 3 is a flowchart showing the details of the program mode operation process, and FIG. 4 is a flowchart showing the details of the calculation process of the processing time of the user program. 1... CPU 2... System program memory 3... User program 4... Working memory 5... Program console 6... Input/output circuit 7... I10 memory 5a... Display 5b ...Keyboard patent applicant Tateishi Electric Co., Ltd. Figure 2 Reed,'' (Figure 4

Claims (1)

【特許請求の範囲】[Claims] (1)各ユーザ命令語に対する命令処理時間長を記憶す
る記憶手段と、 ユーザプログラム中の指定区間の命令語列についての総
命令処理時間長を、前記記憶手段を参照して算出する演
算手段と、 を具備することを特徴とするプログラマブル・コントロ
ーラ。
(1) a storage means for storing an instruction processing time length for each user instruction word; and an arithmetic means for calculating the total instruction processing time length for an instruction word string in a specified section in a user program with reference to the storage means; A programmable controller comprising: .
JP22971485A 1985-10-15 1985-10-15 Programmable controller Pending JPS6289105A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22971485A JPS6289105A (en) 1985-10-15 1985-10-15 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22971485A JPS6289105A (en) 1985-10-15 1985-10-15 Programmable controller

Publications (1)

Publication Number Publication Date
JPS6289105A true JPS6289105A (en) 1987-04-23

Family

ID=16896548

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22971485A Pending JPS6289105A (en) 1985-10-15 1985-10-15 Programmable controller

Country Status (1)

Country Link
JP (1) JPS6289105A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008123559A (en) * 2008-02-15 2008-05-29 Omron Corp Plc simulator device, program for simulation, and recording medium with the program recorded thereon

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008123559A (en) * 2008-02-15 2008-05-29 Omron Corp Plc simulator device, program for simulation, and recording medium with the program recorded thereon

Similar Documents

Publication Publication Date Title
JPH01270164A (en) Simulation system
JPS6289105A (en) Programmable controller
JPS60195674A (en) Conversational picture processor
JPH06242819A (en) Signal state control system for programmable controller
JPH0399380A (en) Method for storing collected data
JPH05134738A (en) Program approximation point automatic selection system
JP2977951B2 (en) Arithmetic unit
JPH0747209B2 (en) Welding condition automatic setting device
JP2754533B2 (en) Flow chart creation device
JP2815270B2 (en) CAD system with dimension line editing function
JPH07253876A (en) Program generating device
JPS62159220A (en) Backward reasoning system
JPH0916525A (en) Electronic computer with check function
JP2626145B2 (en) Automatic performance device
JPS60243517A (en) Programmable controller
JPH08314703A (en) Visual programming system
JPH01169506A (en) Numerical controller
JPS62157910A (en) Display method for numerical controller
JPS60132206A (en) Sequence controller
JPH02196305A (en) Program editing system for programmable controller
JPH03245206A (en) Method and device for programming of industrial robot
JPS63172307A (en) Programmable controller
JPH0816809A (en) Drawing system
JPH10143398A (en) Execution time signal generating circuit for program
JPH0822312A (en) Programming device of programmable controller