JP3171363B2 - Programming device - Google Patents

Programming device

Info

Publication number
JP3171363B2
JP3171363B2 JP13228994A JP13228994A JP3171363B2 JP 3171363 B2 JP3171363 B2 JP 3171363B2 JP 13228994 A JP13228994 A JP 13228994A JP 13228994 A JP13228994 A JP 13228994A JP 3171363 B2 JP3171363 B2 JP 3171363B2
Authority
JP
Japan
Prior art keywords
program
data
record
sfc
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.)
Expired - Fee Related
Application number
JP13228994A
Other languages
Japanese (ja)
Other versions
JPH07334216A (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.)
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)

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 apparatus for simplifying a programming step (program input step) performed after designing an application program for 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, a PLC programming language (ladder, instruction list,
Instead of programming by FBC or the like, programming using SFC elements is performed. The SFC is a graphic element. The user understands the processing contents of various graphic elements (SFC elements), arranges the SFC elements on an editor, and connects them with graphic symbols (lines) to define a program. You. Programming is performed by compiling an array of defined SFC elements and graphic symbol data.

【0003】[0003]

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

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

【0005】[0005]

【課題を解決するための手段】このような目的を達成す
るために、請求項1に記載の発明は、表形式のデータを
入力して、プログラマブルコントローラの実行形式プロ
グラムに変換するプログラミング装置において、前記表
形式のデータの各要素を図形式のSFCプログラムの各
要素に置き換えて、前記表形式のデータの配列を前記S
FCプログラムにおける処理の流れに展開するための展
開データを格納する格納手段と、前記表形式のデータが
記載された表の大きさと同一の大きさの展開用メッシュ
を作成し、前記展開データに基づいて、前記表形式のデ
ータを前記SFCプログラムに展開する展開処理手段
と、該展開処理手段で展開された前記SFCプログラム
をプログラマブルコントローラの実行形式プログラムに
コンパイルするコンパイル処理手段とを備え、前記表形
式のデータは、前記プログラマブルコントローラが外部
に対して実行する外部処理を記載するステップレコード
と、前記プログラマブルコントローラが前記外部処理を
実行する条件を記載するトランジションレコードとを有
し、前記展開データは、前記ステップレコードにおける
数字が記載された要素を、その数字で特定される前記S
FCプログラムのステップ要素に置き換えるための第1
のデータと、前記トランジションレコードにおける数字
が記載された要素を、その数字で特定される前記SFC
プログラムのトランジション要素に置き換えるための第
2のデータと、前記ステップレコードまたは前記トラン
ジションレコードにおける下向きの矢印が記載された要
素を、前記SFCプログラムのリンク要素に置き換える
ための第3のデータと、前記ステップレコードまたは前
記トランジションレコードにおける数字が記載された要
素の直上の要素が空白である場合には、前記直上の要素
の左側にある数字が記載された要素を分岐元とし、前記
数字が記載された要素を前記SFCプログラムの選択分
岐要素に置き換えるための第4のデータと、前記ステッ
プレコードまたは前記トランジションレコードにおける
数字または下向きの矢印が記載された要素の直下の要素
が空白である場合には、前記直下の要素の左側にある数
字が記載された要素を合流先とし、前記数字または下向
きの矢印が記載された要素を前記SFCプログラムの合
流要素に置き換えるための第5のデータと、前記ステッ
プレコードにおけるジャ ンプ命令が記載された要素を前
記SFCプログラムのジャンプ要素に置き換え、かつ、
前記ジャンプ命令に記載されたジャンプ先の要素を前記
SFCプログラムの連結要素付きのステップ要素に置き
換えるための第6のデータとを有し、前記展開処理手段
は、前記展開用メッシュの全ての要素を空白の要素に初
期化する初期化手段を有することを特徴とする。
In order to achieve such an object, the invention according to claim 1 is a method for converting tabular data.
Enter the executable program of the programmable controller
In a programming device for converting to a gram,
Each element of the data in the format
The table data array is replaced with the S
Exhibition to expand on the flow of processing in FC programs
Storage means for storing the open data; and
Deployment mesh of the same size as the size of the described table
And based on the expanded data, the tabular data
Expansion processing means for expanding data into the SFC program
And the SFC program expanded by the expansion processing means
Into an executable program for a programmable controller
Compiling means for compiling, the table form
The data of the formula is obtained when the programmable controller
Record that describes the external processing to be performed on the
And the programmable controller performs the external processing.
There is a transition record that describes the conditions to be executed.
The expansion data is stored in the step record.
The element in which a number is described is replaced with the S specified by the number.
The first to replace with step element of FC program
Data and the numbers in the transition record
The element described with the above, the SFC specified by the number
No. to replace with transition elements of the program
2 and the step record or the transaction
Must have a down arrow on the state record
Element to the link element of the SFC program
Third data for the step record or previous
Required that the numbers in the transition record
If the element immediately above the element is blank, the element immediately above the element
The element with the number on the left of
The numbered elements are selected by the SFC program.
Fourth data to be replaced with a fork element;
Record or the transition record
The element immediately below the element with the number or down arrow
Is blank, the number to the left of the element immediately below
The element where the letter is written is the merging destination, and the number or downward
The element with the arrow in it is combined with the SFC program.
Fifth data to be replaced with flow elements and the step
Before the elements jump instruction is described in the precoded
Replace with the jump element of the SFC program, and
The jump destination element described in the jump instruction is
Place in the step element with the connection element of the SFC program
And the sixth processing means for changing
Replaces all elements of the deployment mesh with blank elements
It is characterized by having initialization means for initializing .

【0006】請求項2に記載の発明は、プログラマブル
コントローラの実行形式プログラムを表形式のデータに
逆変換するプログラミング装置において、前記プログラ
マブルコントローラの前記実行形式のプログラムを、図
形式のSFCプログラムに逆コンパイルする逆コンパイ
ル処理手段と、前記SFCプログラムの各要素を前記表
形式のデータの各要素に置き換え、前記SFCプログラ
ムにおける処理の流れを前記表形式のデータの配列に逆
展開するための逆展開データを格納する格納手段と、前
記SFCプログラム前記図形式の大きさと同一の大きさ
の逆展開用メッシュを作成し、前記逆展開データに基づ
いて、前記逆コンパイル処理手段で逆コンパイルされた
前記SFCプログラムを前記表形式のデータに逆展開す
る逆展開処理手段とを備え、前記表形式のデータは、前
記プログラマブルコントローラが外部に対して実行する
外部処理を記載するステップレコードと、前記プログラ
マブルコントローラが前記外部処理を実行する条件を記
載するトランジションレコードとを有し、前記逆展開デ
ータは、前記SFCプログラムのステップ要素を、前記
ステップレコードにおける前記ステップ要素から抽出さ
れた数字が記載された要素に置き換えるための第1のデ
ータと、前記SFCプログラムのトランジション要素
を、前記トランジションレコードにおける前記トランジ
ション要素から抽出された数字が記載された要素に置き
換えるための第2のデータと、前記SFCプログラムの
リンク要素を前記ステップレコードまたは前記トランジ
ションレコードにおける下向きの矢印が記載された要素
に置き換えるための第3のデータと、前記SFCプログ
ラムのジャンプ要素を前記ステップレコードにおけるジ
ャンプ命令が記載された要素に置き換えるための第4の
データとを有し、前記展開処理手段は、前記逆展開用メ
ッシュの全ての要素を空白の要素に初期化する初期化手
段を有することを特徴とする。
According to a second aspect of the present invention, a programmable
Converting the controller's executable program into tabular data
In a programming device for performing inverse conversion, the program
The executable form program of the mable controller is
Compile to decompile to SFC program of the form
File processing means and each element of the SFC program in the table.
Replace with each element of the format data, and
Reverse the flow of processing in the system to the array of tabular data
Storage means for storing de-expanded data for decompression;
SFC program The same size as the figure format
Create a mesh for inverse expansion of
And decompiled by the decompile processing means.
Decompress the SFC program into the tabular data
Reverse-expansion processing means, wherein the tabular data is
The programmable controller executes externally
A step record describing the external processing and the program
The conditions for the external controller to execute the external processing are described.
And a transition record to be loaded.
Data, the step elements of the SFC program
Extracted from the step element in the step record
The first data for replacing the entered numbers with the listed elements.
Data and transition elements of the SFC program
Is the transition in the transition record.
Place the number extracted from the
Second data to be exchanged and the SFC program
Link element to the step record or the transition
Element with a down arrow in the action record
Third data to be replaced with the SFC program
The jump element of the ram is
A fourth instruction for replacing the jump instruction with the described element
And the expansion processing means includes the reverse expansion method.
Initialization method that initializes all elements of the hash to blank elements
It is characterized by having a step .

【0007】[0007]

【0008】[0008]

【0009】[0009]

【0010】[0010]

【作用】本発明によれば、表形式のデータを入力して表
示し、プログラマブルコントローラが実行することので
きる実行形式プログラムに変換するので、表形式のデー
タの記載方法を修得するだけでPLCをプログラミング
できる。従って、SFCプログラムを詳細に理解しない
ユーザでも、マトリクス表への記述法則を理解すれば、
文字を表に記入するのみで簡単にSFCプログラムを作
成することができる。
According to the present invention, table-format data is input and displayed, and is converted into an executable program that can be executed by the programmable controller. Can be programmed. Therefore, do not understand the SFC program in detail
Even if the user understands the description rules for the matrix table,
You can easily create SFC programs simply by entering characters in the table.
Can be achieved.

【0011】また本発明によれば、PLC実行形式プロ
グラムを表形式のデータに逆変換することにより、既に
作成されたPLCプログラム表形式のデータとして表
示されるので、容易にプログラムを変更することができ
る。また、PLC実行形式のプログラムを、図形式のS
FCプログラムに逆コンパイルしてから表形式のデータ
に逆展開するので、PLCプログラムの変更容易にな
る。
[0011] According to the present invention, display the PLC executable program by inversely converting the tabular data, PLC program already created as a tabular data
Since it is shown , the program can be easily changed. Also, the program in the PLC execution format is converted to
Since it is decompiled into an FC program and then decompressed into tabular data, it is easy to change the PLC program.

【0012】[0012]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments of the present invention will be described below 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は逆展開処理部であり、SFCプログラム7
をマトリクス表1に記載するマトリクスに逆展開する。
FIG. 1 is a functional block diagram showing a functional configuration of the program creating apparatus of the present invention. In FIG. 1, 1 is
The same size as the size of the table containing the tabular data
Is a matrix table, which is a mesh for development, and is displayed on the screen of the program creation device of the present invention. Reference numeral 2 denotes a matrix description rule, which has a rule indicating the meaning of each element and the arrangement of the elements described in the matrix table 1. 3 expands
This is an expansion rule in which data is described, and has a rule for expanding the matrix described in the matrix table 1 to the SFC. Reference numeral 4 denotes a reverse expansion rule in which reverse expansion data is described , and has a rule for reverse expansion of the SFC program 7 into the matrix table 1. Reference numeral 5 denotes an expansion processing unit, which expands the matrix described in the matrix table 1 into the SFC program 7 based on the matrix description rule 2 and the expansion rule 3. Reference numeral 6 denotes a reverse expansion processing unit, which is an SFC program 7
To the matrix described in Matrix Table 1.

【0014】7はSFCプログラムであり、メモリに格
納されると共に表示画面に表示される。8はコンパイル
処理部であり、SFCプログラムをPCLの実行形式の
プログラムにコンパイルする。9は逆コンパイル処理部
であり、PCL実行形式プログラムを、SFCプログラ
ム7に逆コンパイルする。マトリクス記述法則2、展開
法則3、および逆展開法則4はプログラム作成装置のハ
ードディスク等に格納されている。
Reference numeral 7 denotes an SFC program which is stored in a memory and displayed on a display screen. Reference numeral 8 denotes a compile processing unit which compiles the SFC program into a PCL executable program. Reference numeral 9 denotes a decompile processing unit which decompiles the PCL executable program into the SFC program 7. The matrix description rule 2, the expansion rule 3, and the inverse expansion rule 4 are stored in a 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 the elements of the matrix into the matrix table 1, the expansion processing unit 5 expands the matrix into the SFC program 7 based on the matrix description rule 2 and the expansion rule 3. Next, the compile processing unit 8
The C program is compiled to create the PLC executable program 10. The decompile processing unit 9 decompiles the PCL executable format program 10 into the SFC program 7. The inverse expansion processing unit 6 uses the inverse expansion rule 4 to
The SFC program 7 is converted into a matrix described 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, a step record 11 is a record for managing processing in each step by number. A step record 11 is always arranged in the first row of the matrix table. A transition record 12 describes conditions for executing the next step. The transition records 12 are arranged alternately with the step records 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. In the step cell 13, a number, a combination of a letter J and a number, or a downward arrow can be written. One item in each column in 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 rules for describing the matrix, will be described with reference to FIGS. In these figures, the flow of the program processing is conceptually shown on the left side. The right side shows a matrix table corresponding to the program processing on the left side.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

【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プログラムからマト
リクスデータへ逆展開する方法を説明する。
Referring to FIG. 7, a method of reversely developing an SFC program into matrix data will be described.

【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, the branch and the merge are included in the transition element side and are handled as one coordinate. Also, a matrix table having the same size as the table superimposed on the SFC program is prepared. All the meshes of the matrix are initialized in advance with blank elements.

【0039】2、表の各要素に含まれる数字(番号)の
みを抽出し、各要素に対応したマトリクス表上のセルに
その番号を展開する。
2. Extract only the numbers (numbers) contained in each element of the table and develop the numbers 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. The cell corresponding to the connecting element is indicated by a downward arrow.

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

【0043】本発明プログラミング装置は、以上のステ
ップによりSFCプログラムをPLC実行形式のプログ
ラムを作成する。
The programming device of the present invention creates an SFC program in a 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 tabular data, develops it into a diagram-form SFC program based on the above-mentioned development rules, and then compiles the SFC program into a PLC execution format program.
Further, the program in the PLC execution format is decompiled into an SFC program in a diagram format, and the SFC program is decompressed into tabular data based on the above-described rule of decompression. S
Method of compiling FC program into PLC executable program, and converting PLC executable program to S
Since the method of decompiling into an FC program is well known, its description is omitted.

【0045】[0045]

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

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

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

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

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

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

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

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

【図7】SFCプログラムからマトリクスデータへ逆展
開する方法の説明図である。
FIG. 7 is an explanatory diagram of a method of reversely developing 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 トランジションセル Reference Signs List 1 matrix table 2 matrix description rule 3 expansion rule 4 inverse expansion rule 5 expansion processing unit 6 reverse expansion processing unit 7 SFC program 8 compile processing unit 9 decompile processing unit 10 PLC execution format program 11 step record 12 transition record 13 step cell 14 Transition cell

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 表形式のデータを入力して、プログラマ
ブルコントローラの実行形式プログラムに変換するプロ
グラミング装置において、 前記表形式のデータの各要素を図形式のSFCプログラ
ムの各要素に置き換えて、前記表形式のデータの配列を
前記SFCプログラムにおける処理の流れに展開するた
めの展開データを格納する格納手段と、 前記表形式のデータが記載された表の大きさと同一の大
きさの展開用メッシュを作成し、前記展開データに基づ
いて、前記表形式のデータを前記SFCプログラムに展
開する展開処理手段と、 該展開処理手段で展開された前記SFCプログラムを前
記プログラマブルコントローラの前記実行形式プログラ
ムにコンパイルするコンパイル処理手段とを備え、 前記表形式のデータは、前記プログラマブルコントロー
ラが外部に対して実行する外部処理を記載するステップ
レコードと、前記プログラマブルコントローラが前記外
部処理を実行する条件を記載するトランジションレコー
ドとを有し、 前記展開データは、前記ステップレコードにおける数字
が記載された要素を、その数字で特定される前記SFC
プログラムのステップ要素に置き換えるための第1のデ
ータと、前記トランジションレコードにおける数字が記
載された要素を、その数字で特定される前記SFCプロ
グラムのトランジション要素に置き換えるための第2の
データと、前記ステップレコードまたは前記トランジシ
ョンレコードにおける下向きの矢印が記載された要素
を、前記SFCプログラムのリンク要素に置き換えるた
めの第3のデータと、前記ステップレコードまたは前記
トランジションレコードにおける数字が記載された要素
の直上の要素が空白である場合には、前記直上の要素の
左側にある数字が記載された要素を分岐元とし、前記数
字が記載された要素を前記SFCプログラムの選択分岐
要素に置き換えるための第4のデータと、前記ステップ
レコードまたは前記トランジションレコードにおける数
字または下向きの矢印が記載された要素の直下の要素が
空白である場合には、前記直下の要素の左側にある数字
が記載された要素を合流先とし、前記数字または下向き
の矢印が記載された要素を前記SFCプログラムの合流
要素に置 き換えるための第5のデータと、前記ステップ
レコードにおけるジャンプ命令が記載された要素を前記
SFCプログラムのジャンプ要素に置き換え、かつ、前
記ジャンプ命令に記載されたジャンプ先の要素を前記S
FCプログラムの連結要素付きのステップ要素に置き換
えるための第6のデータとを有し、 前記展開処理手段は、前記展開用メッシュの全ての要素
を空白の要素に初期化する初期化手段を有することを特
徴とするプログラミング装置。
1. A programmer that inputs data in a table format and
Program to convert to the executable program of the
In the gramming device, each element of the tabular data is converted into a diagram- format SFC program.
Replace the data array in the tabular format with
Developed into the processing flow in the SFC program
Storage means for storing expanded data for storing data in the form of a table having the same size as the table in which the data in the table format is described.
Create a mesh for deployment of the size and based on the deployment data
And spreads the tabular data in the SFC program.
Expansion processing means to be opened and the SFC program expanded by the expansion processing means
The executable program of the programmable controller
Compilation processing means for compiling the program into a program, wherein the tabular data is stored in the programmable controller.
Steps to describe external processing that is executed by external
Record and the programmable controller
Transition record that describes the conditions for executing the copy process
And the expansion data is a numeral in the step record.
The element described with the above, the SFC specified by the number
First data to replace with step elements of the program
Data and the numbers in the transition record
The listed elements are replaced by the SFC profile identified by that number.
The second to replace the transition element in grams
Data and the step record or the transition
Element with a down arrow in the action record
Is replaced with the link element of the SFC program.
Third data for the step record or the
Elements with numbers in transition records
If the element immediately above is blank,
The element with the number on the left side is the branch source, and the number
Select branch of the SFC program with elements in which characters are described
Fourth data to be replaced with an element;
Record or number in the transition record
The element immediately below the element with the letter or down arrow is
If blank, the number to the left of the element immediately below
With the element marked with, the number or downward
Merge the elements marked with arrows with the SFC program
A fifth data for changing place it elements, said step
The element with the jump instruction in the record is
Replace with jump element of SFC program and before
The jump destination element described in the jump instruction
Replace with step element with connection element of FC program
And the expansion processing means includes: all elements of the expansion mesh.
Has an initializing means for initializing
Programming device to be featured.
【請求項2】 プログラマブルコントローラの実行形式
プログラムを表形式のデータに逆変換するプログラミン
グ装置において、 前記プログラマブルコントローラの前記実行形式のプロ
グラムを、図形式のSFCプログラムに逆コンパイルす
る逆コンパイル処理手段と、 前記SFCプログラムの各要素を前記表形式のデータの
各要素に置き換え、前記SFCプログラムにおける処理
の流れを前記表形式のデータの配列に逆展開するための
逆展開データを格納する格納手段と、 前記SFCプログラム前記図形式の大きさと同一の大き
さの逆展開用メッシュを作成し、前記逆展開データに基
づいて、前記逆コンパイル処理手段で逆コンパイルされ
た前記SFCプログラムを前記表形式のデータに逆展開
する逆展開処理手段とを備え、 前記表形式のデータは、前記プログラマブルコントロー
ラが外部に対して実行する外部処理を記載するステップ
レコードと、前記プログラマブルコントローラが前記外
部処理を実行する条件を記載するトランジションレコー
ドとを有し、 前記逆展開データは、前記SFCプログラムのステップ
要素を、前記ステップレコードにおける前記ステップ要
素から抽出された数字が記載された要素に置き換えるた
めの第1のデータと、前記SFCプログラムのトランジ
ション要素を、前記トランジションレコードにおける前
記トランジション要素から抽出された数字が記載された
要素に置き換えるための第2のデータと、前記SFCプ
ログラムのリンク要素を前記ステップレコードまたは前
記トランジションレコードにおける下向きの矢印が記載
された要素に置き換えるための第3のデータと、前記S
FCプログラムのジャンプ要素を前記ステップレコード
におけるジャンプ命令が記 載された要素に置き換えるた
めの第4のデータとを有し、 前記展開処理手段は、前記逆展開用メッシュの全ての要
素を空白の要素に初期化する初期化手段を有することを
特徴とするプログラミング装置。
2. An executable form of a programmable controller.
Program that converts programs back to tabular data
A program for executing the executable form of the programmable controller.
Decompiles the program into a graphical SFC program
Decompilation processing means for converting each element of the SFC program into
Replace with each element and process in the SFC program
To reverse-expand the flow of data into an array of tabular data
Storage means for storing the decompressed data, the SFC program having the same size as the figure format
Create a mesh for reverse expansion, based on the reverse expansion data
And decompiled by the decompile processing means.
Reversely expands the SFC program into tabular data
Reverse-expansion processing means, wherein the tabular data is stored in the programmable controller.
Steps to describe external processing that is executed by external
Record and the programmable controller
Transition record that describes the conditions for executing the copy process
And the reverse expansion data is a step of the SFC program.
The element in the step record in the step record.
Replace the number extracted from the element with the described element
First data and the transition of the SFC program
Transition element before the transition record
The number extracted from the transition element is described
Second data to be replaced with an element and the SFC
The link element of the program to the step record or previous
Down arrow in the transition record
Third data to be replaced with the replaced element,
The jump element of the FC program is stored in the step record
Jump instruction in has been replaced by a serial mounting the elements
And the expansion processing means includes all the elements of the reverse expansion mesh.
It is necessary to have initialization means to initialize elements to blank elements.
Characteristic 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 JPH07334216A (en) 1995-12-22
JP3171363B2 true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4529312B2 (en) * 2001-04-26 2010-08-25 富士電機システムズ株式会社 Program specification creation device, creation method, and sequence control system
KR102063966B1 (en) * 2015-10-21 2020-01-09 엘에스산전 주식회사 Optimization method for compiling programmable logic controller command
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

Also Published As

Publication number Publication date
JPH07334216A (en) 1995-12-22

Similar Documents

Publication Publication Date Title
US7331037B2 (en) Static memory allocation in a graphical programming system
US8099712B2 (en) Generating a hardware description based on a diagram with states and state transitions
JPH0210403A (en) Programmable controller having source code stored being converted to token and generation of control program
JP3171363B2 (en) Programming device
Lovato et al. Parser visualizations for developing grammars with yacc
JP4511418B2 (en) Method for debugging teaching apparatus program
US8069405B1 (en) User interface for efficiently browsing an electronic document using data-driven tabs
JP4848772B2 (en) Program generating apparatus and program generating program
JP3697274B2 (en) Software development support device
JP7447574B2 (en) Support equipment, support programs and support methods
JP2009176178A (en) Global variable definition system of plc
JP2002236504A (en) Controller and program processing method of controller
JP3002052B2 (en) Programmable controller programming method
JPH06309159A (en) Program automatic generator
JPH03108067A (en) Data path circuit designing system
JPS6318401A (en) Programming device for programmable controller
JPS63138466A (en) Control method for form data on cad 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
JPH0298731A (en) Program code generator
JPS62295180A (en) Method for supporting pattern generation
JPH05289712A (en) Language converting device
Gasperi et al. Extreme Software
JPS5846404A (en) Return display system of relay ladder of drt display loader
JPH087761B2 (en) Gate addressing method for logic simulation machine
JPH0744369A (en) Support tool

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