JP3377956B2 - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JP3377956B2
JP3377956B2 JP36531898A JP36531898A JP3377956B2 JP 3377956 B2 JP3377956 B2 JP 3377956B2 JP 36531898 A JP36531898 A JP 36531898A JP 36531898 A JP36531898 A JP 36531898A JP 3377956 B2 JP3377956 B2 JP 3377956B2
Authority
JP
Japan
Prior art keywords
data
parameter
parameter data
text
cpu 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
Application number
JP36531898A
Other languages
Japanese (ja)
Other versions
JP2000187506A (en
Inventor
昇 坂本
尚志 野々山
美泰 長友
裕行 加賀美
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP36531898A priority Critical patent/JP3377956B2/en
Publication of JP2000187506A publication Critical patent/JP2000187506A/en
Application granted granted Critical
Publication of JP3377956B2 publication Critical patent/JP3377956B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、産業機器等で使
用されるプログラマブルコントローラに関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller used in industrial equipment and the like.

【0002】[0002]

【従来の技術】図11は、従来のプログラマブルコント
ローラ(CPUユニット)の一般的構成を示している。
CPUユニットは、マイクロプロセッサ(MPU)10
1と、シーケンス制御を行うためのシーケンスプログラ
ムを格納するプログラムメモリ102と、パラメータ設
定用のシーケンスプログラムを解析する機能をもつシス
テムプログラムを格納したシステムプログラムメモリ1
03と、システムプログラムが使用する内部ワークRA
M104と、パラメータデータの中に異常なデータが存
在した場合に点滅するエラー用LED105とを有して
いる。
2. Description of the Related Art FIG. 11 shows a general configuration of a conventional programmable controller (CPU unit).
The CPU unit is a microprocessor (MPU) 10
1, a program memory 102 for storing a sequence program for performing sequence control, and a system program memory 1 for storing a system program having a function of analyzing the sequence program for parameter setting.
03 and internal work RA used by system programs
It has an M104 and an error LED 105 that blinks when abnormal data exists in the parameter data.

【0003】内部ワークRAM104は、シーケンスプ
ログラムで使用するデータレジスタを格納するデータレ
ジスタエリア110と、ユーザが専用周辺装置で設定し
たパラメータデータを一時セットしておくためのパラメ
ータ退避エリア111と、システムプログラムがパラメ
ータ退避エリア111に格納されたパラメータデータを
解析した後にデータセットするパラメータ格納エリア1
12と、システムプログラム処理の中に一時退避用とし
て使用するシステムプログラム処理作業エリア113を
有している。データレジスタエリア110には電源オフ
になってもデータを保持するデータラッチエリア110
aがある。
The internal work RAM 104 has a data register area 110 for storing data registers used in a sequence program, a parameter save area 111 for temporarily setting parameter data set by a user in a dedicated peripheral device, and a system program. Parameter storage area 1 for setting data after analyzing the parameter data stored in the parameter save area 111
12 and a system program processing work area 113 used for temporary saving in the system program processing. The data register area 110 has a data latch area 110 that retains data even when the power is turned off.
There is a.

【0004】パラメータ退避エリア111にはCPUユ
ニット専用の周辺装置で作成されたCPUユニットのパ
ラメータを書き込まれたパラメータデータファイル11
1aが格納される。パラメータデータファイル111a
は、パラメータデータファイル・終了データ(EOF)
を含み、CPUユニット専用のフォーマットとなってい
る。
In the parameter save area 111, the parameter data file 11 in which the parameters of the CPU unit created by the peripheral device dedicated to the CPU unit are written
1a is stored. Parameter data file 111a
Is a parameter data file and end data (EOF)
Is included, and the format is exclusive to the CPU unit.

【0005】また、図12はパラメータ設定用シーケン
スプログラム121の従来例を示している。この例は、
CPUユニットの動作を制御するパラメータデータをデ
ータラッチエリア110aに設定しているデータレジス
タ"D0"などにセットすることを定義している。また、
パラメータデータをデータレジスタ"D0"などにセット
するために、データ設定用のシーケンスプログラム12
2をパラメータ設定用シーケンスプログラム121とと
もに記述する。
FIG. 12 shows a conventional example of the parameter setting sequence program 121 . This example
Defines be set to such data register "D0" has set parameter data for controlling the operation of the CPU unit to the data latch area 110a. Also,
Set parameter data in data register "D0" etc.
Sequence program 12 for data setting
2 as the parameter setting sequence program 121
Also described in.

【0006】つぎに、従来のCPUユニットに電源が供
給されてからシーケンスプログラムを実行するまでの動
作を図13に示されているフローチャートを用いて説明
する。CPUユニットに電源が供給されると、内部ワー
クRAM(内部メモリ)104をクリアすることにより
初期化する(ステップS101)。この処理によって、
内部ワークRAM104のデータレジスタエリア11
0、パラメータ退避エリア111、パラメータ格納エリ
ア112の各エリアに"0"が格納される。
Next, the operation from the power supply to the conventional CPU unit to the execution of the sequence program will be described with reference to the flow chart shown in FIG. When power is supplied to the CPU unit, the internal work RAM (internal memory) 104 is cleared to be initialized (step S101). By this process,
Data register area 11 of internal work RAM 104
“0” is stored in each area of 0, the parameter save area 111, and the parameter storage area 112.

【0007】ただし、データレジスタエリア110のデ
ータラッチエリア110aには、"0"を格納する処理を
実行せず、元々格納されているデータを保持している。
パラメータ設定用シーケンスプログラムで設定するパラ
メータデータ(図12の例では"D0")は、"0"クリア
されないデータラッチエリア110aに設定しておく必
要がある。
However, the data latch area 110a of the data register area 110 does not execute the process of storing "0" but retains the data originally stored.
The parameter data (“D0” in the example of FIG. 12) set by the parameter setting sequence program must be set in the data latch area 110a that is not cleared to “0”.

【0008】つぎに、パラメータ設定用シーケンスプロ
グラムサーチ処理を実行する(ステップS102)。パ
ラメータ設定用シーケンスプログラムサーチ処理は、図
12に示されているようなパラメータ設定用シーケンス
プログラムが、プログラムメモリ102に書かれている
かをチェックする処理である。図14を参照してパラメ
ータ設定用シーケンスプログラムサーチ処理について説
明する。
Next, a parameter setting sequence program search process is executed (step S102). The parameter setting sequence program search process is a process of checking whether or not a parameter setting sequence program as shown in FIG. 12 is written in the program memory 102. The parameter setting sequence program search process will be described with reference to FIG.

【0009】まず、プログラムメモリ102より、パラ
メータ設定用シーケンスプログラムを含むシーケンスプ
ログラムの全てをシステムプログラム処理作業エリア1
13に読み出し、格納する(ステップS111)。つぎ
に、システムプログラム処理作業エリア113に格納さ
れた全シーケンスプログラムの中に、パラメータ設定用
シーケンスプログラムがあるかのチェックを行う(ステ
ップS112)。
[0009] First of all, from the program memory 102, para
System program processing work area 1 for all sequence programs including the meter setting sequence program
The data is read and stored in 13 (step S111). Next, it is checked whether or not there is a parameter setting sequence program among all the sequence programs stored in the system program processing work area 113 (step S112).

【0010】このチェックで、シーケンスプログラムの
中にパラメータ設定用シーケンスプログラムがあったな
らば、つぎに、パラメータ設定用シーケンスプログラム
で指定されたラッチデバイス(データレジスタ)のパラ
メータデータ値をデータラッチエリア110aからパラ
メータ退避エリア111に転送し(ステップS11
3)、パラメータ設定用シーケンスプログラムサーチ処
理を終了する。
If there is a parameter setting sequence program in the sequence program in this check, then the parameter data value of the latch device (data register) designated by the parameter setting sequence program is set to the data latch area 110a. From the parameter save area 111 (step S11
3), the parameter setting sequence program search process ends.

【0011】これに対し、パラメータ設定用シーケンス
プログラムでない場合には、シーケンスプログラム・エ
ンドまで命令コードサーチ処理を行ったかどうかのチェ
ックをする(ステップS114)。ここで、まだ、シー
ケンスプログラム・エンドまで命令コードサーチ処理を
行っていなけば、ステップS112に戻り、パラメー
タ設定用シーケンスプログラムのサーチ処理を行う。
On the other hand, if it is not the parameter setting sequence program, it is checked whether or not the instruction code search processing has been performed up to the end of the sequence program (step S114). Here, still, if Re cry doing the instruction code search process until the sequence program end, the process returns to step S112, performs a search process of a sequence program for setting parameters.

【0012】シーケンスプログラム・エンドまでパラメ
ータ設定用シーケンスプログラムの命令コードサーチ処
理を実行したと判断したならば、パラメータ設定用シー
ケンスプログラムサーチ処理を終了する。パラメータ設
定用シーケンスプログラムサーチ処理が終了すると、つ
ぎにパラメータ内容解析処理を実行する(図13のステ
ップS103)。
If it is determined that the instruction code search process of the parameter setting sequence program has been executed up to the end of the sequence program, the parameter setting sequence program search process is terminated. When the parameter setting sequence program search process is completed, a parameter content analysis process is then executed (step S103 in FIG. 13).

【0013】パラメータ内容解析処理は、専用周辺装置
で設定されかつラッチデバイス(データレジスタ)から
読み出されたパラメータデータの内容をチェックし、C
PUユニットが認識可能なデータかどうかを判断する処
理である。図15を参照してパラメータ内容解析処理に
ついて説明する。まず、パラメータ退避エリア111
に、専用周辺装置で設定されたパラメータデータファイ
ルが存在するかどうかをチェックする(ステップS12
1)。パラメータ退避エリア111にパラメータデータ
ファイルが存在するならば、つぎに、パラメータデータ
ファイルの内容をチェックするためにパラメータ退避エ
リア111に格納されているパラメータデータファイル
の内容をリードし、システムプログラム処理作業エリア
113に格納する(ステップS122)。
The parameter content analysis processing is set by a dedicated peripheral device and is performed from a latch device (data register).
Check the contents of the read parameter data, and
This is a process of determining whether the PU unit is recognizable data. The parameter content analysis processing will be described with reference to FIG. First, the parameter save area 111
Then, it is checked whether or not the parameter data file set by the dedicated peripheral device exists (step S12).
1). If a parameter data file exists in the parameter save area 111, then the contents of the parameter data file stored in the parameter save area 111 are read to check the contents of the parameter data file, and the system program processing work area is read. The data is stored in 113 (step S122).

【0014】つぎに、システムプログラム処理作業エリ
ア113に格納されたパラメータデータが、CPUユニ
ットで扱える値かどうかのチェックを行う(ステップS
123)。このチェックで、システムプログラム処理作
業エリア113に格納されたパラメータデータがCPU
ユニットで扱えると判断したならば、そのパラメータデ
ータがパラメータデータファイル・終了データと等しい
かどうかのチェックを行う(ステップS124)。パラ
メータデータがパラメータデータファイル・終了データ
と異なっていれば、他のパラメータデータがまだあるの
で、ステップS123に戻り、システムプログラム処理
作業エリア113に格納されたパラメータのデータチェ
ック行う処理を再度実行する。
Next, it is checked whether the parameter data stored in the system program processing work area 113 is a value that can be handled by the CPU unit (step S).
123). By this check, the parameter data stored in the system program processing work area 113 is stored in the CPU.
If it is determined that the parameter data can be handled by the unit, it is checked whether the parameter data is equal to the parameter data file / end data (step S124). If the parameter data is different from the parameter data file / end data, there is still other parameter data, so the process returns to step S123, and the process of checking the data of the parameters stored in the system program processing work area 113 is executed again. .

【0015】これに対し、パラメータデータがパラメー
タデータファイル・終了データと等しければ、パラメー
タデータはその時点で終了のため、データチェックを終
了したパラメータデータをシステムプログラム処理作業
エリア113からパラメータ格納エリア112に転送し
(ステップS125)、パラメータデータ内容解析処理
を終了する。
On the other hand, if the parameter data is equal to the parameter data file / end data, the parameter data ends at that point, so the parameter data for which the data check is completed is transferred from the system program processing work area 113 to the parameter storage area 112. The data is transferred (step S125 ), and the parameter data content analysis process ends.

【0016】パラメータ退避エリア111に一つもパラ
メータデータファイルが存在しない場合にはエラー用L
ED105をオンし(ステップS126)、CPUユニ
ットの使用者に対してエラーが発生したことを知らせ
る。また、パラメータデータがCPUユニットで扱えな
いデータである場合も、エラー用LED105をオンし
(ステップS126)、CPUユニットの使用者に対し
てエラーが発生したことを知らせる。
If there is no parameter data file in the parameter save area 111, an error L
The ED 105 is turned on (step S126) to notify the user of the CPU unit that an error has occurred. Also, when the parameter data is data that cannot be handled by the CPU unit, the error LED 105 is turned on (step S126) to notify the user of the CPU unit that an error has occurred.

【0017】上述のようなパラメータ内容解析処理が終
了すると、パラメータ格納エリア112に格納されたパ
ラメータデータを参照してプログラムメモリ102に格
納されているシーケンスプログラムを実行する(図13
のステップS104)。
When the parameter content analysis process as described above is completed, the sequence program stored in the program memory 102 is executed with reference to the parameter data stored in the parameter storage area 112 (FIG. 13).
Step S104).

【0018】[0018]

【発明が解決しようとする課題】従来のCPUユニット
では、上述のように、パラメータデータを使用する場合
には、パラメータ設定用シーケンスプログラムを実行す
る前に、パラメータデータをデータレジスタエリア11
0のデータラッチエリア110aに予め格納しておく必
要があり、このため、パラメータデータを追加する場合
には、図12に示 すような、データ設定用のシーケンス
プログラム122をパラメータ設定用シーケンスプログ
ラム121とともに専用周辺装置によって作成し、プロ
グラムメモリ102に格納し、一度シーケンスプログラ
ムを実行する。このシーケンスプログラムの実行によっ
て、パラメータ設定用シーケンスプログラム121で設
定されたラッチデバイス(データレジスタ)に、データ
設定用のシーケンスプログラム122で設定されたパラ
メータデータ(デバイスK1の内容など)が格納され
る。そして、CPUユニットへの電源供給を一旦オフ
し、再度、CPUユニットに電源を供給し直してCPU
ユニットのイニシャル処理を実行する。この結果、前述
したように、ラッチデバイス(データレジスタ)からパ
ラメータデータが読み出されて、パラメータデータの内
容がチェックされた後、このパラメータデータを参照し
たシーケンスプログラムの実行が行われる。このように
従来は、データレジスタにパラメータデータを格納する
ためには、パラメータ設定用シーケンスプログラム12
1およびデータ設定用のシーケンスプログラム122を
実行する必要があるが、パラメータデータの解析処理
は、シーケンスプログラムを実行する前に行う必要があ
るため、パラメータ設定用シーケンスプログラム121
およびデータ設定用のシーケンスプログラム122を含
むシーケンスプログラムを実行してパラメータデータを
ラッチデバイス(データレジスタ)に格納した後に、一
旦CPUユニットの電源を供給し直し、ラッチデバイス
(データレジスタ)から読み出されたパラメータデータ
内容の解析を実行する必要がある。
In the conventional CPU unit, when the parameter data is used as described above, the parameter data is stored in the data register area 11 before executing the parameter setting sequence program.
Must be previously stored in the 0 data latch area 110a, Therefore, to add a parameter data in Figure 12 shows a Suyo, sequence data set
Program 122 for parameter setting sequence program
Created with a dedicated peripheral device together with the ram 121,
Stored in the gram memory 102 and once
Run By executing this sequence program
By the parameter setting sequence program 121.
Data is stored in the specified latch device (data register).
The parameters set by the setting sequence program 122
Stores meter data (contents of device K1, etc.)
It Then, the power supply to the CPU unit is once turned off, then the power is supplied to the CPU unit again, and the CPU
Execute the initial process of the unit . As a result,
As described above, the latch device (data register)
Parameter data is read out and
After checking the content, refer to this parameter data
The sequence program is executed. in this way
Conventionally, parameter data is stored in the data register
In order to do so, the parameter setting sequence program 12
1 and the sequence program 122 for data setting
Parameter data analysis processing that must be executed
Must be done before executing the sequence program.
Therefore, the parameter setting sequence program 121
And a sequence program 122 for setting data
Run the sequence program and set the parameter data.
After storing in the latch device (data register),
Re-supply power to the CPU unit, and latch device
Parameter data read from (data register)
Content parsing needs to be performed.

【0019】この発明は、上述の如き問題点を解消する
ためになされたもので、CPUユニットへの電源供給を
一旦オフし、再度、CPUユニットに電源を供給し直す
と云う作業をしなくても、CPUユニットにパラメータ
を追加することができるプログラマブルコントローラを
得ることを目的としている。
The present invention has been made in order to solve the above-mentioned problems, and does not require the work of turning off the power supply to the CPU unit once and then supplying the power again to the CPU unit. Also aims to obtain a programmable controller that can add parameters to the CPU unit.

【0020】[0020]

【課題を解決するための手段】上述の目的を達成するた
めに、この発明によるプログラマブルコントローラは、
記憶されたシーケンスプログラムに基づき制御対象機器
を制御するプログラマ ブルコントローラにおいて、パラ
メータデータおよび該パラメータデータを設定するデバ
イスレジスタを示すデバイスコードを含むテキスト形式
のパラメータ設定データと、このテキスト形式のパラメ
ータ設定データの存在の有無を示すテキストデータ判別
フラグとを含むパラメータデータファイルが入力設定さ
れた場合、この入力設定されたパラメータデータファイ
ル中の前記テキストデータ判別フラグがオンであるとき
に、前記テキスト形式のパラメータ設定データをCPU
ユニットが解析できるパラメータデータに変換し、変換
したパラメータデータを解析するテキストデータ解析処
理手段と、前記テキストデータ解析処理手段によって解
析されたパラメータデータを参照して前記シーケンスプ
ログラムを実行する手段とを備えることを特徴とする。
In order to achieve the above object, a programmable controller according to the present invention comprises:
Controlled device based on the stored sequence program
In programmable controller for controlling, para
Device for setting meter data and the parameter data
Text format containing device code indicating the chair register
Parameter setting data and this text format parameter
Text data discrimination indicating the existence of data setting data
A parameter data file containing flags and
If this parameter is set, this input parameter data file
When the text data discrimination flag in the file is on
In addition, the parameter setting data in the text format is stored in the CPU.
Convert to parameter data that can be analyzed by the unit
Text data analysis process that analyzes the specified parameter data
And the text data analysis processing means
With reference to the analyzed parameter data, the sequence
And means for executing a program.

【0021】つぎの発明によるプログラマブルコントロ
ーラは、上記の発明おいて、前記パラメータデータファ
イルは、プログラマブルコントローラ用のプログラミン
グソフトウェアによるパラメータ設定画面で作成された
ものであることを特徴とする。
A programmable controller according to the next invention is the parameter data file in the above invention.
Ill programm for programmable controller
Created on the parameter setting screen by the software
It is characterized by being a thing.

【0022】つぎの発明によるプログラマブルコントロ
ーラは、上記の発明おいて、前記パラメータデータファ
イルは、エディタツールで作成されたものであることを
特徴とする。
A programmable controller according to the next invention is the parameter data file in the above invention.
That the file was created with an editor tool
Characterize.

【0023】[0023]

【発明の実施の形態】以下に添付の図を参照して、この
発明にかかるプログラマブルコントローラの実施の形態
を詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of a programmable controller according to the present invention will be described in detail below with reference to the accompanying drawings.

【0024】実施の形態1. 図1は、この発明によるプログラマブルコントローラで
使用されるパラメータの入力システム構成を示してい
る。図1において、1は汎用パソコンを示している。汎
用パソコン1には、プログラマブルコントローラ用のプ
ログラミングソフトウェアパッケージがインストールさ
れており、表示器2にパラメータ入力用の拡張パラメー
タ設定画面を表示する。この汎用パソコン1は、プログ
ラマブルコントローラのためのプログラミングツール等
の専用周辺装置と同等に機能する。以下、汎用パソコン
1、専用周辺装置を総称して周辺装置1と云う。
Embodiment 1. FIG. 1 shows an input system configuration of parameters used in a programmable controller according to the present invention. In FIG. 1, reference numeral 1 indicates a general-purpose personal computer. A programming software package for a programmable controller is installed in the general-purpose personal computer 1, and an extended parameter setting screen for parameter input is displayed on the display unit 2. The general-purpose personal computer 1 functions as a dedicated peripheral device such as a programming tool for a programmable controller. Hereinafter, the general-purpose personal computer 1 and the dedicated peripheral device are collectively referred to as the peripheral device 1.

【0025】周辺装置1にて作成されたパラメータデー
タはデータ通信等によってプログラマブルコントローラ
(CPUユニット)10のプログラムメモリ12にデー
タ転送される。
The parameter data created by the peripheral device 1 is Ru are data <br/> data transferred to the program memory 12 of the programmable controller (CPU unit) 10 by the data communication or the like.

【0026】図2は、周辺装置1の拡張パラメータ設定
画面(パラメータ入力画面)を示している。この拡張パ
ラメータ設定画面では、各パラメータごとに決められた
フォーマット通りにパラメータデータをテキスト形式で
入力する。追加したいパラメータを入力する場合、パラ
メータ設定項目を選択し、その中の拡張パラメータ設定
を選択する。図2は、入力例として、ブロック"2"のパ
ラメータをデバイスコード"4"という値にしている。
FIG. 2 shows an extended parameter setting screen (parameter input screen) of the peripheral device 1. On this extended parameter setting screen, parameter data is input in text format according to the format determined for each parameter. When inputting the parameter to be added, select the parameter setting item and select the extended parameter setting in it. In FIG. 2, as an input example, the parameter of the block “2” is set to the value of the device code “4”.

【0027】つぎに、上述のような拡張パラメータ設定
後に周辺装置1が実行する拡張パラメータ転送処理につ
いて図3を参照して説明する。まず、拡張パラメータ設
定画面で入力されたデータがあるかを判別する(ステッ
プS11)。拡張パラメータ設定画面で入力されたデー
タであれば、周辺装置1上のパラメータ格納エリア内の
テキストデータ判別フラグをオンし(ステップS1
2)、拡張パラメータでなく、CPUユニット用の既存
のパラメータのみであれば、テキストデータ判別フラグ
をオフにする(ステップS13)。これらのフラグ処理
が終われば、入力されたデータをパラメータデータファ
イルとして周辺装置1上のパラメータ格納エリアに格納
する(ステップS14)。
Next, the extended parameter transfer processing executed by the peripheral device 1 after setting the extended parameters as described above will be described with reference to FIG. First, it is determined whether or not there is data input on the extended parameter setting screen (step S11). If the data is input on the extended parameter setting screen, the text data discrimination flag in the parameter storage area on the peripheral device 1 is turned on (step S1).
2) If it is not the extended parameter but only the existing parameter for the CPU unit, the text data discrimination flag is turned off (step S13). When these flag processes are completed, the input data is stored in the parameter storage area on the peripheral device 1 as a parameter data file (step S14).

【0028】つぎに、周辺装置1上のパラメータ格納エ
リアに格納されたパラメータデータファイルをプログラ
マブルコントローラ(CPUユニット)に転送する(ス
テップS15)。プログラマブルコントローラに転送さ
れたパラメータデータファイルは、シーケンスプログラ
ムが再実行されるのを待つ。
Next, the parameter data file stored in the parameter storage area on the peripheral device 1 is transferred to the programmable controller (CPU unit) (step S15). The parameter data file transferred to the programmable controller is the sequence program.
Wait for the system to be re-executed .

【0029】図4は、この発明によるプログラマブルコ
ントローラ(CPUユニット)の実施の形態1の構成を
示している。CPUユニット10は、システムプログラ
ムを実行するマイクロプロセッサ(MPU)11と、シ
ーケンス制御を行うためのシーケンスプログラムを格納
するプログラムメモリ12と、パラメータ設定用のシー
ケンスプログラムを解析する機能をもつシステムプログ
ラム(オペレーションシステムを含む)を格納したシス
テムプログラムメモリ13と、システムプログラムが使
用する内部ワークRAM14と、パラメータデータの中
に異常なデータが存在した場合に点滅するエラー用LE
D15とを有している。
FIG. 4 shows the configuration of the programmable controller (CPU unit) according to the first embodiment of the present invention. The CPU unit 10 includes a microprocessor (MPU) 11 that executes a system program, a program memory 12 that stores a sequence program for performing sequence control, and a system program (operation that has a function of analyzing a sequence program for parameter setting). (Including the system), a system program memory 13, an internal work RAM 14 used by the system program, and an LE for error that blinks when abnormal data exists in the parameter data.
And D15.

【0030】このCPUユニット10で使用されるシス
テムプログラムは、プログラマブルコントローラ用のプ
ログラミングソフトウェアによるパラメータ設定画面で
作成されたテキスト形式のパラメータデータをCPUユ
ニット10のパラメータ解析処理にて認識する手段とし
て、テキスト形式で格納されたパラメータデータをテキ
ストデータ解析処理にてCPUユニット10が解析でき
るパラメータデータにする機能を有している。
The system program used in the CPU unit 10 is a text program for recognizing text-format parameter data created on the parameter setting screen by the programming software for the programmable controller in the parameter analysis process of the CPU unit 10. It has a function of converting the parameter data stored in the format into the parameter data which can be analyzed by the CPU unit 10 in the text data analysis process.

【0031】内部ワークRAM14は、シーケンスプロ
グラムで使用するデータレジスタを格納するデータレジ
スタエリア20と、周辺装置1より転送されるパラメー
タデータファイルを一時セットしておくためのパラメー
タ退避エリア21と、システムプログラムがパラメータ
退避エリア21に格納されたパラメータデータを解析し
た後にデータセットするパラメータ格納エリア22と、
システムプログラム処理の中に一時退避用として使用す
るシステムプログラム処理作業エリア23を有してい
る。データレジスタエリア20には、従来のものと同様
に、電源オフになってもデータを保持するデータラッチ
エリア20aがある。
The internal work RAM 14 has a data register area 20 for storing data registers used in a sequence program, a parameter save area 21 for temporarily setting a parameter data file transferred from the peripheral device 1, and a system program. A parameter storage area 22 for setting data after analyzing the parameter data stored in the parameter save area 21,
The system program processing work area 23 used for temporary saving is provided in the system program processing. The data register area 20 has a data latch area 20a that retains data even when the power is turned off, similar to the conventional one.

【0032】パラメータ退避エリア21には周辺装置1
より転送されたパラメータデータファイル30が格納さ
れる。パラメータデータファイル30は、周辺装置1で
作成されたCPUユニット10用の既存形式のパラメー
タデータ31と、そのパラメータデータの終了データ3
2と、テキストデータ判別フラグ33と、周辺装置1の
拡張パラメータ設定画面で入力されたテキスト形式のパ
ラメータデータ34とを有している。換言すれば、パラ
メータ退避エリア21は、既存形式のパラメータデータ
31、パラメータデータ・終了データ32、テキストデ
ータ判別フラグ33、テキスト形式のパラメータデータ
34のそれぞれの格納エリアを有している。
In the parameter save area 21, the peripheral device 1
The transferred parameter data file 30 is stored. The parameter data file 30 includes the existing format parameter data 31 for the CPU unit 10 created by the peripheral device 1 and the end data 3 of the parameter data.
2, the text data determination flag 33, and the text-formatted parameter data 34 input on the extended parameter setting screen of the peripheral device 1. In other words, the parameter save area 21 has respective storage areas for the existing format parameter data 31, the parameter data / end data 32, the text data determination flag 33, and the text format parameter data 34.

【0033】つぎに、この実施の形態のCPUユニット
10に電源が供給されてからシーケンスプログラムを実
行するまでの動作を図5に示されているフローチャート
を用いて説明する。CPUユニット10に電源が供給さ
れると、内部ワークRAM(内部メモリ)14をクリア
することにより初期化する(ステップS21)。この処
理によって、内部ワークRAM14のデータレジスタエ
リア20、パラメータ退避エリア21、パラメータ格納
エリア22の各エリアに"0"が格納される。
Next, the operation from the supply of power to the CPU unit 10 of this embodiment to the execution of the sequence program will be described with reference to the flow chart shown in FIG. When power is supplied to the CPU unit 10, the internal work RAM (internal memory) 14 is cleared to be initialized (step S21). By this processing, "0" is stored in each area of the data register area 20, the parameter save area 21, and the parameter storage area 22 of the internal work RAM 14.

【0034】ただし、データレジスタエリア20のデー
タラッチエリア20aには、"0"を格納する処理を実行
せず、元々格納されているデータを保持している。この
場合も、パラメータ設定用シーケンスプログラムで設定
する既存形式のパラメータデータは、"0"クリアされな
いデータラッチエリア20aに設定しておく必要があ
る。
However, in the data latch area 20a of the data register area 20, the processing of storing "0" is not executed and the data originally stored is held. Also in this case, the parameter data of the existing format set by the parameter setting sequence program must be set in the data latch area 20a that is not cleared to "0".

【0035】つぎに、パラメータ設定用シーケンスプロ
グラムサーチ処理を実行する(ステップS22)。パラ
メータ設定用シーケンスプログラムサーチ処理は、図1
2に示されているようなパラメータ設定用シーケンスプ
ログラムが、プログラムメモリ12に書かれているかを
チェックする処理であり、この処理は、従来のものと同
様に、図14に示されているフローチャートに従って行
われる。パラメータ設定用シーケンスプログラムサーチ
処理が終了すると、つぎにパラメータ内容解析処理を実
行する(ステップS23)。
Next, a parameter setting sequence program search process is executed (step S22). The parameter setting sequence program search process is shown in FIG.
2 is a process for checking whether or not the parameter setting sequence program as shown in FIG. 2 is written in the program memory 12, and this process is performed in accordance with the flowchart shown in FIG. Done. When the parameter setting sequence program search process is completed, a parameter content analysis process is then executed (step S23).

【0036】このパラメータ内容解析処理を図6を参照
して説明する。まず、パラメータ退避エリア21にパラ
メータデータファイルが存在するかどうかをチェックす
る(ステップS31)。パラメータ退避エリア21にパ
ラメータデータファイルが存在するならば、つぎに、パ
ラメータデータファイルの内容をチェックするためにパ
ラメータ退避エリア21に格納されているパラメータデ
ータファイルをシステムプログラム処理作業エリア23
に読み出す(ステップS32)。
This parameter content analysis processing will be described with reference to FIG. First, it is checked whether or not a parameter data file exists in the parameter save area 21 (step S31). If a parameter data file exists in the parameter save area 21, then the parameter data file stored in the parameter save area 21 is checked in order to check the contents of the parameter data file.
Are read out (step S32).

【0037】つぎに、第1段階として、既存形式のパラ
メータ解析のために、システムプログラム処理作業エリ
ア23に格納されたパラメータデータが、CPUユニッ
トで扱える値かどうかのチェックを行う(ステップS3
3)。このチェックで、システムプログラム処理作業エ
リア23に格納されたパラメータデータがCPUユニッ
トで扱えると判断したならば、そのパラメータデータが
パラメータデータ・終了データと等しいかどうかのチェ
ックを行う(ステップS34)。パラメータデータがパ
ラメータデータ・終了データと異なっていれば、既存形
式の他のパラメータデータがまだあるので、ステップS
33に戻り、システムプログラム処理作業エリア23に
格納されたパラメータのデータチェック行う処理を続
行する。
Next, as a first step, it is checked whether or not the parameter data stored in the system program processing work area 23 is a value that can be handled by the CPU unit for the parameter analysis of the existing format (step S3).
3). If it is determined in this check that the parameter data stored in the system program processing work area 23 can be handled by the CPU unit, it is checked whether or not the parameter data is equal to the parameter data / end data (step S34). If the parameter data is different from the parameter data and end data, there is still other parameter data in the existing format, so step S
Returning to 33, to continue processing for data check of the parameters stored in the system program processing work area 23.

【0038】なお、パラメータデータがCPUユニット
で扱えないデータである場合も、エラー用LED15を
オンし(ステップS39)、CPUユニットの使用者に
対してエラーが発生したことを知らせる。
Even when the parameter data is data that cannot be handled by the CPU unit, the error LED 15 is turned on (step S39) to notify the user of the CPU unit that an error has occurred.

【0039】パラメータデータがパラメータデータ・終
了データと等しければ、既存形式によるパラメータデー
タは終了のため、つぎに、テキストデータ判別フラグが
オンである否かを判別する(ステップS35)。テキス
トデータ判別フラグがオンならば、テキスト形式のパラ
メータデータがあるので、第2段階として、テキストデ
ータ解析処理を行う(ステップS36)。
If the parameter data is equal to the parameter data and the end data, the parameter data in the existing format is the end, so it is next determined whether or not the text data determination flag is on (step S35). If the text data determination flag is ON, there is parameter data in the text format, so the text data analysis process is performed as the second step (step S36).

【0040】テキストデータ解析処理が完了すれば、テ
キストデータ解析処理にてパラメータデータが正しく解
析されなかったことを示すエラーフラグがオンであるか
のチェックを行う(ステップS37)。エラーフラグが
オンでなければ、テキストデータ解析処理にてパラメー
タデータが正しく解析されたとし、データチェックを終
了したパラメータデータをシステムプログラム処理作業
エリア23からパラメータ格納エリア22に転送し(ス
テップS38)、パラメータデータ内容解析処理を終了
する。
When the text data analysis process is completed, it is checked whether the error flag indicating that the parameter data was not correctly analyzed in the text data analysis process is on (step S37). If the error flag is not on, it is determined that the parameter data has been correctly analyzed by the text data analysis process, and the parameter data for which the data check has been completed is transferred from the system program processing work area 23 to the parameter storage area 22 (step S38). The parameter data content analysis processing ends.

【0041】つぎに、図7を参照してテキストデータ解
析処理について説明する。まず、パラメータ退避エリア
21よりテキスト形式のパラメータデータを読み出し
(ステップS41)、読み出したパラメータデータを解
析する処理として、テキスト形式のパラメータデータを
CPUユニットが解析できるパラメータデータに変換す
る(ステップS42)。
Next, the text data analysis process will be described with reference to FIG. First, the text format parameter data is read from the parameter save area 21 (step S41), and as a process of analyzing the read parameter data, the text format parameter data is converted into parameter data that can be analyzed by the CPU unit (step S42).

【0042】つぎに、パラメータデータが解析できたか
を判別する(ステップS43)。解析できたならば、パ
ラメータデータの最終まで解析できたかを判別し(ステ
ップS44)、最終まで解析した場合には処理を終了す
る。解析不可能ならば、エラーフラグをオンし(ステッ
プS45)、処理を終了する。
Next, it is determined whether the parameter data can be analyzed (step S43). If the parameter data can be analyzed, it is determined whether or not the parameter data has been analyzed to the end (step S44). If the analysis is not possible, the error flag is turned on (step S45), and the process ends.

【0043】上述のような処理により、拡張パラメータ
設定画面で作成されたテキスト形式のパラメータデータ
がCPUユニット10のパラメータ解析処理にて認識さ
れ、パラメータが拡張されても、専用周辺装置を変更せ
ずに、拡張されたパラメータを認識することができる。
By the above-described processing, even if the parameter data in text format created on the extended parameter setting screen is recognized by the parameter analysis processing of the CPU unit 10 and the parameters are extended, the dedicated peripheral device is not changed. In addition, the extended parameters can be recognized.

【0044】したがって、パラメータ設定用シーケンス
プログラムをCPUユニットにセットしなくても、パラ
メータを新たに追加することができ、パラメータデータ
を予めラッチエリアに登録した後にCPUユニットへの
電源供給を一旦オフし、再度、CPUユニットに電源を
供給し直すと云う作業をしなくても、CPUユニットに
パラメータを追加することができる。その後、シーケン
スプログラムを実行する(ステップS24)。
Therefore, the parameters can be newly added without setting the parameter setting sequence program in the CPU unit, and after the parameter data is registered in the latch area in advance, the power supply to the CPU unit is temporarily turned off. The parameters can be added to the CPU unit without performing the work of supplying the power to the CPU unit again. Then, the sequence program is executed ( step S24).

【0045】実施の形態2. 図8は、この発明によるプログラマブルコントローラ
(CPUユニット)の実施の形態2の構成を示してい
る。なお、図8において、図4に示されているものと同
等あるいは同一の構成要件には、図4に付けた符号と同
一の符号を付けてその説明を省略する。
Embodiment 2. FIG. 8 shows the configuration of the programmable controller (CPU unit) according to the second embodiment of the present invention. In FIG. 8, the same or the same constituents as those shown in FIG. 4 are designated by the same reference numerals as those shown in FIG. 4, and the description thereof will be omitted.

【0046】このCPUユニット10'で使用されるシ
ステムプログラムは、市販されているパソコン用のテキ
ストエディタで作成されたテキストファイル形式のパラ
メータデータファイルを格納し、CPUユニット10'
のパラメータ解析処理にて認識する手段として、テキス
ト形式で格納されたパラメータデータファイルを拡張パ
ラメータ内容解析処理(テキストデータ解析処理)にて
CPUユニットが解析できるパラメータデータにする機
能を有している。
The system program used in this CPU unit 10 'stores a parameter data file in a text file format created by a commercially available text editor for personal computers, and the CPU unit 10'
As a means for recognizing in the parameter analysis process, there is a function of converting the parameter data file stored in the text format into the parameter data which can be analyzed by the CPU unit in the extended parameter content analysis process (text data analysis process).

【0047】内部ワークRAM14は、データラッチエ
リア20aを含むデータレジスタエリア20と、周辺装
置1より転送される既存形式のパラメータデータファイ
ル21aを一時セットしておくためのパラメータ退避エ
リア21と、システムプログラムがパラメータ退避エリ
ア21に格納されたパラメータデータを解析した後にデ
ータセットするパラメータ格納エリア22と、システム
プログラム処理の中に一時退避用として使用するシステ
ムプログラム処理作業エリア23に加えて、テキストエ
ディタで作成されたテキストファイル形式の拡張パラメ
ータデータファイル24aを一時セットしておくための
拡張パラメータ退避エリア24が別途、画定されてい
る。
The internal work RAM 14 includes a data register area 20 including a data latch area 20a, a parameter save area 21 for temporarily setting an existing format parameter data file 21a transferred from the peripheral device 1, and a system program. Created by a text editor in addition to the parameter storage area 22 for setting data after analyzing the parameter data stored in the parameter save area 21 and the system program processing work area 23 used for temporary saving during system program processing. The extension parameter saving area 24 for temporarily setting the extension parameter data file 24a in the prepared text file format is separately defined.

【0048】拡張パラメータデータファイル24aは、
市販のテキストエディタで作成されたテキストファイル
形式のパラメータデータファイルであり、拡張パラメー
タデータファイル・終了データ(EOF)を含んでい
る。
The extended parameter data file 24a is
It is a parameter data file in a text file format created by a commercially available text editor, and includes an extended parameter data file and end data (EOF).

【0049】つぎに、この実施の形態のCPUユニット
に電源が供給されてからシーケンスプログラムを実行す
るまでの動作を図9に示されているフローチャートを用
いて説明する。なお、ステップS51〜ステップS53
は図13に示されている従来例のCPUユニットが行う
ステップS101〜ステップS103と同じ処理を行う
から、ここでは、その説明を省略する。
Next, the operation from the supply of power to the CPU unit of this embodiment to the execution of the sequence program will be described with reference to the flow chart shown in FIG. Note that steps S51 to S53
Performs the same processing as steps S101 to S103 performed by the conventional CPU unit shown in FIG. 13, and therefore the description thereof will be omitted here.

【0050】この実施の形態では、パラメータ内容解析
処理(ステップS53)が完了し、シーケンスプログラ
ムを実行(ステップS55)するまえに、拡張パラメー
タ内容解析処理(ステップS54)を行う。拡張パラメ
ータ内容解析処理は、市販のテキストエディタで作成さ
れた拡張パラメータデータファイルの内容をチェック
し、CPUユニットが認識可能なデータかどうかを判断
する処理である。つぎに、図10を参照して拡張パラメ
ータ内容処理について説明する。
In this embodiment, the extended parameter content analysis process (step S54) is performed before the parameter content analysis process (step S53) is completed and the sequence program is executed (step S55). The extended parameter content analysis process is a process of checking the contents of an extended parameter data file created with a commercially available text editor and determining whether the data is recognizable by the CPU unit. Next, the extended parameter content processing will be described with reference to FIG.

【0051】まず、拡張パラメータ退避エリア24にテ
キストエディタで作成されたテキストファイル形式の拡
張パラメータデータファイル24aがあるかどうかのチ
ェックを行う(ステップS61)。拡張パラメータ退避
エリア24にテキストファイル形式の拡張パラメータデ
ータファイル24aが存在するならば、つぎに、拡張パ
ラメータ退避エリア24に存在するテキストファイル形
式の拡張パラメータデータファイル24aの内容をリー
ドし(ステップS62)、リードしたパラメータデータ
を解析する処理として、テキスト形式の拡張パラメータ
データファイル24aの内容をCPUユニットが解析で
きるデータに変換する(ステップS63)。
First, it is checked whether or not there is an extension parameter data file 24a in the text file format created by a text editor in the extension parameter save area 24 (step S61). If the extension parameter data file 24a in the text file format exists in the extension parameter saving area 24, the contents of the extension parameter data file 24a in the text file format existing in the extension parameter saving area 24 are read next (step S62). As a process of analyzing the read parameter data, the contents of the extended parameter data file 24a in text format are converted into data that can be analyzed by the CPU unit (step S63).

【0052】つぎに、システムプログラム処理作業エリ
ア23に格納された拡張パラメータデータファイルのパ
ラメータデータが、CPUユニットで扱える値かどうか
のチェックを行う(ステップS64)。このチェック
で、システムプログラム処理作業エリア23に格納され
た拡張パラメータデータがCPUユニットで扱えると判
断したならば、つぎに、そのパラメータデータが、拡張
パラメータデータファイル・終了データと等しいかどう
かのチェックを行う(ステップS65)。そのパラメー
タデータが拡張パラメータデータファイル・終了データ
と異なっていたならば、拡張パラメータデータがまだあ
るので、ステップS64に戻り、システムプログラム処
理作業エリア23に格納された残りの拡張パラメータデ
ータのチェックを行う。
Next, it is checked whether the parameter data of the extended parameter data file stored in the system program processing work area 23 is a value that can be handled by the CPU unit (step S64). If it is determined in this check that the extended parameter data stored in the system program processing work area 23 can be handled by the CPU unit, it is next checked whether or not the extended parameter data is equal to the extended parameter data file / end data. Perform (step S65). If the parameter data is different from the extended parameter data file / end data, there is still extended parameter data, so the process returns to step S64, and the remaining extended parameter data stored in the system program processing work area 23 is checked. .

【0053】パラメータデータが、拡張パラメータデー
タファイル・終了データと等しかったならば、拡張パラ
メータデータはその時点で終了したことになり、システ
ムプログラム処理作業エリア23の拡張パラメータデー
タをパラメータ格納エリア22に転送し(ステップS6
6)、拡張パラメータデータ内容解析処理を終了する。
If the parameter data is equal to the extended parameter data file / end data, it means that the extended parameter data is finished at that point, and the extended parameter data in the system program processing work area 23 is transferred to the parameter storage area 22. (Step S6
6), the extended parameter data content analysis processing ends.

【0054】拡張パラメータ退避エリア24に拡張パラ
メータデータファイル24が存在しない場合、あるい
は拡張パラメータデータがCPUユニットで扱えないデ
ータであれば、エラー用LED15をオンし(ステップ
S67)、CPUユニットの使用者に対してエラーが発
生したことを知らせる。
[0054] When expansion parameter data file 24 a in the extended parameter save area 24 is not present, or if the data expansion parameter data can not handle the CPU unit to turn on the error for LED 15 (step S67), the use of the CPU unit Notify the person that an error has occurred.

【0055】上述のような処理により、テキストエディ
タで作成されたテキスト形式のパラメータデータがCP
Uユニットの拡張パラメータ解析処理にて認識され、パ
ラメータが拡張されても、専用周辺装置を変更せずに、
拡張されたパラメータを認識することができる。
By the above-mentioned processing, the text-format parameter data created by the text editor is converted into CP.
Even if the parameters are recognized by the extended parameter analysis process of the U unit and the parameters are extended, the dedicated peripheral device is not changed,
It can recognize extended parameters.

【0056】したがって、パラメータ設定用シーケンス
プログラムをCPUユニットにセットしなくても、パラ
メータを新たに追加することができ、パラメータデータ
を予めラッチエリアに登録した後にCPUユニットへの
電源供給を一旦オフし、再度、CPUユニットに電源を
供給し直すと云う作業をしなくても、CPUユニットに
パラメータを追加することができる。また、拡張パラメ
ータデータファイルは、テキストエディタで作成される
から、この拡張パラメータデータファイルの作成のため
に、特別な周辺機器を必要としない。
Therefore, it is possible to add a new parameter without setting the parameter setting sequence program in the CPU unit. After registering the parameter data in the latch area in advance, the power supply to the CPU unit is temporarily turned off. The parameters can be added to the CPU unit without performing the work of supplying the power to the CPU unit again. Further, since the extended parameter data file is created with a text editor, no special peripheral device is required to create this extended parameter data file.

【0057】[0057]

【発明の効果】以上の説明から理解される如く、この発
明によるプログラマブルコントローラによれば、パラメ
ータデータおよびパラメータデータを設定するデバイス
レジス タに関するデータが設定されたテキスト形式のパ
ラメータ設定データ自体に、従来形式のデバイスレジス
タに関する情報およびパラメータデータに関するデータ
を持たせ、このテキスト形式のパラメータ設定データを
CPUユニットが取り扱い可能な通常形式のパラメータ
データに変換してCPUユニットがパラメータデータと
して使用できるようにしているので、パラメータ設定用
シーケンスプログラムをCPUユニットにセットしなく
ても、パラメータを新たに追加することができ、パラメ
ータデータを予めラッチエリアに登録した後にCPUユ
ニットへの電源供給を一旦オフし、再度、CPUユニッ
トに電源を供給し直すと云う面倒な作業をしなくても、
単にシーケンスプログラムを再実行させるのみで、CP
Uユニットにパラメータを追加することができる。
As can be understood from the above description, according to the programmable controller of the present invention, the parameters are
Device for setting data and parameter data
Path of the text format in which the data has been set on the register
In the parameter setting data itself, the conventional device register
Data on parameters and data on parameter data
With the text format parameter setting data
Normal format parameters that can be handled by the CPU unit
The data is converted into data and the CPU unit uses it as parameter data.
It is possible to add parameters without setting the parameter setting sequence program in the CPU unit, and after registering the parameter data in the latch area in advance, the power supply to the CPU unit can be used. Even if you do not perform the troublesome work of turning off the power supply once and then supplying power to the CPU unit again,
Simply re-execute the sequence program, CP
Parameters can be added to the U unit.

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

【図1】 この発明によるプログラマブルコントローラ
で使用されるパラメータの入力システム構成を示す説明
図である。
FIG. 1 is an explanatory diagram showing an input system configuration of parameters used in a programmable controller according to the present invention.

【図2】 周辺装置の拡張パラメータ設定画面(パラメ
ータ入力画面)を示す説明図である。
FIG. 2 is an explanatory diagram showing an extended parameter setting screen (parameter input screen) of a peripheral device.

【図3】 周辺装置の拡張パラメータ設定画面で作成さ
れたテキスト形式のパラメータデータが入力されてから
の周辺装置での処理フローを示すフローチャートであ
る。
FIG. 3 is a flowchart showing a processing flow in the peripheral device after the text-format parameter data created on the extended parameter setting screen of the peripheral device is input.

【図4】 この発明によるプログラマブルコントローラ
の実施の形態1を示すブロック図である。
FIG. 4 is a block diagram showing a first embodiment of a programmable controller according to the present invention.

【図5】 実施の形態1においてCPUユニットの電源
オンからシーケンスプログラムが実行されるまでの処理
フローを示すフローチャートである。
FIG. 5 is a flowchart showing a processing flow from power-on of a CPU unit to execution of a sequence program in the first embodiment.

【図6】 パラメータ内容解析処理の処理フローを示す
フローチャートである。
FIG. 6 is a flowchart showing a processing flow of parameter content analysis processing.

【図7】 テキストデータ解析処理の処理フローを示す
フローチャートである。
FIG. 7 is a flowchart showing a processing flow of text data analysis processing.

【図8】 この発明によるプログラマブルコントローラ
の実施の形態2を示すブロック図である。
FIG. 8 is a block diagram showing a second embodiment of the programmable controller according to the present invention.

【図9】 実施の形態2においてCPUユニットの電源
オンからシーケンスプログラムが実行されるまでの処理
フローを示すフローチャートである。
FIG. 9 is a flowchart showing a processing flow from power-on of a CPU unit to execution of a sequence program in the second embodiment.

【図10】 拡張パラメータ内容解析処理の処理フロー
を示すフローチャートである。
FIG. 10 is a flowchart showing a processing flow of extended parameter content analysis processing.

【図11】 従来におけるCPUユニットの構成を示す
ブロック図である。
FIG. 11 is a block diagram showing a configuration of a conventional CPU unit.

【図12】 パラメータ設定用シーケンスプログラム例
を示す説明図である。
FIG. 12 is an explanatory diagram showing an example of a parameter setting sequence program.

【図13】 従来におけるCPUユニットの電源オンか
らシーケンスプログラムが実行されるまでの処理フロー
を示すフローチャートである。
FIG. 13 is a flowchart showing a conventional process flow from power-on of a CPU unit to execution of a sequence program.

【図14】 パラメータ設定用シーケンスプログラムサ
ーチ処理の処理フローを示すフローチャートである。
FIG. 14 is a flowchart showing a processing flow of a parameter setting sequence program search processing.

【図15】 パラメータ内容解析処理の処理フローを示
すフローチャートである。
FIG. 15 is a flowchart showing a processing flow of parameter content analysis processing.

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

10 プログラマブルコントローラ(CPUユニッ
ト)、11 マイクロプロセッサ、12 プログラムメ
モリ、13 システムプログラムメモリ、14 内部ワ
ークRAM、15 エラー用LED、20 データレジ
スタエリア、21パラメータ退避エリア、22 パラメ
ータ格納エリア、23 システムプログラム処理作業エ
リア、24 拡張パラメータ退避エリア、24a 拡張
パラメータデータファイル、30 パラメータデータフ
ァイル、31 既存形式のパラメータデータ、32 パ
ラメータデータ・終了データ、33 テキストデータ判
別フラグ、34 テキスト形式のパラメータデータ。
10 programmable controller (CPU unit), 11 microprocessor, 12 program memory, 13 system program memory, 14 internal work RAM, 15 error LED, 20 data register area, 21 parameter save area, 22 parameter storage area, 23 system program processing Work area, 24 extended parameter save area, 24a extended parameter data file, 30 parameter data file, 31 existing format parameter data, 32 parameter data / end data, 33 text data discrimination flag, 34 text format parameter data.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 長友 美泰 愛知県名古屋市北区東大曽根町上五丁目 1071番地三菱電機メカトロニクスソフト ウエア株式会社内 (72)発明者 加賀美 裕行 東京都千代田区丸の内二丁目2番3号 三菱電機株式会社内 (56)参考文献 特開 平9−91032(JP,A) 特開 平10−11117(JP,A) 特開 平6−149324(JP,A) 特開 平5−297902(JP,A) (58)調査した分野(Int.Cl.7,DB名) G05B 19/04 - 19/05 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Mitai Nagatomo 107-1, Kamio 5-chome, Higashidaisone-cho, Kita-ku, Nagoya-shi, Aichi Mitsubishi Electric Mechatronics Software Co., Ltd. (72) Inventor Hiroyuki Kagami Two Marunouchi, Chiyoda-ku, Tokyo C. 2-3 No. 3 in Mitsubishi Electric Corporation (56) Reference JP-A-9-91032 (JP, A) JP-A-10-11117 (JP, A) JP-A-6-149324 (JP, A) JP 5-297902 (JP, A) (58) Fields surveyed (Int.Cl. 7 , DB name) G05B 19/04-19/05

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 記憶されたシーケンスプログラムに基づ
き制御対象機器を制御するプログラマブルコントローラ
において、 パラメータデータおよび該パラメータデータを設定する
デバイスレジスタを示すデバイスコードを含むテキスト
形式のパラメータ設定データと、このテキスト形式のパ
ラメータ設定データの存在の有無を示すテキストデータ
判別フラグとを含むパラメータデータファイルが入力設
定された場合、この入力設定されたパラメータデータフ
ァイル中の前記テキストデータ判別フラグがオンである
ときに、前記テキスト形式のパラメータ設定データをC
PUユニットが解析できるパラメータデータに変換し、
変換したパラメータデータを解析するテキストデータ解
析処理手段と、 前記テキストデータ解析処理手段によって解析されたパ
ラメータデータを参照して前記シーケンスプログラムを
実行する手段と、 を備えることを特徴とするプログラマブルコントロー
ラ。
1. Based on a stored sequence program
Programmable controller that controls the controlled device
In sets parameter data and said parameter data
Text containing device code indicating device register
Format parameter setting data and this text format
Text data indicating whether parameter setting data exists
Input the parameter data file including the judgment flag.
If specified, this input parameter data
The text data discrimination flag in the file is on
Sometimes the text format parameter setting data is changed to C
Convert to parameter data that can be analyzed by the PU unit,
Text data solution that analyzes the converted parameter data
Analysis processing means and the text data analysis processing means
Refer to the parameter data and execute the sequence program
And a means for executing the programmable controller.
La.
【請求項2】 前記パラメータデータファイルは、プロ
グラマブルコントローラ用のプログラミングソフトウェ
アによるパラメータ設定画面で作成されたものであるこ
とを特徴とする請求項1に記載のプログラマブルコント
ローラ。
2. The parameter data file is a professional
Programming software for programmable controllers
It was created on the parameter setting screen by
The programmable controller according to claim 1, wherein
roller.
【請求項3】 前記パラメータデータファイルは、エデ
ィタツールで作成されたものであることを特徴とする請
求項1に記載のプログラマブルコントローラ。
3. The parameter data file is an edit file.
Contract tool characterized by being created with a data tool.
The programmable controller according to claim 1.
JP36531898A 1998-12-22 1998-12-22 Programmable controller Expired - Fee Related JP3377956B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP36531898A JP3377956B2 (en) 1998-12-22 1998-12-22 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP36531898A JP3377956B2 (en) 1998-12-22 1998-12-22 Programmable controller

Publications (2)

Publication Number Publication Date
JP2000187506A JP2000187506A (en) 2000-07-04
JP3377956B2 true JP3377956B2 (en) 2003-02-17

Family

ID=18483967

Family Applications (1)

Application Number Title Priority Date Filing Date
JP36531898A Expired - Fee Related JP3377956B2 (en) 1998-12-22 1998-12-22 Programmable controller

Country Status (1)

Country Link
JP (1) JP3377956B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014080491A1 (en) * 2012-11-22 2014-05-30 三菱電機株式会社 Programmable display device

Also Published As

Publication number Publication date
JP2000187506A (en) 2000-07-04

Similar Documents

Publication Publication Date Title
JP2692609B2 (en) Multitask program debugging method and apparatus
US7275240B2 (en) Method and system for recording macros in a language independent syntax
JP2001249828A (en) Information processor, computer readable storage medium in which failure analysis program is stored, failure analyzing method and application program development support system
US20020083216A1 (en) Multi-platform command line interpretation
JP5076381B2 (en) Software development apparatus and software development method
JPH11194963A (en) Method and device for monitoring command execution
JPH09259153A (en) Device and method for generating batch execution control program
CN106293687A (en) The control method of a kind of flow process of packing, and device
JP3377956B2 (en) Programmable controller
JP2007316681A (en) Operation procedure creation support device
JP2002055821A (en) Installation method, its implementor and recording medium recorded with processing program for the device
JPH0736510A (en) Programmable controller
TWI721531B (en) Control method for host machine
CN112394862B (en) Control method of upper computer
US20040015860A1 (en) In the development of computer programs, a method of recording the sequential development of each of a plurality of files forming the program
JP2885957B2 (en) Sequence program programming method and apparatus
JPH09231114A (en) File system conversion system
EP1437647A1 (en) Method and system for recording macros in a language independent syntax
JP3260788B2 (en) Robot control device and method
TW202230105A (en) Method for generating a human-machine interface, computer program product and human-machine interface device
TWI241498B (en) Method for remote batch jobs execution
CN112100053A (en) Automatic operation compiling method based on satellite-borne target system verification
JPH06202892A (en) Program restart system
JPH03129535A (en) Collecting volume optimizing system for debugging information
KR20040008440A (en) Batch processing method for command of distributed system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees