JP3407614B2 - Sequence controller - Google Patents
Sequence controllerInfo
- Publication number
- JP3407614B2 JP3407614B2 JP25323797A JP25323797A JP3407614B2 JP 3407614 B2 JP3407614 B2 JP 3407614B2 JP 25323797 A JP25323797 A JP 25323797A JP 25323797 A JP25323797 A JP 25323797A JP 3407614 B2 JP3407614 B2 JP 3407614B2
- Authority
- JP
- Japan
- Prior art keywords
- sequence
- instruction
- speed processing
- conversion
- conversion unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Description
【0001】[0001]
【発明の属する技術分野】本発明は、工作機械等の制御
に用いられるシーケンス制御装置に掛り、特にシーケン
ス演算命令を高速に実行する改良に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sequence control device used for controlling a machine tool or the like, and more particularly to an improvement for executing sequence operation instructions at high speed.
【0002】[0002]
【従来の技術】図3は、従来のPLCのプログラム開発
装置の構成ブロック図である。図において、プログラム
開発用の端末は、ユーザプログラムを作成したり編集し
たりするもので、プログラマブル・コントローラ(以下
『PLC』という)にダウンロードしたりアップロード
したりする。PLCは、ユーザプログラムに従って工作
機械等を制御するもので、ラダープログラム等の特有の
言語やBASIC等の汎用言語が用いられる。命令変換
部10は、プログラム開発用の端末から送られたユーザ
プログラムをPLCの実行用言語に変換する。シーケン
スプログラムメモリ20は、シーケンス命令を記憶する
領域である。シーケンスプログラム実行部30は、シー
ケンスプログラムメモリ20に格納されたシーケンス命
令を実行するもので、例えば工具を移動させるアクチュ
エータや、製品の移動を検出するスイッチが該当する。
命令逆変換部40は、シーケンスプログラムメモリ20
に格納されたシーケンス命令をプログラム開発用の端末
用の言語に変換する。2. Description of the Related Art FIG. 3 is a block diagram of a conventional PLC program development apparatus. In the figure, a terminal for program development is for creating or editing a user program, and is downloaded or uploaded to a programmable controller (hereinafter referred to as "PLC"). The PLC controls a machine tool or the like according to a user program, and a specific language such as a ladder program or a general-purpose language such as BASIC is used. The instruction conversion unit 10 converts a user program sent from a program development terminal into a PLC execution language. The sequence program memory 20 is an area for storing sequence instructions. The sequence program execution unit 30 executes a sequence command stored in the sequence program memory 20, and corresponds to, for example, an actuator for moving a tool or a switch for detecting movement of a product.
The instruction reverse conversion unit 40 uses the sequence program memory 20.
The sequence instruction stored in is converted into the language for the terminal for program development.
【0003】このように構成された装置において、ユー
ザプログラムをシーケンスプログラムメモリ20から読
みだして、シーケンス命令の解析を行うと共に、パラメ
ータの読みだし・書込みがシーケンシャルに行われる。
そして、命令実行を高速に行うために、使用頻度の高い
命令、例えばデータの移動命令(MOV)、比較(CM
P)、演算命令(CAL命令)では、シーケンス命令を
読みだして解析するのと同時に第1パラメータ(par1)を
先読みし、対象シーケンス命令の実行時には第1パラメ
ータを予めシーケンスプログラム実行部30に送り込む
ことによって、第1パラメータを読みだす時間を短縮し
ている。In the apparatus thus constructed, the user program is read from the sequence program memory 20, the sequence command is analyzed, and the parameters are read and written sequentially.
Then, in order to execute instructions at high speed, frequently used instructions such as data move instructions (MOV) and comparison (CM
P) and the arithmetic instruction (CAL instruction) read the sequence instruction and analyze it, and at the same time prefetch the first parameter (par1) and send the first parameter to the sequence program execution unit 30 in advance when the target sequence instruction is executed. By doing so, the time for reading the first parameter is shortened.
【0004】図4は、演算命令の態様を説明する図であ
る。演算命令には、演算子として+,−,&,|等の各
種のものがある。そして、演算子は第1パラメータ(par
1)と第2パラメータ(par2)を演算して、演算結果を第3
パラメータ(par3)に格納するものや、レジスタや定数に
演算を加えてレジスタに格納するものがある(式1〜式
3)。FIG. 4 is a diagram for explaining a mode of the operation instruction. There are various types of operation instructions such as +,-, &, | as operators. And the operator is the first parameter (par
1) and the second parameter (par2) are calculated, and the calculation result is calculated as the third
Some are stored in the parameter (par3), and some are stored in the register by performing arithmetic operation on the register or constant (Equation 1 to Equation 3).
【0005】図5は、比較演算命令の態様を説明する図
である。比較演算命令には、演算子として<,<=,
>,>=,<>、=等の各種のものがある。そして、演
算子は第1パラメータ(par1)と第2パラメータ(par2)を
比較演算するものや、レジスタや定数に比較演算をなす
ものがある(式4〜式7)。FIG. 5 is a diagram for explaining a mode of the comparison operation instruction. In comparison operation instructions, operators <, <=,
There are various types such as>,> =, <>, and =. There are operators that perform a comparison operation on the first parameter (par1) and the second parameter (par2), and operators that perform a comparison operation on registers and constants (Equations 4 to 7).
【0006】[0006]
【発明が解決しようとする課題】しかし、シーケンス命
令を読みだして解析するのと同時に第1パラメータを先
読みして高速実行する方式では、通常処理するシーケン
ス命令と、高速処理するシーケンス命令を別に用意する
必要があり、シーケンス命令の種類の管理が煩雑になる
という課題があった。また、高速実行命令コードが有限
であるため、例えば上述の式2は、式1の第1パラメー
タと第2パラメータとを交換すれば代用できることか
ら、高速処理の対象から除外することが行われている。
すると、ユーザはプログラム作成時にパラメータの順番
を意識して記述する必要があり、ユーザプログラムの作
成作業が煩雑になるという課題があった。なお、高速実
行命令コードが有限であるため、高速処理の対象から除
外する点は、式6でも同様である。即ち、式6では第1
パラメータと第2パラメータとを交換して式5の形式と
すれば高速処理できるのであり、比較演算としても式5
と式6は同じである。However, in the method in which the sequence command is read and analyzed and the first parameter is prefetched at the same time and is executed at high speed, the sequence command for normal processing and the sequence command for high speed processing are prepared separately. However, there is a problem in that the management of the types of sequence instructions becomes complicated. Further, since the high-speed execution instruction code is finite, for example, the above-mentioned formula 2 can be substituted by exchanging the first parameter and the second parameter of the formula 1, so that it is excluded from the target of high-speed processing. There is.
Then, the user needs to be conscious of the order of the parameters when creating the program, and there is a problem that the work of creating the user program becomes complicated. It should be noted that since the high-speed execution instruction code is finite, the point of excluding it from the target of high-speed processing is the same in the equation 6. That is, in Equation 6, the first
High-speed processing is possible if the parameter and the second parameter are exchanged to obtain the form of the expression 5, and therefore the expression 5 is also used as the comparison operation.
And Equation 6 are the same.
【0007】そこで、ユーザプログラム内で演算命令が
式2に当てはまる場合に、演算命令の高速処理のため式
2の第1パラメータと第2パラメータとを交換して、式
1に置き換えてシーケンスプログラムメモリ20に格納
することも考えられる。しかし、プログラム開発用の端
末内のユーザプログラムと、プログラマブル・コントロ
ーラのシーケンスプログラムメモリ20からアップロー
ドしたユーザプログラムとは、同一になることが要求さ
れている。そこで、式2の第1パラメータと第2パラメ
ータとを交換すると、命令逆変換部40で復元しようと
しても元の命令に復元することができなくなるという課
題があった。Therefore, when the arithmetic instruction is applied to the equation 2 in the user program, the first parameter and the second parameter of the equation 2 are exchanged for high speed processing of the arithmetic instruction and replaced with the equation 1 to replace the sequence program memory. It is also conceivable to store in 20. However, the user program in the terminal for program development and the user program uploaded from the sequence program memory 20 of the programmable controller are required to be the same. Therefore, if the first parameter and the second parameter of Expression 2 are exchanged, there is a problem that the instruction inverse conversion unit 40 cannot restore the original instruction even if the instruction inverse conversion unit 40 restores the original instruction.
【0008】本発明はこのような課題を解決したもの
で、プログラム開発用の端末内のユーザプログラムとP
LCからアップロードしたユーザプログラムとの同一性
を確保しながら、演算命令の高速処理のためパラメータ
の順序をPLCに格納する際に交換できるシーケンス制
御装置を提供することを目的とする。The present invention solves such a problem by providing a user program and a P program in a terminal for program development.
An object of the present invention is to provide a sequence control device capable of exchanging the order of parameters in a PLC for high-speed processing of operation instructions while ensuring the sameness with a user program uploaded from LC.
【0009】[0009]
【課題を解決するための手段】上記の目的を達成するた
めに、発明の請求項1記載のシーケンス制御装置は、ユ
ーザプログラムを作成したり編集したりするプログラム
開発用の端末と、この端末から送られたユーザプログラ
ムをシーケンス命令の記述用言語に変換する命令変換部
10と、この命令変換部で変換された言語によりシーケ
ンス命令を記憶するシーケンスプログラムメモリ20
と、このシーケンスプログラムメモリに格納されたシー
ケンス命令を実行するシーケンスプログラム実行部30
と、このシーケンスプログラムメモリに格納されたシー
ケンス命令を、前記端末の言語に逆変換して当該端末に
送る命令逆変換部40とを有し、前記シーケンスプログ
ラム実行部は、シーケンス命令の形式により通常処理と
高速処理とを区分するプログラマブル・コントローラと
を有するシーケンス制御装置において、前記命令変換部
は、前記端末から送られたユーザプログラムのうち、当
初のシーケンス命令では通常処理で、シーケンス命令の
形式を変更することで高速処理に該当するシーケンス命
令について、高速処理向けの変換を行い、前記命令逆変
換部は、前記命令変換部で高速処理向けの変換が行われ
たシーケンス命令に対して、通常処理向けの変換が行わ
れたものとして逆変換を行うことを特徴としている。In order to achieve the above object, a sequence control device according to claim 1 of the present invention comprises a program development terminal for creating and editing a user program, and a terminal for program development. A command conversion unit 10 for converting the sent user program into a description language for sequence commands, and a sequence program memory 20 for storing the sequence commands in the language converted by the command conversion unit.
And a sequence program execution unit 30 for executing the sequence instructions stored in the sequence program memory.
And a command reverse conversion unit 40 that reverse-converts the sequence command stored in the sequence program memory into the language of the terminal and sends it to the terminal, and the sequence program execution unit normally operates according to the format of the sequence command. In a sequence control device having a programmable controller that divides processing and high-speed processing, the instruction conversion unit is a normal processing for an initial sequence instruction in a user program sent from the terminal, and a sequence instruction format is set. By changing the sequence instruction corresponding to the high-speed processing, conversion for high-speed processing is performed, and the instruction reverse conversion unit performs normal processing for the sequence instruction converted by the instruction conversion unit for high-speed processing. The feature is that the inverse conversion is performed assuming that the conversion for the target has been performed.
【0010】本発明の請求項1によれば、プログラム開
発用の端末で、ユーザプログラムを作成したり編集した
りしているので、プログラマブル・コントローラ側では
マンマシン・インターフェイスの機能を持たなくて済
む。開発されたユーザプログラムは、シーケンスプログ
ラムメモリ20に格納される。命令変換部と命令逆変換
部は、プログラム開発用の端末とプログラマブル・コン
トローラでの言語体系の相違を吸収して、ユーザプログ
ラムの授受を容易にしている。シーケンスプログラム実
行部は、シーケンス命令の形式により通常処理と高速処
理とを区分している。命令変換部は、端末から送られた
ユーザプログラムのうち、当初のシーケンス命令では通
常処理で、シーケンス命令の形式を変更することで高速
処理に該当するシーケンス命令について、高速処理向け
の変換を行い、シーケンスプログラムメモリ20に格納
する。命令逆変換部は、命令変換部で高速処理向けの変
換が行われたシーケンス命令に対して、通常処理向けの
変換が行われたものとして逆変換を行い、端末に送信す
る。これにより、プログラム開発用の端末内のユーザプ
ログラムとPLCからアップロードしたユーザプログラ
ムとの同一性が確保される。According to claim 1 of the present invention, since the user program is created or edited in the terminal for program development, the programmable controller side does not need to have the man-machine interface function. . The developed user program is stored in the sequence program memory 20. The instruction conversion unit and the instruction inverse conversion unit absorb the difference in language system between the terminal for program development and the programmable controller to facilitate the transfer of the user program. The sequence program execution unit classifies normal processing and high-speed processing according to the format of the sequence instruction. Of the user program sent from the terminal, the instruction conversion unit performs normal processing for the initial sequence instruction, and performs conversion for high-speed processing on the sequence instruction corresponding to high-speed processing by changing the format of the sequence instruction, It is stored in the sequence program memory 20. The instruction reverse conversion unit performs reverse conversion on the sequence command converted by the command conversion unit for high-speed processing, assuming that the conversion has been performed for normal processing, and transmits the sequence command to the terminal. This ensures the identity between the user program in the terminal for program development and the user program uploaded from the PLC.
【0011】ここで、請求項2のように、シーケンス命
令の内部に、シーケンス命令の形式を変更することで高
速処理向けの変換が行われたか否かを表示する高速処理
用フラグを設け、命令変換部は、高速処理向けの変換を
行う際に当該高速処理用フラグを立てると共に、命令逆
変換部は、高速処理用フラグの立てられたシーケンス命
令に対して、命令変換部によるシーケンス命令の形式を
変更する前の形式により逆変換を行うように構成する。
すると、命令逆変換部は、命令変換部で高速処理向けの
変換が行われたシーケンス命令か否かが容易に判別でき
る。Here, as in claim 2, a high-speed processing flag for displaying whether or not conversion for high-speed processing is performed by changing the format of the sequence instruction is provided inside the sequence instruction, The conversion unit sets the high-speed processing flag when performing conversion for high-speed processing, and the instruction inverse conversion unit sets the format of the sequence instruction by the instruction conversion unit for the sequence instruction for which the high-speed processing flag is set. Inverse conversion is performed according to the format before changing.
Then, the instruction inverse conversion unit can easily determine whether or not the sequence instruction has been converted by the instruction conversion unit for high-speed processing.
【0012】次に、請求項3のように、シーケンスプロ
グラム実行部の通常処理と高速処理とを区分するシーケ
ンス命令の形式は、演算命令の種類と配置されたパラメ
ータの種類と順序を用いて予め定められるように構成す
ると、命令変換部と命令逆変換部に必要とされる機能
は、パラメータの順序に対する変換という具体的なもの
に限られる。ここで、請求項4のように、シーケンスプ
ログラム実行部の通常処理と高速処理とを区分するシー
ケンス命令の形式は、同一の演算命令であっても第1パ
ラメータが定数のとき通常処理を行い、第1パラメータ
がレジスタのとき高速処理を行うものであって、端末の
ユーザプログラムでは、第1パラメータが定数で第2パ
ラメータがレジスタの演算命令を含む場合には、命令変
換部と命令逆変換部は演算命令の第1パラメータと第2
パラメータの順序を変更することになる。尚、請求項5
で、演算命令は、データの移動命令、比較、加減算や論
理演算等の演算命令であることを明確にしている。Next, as described in claim 3, the format of the sequence instruction for distinguishing the normal processing and the high-speed processing of the sequence program execution unit is preliminarily determined by using the type of the operation instruction and the type and order of the arranged parameters. When configured as defined, the functions required by the instruction conversion unit and the instruction inverse conversion unit are limited to the specific conversion of the order of parameters. Here, as in claim 4, the format of the sequence instruction for distinguishing the normal processing and the high-speed processing of the sequence program execution unit is such that even if the same operation instruction is used, the normal processing is performed when the first parameter is a constant, High-speed processing is performed when the first parameter is a register, and in the user program of the terminal, when the first parameter is a constant and the second parameter includes an operation instruction of a register, an instruction conversion unit and an instruction inverse conversion unit. Is the first parameter and second parameter of the arithmetic instruction
It will change the order of the parameters. Incidentally, claim 5
Then, it is clarified that the operation instruction is an operation instruction such as a data movement instruction, comparison, addition / subtraction, and logical operation.
【0013】[0013]
【発明の実施の形態】以下図面を用いて、本発明を説明
する。図1は本発明の一実施例を示す構成ブロック図で
ある。尚、図1において前記図3と同一作用をするもの
には同一符号を付して説明を省略する。図において、シ
ーケンス命令の内部に、シーケンス命令の形式を変更す
ることで高速処理向けの変換が行われたか否かを表示す
る高速処理用フラグ32を設け、シーケンスプログラム
メモリ20に格納される。シーケンス命令形式変更部1
2は、端末から命令変換部10に送られたユーザプログ
ラムのうち、当初のシーケンス命令では通常処理で、シ
ーケンス命令の形式を変更することで高速処理に該当す
るシーケンス命令の有無を判断し、該当するシーケンス
命令の高速処理向けの変換を行うと共に、高速処理用フ
ラグを立てる。形式変更命令判定部32は、シーケンス
プログラムメモリ20から命令逆変換部30に読み込ま
れたシーケンス命令のうち、高速処理用フラグの立てら
れたシーケンス命令に対して、命令変換部10によるの
形式を変更する前の形式により逆変換を行う。DETAILED DESCRIPTION OF THE INVENTION The present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. Incidentally, in FIG. 1, components having the same functions as those in FIG. In the figure, a high-speed processing flag 32 that indicates whether or not conversion for high-speed processing has been performed by changing the format of the sequence instruction is provided inside the sequence instruction and stored in the sequence program memory 20. Sequence command format change unit 1
In the user program sent from the terminal to the instruction conversion unit 10, 2 is a normal process for the initial sequence command, and the presence or absence of a sequence command corresponding to high-speed processing is determined by changing the format of the sequence command. The sequence instruction to be converted is converted for high-speed processing, and the high-speed processing flag is set. The format change instruction determination unit 32 changes the format of the instruction conversion unit 10 for a sequence instruction with a high-speed processing flag set among the sequence instructions read from the sequence program memory 20 into the instruction inverse conversion unit 30. Inverse conversion is performed according to the format before.
【0014】図2は、命令変換部10と命令逆変換部4
0の動作を説明する流れ図である。命令変換部10は、
まずシーケンス命令が演算命令であるか判断し(S1
0)、演算命令であれば図4に示す式2、又は図6に示
す式6の形式に該当するか判断する(S12)。該当す
れば、パラメータ1,2の入替えをする(S14)と共
に、高速処理用フラグ32をセットする(S16)。該
当しなければ、高速処理用フラグ32をクリアする(S
18)。そして、命令変換部10はシーケンス命令の変
換を行い(S20)、高速処理用フラグ32と共にシー
ケンスプログラムメモリ20に書き込む(S22)。こ
れにより、シーケンス命令の変換が終了する。FIG. 2 shows an instruction conversion unit 10 and an instruction inverse conversion unit 4.
9 is a flowchart illustrating the operation of 0. The command conversion unit 10
First, it is determined whether the sequence command is a calculation command (S1
0), if it is a calculation instruction, it is judged whether it corresponds to the format of Expression 2 shown in FIG. 4 or Expression 6 shown in FIG. 6 (S12). If so, the parameters 1 and 2 are exchanged (S14), and the high-speed processing flag 32 is set (S16). If it does not correspond, the high-speed processing flag 32 is cleared (S
18). Then, the instruction conversion unit 10 converts the sequence instruction (S20) and writes it in the sequence program memory 20 together with the high-speed processing flag 32 (S22). This completes the conversion of the sequence instruction.
【0015】命令逆変換部40は、まずシーケンス命令
が演算命令であるか判断し(S30)、演算命令であれ
ば高速処理用フラグ32がセットされているかクリアか
判断する(S32)。高速処理用フラグ32がセットさ
れていれば、パラメータ1,2の入替えをする(S3
4)。そして、何れの場合も命令逆変換部40は、シー
ケンス命令の逆変換を行い(S36)、端末に送る。こ
れにより、逆変換が終了する。The instruction reverse conversion unit 40 first determines whether the sequence instruction is an operation instruction (S30), and if the operation instruction is an operation instruction, determines whether the high-speed processing flag 32 is set or not (S32). If the high-speed processing flag 32 is set, the parameters 1 and 2 are exchanged (S3).
4). Then, in any case, the instruction reverse conversion unit 40 performs reverse conversion of the sequence command (S36) and sends it to the terminal. This completes the inverse conversion.
【0016】尚、上記実施例においては、演算命令が式
2に当てはまる場合に、演算命令の高速処理のため式2
の第1パラメータと第2パラメータとを交換して、式1
に置き換えてシーケンスプログラムメモリ20に格納す
る例を示したが、本発明はこれに限定されるものではな
く、要するにシーケンス命令の形式によって通常処理と
高速処理を使い分ける場合に、端末からユーザプログラ
ムをダウンロードする際に、シーケンス命令の形式を高
速処理用に変換するものであればよい。また、上記実施
例では、変換の有無を高速処理用フラグ32のセット/
クリアを用いて命令逆変換部40で識別できるものを示
したが、シーケンス命令とは別に変換の有無を表すテー
ブルを設けてもよく、要するに事後的に命令逆変換部4
0で変換の有無を識別できるものであればよい。In the above embodiment, when the arithmetic instruction is applied to the equation 2, the equation 2 is used for high speed processing of the arithmetic instruction.
By exchanging the first parameter and the second parameter of
However, the present invention is not limited to this, and in short, when the normal processing and the high-speed processing are selectively used depending on the format of the sequence instruction, the user program is downloaded from the terminal. At this time, the format of the sequence instruction may be converted for high speed processing. Further, in the above-described embodiment, whether the conversion is performed or not is set by setting the high speed processing flag 32.
Although the one which can be identified by the instruction inverse conversion unit 40 by using the clear is shown, a table indicating the presence or absence of the conversion may be provided separately from the sequence instruction.
Anything that can identify the presence or absence of conversion with 0 may be used.
【0017】[0017]
【発明の効果】以上説明したように、請求項1記載の本
発明によれば、命令変換部10は、端末から送られたユ
ーザプログラムのうち、当初のシーケンス命令では通常
処理で、シーケンス命令の形式を変更することで高速処
理に該当するシーケンス命令について、高速処理向けの
変換を行い、シーケンスプログラムメモリ20に格納す
るので、シーケンスプログラム実行部30での高速処理
が確保できる。また、命令逆変換部40は、命令変換部
で高速処理向けの変換が行われたシーケンス命令に対し
て、通常処理向けの変換が行われたものとして逆変換を
行い、端末に送信するので、プログラム開発用の端末内
のユーザプログラムとPLCからアップロードしたユー
ザプログラムとの同一性が確保される。As described above, according to the present invention as set forth in claim 1, the instruction conversion unit 10 is a normal process for the initial sequence instruction of the user program sent from the terminal, and the sequence instruction By changing the format, the sequence instruction corresponding to the high speed processing is converted for the high speed processing and stored in the sequence program memory 20, so that the high speed processing in the sequence program execution unit 30 can be secured. Further, since the instruction inverse conversion unit 40 performs inverse conversion on the sequence instruction converted by the instruction conversion unit for high-speed processing as conversion for normal processing, and transmits it to the terminal, The identity between the user program in the terminal for program development and the user program uploaded from the PLC is secured.
【0018】請求項2記載の本発明によれば、シーケン
ス命令の内部に、シーケンス命令の形式を変更すること
で高速処理向けの変換が行われたか否かを表示する高速
処理用フラグ32を設け、命令変換部10は、高速処理
向けの変換を行う際に当該高速処理用フラグを立てる。
すると、命令逆変換部40は、高速処理用フラグが立て
られているか否かによって、命令変換部10で高速処理
向けの変換が行われたシーケンス命令か否かが容易に判
別できる。According to the present invention as set forth in claim 2, a flag for high speed processing 32 is provided inside the sequence instruction to display whether or not conversion for high speed processing is performed by changing the format of the sequence instruction. The instruction conversion unit 10 sets the high-speed processing flag when performing conversion for high-speed processing.
Then, the instruction inverse conversion unit 40 can easily determine whether or not the sequence instruction has been converted by the instruction conversion unit 10 for high speed processing depending on whether or not the high speed processing flag is set.
【0019】ここで、請求項3のように、シーケンスプ
ログラム実行部30の通常処理と高速処理とを区分する
シーケンス命令の形式は、式2と式6のように演算命令
の種類と配置されたパラメータの種類と順序を用いて予
め定められるように構成すると、命令変換部と命令逆変
換部に必要とされる機能は、パラメータの順序に対する
変換という具体的なものに限られる。ここで、請求項4
のように、シーケンスプログラム実行部の通常処理と高
速処理とを区分するシーケンス命令の形式は、同一の演
算命令であっても第1パラメータが定数のとき通常処理
を行い、第1パラメータがレジスタのとき高速処理を行
うものであって、端末のユーザプログラムでは、第1パ
ラメータが定数で第2パラメータがレジスタの演算命令
を含む場合には、命令変換部と命令逆変換部は演算命令
の第1パラメータと第2パラメータの順序を変更するこ
とになる。尚、請求項5で、演算命令は、データの移動
命令、比較、加減算や論理演算等の演算命令であること
を明確にしている。Here, as in claim 3, the format of the sequence instruction for distinguishing the normal processing and the high-speed processing of the sequence program execution unit 30 is arranged according to the types of the operation instructions as shown in the equations (2) and (6). When configured so as to be predetermined using the type and order of the parameters, the functions required by the instruction conversion unit and the instruction inverse conversion unit are limited to the specific conversion of the parameter order. Here, claim 4
As described above, the format of the sequence instruction for distinguishing the normal processing and the high-speed processing of the sequence program execution unit is such that even if the same operation instruction is used, the normal processing is performed when the first parameter is a constant In the user program of the terminal, when the first parameter includes a constant and the second parameter includes a calculation instruction of a register, the instruction conversion unit and the instruction inverse conversion unit include the first calculation instruction. The order of the parameter and the second parameter will be changed. In addition, in claim 5, it is clarified that the arithmetic instruction is an arithmetic instruction such as a data movement instruction, comparison, addition / subtraction, or logical operation.
【図1】本発明の一実施例を示す構成ブロック図であ
る。FIG. 1 is a configuration block diagram showing an embodiment of the present invention.
【図2】命令変換部10と命令逆変換部40の動作を説
明する流れ図である。FIG. 2 is a flowchart illustrating the operations of the instruction conversion unit 10 and the instruction inverse conversion unit 40.
【図3】従来のPLCのプログラム開発装置の構成ブロ
ック図である。FIG. 3 is a configuration block diagram of a conventional PLC program development apparatus.
【図4】演算命令の態様を説明する図である。FIG. 4 is a diagram illustrating a form of an arithmetic instruction.
【図5】比較演算命令の態様を説明する図である。FIG. 5 is a diagram illustrating a form of a comparison operation instruction.
10 命令変換部 20 シーケンスプログラムメモリ 30 シーケンスプログラム実行部 40 命令逆変換部 10 Command converter 20 Sequence program memory 30 Sequence program execution unit 40 Instruction reverse converter
Claims (5)
するプログラム開発用の端末と、 この端末から送られたユーザプログラムをシーケンス命
令の記述用言語に変換する命令変換部(10)と、この
命令変換部で変換された言語によりシーケンス命令を記
憶するシーケンスプログラムメモリ(20)と、このシ
ーケンスプログラムメモリに格納されたシーケンス命令
を実行するシーケンスプログラム実行部(30)と、こ
のシーケンスプログラムメモリに格納されたシーケンス
命令を、前記端末の言語に逆変換して当該端末に送る命
令逆変換部(40)とを有し、前記シーケンスプログラ
ム実行部は、シーケンス命令の形式により通常処理と高
速処理とを区分するプログラマブル・コントローラとを
有するシーケンス制御装置において、 前記命令変換部は、前記端末から送られたユーザプログ
ラムのうち、当初のシーケンス命令では通常処理で、シ
ーケンス命令の形式を変更することで高速処理に該当す
るシーケンス命令について、高速処理向けの変換を行
い、 前記命令逆変換部は、前記命令変換部で高速処理向けの
変換が行われたシーケンス命令に対して、通常処理向け
の変換が行われたものとして逆変換を行うことを特徴と
するシーケンス制御装置。1. A terminal for program development for creating and editing a user program, an instruction conversion unit (10) for converting the user program sent from this terminal into a description language for sequence instructions, and this instruction. A sequence program memory (20) for storing a sequence command in the language converted by the conversion unit, a sequence program execution unit (30) for executing the sequence command stored in the sequence program memory, and a sequence program memory stored in the sequence program memory. A sequence reverse conversion unit (40) that reversely converts the sequence command into the language of the terminal and sends the sequence command to the terminal, and the sequence program execution unit classifies normal processing and high-speed processing according to the format of the sequence command. In a sequence controller having a programmable controller for The instruction conversion unit performs conversion for high-speed processing of a sequence instruction corresponding to high-speed processing by changing the format of the sequence instruction in the normal processing of the initial sequence instruction of the user program sent from the terminal. The sequence is characterized in that the instruction inverse conversion unit performs inverse conversion on the sequence instruction that has been converted for high-speed processing by the instruction conversion unit, assuming that conversion for normal processing has been performed. Control device.
命令の形式を変更することで高速処理向けの変換が行わ
れたか否かを表示する高速処理用フラグを設け、 前記命令変換部は、前記高速処理向けの変換を行う際に
当該高速処理用フラグを立てると共に、 前記命令逆変換部は、当該高速処理用フラグの立てられ
たシーケンス命令に対して、前記命令変換部によるシー
ケンス命令の形式を変更する前の形式により逆変換を行
うことを特徴とする請求項1記載のシーケンス制御装
置。2. A high-speed processing flag for displaying whether or not conversion for high-speed processing is performed by changing the format of the sequence instruction is provided inside the sequence instruction, and the instruction conversion unit is configured to perform the high-speed processing. When the conversion for processing is performed, the high-speed processing flag is set, and the instruction reverse conversion unit changes the format of the sequence instruction by the instruction conversion unit with respect to the sequence command for which the high-speed processing flag is set. The sequence control device according to claim 1, wherein the inverse conversion is performed in a format before the conversion.
理と高速処理とを区分するシーケンス命令の形式は、演
算命令の種類と配置されたパラメータの種類と順序を用
いて予め定められると共に、 前記命令変換部は、演算命令とパラメータの種類は同一
で、パラメータの順序を変更することで高速処理向けの
変換を行い、 前記命令逆変換部は、高速処理向けの変換がなされたシ
ーケンス命令に対して、パラメータの順序を変更前の順
序で逆変換を行うことを特徴とする請求項1又は2記載
のシーケンス制御装置。3. The format of a sequence instruction for distinguishing the normal processing and the high-speed processing of the sequence program execution unit is predetermined by using the type of operation instruction and the type and order of arranged parameters, and the instruction conversion. The unit has the same type of operation instruction and parameter, performs conversion for high-speed processing by changing the order of parameters, the instruction inverse conversion unit, for the sequence instruction that has been converted for high-speed processing, 3. The sequence control device according to claim 1, wherein the sequence conversion device performs reverse conversion in the order before changing the order of the parameters.
理と高速処理とを区分するシーケンス命令の形式は、同
一の演算命令であっても第1パラメータが定数のとき通
常処理を行い、第1パラメータがレジスタのとき高速処
理を行うものであって、 前記端末のユーザプログラムでは、第1パラメータが定
数で第2パラメータがレジスタの演算命令を含む場合
に、 前記命令変換部は、前記演算命令の第1パラメータと第
2パラメータの順序を変更することで高速処理向けの変
換を行い、 前記命令逆変換部は、前記演算命令の第1パラメータと
第2パラメータの順序の変更前の順序で逆変換を行うこ
とを特徴とする請求項3記載のシーケンス制御装置。4. The format of a sequence instruction for distinguishing normal processing and high-speed processing of the sequence program execution unit is such that even if the same operation instruction is used, normal processing is performed when the first parameter is a constant, and the first parameter is In the user program of the terminal, when the first parameter is a constant and the second parameter includes an arithmetic operation instruction of a register, the instruction conversion unit is configured to perform high-speed processing in the case of a register. Conversion for high-speed processing is performed by changing the order of the parameter and the second parameter, and the instruction reverse conversion unit performs reverse conversion in the order before the change of the order of the first parameter and the second parameter of the operation instruction. The sequence control device according to claim 3, wherein:
較、加減算や論理演算等の演算命令であることを特徴と
する請求項4記載のシーケンス制御装置。5. The sequence control device according to claim 4, wherein the operation instruction is an operation instruction such as a data movement instruction, comparison, addition / subtraction, or logical operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP25323797A JP3407614B2 (en) | 1997-09-18 | 1997-09-18 | Sequence controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP25323797A JP3407614B2 (en) | 1997-09-18 | 1997-09-18 | Sequence controller |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH1195815A JPH1195815A (en) | 1999-04-09 |
JP3407614B2 true JP3407614B2 (en) | 2003-05-19 |
Family
ID=17248476
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP25323797A Expired - Fee Related JP3407614B2 (en) | 1997-09-18 | 1997-09-18 | Sequence controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3407614B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4876537B2 (en) * | 2005-11-07 | 2012-02-15 | 富士電機株式会社 | Programmable controller programming device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04338802A (en) * | 1991-05-16 | 1992-11-26 | Fuji Electric Co Ltd | High speed instruction processing system |
DE69324388T2 (en) * | 1992-01-23 | 1999-09-09 | Mitsubishi Electric Corp | Programmable logic controller |
JP3403211B2 (en) * | 1992-02-18 | 2003-05-06 | 株式会社キーエンス | Program development device for programmable control device and recording medium for supporting program development |
-
1997
- 1997-09-18 JP JP25323797A patent/JP3407614B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH1195815A (en) | 1999-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2765423B2 (en) | Programmable controller and control method thereof | |
US20080103625A1 (en) | Numerical controller with machining resume function | |
US20160062336A1 (en) | Numerical controller for facilitating adjustment of machining motion | |
US20160364367A1 (en) | Information processing device for editing electronic data by touch operations | |
JP5456208B1 (en) | Numerical controller | |
JP3407614B2 (en) | Sequence controller | |
JPH03290707A (en) | Numerical controller | |
JP2004013239A (en) | Motion data command system for motion program, and control signal definition system | |
JP7000302B2 (en) | Information processing equipment | |
JP3356662B2 (en) | Process data collection method and programmable display device | |
JP3764436B2 (en) | Machine control device | |
JP2007179229A (en) | Programming device | |
JP2021039568A (en) | Information processing system, programmable display, and information processing device | |
JP3296477B2 (en) | Ladder program debugging device | |
JP3528478B2 (en) | Numerical control unit | |
KR100412740B1 (en) | Open-type numerical control apparatus | |
JP2747380B2 (en) | Robot language editing device | |
JPS6118007A (en) | Numerical controller containing optional block skip function | |
JP3207333B2 (en) | Programmable controller | |
JP2009099068A (en) | Motion controller and motion program effective axis determination method | |
JP2006018759A (en) | Control device and method | |
JP3823938B2 (en) | Program creation device | |
JPH0423102A (en) | Programming device for programmable controller | |
JPH09305344A (en) | Method for controlling screen display | |
JP2002215212A (en) | Interpolation performing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090314 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090314 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100314 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100314 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110314 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110314 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120314 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120314 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130314 Year of fee payment: 10 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140314 Year of fee payment: 11 |
|
LAPS | Cancellation because of no payment of annual fees |