JPH07334216A - Programming device - Google Patents

Programming device

Info

Publication number
JPH07334216A
JPH07334216A JP13228994A JP13228994A JPH07334216A JP H07334216 A JPH07334216 A JP H07334216A JP 13228994 A JP13228994 A JP 13228994A JP 13228994 A JP13228994 A JP 13228994A JP H07334216 A JPH07334216 A JP H07334216A
Authority
JP
Japan
Prior art keywords
cell
program
sfc
data
transition
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
JP13228994A
Other languages
Japanese (ja)
Other versions
JP3171363B2 (en
Inventor
Masayoshi Matsumoto
雅好 松本
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP13228994A priority Critical patent/JP3171363B2/en
Publication of JPH07334216A publication Critical patent/JPH07334216A/en
Application granted granted Critical
Publication of JP3171363B2 publication Critical patent/JP3171363B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To provide a programming device for further easily preparing a program without using any SFC element by providing a transforming means for transforming data in the format of a table to an execution format program. CONSTITUTION:After a user writes the elements of a matrix in a matrix table 1, an extension processing part 5 extends the matrix into an SFC program 7 based on matrix description rules 2 and extension rules 3. Next, a compile processing part 8 compiles the SFC program and prepares a PLC execution format program 10. An inverse compile processing part 9 inversely compiles the PLC execution format program 10 to the SFC program 7. An inverse extension processing part 6 inversely transforms the SFC program 7 to the matrix to be described in the matrix table 1 while using inverse extension rules 4. The transformed matrix is displayed to the user. Thus, the PLC can be programmed only by learning the describing method of data in the table format.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、プログラマブルコント
ローラ(以下、PLCと略記する)のアプリケーション
プログラムを設計した後に行うプログラミング工程(プ
ログラム入力工程)を、簡略化するプログラミング装置
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programming device for simplifying a programming process (program input process) performed after designing an application program of a programmable controller (hereinafter abbreviated as PLC).

【0002】[0002]

【従来の技術】従来、PLCを容易にプログラムするた
めに、PLCのプログラム言語(ラダー、命令リスト、
FBC等)によるプログラミングに代えて、SFC要素
を用いたプログラミングが行われている。SFCは図形
要素であり、ユーザが各種の図形要素(SFC要素)の
意味する処理内容を理解し、SFC要素をエディタ上に
配置して図記号(線)で接続することにより、プログラ
ムが定義される。定義されたSFC要素の配列および図
記号のデータをコンパイルすることにより、プログラミ
ングが行われる。
2. Description of the Related Art Conventionally, in order to easily program a PLC, the programming language of the PLC (ladder, instruction list,
Instead of programming by FBC, etc., programming using SFC elements is performed. SFC is a graphic element. A program is defined by the user understanding the processing contents of various graphic elements (SFC elements), arranging the SFC elements on the editor and connecting them with graphic symbols (lines). It Programming is done by compiling the array of defined SFC elements and the data of the graphical symbols.

【0003】[0003]

【発明が解決しようとする課題】従来のSFC要素を用
いたプログラミング方法では、ユーザがSFCプログラ
ムの全要素を図形を用いて記述する必要がある。従っ
て、作業の量が大きく、時間を要すると共に、入力ミス
が発生する可能性が高いという問題があった。
In the conventional programming method using SFC elements, it is necessary for the user to describe all the elements of the SFC program using graphics. Therefore, there is a problem that the amount of work is large, it takes time, and there is a high possibility that an input error will occur.

【0004】そこで本発明は、SFC要素を用いること
なく更に容易にプログラムを作成することのできるプロ
グラミング装置を提供することを目的とする。
Therefore, an object of the present invention is to provide a programming device which can create a program more easily without using an SFC element.

【0005】[0005]

【課題を解決するための手段】このような目的を達成す
るために、請求項1に記載の発明は、表形式のデータを
入力することによってプログラマブルコントローラをプ
ログラムするプログラミング装置であって、表形式のデ
ータを入力する入力手段と、表形式のデータを表示する
表示手段と、表形式のデータをプログラマブルコントロ
ーラが実行することのできる実行形式プログラムに変換
する変換手段とを備えたことを特徴とする。
In order to achieve such an object, the invention described in claim 1 is a programming device for programming a programmable controller by inputting data in a tabular format, which is a tabular format. The input means for inputting the data of the table, the display means for displaying the data in the table format, and the conversion means for converting the data in the table format into the execution format program which can be executed by the programmable controller. .

【0006】請求項2に記載の発明は、請求項1に記載
のプログラミング装置において前記変換手段は、前記表
形式のデータを、図形式のSFCプログラムに展開する
展開処理部と、前記表形式のデータの各要素と前記SF
Cプログラムの各要素とを関連づけるデータおよび前記
表形式のデータの配列と前記SFCプログラムにおける
処理の流れとを関係づけるデータを含む展開法則を格納
する格納手段と、SFCプログラムをPCL実行形式プ
ログラムにコンパイルするコンパイル処理部とを有し、
前記展開処理部は、前記展開法則に基づいて前記表形式
のデータを前記SFCプログラムに展開することを特徴
とする。
According to a second aspect of the present invention, in the programming device according to the first aspect, the conversion means expands the tabular data into a graphic SFC program, and a tabular data processing unit. Each element of data and the SF
A storage unit for storing an expansion law including data associating each element of the C program and an array of the data in the tabular format with a flow of processing in the SFC program, and compiling the SFC program into a PCL executable program. And a compile processing unit that
The expansion processing unit may expand the tabular data into the SFC program based on the expansion law.

【0007】請求項3に記載の発明は、請求項1または
2に記載のプログラミング装置において、PLC実行形
式プログラムを表形式のデータに逆変換する逆変換手段
を更に備えたことを特徴とする。
The invention according to claim 3 is the programming apparatus according to claim 1 or 2, further comprising an inverse conversion means for inversely converting the PLC execution format program into tabular data.

【0008】請求項4に記載の発明は、請求項3に記載
のプログラミング装置において前記逆変換手段は、前記
PLC実行形式のプログラムを、図形式のSFCプログ
ラムに逆コンパイルする逆コンパイル処理部と、前記S
FCプログラムを前記表形式のデータに逆展開する逆展
開処理部と、前記SFCプログラムの各要素と前記表形
式のデータの各要素とを関連づけるデータおよび前記S
FCプログラムにおける処理の流れと前記表形式のデー
タの配列とを関係づけるデータを含む逆展開法則格納手
段とを有し、前記逆展開処理部は、前記逆展開法則に基
づいて前記SFCプログラムを前記表形式のデータに展
開することを特徴とする。
According to a fourth aspect of the present invention, in the programming device according to the third aspect, the deconversion means includes a decompilation processing unit that decompiles the PLC execution format program into a graphic SFC program. The S
A decompression processing unit that decompresses the FC program into the table format data, data that associates each element of the SFC program with each element of the table format data, and the S
The reverse expansion rule storage unit includes data that associates a processing flow in the FC program with an array of the tabular data, and the reverse expansion processing unit stores the SFC program based on the reverse expansion rule. It is characterized by expanding to tabular data.

【0009】請求項5に記載の発明は、請求項1から4
のいずれかに記載のプログラミング装置において前記表
形式のデータは、前記プログラミングコントローラが外
部に対して実行する外部処理を記載するステップレコー
ド記載部分と、前記プログラミングコントローラが前記
外部処理を実行する条件を記載するトランジションレコ
ード記載部分とを有し、前記展開法則は、前記表形式の
データが記載された表の大きさと同一の大きさの座標形
式のメッシュを用意するメッシュ作成手段と、前記座標
形式のメッシュの全ての要素を初期化する初期化手段
と、前記ステップレコード記載部分における数字が記載
された要素を、その数字で特定されるSFCのステップ
要素に置き換える第1の置き換え手段と、前記トランジ
ションレコード記載部分における数字が記載された要素
を、その数字で特定されるSFCのトランジショント要
素に置き換える第2の置き換え手段と、前記ステップレ
コードまたは前記トランジションレコードに記載された
下向きの矢印をSFCのリンク要素に置き換える第3の
置き換え手段と、数字が記載されたステップセルまたは
トランジションセルの直上のセルが空白である場合は、
当該ステップセルまたはトランジションセルを、当該ス
テップセルまたはトランジションセルの左側の数字が付
与されているセルであって、直上のセルが空白でないセ
ルの、当該直上のセルを分岐源とする選択分岐要素に置
き換える第4の置き換え手段と、数字若しくは下向きの
矢印が付与されたステップセルまたはトランジションセ
ルの直下のセルが空白である場合は、当該ステップセル
または当該トランジションセルを、当該ステップセルま
たは当該トランジションセルの左側の数字が付与されて
いるセルであって、直下のセルが空白でないセルの、当
該直下のセルに合流する合流要素に置き換える第5の置
き換え手段と、Jn(nは自然数)と記載されたセルの
データを、SFCプログラムにおけるnで特定されるス
テップセルへのジャンプ要素に置き換え、当該nで特定
されるステップセルをSFCプログラムにおける連結要
素付きのステップ要素に置き換える第6の置き換え手段
とを有することを特徴とする。
The invention according to claim 5 is based on claims 1 to 4.
In the programming device according to any of 1, the table format data describes a step record description part that describes an external process executed by the programming controller with respect to the outside, and a condition for the programming controller to execute the external process. And a mesh forming means for preparing a mesh in a coordinate format having the same size as the size of the table in which the data in the table format is described, and the mesh in the coordinate format. Means for initializing all the elements of the step record, first replacing means for replacing the element in which the number in the step record description part is described with the step element of the SFC specified by the number, and the transition record description Identify the element with the number in the part by the number Second replacement means for replacing with an SFC transition element, a third replacement means for replacing the downward arrow described in the step record or the transition record with an SFC link element, and a step cell with a number Or if the cell directly above the transition cell is blank,
The step cell or transition cell is a cell to which the number on the left side of the step cell or transition cell is given, and the cell immediately above is a non-blank cell, and is the selected branch element with the cell immediately above as the branch source. If the fourth substituting means for substituting and the cell immediately below the step cell or the transition cell to which a number or a downward arrow is given are blank, the step cell or the transition cell is replaced by the step cell or the transition cell. Fifth replacement means for replacing a cell to which a number on the left side is given and the cell directly below is a non-blank cell with a merging element that merges with the cell immediately below, and Jn (n is a natural number) Transfer the cell data to the step cell specified by n in the SFC program. Replaced pump element, and having a sixth replacement means for replacing the steps cell specified in the n step elements with coupling elements in the SFC program.

【0010】[0010]

【作用】本発明によれば、表形式のデータを入力して表
示し、プログラマブルコントローラが実行することので
きる実行形式プログラムに変換するので、表形式のデー
タの記載方法を修得するだけでPLCをプログラミング
できる。また、表形式のデータを、一度図形式のSFC
プログラムに展開し、表示してからPCL実行形式プロ
グラムにコンパイルすることにより、使用者が表形式で
入力した処理の流れを容易に把握することができる。
According to the present invention, the tabular data is input and displayed, and is converted into an executable program that can be executed by the programmable controller. Therefore, the PLC can be implemented only by learning the method of writing the tabular data. Can be programmed. In addition, tabular data can be converted into SFC
By expanding the program, displaying it, and compiling it into the PCL execution format program, it is possible to easily grasp the flow of processing input by the user in the table format.

【0011】また本発明によれば、PLC実行形式プロ
グラムを表形式のデータに逆変換する逆変換手段を更に
備えたことにより、既に作成されたPLCプログラムを
表形式にデータにして、容易にプログラムを変更するこ
とができる。また、PLC実行形式のプログラムを、図
形式のSFCプログラムに逆コンパイルする逆コンパイ
ルしてから表形式のデータに逆展開することにより、既
に作成されているPLC実行形式のプログラムの処理の
流れを把握することが容易になる。このため、PLCプ
ログラムの変更が更に容易になる。
Further, according to the present invention, by further comprising an inverse conversion means for inversely converting the PLC execution format program into the table format data, the already created PLC program can be easily converted into the table format data. Can be changed. In addition, by decompiling a PLC execution format program into a figure SFC program and then decompressing it into tabular data, the flow of processing of the already created PLC execution format program is grasped. Easy to do. Therefore, it becomes easier to change the PLC program.

【0012】[0012]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0013】図1は、本発明プログラム作成装置の機能
構成を示す機能ブロック図である。図1において、1は
マトリクス形式のデータを表示するマトリクス表であ
り、本発明プログラム作成装置の画面に表示される。2
はマトリクス記述法則であり、マトリクス表1に記述す
る各要素および要素の配列の意味内容を示す法則を有す
る。3は展開法則であり、マトリクス表1に記載された
マトリクスをSFCに展開する為の法則を有する。4は
逆展開法則であり、SFCプログラム7をマトリクス1
に逆展開するための法則を有する。5は展開処理部であ
り、マトリクス記述法則2および展開法則3に基づい
て、マトリクス表1に記載されたマトリクスをSFCプ
ログラム7に展開する。6は逆展開処理部であり、SF
Cプログラム7をマトリクス表1に記載するマトリクス
に逆展開する。
FIG. 1 is a functional block diagram showing the functional configuration of the program creating apparatus of the present invention. In FIG. 1, reference numeral 1 is a matrix table for displaying data in matrix format, which is displayed on the screen of the program creating apparatus of the present invention. Two
Is a matrix description law, which has a law indicating the meaning and content of each element and the array of elements described in the matrix table 1. Reference numeral 3 is a development law, which has a law for developing the matrix described in the matrix table 1 into SFC. 4 is the reverse expansion law, and the SFC program 7 is a matrix 1
It has a law for reverse expansion. The expansion processing unit 5 expands the matrix described in the matrix table 1 into the SFC program 7 based on the matrix description law 2 and the expansion law 3. Reference numeral 6 denotes a reverse expansion processing unit, which is an SF
The C program 7 is inversely expanded to the matrix described in the matrix table 1.

【0014】7はSFCプログラムであり、メモリに格
納されると共に表示画面に表示される。8はコンパイル
処理部であり、SFCプログラムをPCLの実行形式の
プログラムにコンパイルする。9は逆コンパイル処理部
であり、PCL実行形式プログラムを、SFCプログラ
ム7に逆コンパイルする。マトリクス記述法則2、展開
法則3、および逆展開法則4はプログラム作成装置のハ
ードディスク等に格納されている。
Reference numeral 7 is an SFC program, which is stored in the memory and displayed on the display screen. A compile processing unit 8 compiles the SFC program into a PCL execution format program. Reference numeral 9 denotes a decompilation processing unit, which decompiles the PCL execution format program into the SFC program 7. The matrix description law 2, the expansion law 3, and the inverse expansion law 4 are stored in the hard disk or the like of the program creating device.

【0015】ユーザがマトリクス表1にマトリクスの要
素を書き込んだ後、展開処理部5が、マトリクス記述法
則2および展開法則3に基づいてマトリクスをSFCプ
ログラム7に展開する。次にコンパイル処理部8がSF
CプログラムをコンパイルしてPLC実行形式プログラ
ム10を作成する。逆コンパイル処理部9は、PCL実
行形式プログラム10をSFCプログラム7に逆コンパ
イルする。逆展開処理部6は、逆展開法則4を用いて、
SFCプログラム7をマトリクス表1に記載するマトリ
クスに変換する。変換されたマトリクスはユーザに表示
される。
After the user writes matrix elements in the matrix table 1, the expansion processing unit 5 expands the matrix into the SFC program 7 based on the matrix description law 2 and the expansion law 3. Next, the compilation processing unit 8
The C execution program is compiled to compile the C program. The decompile processing unit 9 decompiles the PCL execution format program 10 into the SFC program 7. The inverse expansion processing unit 6 uses the inverse expansion law 4 to
The SFC program 7 is converted into the matrix shown in the matrix table 1. The transformed matrix is displayed to the user.

【0016】図2にマトリクス表1の記載例を示す。同
図においてステップレコード11は、各ステップにおけ
る処理を番号で管理するためのレコードである。マトリ
クス表の第1行目には必ずステップレコード11が配置
される。12はトランジションレコードであり、次のス
テップを実行するための条件を記載する。トランジショ
ンレコード12は、ステップレコード11と交互に配置
される。
FIG. 2 shows a description example of the matrix table 1. In the figure, the step record 11 is a record for managing the processing in each step by a number. The step record 11 is always arranged in the first row of the matrix table. Reference numeral 12 is a transition record, which describes conditions for executing the next step. The transition record 12 is arranged alternately with the step record 11.

【0017】ステップレコード11における各列の1つ
の項目をステップセル13と呼ぶ。ステップセル13に
は、数字、文字Jと数字の組み合わせ、または下向きの
矢印が記入できる。トランジションレコード12におけ
る各列の1つの項目をトランジションセルと呼ぶ。トラ
ンジションセル14には、数字または下向きの矢印が記
入できる。
One item in each column in the step record 11 is called a step cell 13. A number, a combination of the letter J and the number, or a downward arrow can be written in the step cell 13. One item in each column of the transition record 12 is called a transition cell. A number or a downward arrow can be written in the transition cell 14.

【0018】図3〜図5を用いて、マトリクス表に各要
素を記述する際の取り決め、即ちマトリクス記述法則を
説明する。これらの図において、左側にプログラム処理
の流れを概念的に示す。また右側に、左側のプログラム
処理に対応するマトリクス表を示す。
The rules for describing each element in the matrix table, that is, the matrix description rule will be described with reference to FIGS. In these figures, the flow of program processing is conceptually shown on the left side. The right side shows a matrix table corresponding to the left side program processing.

【0019】(1)同一の列に連続して数字を入力する
と、各ステップレコードに記載された数字に対応する処
理が、各トランジションレコードに記載された数字に対
応する遷移条件に従って、シリアルに実行される。この
ような処理をシリアルな制御と呼ぶ。
(1) When numbers are continuously input in the same column, the process corresponding to the number described in each step record is serially executed according to the transition condition corresponding to the number described in each transition record. To be done. Such processing is called serial control.

【0020】(2)下向きの矢印は、そのセルに遷移さ
れた処理を直下に記載された処理に遷移させることを示
す。下向きの矢印のセルの上のセルに何も記載されたい
ない場合は、SFCプログラムへの展開の際に展開処理
部5がエラーを出力する。
(2) The downward arrow indicates that the process transitioned to the cell is transited to the process described immediately below. If nothing is written in the cell above the cell of the downward arrow, the expansion processing unit 5 outputs an error when expanding to the SFC program.

【0021】(3)空白のセルは、その列におけるシリ
アルな制御が切れたことを意味する。 (4)任意のステップセルに番号が記載され、直上のセ
ルが空白であり、かつ、同じレコードにおける左側のセ
ルに番号が記載されている場合は、複数の制御が並列し
て開始されることを意味する。
(3) A blank cell means that serial control in the column has been cut off. (4) If the number is written in any step cell, the cell immediately above is blank, and the number is written in the cell on the left side of the same record, multiple controls should be started in parallel. Means

【0022】(5)トランジションセルに番号が記載さ
れ、直上のセルが空白であり、かつ、同じトランジショ
ンレコードにおける左側のセルに番号が記載されている
場合は、トランジションレコードに記載された各種の条
件によりその後に書れた処理が選択的に実行さる。即
ち、選択シーケンスが開始される。
(5) When a number is described in the transition cell, the cell immediately above is blank, and the number is described in the cell on the left side in the same transition record, various conditions described in the transition record Causes the subsequent process to be selectively executed. That is, the selection sequence is started.

【0023】(6)ステップセルに番号若しくは下向き
の矢印が記載され、直下のセルが空白であり、同じレコ
ード上の左側のセルに番号若しくは下向きの矢印が記載
されている場合は、並列して実行されていた複数の制御
の一つがそのセルで終了することを示す。
(6) If the step cell has a number or a downward arrow and the cell immediately below is blank, and the cell on the left side of the same record has a number or a downward arrow, the cells are arranged in parallel. Indicates that one of the controls being executed ends in that cell.

【0024】(7)トランジションセルに番号若しくは
下向きの矢印が記載され、直下のセルが空白であり、同
じレコード上の左側のセルに番号若しくは下向きの矢印
が記載されている場合は、選択シーケンスの一つがその
トランジションセルで終了する。
(7) When a number or a downward arrow is described in the transition cell, the cell immediately below is blank, and the left cell on the same record has a number or a downward arrow, the selection sequence One ends at that transition cell.

【0025】(8)セルにJn(nは自然数)が記載さ
れている場合は、nにジャンプすることを意味する。
(8) When Jn (n is a natural number) is written in the cell, it means to jump to n.

【0026】図6を用いて、マトリクス表1に記載され
たデータをSFCプログラムへ展開する方法を説明す
る。
A method of expanding the data described in the matrix table 1 into the SFC program will be described with reference to FIG.

【0027】(1)マトリクス表1と同一の座標メッシ
ュを用意する。座標メッシュの全ての要素は、空白要素
で初期化しておく。
(1) The same coordinate mesh as the matrix table 1 is prepared. All elements of the coordinate mesh are initialized with blank elements.

【0028】(2)数字が記載されたステップセルを、
その数字をステップ番号とするSFCのステップ要素に
置き換える。
(2) The step cell in which a number is written is
The step number is replaced with the step element of SFC.

【0029】(3)数字が記載されたトランジションセ
ルを、その番号をトランジション番号とするSFCのト
ランジション要素に置き換える。
(3) A transition cell in which a number is written is replaced with a transition element of SFC whose number is the transition number.

【0030】(4)下向きの矢印をSFCのリンク要素
に置き換える。
(4) Replace the downward arrow with the link element of SFC.

【0031】(5)ステップセルまたはトランジション
セルに数字が記載され、直上のセルが空白であり、同じ
レコード上の左側のセルに番号が記載されている場合
は、その左側のセルの上のセルを分岐源とする選択分岐
要素に置き換える。左側のセルの直上のセルも空白であ
る場合は、更に左側のセルの直上のセルを分岐源とする
選択分岐要素に置き換える。
(5) When a number is written in the step cell or transition cell, the cell immediately above is blank, and the number is written in the left cell on the same record, the cell above the left cell Is replaced with a selective branch element whose branch source is. If the cell immediately above the left cell is also blank, the cell immediately above the left cell is replaced with the selected branch element having the branch source.

【0032】(6)ステップセルまたはトランジション
セルに数字若しくは下向きの矢印が記載され、直下のセ
ルが空白であり、同じレコードの左側のセルに番号若し
くは下向きの矢印が存在する場合は、その左側のセルの
直下のセルに合流する合流要素に置き換える。左側のセ
ルの直下のセルも空白である場合は、更に左側のセルの
直下のセルに合流する合流要素に置き換える。
(6) When a number or a downward arrow is described in a step cell or a transition cell, the cell directly below is blank, and a cell on the left side of the same record has a number or a downward arrow, the left side Replace with a merging element that joins the cell directly below the cell. If the cell immediately below the left cell is also blank, it is replaced with a confluence element that merges with the cell immediately below the left cell.

【0033】(7)Jn(nは自然数)と記載されたセ
ルのデータは、ジャンプ先のステップがnのジャンプ要
素に置き換える。また番号nのセルは、連結要素付きの
ステップ要素にする。
(7) The cell data described as Jn (n is a natural number) is replaced with a jump element whose jump destination step is n. The cell with the number n is a step element with a connecting element.

【0034】(8)空白セルに対応する座標の要素は、
操作しない。
(8) The element of the coordinates corresponding to the blank cell is
Do not operate.

【0035】(9)展開用のメッシュ上で、分岐、合
流、および連結の各要素は独立に1座標を占有させな
い。
(9) On the mesh for expansion, each element of branching, joining, and connecting does not occupy one coordinate independently.

【0036】本発明プログラミング装置は、以上のステ
ップによりマトリクス表に記載されたデータに基づい
て、SFCプログラムを作成する。
The programming device of the present invention creates an SFC program based on the data described in the matrix table by the above steps.

【0037】図7を用いて、SFCプログラムからマト
リクスデータへ逆展開する方法を説明する。
A method of decompressing an SFC program into matrix data will be described with reference to FIG.

【0038】1、図7の上部に示すように、SFCプロ
グラムの図面上に表を記載する。このとき、分岐および
合流はトランジション要素側に含ませ、1座標として扱
う。また、SFCプログラムに重ねた表と同じ大きさの
マトリクス表を用意する。マトリクスの全てのメッシュ
は、予め空白要素で初期化しておく。
1. As shown in the upper part of FIG. 7, a table is described on the drawing of the SFC program. At this time, branching and merging are included on the transition element side and treated as one coordinate. Also, prepare a matrix table having the same size as the table overlaid on the SFC program. All meshes in the matrix are initialized with blank elements in advance.

【0039】2、表の各要素に含まれる数字(番号)の
みを抽出し、各要素に対応したマトリクス表上のセルに
その番号を展開する。
2. Only the numbers (numbers) contained in each element of the table are extracted, and the numbers are expanded in the cells on the matrix table corresponding to each element.

【0040】3、ジャンプ要素に対応する展開されたセ
ルに記載された番号の先頭に、Jを付加する。
3. J is added to the head of the number described in the expanded cell corresponding to the jump element.

【0041】4、連結要素に対応するセルには、下向き
の矢印を記載する。
4. A downward arrow is described in the cell corresponding to the connecting element.

【0042】5、空白座標に対応するセルは、操作しな
い。
5. The cells corresponding to the blank coordinates are not operated.

【0043】本発明プログラミング装置は、以上のステ
ップによりSFCプログラムをPLC実行形式のプログ
ラムを作成する。
The programming device of the present invention creates the SFC program in the PLC execution format by the above steps.

【0044】本発明プログラミング装置は、表形式のデ
ータを入力して表示し、上記の展開法則に基づいて図形
式のSFCプログラムに展開し、その後にSFCプログ
ラムをPLC実行形式のプログラムにコンパイルする。
またPLC実行形式のプログラムを、図形式のSFCプ
ログラムに逆コンパイルし、SFCプログラムを上記の
逆展開法則に基づいて表形式のデータに逆展開する。S
FCプログラムをPLC実行形式のプログラムにコンパ
イルする方法、およびPLC実行形式のプログラムをS
FCプログラムに逆コンパイルする方法は周知なので説
明を省略する。
The programming device of the present invention inputs and displays the data in the tabular form, develops it into the SFC program in the graphic form based on the above expansion law, and then compiles the SFC program into the program in the PLC execution form.
Further, the PLC execution format program is decompiled into a graphic SFC program, and the SFC program is inversely expanded into tabular data based on the above inverse expansion rule. S
Method for compiling FC program into PLC execution format program, and PLC execution format program
Since the method of decompiling an FC program is well known, its explanation is omitted.

【0045】[0045]

【発明の効果】以上説明したように、本発明によれば、
マトリクス表へデータを入力するのみで、SFCプログ
ラムを作成することができる。特に、SFCプログラム
を詳細に理解しないユーザでも、マトリクス表への記述
法則を理解すれば、文字を表に記入するのみで簡単にS
FCプログラムを作成することができる。従って、図形
エディタを使用していた従来の打ち込み作業の負担を大
幅に軽減することができる。また、入力データを単純に
することによりプログラマの教育の負担を軽減すること
ができる。更には、プログラミング作業の際に発生する
入力ミス等の人為的なミスを解消し、PLCアプリケー
ションの開発作業の効率を大幅に高めることができる。
As described above, according to the present invention,
The SFC program can be created only by inputting the data into the matrix table. In particular, even a user who does not understand the SFC program in detail can easily understand the rules for describing in the matrix table by simply entering the characters in the table.
FC programs can be created. Therefore, it is possible to significantly reduce the burden of the conventional typing work that uses the graphic editor. In addition, by simplifying the input data, it is possible to reduce the burden of programmer education. Further, it is possible to eliminate human mistakes such as input mistakes that occur during programming work and significantly improve the efficiency of PLC application development work.

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

【図1】本発明プログラム作成装置の機能構成を示す機
能ブロック図である。
FIG. 1 is a functional block diagram showing a functional configuration of a program creating device of the present invention.

【図2】マトリクス表1の例示図である。FIG. 2 is an exemplary view of a matrix table 1.

【図3】マトリクス記述法則を説明するである説明図で
ある。
FIG. 3 is an explanatory diagram illustrating a matrix description rule.

【図4】マトリクス記述法則を説明するである説明図で
ある。
FIG. 4 is an explanatory diagram illustrating a matrix description law.

【図5】マトリクス記述法則を説明するである説明図で
ある。
FIG. 5 is an explanatory diagram illustrating a matrix description rule.

【図6】マトリクス表1に記載されたデータをSFCプ
ログラムへ展開する方法の説明図である。
FIG. 6 is an explanatory diagram of a method of expanding the data described in matrix table 1 into an SFC program.

【図7】SFCプログラムからマトリクスデータへ逆展
開する方法の説明図である。
FIG. 7 is an explanatory diagram of a method of inversely expanding an SFC program into matrix data.

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

1 マトリクス表 2 マトリクス記述法則 3 展開法則 4 逆展開法則 5 展開処理部 6 逆展開処理部 7 SFCプログラム 8 コンパイル処理部 9 逆コンパイル処理部 10 PLC実行形式プログラム 11 ステップレコード 12 トランジションレコード 13 ステップセル 14 トランジションセル 1 Matrix Table 2 Matrix Description Law 3 Expansion Law 4 Inverse Expansion Law 5 Expansion Processor 6 Reverse Expansion Processor 7 SFC Program 8 Compile Processor 9 Decompiler 10 PLC Execution Program 11 Step Record 12 Transition Record 13 Step Cell 14 Transition cell

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 表形式のデータを入力することによって
プログラマブルコントローラをプログラムするプログラ
ミング装置であって、 前記表形式のデータを入力する入力手段と、 前記表形式のデータを表示する表示手段と、 前記表形式のデータを前記プログラマブルコントローラ
が実行することのできる実行形式プログラムに変換する
変換手段とを備えたことを特徴とするプログラミング装
置。
1. A programming device for programming a programmable controller by inputting tabular data, input means for inputting the tabular data, display means for displaying the tabular data, A programming device, comprising: a conversion unit that converts tabular data into an executable program that can be executed by the programmable controller.
【請求項2】 請求項1に記載のプログラミング装置に
おいて、前記変換手段は、 前記表形式のデータを、図形式のSFCプログラムに展
開する展開処理部と、 前記表形式のデータの各要素と前記SFCプログラムの
各要素とを関連づけるデータおよび前記表形式のデータ
の配列と前記SFCプログラムにおける処理の流れとを
関係づけるデータを含む展開法則を格納する格納手段
と、 SFCプログラムをプログラマブルコントローラの実行
形式プログラムにコンパイルするコンパイル処理部とを
有し、 前記展開処理部は、前記展開法則に基づいて前記表形式
のデータを前記SFCプログラムに展開することを特徴
とするプログラミング装置。
2. The programming device according to claim 1, wherein the conversion unit expands the tabular data into an SFC program in a graphic format, each element of the tabular data, and the expansion processing unit. A storage unit for storing an expansion law including data associating each element of the SFC program and an array of the data in the tabular format with a flow of processing in the SFC program, and an execution format program of the programmable controller for the SFC program And a compiling processing unit for compiling the data into the SFC program according to the expansion law.
【請求項3】 請求項1または2に記載のプログラミン
グ装置において、 プログラマブルコントローラの実行形式プログラムを表
形式のデータに逆変換する逆変換手段を更に備えたこと
を特徴とするプログラミング装置。
3. The programming device according to claim 1, further comprising an inverse conversion unit that inversely converts the execution format program of the programmable controller into tabular data.
【請求項4】 請求項3に記載のプログラミング装置に
おいて前記逆変換手段は、 前記プログラマブルコントローラの実行形式のプログラ
ムを、図形式のSFCプログラムに逆コンパイルする逆
コンパイル処理部と、 前記SFCプログラムを前記表形式のデータに逆展開す
る逆展開処理部と、 前記SFCプログラムの各要素と前記表形式のデータの
各要素とを関連づけるデータおよび前記SFCプログラ
ムにおける処理の流れと前記表形式のデータの配列とを
関係づけるデータを含む逆展開法則格納手段とを有し、 前記逆展開処理部は、前記逆展開法則に基づいて前記S
FCプログラムを前記表形式のデータに展開することを
特徴とするプログラミング装置。
4. The programming device according to claim 3, wherein the inverse conversion unit decompiles an executable program of the programmable controller into a graphic SFC program, and the SFC program is decompiled. A decompression processing unit for decompressing into tabular data, data associating each element of the SFC program with each element of the tabular data, a processing flow in the SFC program, and an array of the tabular data And an inverse expansion rule storage unit that includes data relating to S, the inverse expansion processing unit based on the inverse expansion rule.
A programming device for developing an FC program into the data in the table format.
【請求項5】 請求項2から4のいずれかに記載のプロ
グラミング装置において前記表形式のデータは、 前記プログラミングコントローラが外部に対して実行す
る外部処理を記載するステップレコード記載部分と、 前記プログラミングコントローラが前記外部処理を実行
する条件を記載するトランジションレコード記載部分と
を有し、前記展開法則は、 前記表形式のデータが記載された表の大きさと同一の大
きさの座標形式のメッシュを用意するメッシュ作成手段
と、 前記座標形式のメッシュの全ての要素を初期化する初期
化手段と、 前記ステップレコード記載部分における数字が記載され
た要素を、その数字で特定されるSFCのステップ要素
に置き換える第1の置き換え手段と、 前記トランジションレコード記載部分における数字が記
載された要素を、その数字で特定されるSFCのトラン
ジショント要素に置き換える第2の置き換え手段と、 前記ステップレコードまたは前記トランジションレコー
ドに記載された下向きの矢印をSFCのリンク要素に置
き換える第3の置き換え手段と、 数字が記載されたステップセルまたはトランジションセ
ルの直上のセルが空白である場合は、当該ステップセル
またはトランジションセルを、当該ステップセルまたは
トランジションセルの左側の数字が付与されているセル
であって、直上のセルが空白でないセルの、当該直上の
セルを分岐源とする選択分岐要素に置き換える第4の置
き換え手段と、 数字若しくは下向きの矢印が付与されたステップセルま
たはトランジションセルの直下のセルが空白である場合
は、当該ステップセルまたは当該トランジションセル
を、当該ステップセルまたは当該トランジションセルの
左側の数字が付与されているセルであって、直下のセル
が空白でないセルの、当該直下のセルに合流する合流要
素に置き換える第5の置き換え手段と、 Jn(nは自然数)と記載されたセルのデータを、SF
Cプログラムにおけるnで特定されるステップセルへの
ジャンプ要素に置き換え、当該nで特定されるステップ
セルをSFCプログラムにおける連結要素付きのステッ
プ要素に置き換える第6の置き換え手段とを有すること
を特徴とするプログラミング装置。
5. The programming device according to claim 2, wherein the tabular data includes a step record description portion that describes an external process executed by the programming controller to the outside, and the programming controller. Has a transition record description part that describes a condition for executing the external processing, and the expansion law prepares a mesh in a coordinate format having the same size as the size of the table in which the data in the table format is described. A mesh creating means; an initialization means for initializing all elements of the mesh in the coordinate format; and an element in which a number is described in the step record description part is replaced with an SFC step element specified by the number. The replacement means of 1 and the number in the transition record description part are described. Second replacement means for replacing the listed element with a transition element of the SFC specified by the number, and a third replacement means for replacing the downward arrow described in the step record or the transition record with the link element of the SFC. If the replacement means and the cell immediately above the step cell or transition cell in which the number is written are blank, the step cell or transition cell is the cell to which the number to the left of the step cell or transition cell is given. There is a fourth replacement means for replacing the immediately above cell with a non-blank cell with the selected branch element having the immediately above cell as a branch source, and a step cell or a transition cell immediately below a step cell or a transition cell to which a number or a downward arrow is given. If the cell is blank, the step cell Replaces the transition cell with a confluence element that merges with the cell directly below, which is a cell to which the number on the left side of the step cell or the transition cell is given and the cell directly below is a non-blank cell. The replacement means and the cell data described as Jn (n is a natural number)
Sixth replacement means for replacing the step cell specified by n in the C program with the jump element to the step cell specified by n, and replacing the step cell specified by n with the step element with the connecting element in the SFC program. Programming device.
JP13228994A 1994-06-14 1994-06-14 Programming device Expired - Fee Related JP3171363B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13228994A JP3171363B2 (en) 1994-06-14 1994-06-14 Programming device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13228994A JP3171363B2 (en) 1994-06-14 1994-06-14 Programming device

Publications (2)

Publication Number Publication Date
JPH07334216A true JPH07334216A (en) 1995-12-22
JP3171363B2 JP3171363B2 (en) 2001-05-28

Family

ID=15077811

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13228994A Expired - Fee Related JP3171363B2 (en) 1994-06-14 1994-06-14 Programming device

Country Status (1)

Country Link
JP (1) JP3171363B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002323912A (en) * 2001-04-26 2002-11-08 Fuji Electric Co Ltd Device and method for generating program specification and sequence control system
CN107024900A (en) * 2015-10-21 2017-08-08 Ls 产电株式会社 The method of optimal compiling PLC orders
WO2017203563A1 (en) * 2016-05-23 2017-11-30 三菱電機株式会社 Sequence control device
CN108375952A (en) * 2018-03-08 2018-08-07 山东超越数控电子股份有限公司 A kind of PLC continuous functions schema compiler and explain method and apparatus

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002323912A (en) * 2001-04-26 2002-11-08 Fuji Electric Co Ltd Device and method for generating program specification and sequence control system
CN107024900A (en) * 2015-10-21 2017-08-08 Ls 产电株式会社 The method of optimal compiling PLC orders
CN107024900B (en) * 2015-10-21 2020-06-19 Ls 产电株式会社 Method for optimally compiling PLC commands
WO2017203563A1 (en) * 2016-05-23 2017-11-30 三菱電機株式会社 Sequence control device
CN109154804A (en) * 2016-05-23 2019-01-04 三菱电机株式会社 sequence control device
CN109154804B (en) * 2016-05-23 2021-02-02 三菱电机株式会社 Sequence control device
CN108375952A (en) * 2018-03-08 2018-08-07 山东超越数控电子股份有限公司 A kind of PLC continuous functions schema compiler and explain method and apparatus

Also Published As

Publication number Publication date
JP3171363B2 (en) 2001-05-28

Similar Documents

Publication Publication Date Title
US5504902A (en) Multi-language generation of control program for an industrial controller
US7484200B2 (en) Automatically analyzing and modifying a graphical program
JP4265132B2 (en) System for designing visual information displayed on a monitor unit used in combination with a programmable controller for controlling the operation of a connected device
JPH08221107A (en) Sequence control program generating device
JP4876537B2 (en) Programmable controller programming device
JPH07334216A (en) Programming device
JP2671793B2 (en) Program generator usage specification simulation method and apparatus
JP3697274B2 (en) Software development support device
Döring et al. On the Usefulness of Animated Structograms in Teaching Algorithms and Programming
JP2859511B2 (en) Program creation support device and program creation support method
JP2000029677A (en) Automatic generating device for screen constitution
JP2003140714A (en) Graphic language program preparing program and its device
JPH052477A (en) Graphical user interface preparing system
JP3696906B2 (en) Data input method and apparatus
JP2004021831A (en) Display device, drawing device for display device, drawing program, and recording medium recording the program
JPH04294424A (en) Interactive screen controller for computer system
JPH08194510A (en) Programming device
JP2700013B2 (en) Compiler for user program for programmable controller
JP3025984B2 (en) Logical operation control unit
JPH04290168A (en) Simulation device and display method for its simulation result
JP2973906B2 (en) Character user interface device
JPH0484328A (en) Program preparing device
JPH07129080A (en) Sfc input system
KR20090078697A (en) Multi platform-based user interface creation method, corresponding device using container layout model and computer readable media containing computer executable commands for the method
JP2004258264A (en) Method and device for picture generation, and display device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees