JPH1195815A - Sequence controller - Google Patents

Sequence controller

Info

Publication number
JPH1195815A
JPH1195815A JP9253237A JP25323797A JPH1195815A JP H1195815 A JPH1195815 A JP H1195815A JP 9253237 A JP9253237 A JP 9253237A JP 25323797 A JP25323797 A JP 25323797A JP H1195815 A JPH1195815 A JP H1195815A
Authority
JP
Japan
Prior art keywords
instruction
sequence
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.)
Granted
Application number
JP9253237A
Other languages
Japanese (ja)
Other versions
JP3407614B2 (en
Inventor
Yuuta Kakudou
勇太 角銅
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP25323797A priority Critical patent/JP3407614B2/en
Publication of JPH1195815A publication Critical patent/JPH1195815A/en
Application granted granted Critical
Publication of JP3407614B2 publication Critical patent/JP3407614B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a sequence controller which allows the high-speed processing of an arithmetic instruction while securing the identity of a user program inside a terminal for program development and the user program up-loaded from a PLC. SOLUTION: This controller is provided with an instruction conversion part 10 for converting the user program sent from the terminal for the program development to a description language of a sequence instruction and an instruction inverse conversion part 40 for inversely converting the sequence instruction to the language of the terminal and sending it to the terminal and a sequence program execution part 30 for executing the sequence instruction is provided with a programmable controller for dividing a normal processing and the high-speed processing by the form of the sequence instruction. In this case, the instruction conversion part 10 performs conversion for the high-speed processing for the sequence instruction pertinent to the high-speed processing by changing the form of the sequence instruction among the ones to be the normal processing by the initial sequence instruction and the instruction inverse conversion part 40 defines that the conversion for the normal processing is performed and performs inverse conversion to the sequence conversion for which the conversion for the high-speed processing is performed in the instruction conversion part 10.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【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 a sequence operation command at a 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 showing the configuration of a conventional PLC program development device. In the figure, a terminal for program development creates and edits a user program, and downloads and uploads it to a programmable controller (hereinafter referred to as “PLC”). The PLC controls a machine tool or the like according to a user program, and uses a specific language such as a ladder program or a general-purpose language such as BASIC. The instruction converter 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 commands. 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 includes the sequence program memory 20
Is converted into a terminal language for program development.

【0003】このように構成された装置において、ユー
ザプログラムをシーケンスプログラムメモリ20から読
みだして、シーケンス命令の解析を行うと共に、パラメ
ータの読みだし・書込みがシーケンシャルに行われる。
そして、命令実行を高速に行うために、使用頻度の高い
命令、例えばデータの移動命令(MOV)、比較(CM
P)、演算命令(CAL命令)では、シーケンス命令を
読みだして解析するのと同時に第1パラメータ(par1)を
先読みし、対象シーケンス命令の実行時には第1パラメ
ータを予めシーケンスプログラム実行部30に送り込む
ことによって、第1パラメータを読みだす時間を短縮し
ている。
In the device configured as described above, a user program is read from the sequence program memory 20 to analyze a sequence command, and read and write parameters are sequentially performed.
Then, in order to execute instructions at high speed, frequently used instructions such as a data movement instruction (MOV) and a comparison (CM
P), the operation instruction (CAL instruction) reads out and analyzes the sequence instruction, reads the first parameter (par1) at the same time, and sends the first parameter to the sequence program execution unit 30 in advance when executing the target sequence instruction. Thus, the time for reading out the first parameter is reduced.

【0004】図4は、演算命令の態様を説明する図であ
る。演算命令には、演算子として+,−,&,|等の各
種のものがある。そして、演算子は第1パラメータ(par
1)と第2パラメータ(par2)を演算して、演算結果を第3
パラメータ(par3)に格納するものや、レジスタや定数に
演算を加えてレジスタに格納するものがある(式1〜式
3)。
FIG. 4 is a diagram for explaining the form of an operation instruction. The operation instructions include various operators such as +,-, &, and | 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 a register by adding an operation to a register or a constant (Equations 1 to 3).

【0005】図5は、比較演算命令の態様を説明する図
である。比較演算命令には、演算子として<,<=,
>,>=,<>、=等の各種のものがある。そして、演
算子は第1パラメータ(par1)と第2パラメータ(par2)を
比較演算するものや、レジスタや定数に比較演算をなす
ものがある(式4〜式7)。
FIG. 5 is a diagram for explaining a mode of a comparison operation instruction. In comparison operation instructions, operators <, <=,
>,> =, <>, =, Etc. The operators include those that perform a comparison operation on the first parameter (par1) and the second parameter (par2), and those 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 a system in which a sequence instruction is read out and analyzed and a first parameter is read ahead and executed at high speed, a sequence instruction for normal processing and a sequence instruction for high speed processing are separately prepared. Therefore, there is a problem that management of the types of sequence instructions becomes complicated. In addition, since the high-speed execution instruction code is finite, for example, the above-described Expression 2 can be substituted by exchanging the first parameter and the second parameter of Expression 1, and therefore, is excluded from high-speed processing targets. I have.
Then, the user needs to be aware of the order of the parameters when creating the program, and there is a problem that the operation of creating the user program becomes complicated. In addition, since the high-speed execution instruction codes are finite, they are excluded from the target of the high-speed processing in the same manner in Expression 6. That is, in Equation 6, the first
If the parameter and the second parameter are exchanged to form the formula (5), high-speed processing can be performed.
And Equation 6 are the same.

【0007】そこで、ユーザプログラム内で演算命令が
式2に当てはまる場合に、演算命令の高速処理のため式
2の第1パラメータと第2パラメータとを交換して、式
1に置き換えてシーケンスプログラムメモリ20に格納
することも考えられる。しかし、プログラム開発用の端
末内のユーザプログラムと、プログラマブル・コントロ
ーラのシーケンスプログラムメモリ20からアップロー
ドしたユーザプログラムとは、同一になることが要求さ
れている。そこで、式2の第1パラメータと第2パラメ
ータとを交換すると、命令逆変換部40で復元しようと
しても元の命令に復元することができなくなるという課
題があった。
Therefore, when an operation instruction is applied to the expression 2 in the user program, the first parameter and the second parameter of the expression 2 are exchanged for high-speed processing of the operation instruction, and the expression 1 is replaced with the expression 1, and the sequence program memory is replaced. It is also conceivable to store them in the storage area 20. However, it is required that the user program in the terminal for program development and the user program uploaded from the sequence program memory 20 of the programmable controller be the same. Therefore, when the first parameter and the second parameter of Expression 2 are exchanged, there is a problem that even if an attempt is made to restore the instruction by the instruction reverse conversion unit 40, the original instruction cannot be restored.

【0008】本発明はこのような課題を解決したもの
で、プログラム開発用の端末内のユーザプログラムとP
LCからアップロードしたユーザプログラムとの同一性
を確保しながら、演算命令の高速処理のためパラメータ
の順序をPLCに格納する際に交換できるシーケンス制
御装置を提供することを目的とする。
[0008] The present invention has solved the above-mentioned problem, and a user program in a terminal for program development and P
It is an object of the present invention to provide a sequence control device capable of exchanging the order of parameters when storing in a PLC for high-speed processing of an operation instruction while ensuring the sameness as a user program uploaded from an LC.

【0009】[0009]

【課題を解決するための手段】上記の目的を達成するた
めに、発明の請求項1記載のシーケンス制御装置は、ユ
ーザプログラムを作成したり編集したりするプログラム
開発用の端末と、この端末から送られたユーザプログラ
ムをシーケンス命令の記述用言語に変換する命令変換部
10と、この命令変換部で変換された言語によりシーケ
ンス命令を記憶するシーケンスプログラムメモリ20
と、このシーケンスプログラムメモリに格納されたシー
ケンス命令を実行するシーケンスプログラム実行部30
と、このシーケンスプログラムメモリに格納されたシー
ケンス命令を、前記端末の言語に逆変換して当該端末に
送る命令逆変換部40とを有し、前記シーケンスプログ
ラム実行部は、シーケンス命令の形式により通常処理と
高速処理とを区分するプログラマブル・コントローラと
を有するシーケンス制御装置において、前記命令変換部
は、前記端末から送られたユーザプログラムのうち、当
初のシーケンス命令では通常処理で、シーケンス命令の
形式を変更することで高速処理に該当するシーケンス命
令について、高速処理向けの変換を行い、前記命令逆変
換部は、前記命令変換部で高速処理向けの変換が行われ
たシーケンス命令に対して、通常処理向けの変換が行わ
れたものとして逆変換を行うことを特徴としている。
According to one aspect of the present invention, there is provided a sequence control apparatus comprising: a program development terminal for creating or editing a user program; An instruction conversion unit 10 for converting the sent user program into a language for describing sequence instructions, and a sequence program memory 20 for storing sequence instructions in the language converted by the instruction conversion unit
And a sequence program execution unit 30 for executing a sequence instruction stored in the sequence program memory.
And a command reverse conversion unit 40 that reversely converts the sequence command stored in the sequence program memory into the language of the terminal and sends the command to the terminal. In a sequence control device having a programmable controller that divides processing and high-speed processing, the instruction conversion unit performs a normal processing in an initial sequence instruction of a user program sent from the terminal, and converts the format of the sequence instruction into a normal program. By changing the sequence instruction corresponding to high-speed processing, conversion for high-speed processing is performed, and the instruction reverse conversion unit performs normal processing on the sequence instruction that has been converted for high-speed processing in the instruction conversion unit. It is characterized in that inverse conversion is performed assuming that conversion has been performed.

【0010】本発明の請求項1によれば、プログラム開
発用の端末で、ユーザプログラムを作成したり編集した
りしているので、プログラマブル・コントローラ側では
マンマシン・インターフェイスの機能を持たなくて済
む。開発されたユーザプログラムは、シーケンスプログ
ラムメモリ20に格納される。命令変換部と命令逆変換
部は、プログラム開発用の端末とプログラマブル・コン
トローラでの言語体系の相違を吸収して、ユーザプログ
ラムの授受を容易にしている。シーケンスプログラム実
行部は、シーケンス命令の形式により通常処理と高速処
理とを区分している。命令変換部は、端末から送られた
ユーザプログラムのうち、当初のシーケンス命令では通
常処理で、シーケンス命令の形式を変更することで高速
処理に該当するシーケンス命令について、高速処理向け
の変換を行い、シーケンスプログラムメモリ20に格納
する。命令逆変換部は、命令変換部で高速処理向けの変
換が行われたシーケンス命令に対して、通常処理向けの
変換が行われたものとして逆変換を行い、端末に送信す
る。これにより、プログラム開発用の端末内のユーザプ
ログラムとPLCからアップロードしたユーザプログラ
ムとの同一性が確保される。
According to the first aspect of the present invention, since the user program is created or edited on the program development terminal, the programmable controller does not need to have the function of the man-machine interface. . The developed user program is stored in the sequence program memory 20. The instruction conversion unit and the instruction reverse conversion unit absorb the difference in the language system between the program development terminal and the programmable controller, and facilitate the exchange of user programs. The sequence program execution unit divides normal processing and high-speed processing according to the format of a sequence instruction. The instruction conversion unit performs a conversion for high-speed processing for a sequence instruction corresponding to high-speed processing by changing the format of the sequence instruction in the normal processing in the initial sequence instruction among the user programs sent from the terminal, It is stored in the sequence program memory 20. The instruction reverse conversion unit performs reverse 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, and transmits the sequence instruction to the terminal. Thereby, the identity between the user program in the terminal for program development and the user program uploaded from the PLC is ensured.

【0011】ここで、請求項2のように、シーケンス命
令の内部に、シーケンス命令の形式を変更することで高
速処理向けの変換が行われたか否かを表示する高速処理
用フラグを設け、命令変換部は、高速処理向けの変換を
行う際に当該高速処理用フラグを立てると共に、命令逆
変換部は、高速処理用フラグの立てられたシーケンス命
令に対して、命令変換部によるシーケンス命令の形式を
変更する前の形式により逆変換を行うように構成する。
すると、命令逆変換部は、命令変換部で高速処理向けの
変換が行われたシーケンス命令か否かが容易に判別でき
る。
Here, a high-speed processing flag for displaying 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. The conversion unit sets the flag for high-speed processing when performing conversion for high-speed processing, and the instruction reverse conversion unit converts the sequence instruction with the flag for high-speed processing into the format of the sequence instruction by the instruction conversion unit. Is configured to perform the inverse conversion in the format before the change.
Then, the instruction reverse conversion unit can easily determine whether or not the sequence instruction has been converted for high-speed processing by the instruction conversion unit.

【0012】次に、請求項3のように、シーケンスプロ
グラム実行部の通常処理と高速処理とを区分するシーケ
ンス命令の形式は、演算命令の種類と配置されたパラメ
ータの種類と順序を用いて予め定められるように構成す
ると、命令変換部と命令逆変換部に必要とされる機能
は、パラメータの順序に対する変換という具体的なもの
に限られる。ここで、請求項4のように、シーケンスプ
ログラム実行部の通常処理と高速処理とを区分するシー
ケンス命令の形式は、同一の演算命令であっても第1パ
ラメータが定数のとき通常処理を行い、第1パラメータ
がレジスタのとき高速処理を行うものであって、端末の
ユーザプログラムでは、第1パラメータが定数で第2パ
ラメータがレジスタの演算命令を含む場合には、命令変
換部と命令逆変換部は演算命令の第1パラメータと第2
パラメータの順序を変更することになる。尚、請求項5
で、演算命令は、データの移動命令、比較、加減算や論
理演算等の演算命令であることを明確にしている。
Next, as in claim 3, the format of the sequence instruction for distinguishing between the normal processing and the high-speed processing of the sequence program execution unit is determined in advance by using the type of the operation instruction and the type and order of the arranged parameters. With such a configuration, the functions required for the instruction conversion unit and the instruction reverse conversion unit are limited to a specific function of converting the order of parameters. Here, as in claim 4, the format of the sequence instruction for dividing 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. When the first parameter is a register, high-speed processing is performed. In the user program of the terminal, when the first parameter is a constant and the second parameter includes an operation instruction of the register, the instruction conversion unit and the instruction reverse conversion unit Is the first parameter of the operation instruction and the second
This will change the order of the parameters. Claim 5
Thus, it is clarified that the operation instruction is a data movement instruction, an operation instruction such as comparison, addition / subtraction, or a logical operation.

【0013】[0013]

【発明の実施の形態】以下図面を用いて、本発明を説明
する。図1は本発明の一実施例を示す構成ブロック図で
ある。尚、図1において前記図3と同一作用をするもの
には同一符号を付して説明を省略する。図において、シ
ーケンス命令の内部に、シーケンス命令の形式を変更す
ることで高速処理向けの変換が行われたか否かを表示す
る高速処理用フラグ32を設け、シーケンスプログラム
メモリ20に格納される。シーケンス命令形式変更部1
2は、端末から命令変換部10に送られたユーザプログ
ラムのうち、当初のシーケンス命令では通常処理で、シ
ーケンス命令の形式を変更することで高速処理に該当す
るシーケンス命令の有無を判断し、該当するシーケンス
命令の高速処理向けの変換を行うと共に、高速処理用フ
ラグを立てる。形式変更命令判定部32は、シーケンス
プログラムメモリ20から命令逆変換部30に読み込ま
れたシーケンス命令のうち、高速処理用フラグの立てら
れたシーケンス命令に対して、命令変換部10によるの
形式を変更する前の形式により逆変換を行う。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings. FIG. 1 is a configuration block diagram showing one embodiment of the present invention. In FIG. 1, components having the same functions as those in FIG. In the figure, a high-speed processing flag 32 indicating 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 instruction format change unit 1
In the user program sent from the terminal to the command conversion unit 10, the initial sequence command is a normal process. By changing the format of the sequence command, it is determined whether there is a sequence command corresponding to high-speed processing. To perform high-speed processing of the sequence instruction to be executed, and set a high-speed processing flag. The format change instruction determination unit 32 changes the format of the instruction conversion unit 10 for the sequence instruction with the high-speed processing flag set among the sequence instructions read from the sequence program memory 20 to the instruction reverse conversion unit 30. Performs inverse conversion using the format before the conversion.

【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 reverse conversion unit 4.
9 is a flowchart for explaining the operation of the "0." The instruction conversion unit 10
First, it is determined whether the sequence instruction is an operation instruction (S1
0), if it is an operation instruction, it is determined whether or not it corresponds to the form of Equation 2 shown in FIG. 4 or Equation 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 not, 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). Thereby, the conversion of the sequence instruction is completed.

【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 it is an operation instruction, determines whether the high-speed processing flag 32 is set or cleared (S32). If the high-speed processing flag 32 is set, the parameters 1 and 2 are exchanged (S3).
4). In either case, the command reverse conversion unit 40 performs reverse conversion of the sequence command (S36) and sends the sequence command to the terminal. Thus, the inverse conversion ends.

【0016】尚、上記実施例においては、演算命令が式
2に当てはまる場合に、演算命令の高速処理のため式2
の第1パラメータと第2パラメータとを交換して、式1
に置き換えてシーケンスプログラムメモリ20に格納す
る例を示したが、本発明はこれに限定されるものではな
く、要するにシーケンス命令の形式によって通常処理と
高速処理を使い分ける場合に、端末からユーザプログラ
ムをダウンロードする際に、シーケンス命令の形式を高
速処理用に変換するものであればよい。また、上記実施
例では、変換の有無を高速処理用フラグ32のセット/
クリアを用いて命令逆変換部40で識別できるものを示
したが、シーケンス命令とは別に変換の有無を表すテー
ブルを設けてもよく、要するに事後的に命令逆変換部4
0で変換の有無を識別できるものであればよい。
In the above embodiment, when the operation instruction satisfies Expression 2, the expression 2 is used for high-speed processing of the operation instruction.
By exchanging the first parameter and the second parameter of
Although the example in which the processing is stored in the sequence program memory 20 instead of the above is shown, the present invention is not limited to this. At this time, any format that converts the format of the sequence instruction for high-speed processing may be used. Further, in the above embodiment, the presence / absence of conversion is determined by setting / setting the high-speed processing flag 32.
Although the one that can be identified by the instruction reverse conversion unit 40 using clear is shown, a table indicating whether or not there is 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 first aspect of the present invention, the command conversion unit 10 performs the normal processing for the initial sequence command of the user program sent from the terminal, By changing the format, a sequence instruction corresponding to high-speed processing is converted for high-speed processing and stored in the sequence program memory 20, so that high-speed processing in the sequence program execution unit 30 can be ensured. In addition, the instruction reverse conversion unit 40 performs reverse conversion on the sequence instruction that has been converted for high-speed processing by the instruction conversion unit as if conversion for normal processing has been performed, and transmits the sequence instruction to the terminal. The identity between the user program in the terminal for program development and the user program uploaded from the PLC is ensured.

【0018】請求項2記載の本発明によれば、シーケン
ス命令の内部に、シーケンス命令の形式を変更すること
で高速処理向けの変換が行われたか否かを表示する高速
処理用フラグ32を設け、命令変換部10は、高速処理
向けの変換を行う際に当該高速処理用フラグを立てる。
すると、命令逆変換部40は、高速処理用フラグが立て
られているか否かによって、命令変換部10で高速処理
向けの変換が行われたシーケンス命令か否かが容易に判
別できる。
According to the second aspect of the present invention, the high-speed processing flag 32 for displaying 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. The instruction conversion unit 10 sets the high-speed processing flag when performing conversion for high-speed processing.
Then, the instruction reverse conversion unit 40 can easily determine whether or not the instruction is a sequence instruction that has been converted for high-speed processing by the instruction conversion unit 10 based 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 between the normal processing and the high-speed processing of the sequence program execution unit 30 is arranged according to the type of the operation instruction as shown in equations 2 and 6. When configured so as to be determined in advance using the type and order of the parameters, the functions required for the instruction conversion unit and the instruction reverse conversion unit are limited to the specific conversion of the order of the parameters. Here, claim 4
As described above, the format of the sequence instruction for distinguishing between 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, and the first parameter is stored in the register. When high-speed processing is performed, in the user program of the terminal, if the first parameter is a constant and the second parameter includes an operation instruction of a register, the instruction conversion unit and the instruction inverse conversion unit perform the first operation instruction operation. The order of the parameter and the second parameter will be changed. In claim 5, it is clarified that the operation instruction is a data movement instruction, an operation instruction such as comparison, addition / subtraction, or a logical operation.

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

【図1】本発明の一実施例を示す構成ブロック図であ
る。
FIG. 1 is a configuration block diagram showing one embodiment of the present invention.

【図2】命令変換部10と命令逆変換部40の動作を説
明する流れ図である。
FIG. 2 is a flowchart illustrating operations of an instruction conversion unit 10 and an instruction inverse conversion unit 40;

【図3】従来のPLCのプログラム開発装置の構成ブロ
ック図である。
FIG. 3 is a configuration block diagram of a conventional PLC program development device.

【図4】演算命令の態様を説明する図である。FIG. 4 is a diagram illustrating a form of an operation instruction.

【図5】比較演算命令の態様を説明する図である。FIG. 5 is a diagram illustrating an aspect of a comparison operation instruction.

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

10 命令変換部 20 シーケンスプログラムメモリ 30 シーケンスプログラム実行部 40 命令逆変換部 DESCRIPTION OF SYMBOLS 10 Instruction conversion part 20 Sequence program memory 30 Sequence program execution part 40 Instruction reverse conversion part

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】ユーザプログラムを作成したり編集したり
するプログラム開発用の端末と、 この端末から送られたユーザプログラムをシーケンス命
令の記述用言語に変換する命令変換部(10)と、この
命令変換部で変換された言語によりシーケンス命令を記
憶するシーケンスプログラムメモリ(20)と、このシ
ーケンスプログラムメモリに格納されたシーケンス命令
を実行するシーケンスプログラム実行部(30)と、こ
のシーケンスプログラムメモリに格納されたシーケンス
命令を、前記端末の言語に逆変換して当該端末に送る命
令逆変換部(40)とを有し、前記シーケンスプログラ
ム実行部は、シーケンス命令の形式により通常処理と高
速処理とを区分するプログラマブル・コントローラとを
有するシーケンス制御装置において、 前記命令変換部は、前記端末から送られたユーザプログ
ラムのうち、当初のシーケンス命令では通常処理で、シ
ーケンス命令の形式を変更することで高速処理に該当す
るシーケンス命令について、高速処理向けの変換を行
い、 前記命令逆変換部は、前記命令変換部で高速処理向けの
変換が行われたシーケンス命令に対して、通常処理向け
の変換が行われたものとして逆変換を行うことを特徴と
するシーケンス制御装置。
A terminal for developing a program for creating or editing a user program, an instruction conversion unit (10) for converting a user program sent from the terminal into a language for describing a sequence instruction, A sequence program memory (20) for storing sequence instructions in a language converted by the conversion unit, a sequence program execution unit (30) for executing sequence instructions stored in the sequence program memory, and a sequence program memory stored in the sequence program memory A command reverse conversion unit (40) for converting the sequence command into the language of the terminal and sending the command to the terminal, wherein the sequence program execution unit classifies normal processing and high-speed processing according to the format of the sequence command. A sequence controller having a programmable controller that performs The command conversion unit converts the format for the high-speed processing by changing the format of the sequence command in the normal processing in the initial sequence command of the user program sent from the terminal. The instruction reverse conversion unit performs a reverse 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.
【請求項2】前記シーケンス命令の内部に、シーケンス
命令の形式を変更することで高速処理向けの変換が行わ
れたか否かを表示する高速処理用フラグを設け、 前記命令変換部は、前記高速処理向けの変換を行う際に
当該高速処理用フラグを立てると共に、 前記命令逆変換部は、当該高速処理用フラグの立てられ
たシーケンス命令に対して、前記命令変換部によるシー
ケンス命令の形式を変更する前の形式により逆変換を行
うことを特徴とする請求項1記載のシーケンス制御装
置。
2. A high-speed processing flag for displaying 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. The high-speed processing flag is set when performing conversion for processing, and the instruction reverse conversion unit changes the format of the sequence instruction by the instruction conversion unit for the sequence instruction with the high-speed processing flag set. 2. The sequence control device according to claim 1, wherein the inverse conversion is performed in a format before the conversion.
【請求項3】前記シーケンスプログラム実行部の通常処
理と高速処理とを区分するシーケンス命令の形式は、演
算命令の種類と配置されたパラメータの種類と順序を用
いて予め定められると共に、 前記命令変換部は、演算命令とパラメータの種類は同一
で、パラメータの順序を変更することで高速処理向けの
変換を行い、 前記命令逆変換部は、高速処理向けの変換がなされたシ
ーケンス命令に対して、パラメータの順序を変更前の順
序で逆変換を行うことを特徴とする請求項1又は2記載
のシーケンス制御装置。
3. The format of a sequence instruction for distinguishing between normal processing and high-speed processing of the sequence program execution unit is determined in advance by using the type of operation instruction and the type and order of arranged parameters, and The unit performs the conversion for high-speed processing by changing the order of the parameters, the type of the operation instruction and the parameter are the same, the instruction reverse conversion unit, for a sequence instruction that has been converted for high-speed processing, 3. The sequence control device according to claim 1, wherein the reverse conversion is performed in the order of the parameters before the change.
【請求項4】前記シーケンスプログラム実行部の通常処
理と高速処理とを区分するシーケンス命令の形式は、同
一の演算命令であっても第1パラメータが定数のとき通
常処理を行い、第1パラメータがレジスタのとき高速処
理を行うものであって、 前記端末のユーザプログラムでは、第1パラメータが定
数で第2パラメータがレジスタの演算命令を含む場合
に、 前記命令変換部は、前記演算命令の第1パラメータと第
2パラメータの順序を変更することで高速処理向けの変
換を行い、 前記命令逆変換部は、前記演算命令の第1パラメータと
第2パラメータの順序の変更前の順序で逆変換を行うこ
とを特徴とする請求項3記載のシーケンス制御装置。
4. The format of a sequence instruction for distinguishing between 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 case where the register is a register, high-speed processing is performed. In the user program of the terminal, when the first parameter is a constant and the second parameter includes an operation instruction of the register, the instruction conversion unit performs the first operation of the operation instruction. The 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 the reverse conversion in the order before the change in the order of the first parameter and the second parameter of the operation instruction. The sequence control device according to claim 3, wherein:
【請求項5】前記演算命令は、データの移動命令、比
較、加減算や論理演算等の演算命令であることを特徴と
する請求項4記載のシーケンス制御装置。
5. The sequence control device according to claim 4, wherein the operation instruction is a data movement instruction, an operation instruction such as comparison, addition / subtraction, or logical operation.
JP25323797A 1997-09-18 1997-09-18 Sequence controller Expired - Fee Related JP3407614B2 (en)

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 true JPH1195815A (en) 1999-04-09
JP3407614B2 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007128378A (en) * 2005-11-07 2007-05-24 Fuji Electric Fa Components & Systems Co Ltd Programming device for programmable controller

Citations (3)

* Cited by examiner, † Cited by third party
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
JPH05233018A (en) * 1992-02-18 1993-09-10 Keyence Corp Program developing device for programmable controller and recording medium for supporting program development
JPH05274011A (en) * 1992-01-23 1993-10-22 Mitsubishi Electric Corp Programmable controller and its control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
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
JPH05274011A (en) * 1992-01-23 1993-10-22 Mitsubishi Electric Corp Programmable controller and its control method
JPH05233018A (en) * 1992-02-18 1993-09-10 Keyence Corp Program developing device for programmable controller and recording medium for supporting program development

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007128378A (en) * 2005-11-07 2007-05-24 Fuji Electric Fa Components & Systems Co Ltd Programming device for programmable controller

Also Published As

Publication number Publication date
JP3407614B2 (en) 2003-05-19

Similar Documents

Publication Publication Date Title
JPH05274011A (en) Programmable controller and its control method
JP6786984B2 (en) Program processing equipment and programs
JP5456208B1 (en) Numerical controller
JPH1195815A (en) Sequence controller
WO2021048976A1 (en) Numerical control device
JP2007179229A (en) Programming device
JP3764436B2 (en) Machine control device
JP2747380B2 (en) Robot language editing device
JPH0580814A (en) Programming device for programmable controller
JP2006018759A (en) Control device and method
JP3528478B2 (en) Numerical control unit
JP3207333B2 (en) Programmable controller
JP3296477B2 (en) Ladder program debugging device
JP2009099068A (en) Motion controller and motion program effective axis determination method
JPH05113882A (en) Out-fitted man-machine interface realizing system by intermediate file
JP2953514B2 (en) Motion program execution block division method
JP3570870B2 (en) System construction apparatus, system construction method, and medium recording system construction program
JPH0636161B2 (en) Information processing equipment
JPH0525334B2 (en)
JPH04237330A (en) Device control system
JPH0628286A (en) Method and device for controlling communication
JPH03104201U (en)
JPH01166102A (en) Method for calculating offset locus of numerical controller
JPH09305344A (en) Method for controlling screen display
JPH0619515A (en) Subprocessor of programmable controller

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