JPH0272408A - Programmable controller - Google Patents
Programmable controllerInfo
- Publication number
- JPH0272408A JPH0272408A JP22341888A JP22341888A JPH0272408A JP H0272408 A JPH0272408 A JP H0272408A JP 22341888 A JP22341888 A JP 22341888A JP 22341888 A JP22341888 A JP 22341888A JP H0272408 A JPH0272408 A JP H0272408A
- Authority
- JP
- Japan
- Prior art keywords
- sequence
- instructions
- input
- command
- circuit
- 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
Links
- 238000012545 processing Methods 0.000 claims abstract description 32
- 238000003860 storage Methods 0.000 claims description 22
- 238000001514 detection method Methods 0.000 claims description 9
- 230000004044 response Effects 0.000 claims description 5
- 238000000034 method Methods 0.000 abstract description 20
- 230000008569 process Effects 0.000 abstract description 13
- 230000003247 decreasing effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 9
- 230000007704 transition Effects 0.000 description 5
- 238000004904 shortening Methods 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000005012 migration Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 239000013256 coordination polymer Substances 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 210000003127 knee Anatomy 0.000 description 2
- 241000283690 Bos taurus Species 0.000 description 1
- 241000218645 Cedrus Species 0.000 description 1
- 102100031584 Cell division cycle-associated 7-like protein Human genes 0.000 description 1
- PEDCQBHIVMGVHV-UHFFFAOYSA-N Glycerine Chemical compound OCC(O)CO PEDCQBHIVMGVHV-UHFFFAOYSA-N 0.000 description 1
- 101000777638 Homo sapiens Cell division cycle-associated 7-like protein Proteins 0.000 description 1
- 240000007594 Oryza sativa Species 0.000 description 1
- 235000007164 Oryza sativa Nutrition 0.000 description 1
- 238000010923 batch production Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000005520 cutting process Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 235000009566 rice Nutrition 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Landscapes
- Programmable Controllers (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、電子機器の動作制御をシーケンス命令に従っ
て行うプログラマブルコントローラに関する。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a programmable controller that controls the operation of electronic equipment according to sequence commands.
(従来の技術)
従来からプログラマブルコントローラは、ローダと呼ば
れるプログラミング装置から入力されたシーケンス命令
をプログラマブルコントローラ内のユーザ用プログラム
メモリに記憶しておき、やはりプログラミング装置から
入力されるシーケンス実行命令に応じてユーザ用プログ
ラムメモリ内に記憶されたシーケンス命令を読み出し実
行している。(Prior Art) Conventionally, programmable controllers store sequence commands input from a programming device called a loader in a user program memory within the programmable controller, and execute sequence commands input from the programming device in response to sequence execution commands input from the programming device. The sequence instructions stored in the user program memory are read and executed.
最近ではこのシーケンス命令の入力はシーケンス回路の
図形に対応させて行うことが可能となったので、オペレ
ータの入力操作が容易となり、入力操作時間が短縮化さ
れてきている。Recently, it has become possible to input sequence commands in correspondence with the graphics of the sequence circuit, making the input operation easier for the operator and shortening the input operation time.
(発明か解決しようとする課題)
しかしながらプログラマブルコントローラのシーケンス
命令の実行処理時間の短縮化にはなお改良の余地があっ
た。(Problem to be Solved by the Invention) However, there is still room for improvement in shortening the execution processing time of sequence instructions of a programmable controller.
この点について詳しく説明する。This point will be explained in detail.
第8図はプログラマブルコントローラに入力するシーケ
ンス回路の回路構成を示し、ローダ図の形態で示してい
る。FIG. 8 shows the circuit configuration of a sequence circuit input to the programmable controller, and is shown in the form of a loader diagram.
このシーケンス回路は次のようなシーケンス演算処理ぞ
示している。すなわち、プログラマブルコントローラ内
のデータメモリのリレー接点“’ WBO”の値および
リレー接点”BI)0°°の値を加算する。次に、その
加算結果を°’d123°°で示す数値で除算し、その
除算結果をデータメモリのリレー接点”WBIOooに
格納する。また上記加算結果に数値“”d123°゛を
乗算し、乗算結果をデータメモリのリレー接点“BDI
”に格納する。This sequence circuit shows the following sequence operation processing. That is, add the value of the relay contact "'WBO" of the data memory in the programmable controller and the value of the relay contact "BI) 0°°. Next, divide the addition result by the value indicated by °'d123°°. , and stores the division result in the relay contact "WBIOoo" of the data memory. In addition, the above addition result is multiplied by the numerical value ""d123°", and the multiplication result is applied to the relay contact "BDI" of the data memory.
”.
オペレータは、このようなシーケンス回路をローダの文
字キーや図形キーを用いて入力し、さらに入力した図形
をローダ上の表示器に表示させて、入力するシーケンス
命令を確認する。The operator inputs such a sequence command using the character keys and graphic keys of the loader, and displays the input graphic on the display on the loader to confirm the sequence command to be input.
一方、プログラマブルコントローラではこのように図形
形態て入力されたシーケンス回路を分析し、高級言語や
簡易言語のシーケンス命令に変換してプログラマブルコ
ントローラ内部のユーザ用プログラムメモリに記十意す
る。On the other hand, the programmable controller analyzes the sequence circuit input in the form of a graphic, converts it into a sequence command in a high-level language or a simple language, and stores it in a user program memory inside the programmable controller.
第9図は上記ユーザ用プログラムメモリのメモリマツプ
を示し、第6図に示すシーケンス回路をシーケンス命令
に変換して記憶した例を示す。FIG. 9 shows a memory map of the user program memory, and shows an example in which the sequence circuit shown in FIG. 6 is converted into sequence instructions and stored.
第9図において°’IN”はデータの読み出し命令を表
わす。この“IN”命令と対応して人出刃先のアドレス
°’WBO,BDO°°およびこのアドレスデータの表
示器の表示位置“0゛(行目)“1′° (行目)が各
領域に格納されている。In FIG. 9, °'IN" represents a data read command. Corresponding to this "IN" command, the addresses °'WBO, BDO°° of the tip of the blade and the display position "0'' of this address data on the display (Line) “1′° (Line) is stored in each area.
なお、“十“命令は加算命令、 ”CON ”命令は
シーケンス命令の接続命令、“÷パ命令は除算命令“X
”命令は乗算命令、”OUT命令°′はデータの書き込
み命令を意味する。また“E”はシーケンス演算の区切
りを示すエンドコードである。Note that the “10” instruction is an addition instruction, the “CON” instruction is a sequence instruction connection instruction, and the “÷PA” instruction is a division instruction “X”.
The "instruction" means a multiplication command, and the "OUT command °' means a data write command. Further, "E" is an end code indicating a break in sequence operations.
次にこのようなシーケンス命令が図形形態で入力された
ときおよびシーケンス命令を実行するときのフログラマ
プルコントローラの中央演算処理装置(cpu)の動作
を第1O図および第11のフローチャートを参照しなが
ら説明する。Next, the operation of the central processing unit (CPU) of the programmable controller when such a sequence command is input in the form of a graphic and when executing the sequence command will be explained with reference to FIG. 1O and the 11th flowchart. explain.
オペレータがローダから文字キーおよび図形キーを用い
てシーケンス命令を入力すると、このシーケンス命令の
入力がある毎に第8図に示す入力割り込み処理を実行す
る。すなわち、CPUは入力された文字コードもしくは
図形コードおよびその入力位置を解析し、シーケンス命
令を表わすコードに変換する。When the operator inputs a sequence command from the loader using character keys and graphic keys, the input interrupt process shown in FIG. 8 is executed every time this sequence command is input. That is, the CPU analyzes the input character code or graphic code and its input position, and converts it into a code representing a sequence command.
続いて第9図に示す演算命令格納領域、表示位置格納領
域、区切コード格納領域、演算データ格納領域および人
出刃先アドレス格納領域にそれぞれ関連するデータを格
納する。(ステップ510〜530)。Subsequently, data related to the calculation command storage area, display position storage area, delimiter code storage area, calculation data storage area, and cutting edge address storage area shown in FIG. 9 are stored, respectively. (Steps 510-530).
また、CPUはこの入力に応じてローダの表示器に入力
命令を図形表示させる。(ステップ540)。In addition, the CPU causes the input command to be graphically displayed on the display of the loader in response to this input. (Step 540).
このようにシーケンス命令がユーザ用プログラムメモリ
に記憶された後、オペレータがローダからこのシーケン
ス命令の実行を指示すると、CPIIはシーケンス命令
の入力を検出し、第11図に示すフログラムの実行処理
手順に移行する(ステップ510→520−550)。After the sequence command is stored in the user program memory in this way, when the operator instructs the execution of this sequence command from the loader, the CPII detects the input of the sequence command and follows the program execution procedure shown in FIG. (Steps 510→520-550).
このプログラム実行処理において、CPuはニーサブロ
グラムメモリ内の1つのシーケンス命令を読み出し、続
いてCPUを作動させるためのマシン語(機械語)にシ
ーケンス命令を変換した後、このシーケンス命令を実行
する。例えば第6図に示すシーケンス回路では、IN″
°、°“+゛。In this program execution process, the CPU reads one sequence instruction in the knee subprogram memory, converts the sequence instruction into machine language for operating the CPU, and then executes this sequence instruction. For example, in the sequence circuit shown in FIG.
°、°“+゛.
COF+’”、: ” 、 ”x” ”0IIT
”の6回のシーケンス命令実行のために、命令の読み出
し−マシン語変換−演算処理を縁り返し6回行うことに
なる。COF+'”,: ”, ”x” ”0IIT
In order to execute the sequence instruction ``6 times, instruction reading, machine language conversion, and arithmetic processing are performed six times.
ところが、CPUは、例えば命令の読み出しプログラム
からマシン語変換プログラムへ移行するためには実行プ
ログラムの移行処理を行なわなけれ;よならない。However, in order to transition from, for example, an instruction reading program to a machine language conversion program, the CPU must perform execution program transition processing.
上述の例では1つのシーケンス命令に対して3つのプロ
グラムの実行処理および2つのプログラム移行処理を行
う。したかって、6個のシーケンス命令にては12個の
プログラム移行処理を行なわなければならない。In the above example, three program execution processes and two program migration processes are performed for one sequence instruction. Therefore, 12 program transfer processes must be performed using six sequence instructions.
もし、1つのシーケンス回路単位のシーケンス命令を一
括処理することか可能であれは、シーケンス命令の一括
読み出し−シーケンス命令の一括マシン語変換−マシン
語の一括実行と2回のプログラム移行処理で済むことが
予想できる。If it is possible to batch-process sequence instructions for one sequence circuit unit, it is possible to complete the batch reading of sequence instructions, batch translation of sequence instructions into machine language, batch execution of machine language, and two program migration processes. can be predicted.
しかしながら、オペレータが入力する1つのシーケンス
回路中のシーケンス命令は、不特定多数であるので、従
来のプログラマブルコントローラにおけるCPUは、連
続的に入力されるシーケンス命令の中からシーケンス回
路の始めのシーケンス命令および終りのシーケンス命令
を自動的に検出することができかなった。その結果、シ
ーケンス演算命令毎に上述の読み出し処理、マシン語変
換処理およびマシン語実行処理を行なわなければならな
いので、CPUのプログラム移行処理が増え、シーケン
スプログラムの実行処理時間が長くなるという問題点が
生じていた。However, since the number of sequence commands input by an operator in one sequence circuit is unspecified, the CPU in a conventional programmable controller selects the sequence command at the beginning of the sequence circuit from among the sequence commands input continuously. It was not possible to automatically detect the end sequence instruction. As a result, since the above-mentioned read processing, machine language conversion processing, and machine language execution processing must be performed for each sequence operation instruction, the problem is that the CPU's program transfer processing increases and the sequence program execution processing time becomes longer. was occurring.
そこで、本発明の目的は、このような問題壱を解決し、
連続入力されるシーケンス命令のシーケンス回路の終り
を自動的に検出し、1シ一ケンス回路のシーケンス命令
を一括実行することによりシーケンス命令の処理時間を
短縮化することかできるプログラマブルコントローラ
にある。Therefore, the purpose of the present invention is to solve this problem,
To provide a programmable controller capable of automatically detecting the end of a sequence circuit of continuously inputted sequence commands and shortening the processing time of sequence commands by collectively executing the sequence commands of one sequence circuit.
[課題を解決するための手段〕
このような目的を達成するために、木発明の第1形態は
シーケンス命令を入力する入力手段と、入力手段から入
力された シーケンス命令が、1つのシーケンス回路の
中の最後尾に位置する特定のシーケンス命令であること
を検出する検出手段と、入力手段から順次に入力された
シーケンス命令を記憶すると共、検出手段により1つの
シーケンス回路の最後尾に位置する特定のシーケンス命
令が検出されときには、シーケンス命令に区切りコード
を付加して記憶する記憶手段と、記憶手段に記憶され、
区切りコードではさまれた1以上のシーケンス命令をシ
ーケンス演算の実行指示に応じて、一括して読み出し実
行する演算処理手段とを具えたことを特徴とする。[Means for Solving the Problems] In order to achieve such an object, a first form of the tree invention includes an input means for inputting a sequence command, and a sequence command inputted from the input means is inputted into one sequence circuit. A detection means for detecting a specific sequence command located at the end of one sequence circuit, and a detection means for storing a sequence command sequentially inputted from the input means, When a sequence command is detected, a delimiter code is added to the sequence command and stored in the storage means;
The present invention is characterized by comprising an arithmetic processing means for reading out and executing one or more sequence instructions sandwiched between delimiter codes all at once in response to an instruction to execute a sequence operation.
木発明の第2形態はシーケンス命令を入力する入力手段
と、入力手段から順次に入力されたシーケンス命令を記
憶する記憶手段と、記憶手段の、シーケンス回路の中の
最後尾に位置する特定のシーケンス命令を検出して、シ
ーケンス回路単位でシーケンス命令を記憶手段から読み
出す読み出し手段と、読み出し手段から読み出されたシ
ーケンス命令を一括して実行する演算処理手段とを具え
たことを特徴とする。A second form of the tree invention is an input means for inputting sequence commands, a storage means for storing sequence commands sequentially inputted from the input means, and a specific sequence located at the end of the sequence circuit of the storage means. The present invention is characterized in that it includes a readout unit that detects an instruction and reads out the sequence instruction from the storage unit in units of sequence circuits, and an arithmetic processing unit that collectively executes the sequence instructions read out from the readout unit.
(作 用)
本発明は、シーケンス回路の最後尾のシーケンス命令は
シーケンス演算結果の出力命令、例えば、メモリへの書
き込み、表示器への表示、プリンタへの出力などの命令
となることに着目し、本発明の第1形態ではこれらの特
定のシーケンス命令を検出手段により検出することによ
り連続入力されるシーケンス命令の区切りを検出し、記
干、ρ手段とこの区切りと示すコートを付加して記憶し
ておく。この結果、1シ一ケンス回路単位でシーケンス
命令を一括実行することが可能となり、シーケンス命令
の実行に伴って行う各種の演算プログラムの移行処理が
大幅に減少するので、シーケンス命令の処理時間も大幅
に短縮化される。(Function) The present invention focuses on the fact that the last sequence instruction of the sequence circuit is an instruction to output the sequence operation result, for example, an instruction to write to memory, display on a display, output to a printer, etc. In the first embodiment of the present invention, by detecting these specific sequence commands with a detection means, a break in sequentially input sequence commands is detected, and is stored by adding a ρ means and a code indicating this break. I'll keep it. As a result, it becomes possible to execute sequence instructions in batches in units of one sequence circuit, and the transition processing of various arithmetic programs that is performed in conjunction with the execution of sequence instructions is greatly reduced, so the processing time for sequence instructions is also significantly reduced. It will be shortened to .
本発明の第2形態では、記憶手段に記憶されたシーケン
ス命令を読み出す際に読み出し手段により出力命令を検
出し、シーケンス回路の区切りを検出するようにしたの
でシーケンス命令をシーケンス回路毎に一括実行するこ
とが可能となる。In the second embodiment of the present invention, when reading the sequence commands stored in the storage means, the reading means detects the output command and detects the break in the sequence circuits, so that the sequence commands are executed in batch for each sequence circuit. becomes possible.
(実施例〕
以下、図面を参照して本発明の実施例を詳細に説明する
。(Example) Hereinafter, an example of the present invention will be described in detail with reference to the drawings.
第1図は本発明実施例の基本的な回路構成を示す。FIG. 1 shows the basic circuit configuration of an embodiment of the present invention.
第1図において1,100はシーケンス命令を入力する
入力手段である。In FIG. 1, 1,100 is an input means for inputting sequence commands.
200は該入力手段から入力された 前記シーケンス命
令が、1つのシーケンス回路の中の最後尾に位置する特
定のシーケンス命令であることを検出する検出手段であ
る。200 is a detection means for detecting that the sequence command input from the input means is a specific sequence command located at the end of one sequence circuit.
300は前記入力手段から順次に入力された前記シーケ
ンス命令を記憶すると共、前記検出手段により1つのシ
ーケンス回路の最後尾に位置する特定のシーケンス命令
が検出されど鮒には、当該シーケンス命令に区切りコー
ドを付加して記憶する記憶手段である。300 stores the sequence commands sequentially inputted from the input means, and when the detection means detects a particular sequence command located at the end of one sequence circuit, it adds a delimiter code to the sequence command. This is a storage means for storing additional information.
400は該記憶手段に記憶され、前記区切りコードでは
さまれた1以上のシーケンス命令をシーケンス演算の実
行指示に応じて、一括して読み出し実行する演算処理手
段である。Reference numeral 400 denotes an arithmetic processing means that is stored in the storage means and reads out and executes one or more sequence instructions sandwiched between the delimiter codes all at once in response to an instruction to execute a sequence operation.
第2図は本発明実施例の具体的な回路構成を示す。FIG. 2 shows a specific circuit configuration of an embodiment of the present invention.
第2図において、−点鎖線で囲まれたブロック10はプ
ログラマブルコントローラを示す。In FIG. 2, a block 10 surrounded by a dashed line indicates a programmable controller.
プログラマブルコントローラ1oにおいて、lはユーザ
から入力されたシーケンス命令を実行して外部機器30
の動作制御を行う中央演算処理装置(CPIJ)である
。In the programmable controller 1o, l executes the sequence command input by the user and outputs the external device 30.
This is the central processing unit (CPIJ) that controls the operation of the computer.
2は、ローダ20から入力されたシーケンス命令を格納
するユーザプログラム用のランダムアクセスメモリ(R
AM)である。2 is a random access memory (R
AM).
3はユーザプログラム用RAM 2に格納されたシーケ
ンス命令をマシン語に翻訳するプログラムや、プログラ
マブルコントローラlO内の構成各部を動作制御するた
めの周知のシステムプログラム、第4図および第5図に
示す本発明に関わる制御プログラムを予め記憶するシス
テム用のリードオンリメモリ(ROM)である。3 is a program for translating the sequence instructions stored in the user program RAM 2 into machine language, a well-known system program for controlling the operation of each component in the programmable controller IO, and a book shown in FIGS. 4 and 5. This is a read-only memory (ROM) for a system that stores in advance a control program related to the invention.
4は、外部機器30とローダ20との間で授受するデー
タを一時1己憶するデータ用RAMである。5はローダ
20や外部機器30との間で授受するデータを人出力す
るインターフェース(Ilo)である。4 is a data RAM that temporarily stores data exchanged between the external device 30 and the loader 20; Reference numeral 5 denotes an interface (Ilo) for manually outputting data exchanged with the loader 20 and external equipment 30.
20はローダと呼ばれるプログラム入力装置であり、シ
ーケンス命令を入力するためのキーボードおよび入力し
た情報を表示する表示器を有している。また、キーボー
ドには本発明に関わり、シーケンス命令のシーケンス回
路単位の一括入力を指示する御粘処理指示キー20−1
が設けられている。20 is a program input device called a loader, which has a keyboard for inputting sequence commands and a display for displaying input information. The keyboard also includes a control processing instruction key 20-1 which is related to the present invention and which instructs batch input of sequence commands in sequence circuit units.
is provided.
ここて、入力手段がローダ20に相当し、検出手段、演
算処理手段がCPUIに相当し、記11行手段かユーザ
用プログラムRAM2に相当する。Here, the input means corresponds to the loader 20, the detection means and the arithmetic processing means correspond to the CPUI, and the eleventh line means corresponds to the user program RAM 2.
第3図は第2図に示すユーザプログラム用RA M2の
メモリマツプを示す。FIG. 3 shows a memory map of the user program RAM 2 shown in FIG.
本図に示すメモリマツプは第9図に示す従来のメモリマ
ツプとメモリ領域の構成は同一である。The memory map shown in this figure has the same memory area configuration as the conventional memory map shown in FIG. 9.
けれども、本発明実施例では、シーケンス回路の最後尾
を示す’OUT”命令のみにエンドコードが付加記憶さ
れるのに対し、第9図に示す従来例では各シーケンス命
令に対してエンコードが付加記憶されている。However, in the embodiment of the present invention, the end code is additionally stored only in the 'OUT' instruction indicating the end of the sequence circuit, whereas in the conventional example shown in FIG. has been done.
第4図および第5図は第1図に示すCPU2が実行する
シーケンス命令の一括処理のための制御手順を示す。4 and 5 show a control procedure for batch processing of sequence instructions executed by the CPU 2 shown in FIG.
第4図および第5図を参照しながら本発明実施例の動作
を説明する。The operation of the embodiment of the present invention will be explained with reference to FIGS. 4 and 5.
なお、入力するシーケンス命令は従来技術の説明に用い
た第8図に示すシーケンス命令を用いる。Note that the sequence command to be input is the sequence command shown in FIG. 8, which was used to explain the prior art.
第4図において、オペレータがローダ20からシーケン
ス命令を入力すると CPII Iは入力された情報が
シーケンス命令であることを確認して1、:I−1’用
プログラムRAM2ヘシーケンス命令を書き込む(ステ
ップ5loo −sno −5120−5130)。In FIG. 4, when the operator inputs a sequence command from the loader 20, the CPII I confirms that the input information is a sequence command and writes the sequence command to the program RAM 2 for 1,:I-1' (step 5looo). -sno-5120-5130).
?売いて CI”111は入力されたシーケンス命令を
シーケンス回路の図形の形態てローダ20の表示器に表
示する(ステップ5140)。1つのシーケンス回路の
最後に位置する°’OUT”命令がローダ20から入力
されると、 CPIJlはS3図に示すように”0IJ
T”命令と共にエンドコート(E)をユーザ用のプログ
ラムRAM 2に書ト込む(ステップ5120→512
5→5130)。? The CI" 111 displays the input sequence command in the form of a sequence circuit graphic on the display of the loader 20 (step 5140). When input, CPIJl becomes “0IJ” as shown in Figure S3.
The end code (E) is written to the user program RAM 2 together with the T” command (steps 5120→512
5 → 5130).
シーケンス命令の入力か終了し、オペレータがシーケン
スプログラムの実行をローダ20から指示すると、CP
IJIはこの指示に応じ(ステップ100→5110→
5150) 、第5図に示すシーケンス命令の実行処理
に移行する。When inputting a sequence command is completed and the operator instructs execution of the sequence program from the loader 20, the CP
IJI responds to this instruction (step 100→5110→
5150), the process moves to the sequence instruction execution process shown in FIG.
第5図において、 CPU 1はエンドコードではさま
れる1以上のシーケンス命令を読み出し、マシン語に変
換した後、そのマシン語形態のシーケンス命令を一括実
行する(ステップ5151−5152−515:l)。In FIG. 5, the CPU 1 reads one or more sequence instructions sandwiched between end codes, converts them into machine language, and then executes the sequence instructions in the machine language form at once (steps 5151-5152-515:l).
本実施例では1シ一ケンス回路車位でシーケンス命令を
実行するために、 CPt11が行うプログラムの8行
処理は、6算命令の読み出し処理プログラムからマシン
語変換プログラムへの移行処理およびマシン語変換プロ
グラムから演算処理プログラムへの2回のみである。従
来技術で説明したように従来例では6個のシーケンス命
令で構成するシーケンス回路を実行する場合12(6X
2)回の渾多行処理が必要であったから、このプログラ
ムの移行処理が減じた分だけCPUIの処理時間が短縮
化される。In this embodiment, in order to execute sequence instructions in one sequence circuit level, the 8-line processing of the program performed by CPt11 is the transition process from the 6-arithmetic instruction read processing program to the machine language conversion program and the machine language conversion program. There are only two transfers from the program to the arithmetic processing program. As explained in the prior art, in the conventional example, when executing a sequence circuit consisting of 6 sequence instructions, 12 (6X
2) Since multiple line processing is required, the CPU processing time is shortened by the reduction in program migration processing.
加えて、従来例ではシーケンスン寅算命令の入力毎にユ
ーザ用ブログラムメモリヘシーケンスン寅算命令を書き
込む際に、各シーケンス命令に区切りコード(エンドコ
ード)の書き込みを行っていたが、本実施例では1シ一
ケンス回路単位毎に区切りコートの書き込みを行えはい
いので、区切りコートの@き込み処理も減少し、 CP
UIの処理時間の短縮化に寄与する。In addition, in the conventional example, a delimiter code (end code) was written to each sequence instruction when writing the sequence instruction to the user program memory each time a sequence instruction was input. In the embodiment, since it is possible to write the delimiter code for each sequence circuit unit, the @ writing process of the delimiter code is also reduced, and the CP
Contributes to shortening UI processing time.
また、本実施例では図形形態でシーケンス命令を入力す
る例を示したが、ヘーシックやフォートランと呼(よれ
る高級言語や各メーカで作成した簡易言語でシーケンス
命令を入力するプログラマブルコントローラにも本発明
を適用可能であることは言うまでもない。Although this embodiment shows an example in which sequence commands are input in graphical form, the present invention can also be applied to programmable controllers in which sequence commands are input in a high-level language such as Hessic or Fortran, or in a simple language created by each manufacturer. Needless to say, it is applicable.
第6図は本発明第2実施例の基本構成を示す。FIG. 6 shows the basic configuration of a second embodiment of the present invention.
第6図において、500はシーケンス命令を入力する入
力手段である。In FIG. 6, 500 is an input means for inputting sequence commands.
600は該入力手段から順次に入力された前記シーケン
ス命令を記憶する記憶手段である。Reference numeral 600 denotes a storage means for storing the sequence commands sequentially inputted from the input means.
700は該記憶手段の、シーケンス回路の中の最後尾に
位置する特定のシーケンス命令を検出して、シーケンス
回路単位で前記シーケンス命令を前記記憶手段から読み
出す読み出し手段である。Reference numeral 700 denotes a reading unit for detecting a specific sequence command located at the end of a sequence circuit in the storage unit and reading out the sequence command from the storage unit in units of sequence circuits.
800は該読み出し手段から読み出された前記シーケン
ス命令を一括して実行する演算処理手段である。800 is an arithmetic processing means that collectively executes the sequence instructions read out from the reading means.
第2実施例の具体的構成は第2図に示す第1実施例とほ
ぼ同様とすることができるが、第2図示のCr’ll
1が第7図に示す制御手順を第5図に示す制御手順に代
わり実行する点が異なる。The specific configuration of the second embodiment can be almost the same as that of the first embodiment shown in FIG.
The difference is that No. 1 executes the control procedure shown in FIG. 7 instead of the control procedure shown in FIG.
第7図は本発明第2実施例におけるシーケンスプログラ
ムの実行手順を示す。すなわち、本実施例においてはC
PU 1が入力手段としてのローダ30から入力された
シーケンス命令を順次に記憶手段としてのユーザ用プロ
グラムRAM2に格納する。FIG. 7 shows the sequence program execution procedure in the second embodiment of the present invention. That is, in this example, C
The PU 1 sequentially stores sequence commands input from the loader 30 as an input means into the user program RAM 2 as a storage means.
このときエンドコードは付加記憶しない。次に読み出し
手段としてのCPU 1がシーケンス命令の実行のため
にユーザ用プログラムRへM 2からシーケンス命令を
読み出す(ステップ5200)際に、読み出した命令が
出力命令であることを検出すると、CPt1lはシーケ
ンス命令の御粘読み出しを終了し、マシン語への変換処
理およびマシン語形態のシーケンス命令を実行する(ス
テップ5203→5204 )。At this time, the end code is not additionally stored. Next, when the CPU 1 serving as a reading means reads out a sequence instruction from the M2 to the user program R to execute the sequence instruction (step 5200), when it detects that the read instruction is an output instruction, the CPt1l The reading of the sequence command is finished, and the conversion process to machine language and the sequence command in machine language form are executed (steps 5203→5204).
本実施例は、出力命令自体により実行ずヘキシ−ケンス
命令の区切を検出するのて、ニーサブログラム l′l
AM2内にエンドコートを格納する必要はなく、メモリ
容量を節減できるというメリットかある。In this embodiment, the knee subprogram l'l
There is no need to store the end coat in AM2, which has the advantage of saving memory capacity.
〔発明の効果)
以上、説明したように、本発明の第1形態によれは、本
発明は、シーケンス回路の最後尾のシーケンス命令がシ
ーケンス演算結果の出力命令、例えは、メモリへの書き
込み、表示器への表示、フリンタへの出力などの命令と
なることに着目し、本発明の第1形態ではこれらの特定
のシーケンス命令を検出手段により検出することにより
連続入力さ打るシーケンス命令の区切りを検出し、記憶
手段とこの区切りと示すコートを付加して記憶しておく
。この結果、1シ一ケンス回路単位でシーケンス命令を
一括実行することか可能となり、シーケンス命令の実行
に伴って行う各種の演算プログラムの移行処理が大幅に
減少するので、シーケンス命令の処理時間も大幅に短縮
化される。[Effects of the Invention] As described above, according to the first embodiment of the present invention, the last sequence instruction of the sequence circuit is an instruction to output a sequence operation result, for example, write to a memory, Focusing on the fact that the commands are to be displayed on a display, output to a printer, etc., the first embodiment of the present invention detects these specific sequence commands using a detection means, thereby detecting the break between successive input sequence commands. is detected, and a storage means and a code indicating this delimiter are added and stored. As a result, it becomes possible to execute sequence instructions in batches in units of one sequence circuit, and the transition processing of various arithmetic programs that is performed in conjunction with the execution of sequence instructions is greatly reduced, so the processing time for sequence instructions is also significantly reduced. It will be shortened to .
本発明の第2 JFs態では、記f色手段に記憶意され
たシーケンス命令を読み出す際に読み出し手段により出
力命令シーケンス回路の区切りを検出するようにしたの
でシーケンス命令をシーケンス回路毎に一括実行するこ
とか可能という効果か得られる。In the second JFs mode of the present invention, when reading out the sequence commands stored in the recording means, the reading means detects the break in the output command sequence circuits, so that the sequence commands are executed in batch for each sequence circuit. You can get the effect that it is possible.
第1図は本発明実施例の基本的な回路構成を示すブロッ
ク図、
第2図は本発明実施例の具体的な回路構成を示す回路図
、
第3図は本発明実施例のユーザ用プログラムRAM2の
メモリ構成を示すメモリマツプ、第4図および第5図は
第2図に示すCPIIIが実行する制御手順を示すフロ
ーチャート、第6図は本発明第2実施例の基本構成を示
すブロック図、
第7図は第2図示のCPIIIが実行する制御手順を示
すフローチャート、
第8図は従来例のラダー図形態で示すシーケンス回路の
構成を示す回路図、
第9図は従来例のユーザ用プログラムメモリのメモリ構
成を示すメモリマツプ。
第1O図および第11図は従来例のcpuが実行する制
御手段を示すフローチャー]・である。
1 ・・・cpu 、
2・・・ユーザ用プログラムRAM、
3・・・システムROM、
4・・・データRAM、
5・・弓10、
lO・・・プログラマブルコントローラ、20・・・ロ
ーダ、
30・・・外部機器。
10フ゛O’7巧マプ、・レフシト0−ラ¥そ明デでと
・j列0回チト区
第2図
¥光口月z文をンイゲリ0フローーーヤート第4図
2ユ一プ凋フ゛ロクラムRAM
)も四大ずと・f列〃ユ
第
す明1°ロク゛而ムRAM2の、< 5− :、lマ、
・す図
令希日月ス太邑4列0フローキャート
第5図
ゴ疋木イ列のラダー図ト杉、態のシー午ンス回降11紋
ft示1イ郵蓼F図第8図
す臼看口月碌2烹さ2イ列θフロー斗セード第7図
ダ米イ列み1−す用プロプラムメモリ0メ七すマッフ。
第9図
ィ疋未イダリ0フロー牛ヤード
第1゛5″9図
イ攻米イグ)Jのフロー千ヤ斗
第11図Figure 1 is a block diagram showing the basic circuit configuration of the embodiment of the present invention, Figure 2 is a circuit diagram showing the specific circuit configuration of the embodiment of the invention, and Figure 3 is the user program of the embodiment of the invention. 4 and 5 are flowcharts showing the control procedure executed by the CPIII shown in FIG. 2; FIG. 6 is a block diagram showing the basic configuration of the second embodiment of the present invention; FIG. 7 is a flowchart showing the control procedure executed by the CPIII shown in FIG. 2, FIG. 8 is a circuit diagram showing the configuration of a sequence circuit shown in the form of a ladder diagram of the conventional example, and FIG. 9 is a diagram of the user program memory of the conventional example. Memory map showing memory configuration. FIGS. 1O and 11 are flowcharts showing control means executed by a conventional CPU. 1... CPU, 2... User program RAM, 3... System ROM, 4... Data RAM, 5... Bow 10, lO... Programmable controller, 20... Loader, 30... ··External device. 10 ゛O'7 skill map, ・Refsito 0-ra \ somden, j column 0 times Tito section 2 \ light mouth moon z text, 0 flow diagram 4 2 u 1 pu ゛ flop RAM) Also, the four main points are the f column, the first one, and the RAM2, < 5-:, l ma,
・Suzu Rei Ki Sun Moon Su Tai Village 4 Row 0 Flowchart Figure 5 Gobiki I Row Ladder Diagram To Cedar, State of the Sea No. 11 Crest ft Indication 1 A Postal F Figure Figure 8 Program memory for program memory 0, row 1, row 7, row 1, row 2, row 2, row θ flow. Fig. 9 - 0 flow cattle yard Fig. 1゛5''9 Fig. A attack and rice Ig) J's flow Chiyato Fig. 11
Claims (1)
から入力された前記シーケンス命令が、1つのシーケン
ス回路の中の最後尾に位置する特定のシーケンス命令で
あることを検出する検出手段と、 前記入力手段から順次に入力された前記シーケンス命令
を記憶すると共に、前記検出手段により1つのシーケン
ス回路の最後尾に位置する特定のシーケンス命令が検出
されときには、当該シーケンス命令に区切りコードを付
加して記憶する記憶手段と、 該記憶手段に記憶され、前記区切りコードではさまれた
1以上のシーケンス命令をシーケンス演算の実行指示に
応じて、一括して読み出し実行する演算処理手段と を具えたことを特徴とするプログラマブルコントローラ
。 2)シーケンス命令を入力する入力手段と、該入力手段
から順次に入力された前記シーケンス命令を記憶する記
憶手段と、 該記憶手段の、シーケンス回路の中の最後尾に位置する
特定のシーケンス命令を検出して、シーケンス回路単位
で前記シーケンス命令を前記記憶手段から読み出す読み
出し手段と、 該読み出し手段から読み出された前記シーケンス命令を
一括して実行する演算処理手段とを具えたことを特徴と
するプログラマブルコントローラ。[Claims] 1) An input means for inputting a sequence command, and detecting that the sequence command inputted from the input means is a specific sequence command located at the end of one sequence circuit. a detection means for storing the sequence commands sequentially input from the input means, and when the detection means detects a specific sequence command located at the end of one sequence circuit, dividing the sequence command into the sequence command; a storage means for adding and storing codes; and an arithmetic processing means for reading out and executing one or more sequence instructions stored in the storage means and sandwiched between the delimiter codes at once in response to an instruction to execute a sequence operation. A programmable controller characterized by comprising: 2) input means for inputting sequence commands; storage means for storing the sequence commands sequentially input from the input means; and storage means for storing a specific sequence command located at the end of the sequence circuit in the storage means It is characterized by comprising: a reading means for detecting and reading out the sequence instructions from the storage means in units of sequence circuits; and an arithmetic processing means for collectively executing the sequence instructions read from the reading means. programmable controller.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63223418A JPH07120172B2 (en) | 1988-09-08 | 1988-09-08 | Programmable controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63223418A JPH07120172B2 (en) | 1988-09-08 | 1988-09-08 | Programmable controller |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH0272408A true JPH0272408A (en) | 1990-03-12 |
JPH07120172B2 JPH07120172B2 (en) | 1995-12-20 |
Family
ID=16797833
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63223418A Expired - Lifetime JPH07120172B2 (en) | 1988-09-08 | 1988-09-08 | Programmable controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH07120172B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04227504A (en) * | 1990-05-09 | 1992-08-17 | Mitsubishi Electric Corp | Programming device of programmable controller |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5769413A (en) * | 1980-10-16 | 1982-04-28 | Omron Tateisi Electronics Co | Programmable logic controller |
JPS59117606A (en) * | 1982-12-25 | 1984-07-07 | Koyo Denshi Kogyo Kk | Programmable controller |
JPS63244104A (en) * | 1987-03-30 | 1988-10-11 | Omron Tateisi Electronics Co | Arithmetic unit for programmable controller |
-
1988
- 1988-09-08 JP JP63223418A patent/JPH07120172B2/en not_active Expired - Lifetime
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5769413A (en) * | 1980-10-16 | 1982-04-28 | Omron Tateisi Electronics Co | Programmable logic controller |
JPS59117606A (en) * | 1982-12-25 | 1984-07-07 | Koyo Denshi Kogyo Kk | Programmable controller |
JPS63244104A (en) * | 1987-03-30 | 1988-10-11 | Omron Tateisi Electronics Co | Arithmetic unit for programmable controller |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04227504A (en) * | 1990-05-09 | 1992-08-17 | Mitsubishi Electric Corp | Programming device of programmable controller |
Also Published As
Publication number | Publication date |
---|---|
JPH07120172B2 (en) | 1995-12-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4445169A (en) | Sequence display apparatus and method | |
JPS60262204A (en) | Programmable controller | |
JPS6010644B2 (en) | Sequence display control method | |
JPH08179817A (en) | Display manipulator for machine tool | |
JPH0272408A (en) | Programmable controller | |
US4507743A (en) | Calculation system utilizing definable keys | |
JPH0410081B2 (en) | ||
US6145093A (en) | Debugging method and method of displaying information for data processing for use in programmable display device | |
JPS60217448A (en) | Data input system | |
JPS6019538B2 (en) | Program writing method | |
JPS6137671B2 (en) | ||
JPS6041102A (en) | Sequence control device | |
KR100423742B1 (en) | Exclusive control system by sequential function chart | |
JPS6217243B2 (en) | ||
JPS5921068B2 (en) | Program step calculation method | |
CN112486089A (en) | Data processing method and device of programmable logic controller and computer equipment | |
JPS6051903A (en) | Generating method of process control program | |
JPH0546220A (en) | Numerical controller | |
JPS61131124A (en) | Conversation input processing system | |
JPS58221405A (en) | Programmable controller | |
JPH1196040A (en) | Process execution system and recording medium | |
JPH0532781B2 (en) | ||
JPS6112587B2 (en) | ||
JPH01288903A (en) | Program input device | |
JPH0811073A (en) | Robot controller |