JPH0895612A - SFC program development equipment - Google Patents

SFC program development equipment

Info

Publication number
JPH0895612A
JPH0895612A JP22915194A JP22915194A JPH0895612A JP H0895612 A JPH0895612 A JP H0895612A JP 22915194 A JP22915194 A JP 22915194A JP 22915194 A JP22915194 A JP 22915194A JP H0895612 A JPH0895612 A JP H0895612A
Authority
JP
Japan
Prior art keywords
program
individual
sfc
operation program
individual operation
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
JP22915194A
Other languages
Japanese (ja)
Other versions
JP3170154B2 (en
Inventor
Shunsuke Nagasawa
俊輔 長澤
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP22915194A priority Critical patent/JP3170154B2/en
Publication of JPH0895612A publication Critical patent/JPH0895612A/en
Application granted granted Critical
Publication of JP3170154B2 publication Critical patent/JP3170154B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

(57)【要約】 【目的】 PCの各個操作プログラムの作成および保守
を容易にする。 【構成】 SFC形式で作成された、PCのための通常
動作プログラムから、当該通常動作プログラムに関連す
る各個操作のプログラムに必要な所定のプログラム要素
を抽出する手段240、241、242、243、24
4、245と、抽出されたプログラム要素を合成して、
各個操作プログラムを自動的に生成する手段246とを
含む。
(57) [Summary] [Purpose] To facilitate the creation and maintenance of individual PC operation programs. [Structure] Means 240, 241, 242, 243, 24 for extracting a predetermined program element required for each individual operation program related to the normal operation program from the normal operation program for the PC created in the SFC format.
4, 245 and the extracted program element are combined,
Means 246 for automatically generating each individual operation program.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はプログラマブルコントロ
ーラ(以下「PC」と呼ぶ。)で実行されるプログラム
をプログラミングするためのシーケンシャルファンクシ
ョンチャート言語(以下、「SFC」と呼ぶ。)形式で
プログラムを作成するためのSFCプログラム開発装置
に関し、特に、通常動作用プログラムとは別の異常時用
の各個操作用プログラムを容易に作成し保守することが
できるSFCプログラム開発装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention creates a program in a sequential function chart language (hereinafter referred to as "SFC") format for programming a program executed by a programmable controller (hereinafter referred to as "PC"). The present invention relates to an SFC program development apparatus, and more particularly to an SFC program development apparatus capable of easily creating and maintaining an individual operation program for an abnormality, which is different from the normal operation program.

【0002】[0002]

【従来の技術】PCのプログラミング言語として、制御
の流れをフローチャート形式で表現することが可能なS
FCが知られている。SFCではその制御の細部につい
てはたとえばラダー図などを用いて記述することができ
る。
2. Description of the Related Art As a programming language for a PC, S that can express the flow of control in a flow chart format.
FC is known. In SFC, the details of the control can be described using, for example, a ladder diagram.

【0003】たとえば図18に示されるシステムについ
て考える。図18を参照してこのシステムは、ワーク台
車310に収納されているワークを、リフタ322を用
いて治具318から治具320の位置に搬入するもので
ある。リフタ322には、走行モータ328と、ストッ
パ326と、ワークを保持するためのクランプ324と
が備えられている。また作業者314が操作するスイッ
チとしては起動プッシュボタン(PB)312とマット
スイッチ316とがある。リフタ322としてはたとえ
ば油圧シリンダが、クランプ324およびストッパ32
6にはたとえばエアーシリンダが用いられる。
Consider, for example, the system shown in FIG. With reference to FIG. 18, this system carries in the work stored in the work carriage 310 to the position of the jig 320 from the jig 318 using the lifter 322. The lifter 322 is provided with a traveling motor 328, a stopper 326, and a clamp 324 for holding a work. The switches operated by the operator 314 include a start push button (PB) 312 and a mat switch 316. The lifter 322 may be, for example, a hydraulic cylinder, a clamp 324 and a stopper 32.
An air cylinder is used for 6, for example.

【0004】図18に示される装置の動作順序は次のと
おりである。 (1) 作業者314がワーク台車310のワークを治
具318にセットし、起動PB312を押す。
The operation sequence of the apparatus shown in FIG. 18 is as follows. (1) The worker 314 sets the work of the work carriage 310 on the jig 318 and pushes the start PB 312.

【0005】(2) 走行モータ328によりリフタ3
22が走行後退する。 (3) ストッパ326を抜く。
(2) The lifter 3 is driven by the traveling motor 328.
22 runs backwards. (3) Pull out the stopper 326.

【0006】(4) リフタ322が下降する。 (5) クランプ324により治具318の位置のワー
クを保持する。
(4) The lifter 322 descends. (5) The work at the position of the jig 318 is held by the clamp 324.

【0007】(6) リフタ322が上昇。 (7) ストッパ326入り。(6) The lifter 322 moves up. (7) Enter the stopper 326.

【0008】(8) 走行前進。 (9) ストッパ326抜き。(8) Travel forward. (9) Remove the stopper 326.

【0009】(10) リフタ322を中下降。 (11) ワークをアンクランプ。(10) The lifter 322 is moved down. (11) Unclamp the work.

【0010】(12) リフタ322を上昇。 (13) ストッパ326入り。(12) Lifter 322 is lifted. (13) Enter the stopper 326.

【0011】この通常動作のプログラムをSFC形式で
作成すると図19に示すようになる。図19において矩
形はステップを表わし、矩形と矩形とを結ぶ線と、それ
を横切るように引かれた水平の線はトランジションを表
わす。またステップから分岐する2本線は並列分岐、合
流する2本線は並列合流をそれぞれ示す。各ステップお
よびトランジションに付されたアルファベットおよび数
字はステップ名およびトランジション名である。ステッ
プは動作を示し、トランジションはステップからステッ
プへの遷移条件を示す。
When this normal operation program is created in the SFC format, it becomes as shown in FIG. In FIG. 19, a rectangle represents a step, and a line connecting the rectangles and a horizontal line drawn so as to cross the rectangle represent a transition. Further, the two main lines branching from the step indicate parallel branching, and the two main lines joining are parallel merging. The alphabets and numbers attached to each step and transition are the step name and transition name. A step indicates an operation, and a transition indicates a transition condition from step to step.

【0012】図19においてステップ00は開始、ステ
ップ01は走行後退、ステップ02はステップ抜き、ス
テップ03はリフタ下降、ステップ04はクランプ、ス
テップ05はリフタ上昇、ステップ16はクランプ保
持、ステップ06はストッパ入り、ステップ07は走行
前進、ステップ10はストッパ抜き、ステップ17はリ
フタ上昇保持、ステップ11はリフタ中下降、ステップ
12はアンクランプ、ステップ13はリフタ上昇、ステ
ップ14はストッパ入り、ステップ20はリフタ上昇保
持、ステップ15は終了ステップをそれぞれ示す。
In FIG. 19, step 00 starts, step 01 travels backwards, step 02 skips step, step 03 lifts down, step 04 clamps, step 05 lifts, step 16 clamps hold, step 06 stops. Enter, Step 07: Travel forward, Step 10: Remove stopper, Step 17: Hold lifter up, Step 11: Lifter middle down, Step 12: Unclamp, Step 13: Lifter up, Step 14: Stopper enter, Step 20: Lifter Rise hold, step 15 indicates the end step, respectively.

【0013】このうちステップ01の走行後退のプログ
ラムの詳細を図20にラダー図形式で示す。図20を参
照して、このプログラムは、インターロック条件350
および走行後退の出力352からなる。インターロック
条件350はリフタ上昇端の接点と、走行前進の接点と
からなる。リフタ上昇端を示すシンボルは、電気的にこ
の接点がONのときに導通することを意味し、走行前進
の接点のシンボルは、電気的にこの設定がOFFのとき
に導通することを意味する。各接点が導通するときに出
力が得られる。
Of these, the details of the traveling / reverse program of step 01 are shown in FIG. 20 in the form of a ladder diagram. Referring to FIG. 20, this program has an interlock condition 350.
And an output 352 for traveling backward. The interlock condition 350 includes a contact point at the lifter rising end and a contact point for traveling forward. The symbol indicating the lifter rising end means electrically conducting when the contact is ON, and the symbol of the traveling forward contact electrically conducting when the setting is OFF. An output is obtained when each contact is conductive.

【0014】インターロック条件とは、ある動作を行な
うときに必ず保持していなければならない条件をいう。
たとえば図18に示される例では、リフタ322が右か
ら左に動くとき(後退するとき)、リフタ322が一番
上まで上昇していなければならない。したがって図20
に示されるように、リフタ上昇端の接点がONのときの
み走行前進ができるようにする必要がある。つまりリフ
タ上昇端がインターロック条件となる。
The interlock condition is a condition that must be held when a certain operation is performed.
For example, in the example shown in FIG. 18, when the lifter 322 moves from right to left (when retracting), the lifter 322 must be lifted to the top. Therefore, FIG.
As shown in, it is necessary to allow traveling forward only when the contact at the lifter rising end is ON. That is, the lifter rising end becomes the interlock condition.

【0015】こうした通常動作用のプログラムとは別
に、異常時のプログラム(各個操作プログラム)を作成
しておく必要がある。各個操作はたとえば、通常動作の
起動運転中に何かの障害が発生して装置が停止した場合
に、正常な位置に機械を戻すために、作業者が目で装置
の状態を見ながらスイッチを操作して機械を動かすとき
に使用する。たとえばシリンダなどにおいてリミットス
イッチが壊れていた場合、シリンダが止まるべきところ
を行き過ぎる場合がある。こうした場合、シリンダを元
の位置に戻すときに通常動作ではない各個操作プログラ
ムを利用して戻す。各個操作では任意の手順で装置を操
作できる。各個操作に対応する、装置の各動作を各個動
作と呼ぶ。
In addition to such a program for normal operation, it is necessary to create a program (individual operation program) at the time of abnormality. Each individual operation is, for example, in order to return the machine to the normal position when the machine stops due to some trouble during the start-up operation of normal operation, the operator can visually check the status of the machine and operate the switch. Used when operating to move the machine. For example, if the limit switch is broken in a cylinder or the like, the cylinder may overshoot where it should stop. In such a case, when returning the cylinder to the original position, the individual operation program which is not a normal operation is used to return the cylinder. The device can be operated by an arbitrary procedure in each individual operation. Each operation of the device corresponding to each individual operation is called an individual operation.

【0016】走行後退のプログラムに対する各個操作プ
ログラムをラダー図形式で示すと図21に示すようにな
る。図21を参照してこの各個操作プログラムは、走行
後退の入力スイッチ360と、走行後退の終了を示すリ
ミットスイッチ362と、走行後退のインターロック条
件364と、出力とからなる。走行後退の入力スイッチ
360としてはたとえば操作板上に設けられた後退ボタ
ンが割り当てられる。どのボタンをこの入力スイッチに
割り当てるかは、プログラム設計者の自由に任せられ
る。インターロック条件364としてはリフタ上昇端の
接点と走行前進の接点とがある。このインターロック条
件は図20に示される通常動作のプログラムのインター
ロック条件と一致している。ただし図21に示される各
個操作プログラムでは、後退ボタンが押され、かつ後退
端のリミットスイッチがOFFであり、インターロック
条件が満たされた場合のみリフタが後退する。
FIG. 21 is a ladder diagram showing the individual operation program for the traveling / reverse program. With reference to FIG. 21, each individual operation program includes a traveling / reverse input switch 360, a limit switch 362 indicating termination of traveling / reverse, an interlock condition 364 for traveling / reverse, and an output. As the travel / reverse input switch 360, for example, a reverse button provided on the operation plate is assigned. It is up to the program designer to decide which button is assigned to this input switch. The interlock conditions 364 include a contact point at the lifter rising end and a contact point at the traveling forward position. This interlock condition matches the interlock condition of the normal operation program shown in FIG. However, in the individual operation program shown in FIG. 21, the reverse button is pressed, the limit switch at the reverse end is OFF, and the lifter moves backward only when the interlock condition is satisfied.

【0017】また各ステップに対しては開始条件と終了
条件とが設けられる。これらはそのステップの前のトラ
ンジションおよび後ろのトランジション内に記述され
る。終了条件とはそのステップの動作が終了する条件で
ある。たとえば図18でリフタ322が後退する場合の
終了条件は、後退端となる。開始条件とは、その動作を
始めるときに確認する条件であり、かつその動作中に変
動しても構わない条件を示す。たとえば起動プッシュボ
タンなどで入力がされる場合や、動作開始位置のみが決
まっている場合である。開始条件では出力の自己保持を
する必要があり、したがって開始条件は図22に示され
るラダー図の矩形370に示される形式をとる必要があ
る。
A start condition and an end condition are provided for each step. These are described in the transitions before and after the step. The ending condition is a condition for ending the operation of the step. For example, the ending condition when the lifter 322 moves backward in FIG. 18 is the backward end. The start condition is a condition that is confirmed when the operation is started, and a condition that may change during the operation. For example, there is a case where an input is made by a start push button or the like, or only the operation start position is determined. The start condition requires self-holding of the output, and therefore the start condition must take the form shown in rectangle 370 of the ladder diagram shown in FIG.

【0018】[0018]

【発明が解決しようとする課題】以上のように従来の技
術では、通常動作中のプログラム部分をSFCで記述す
るとともに、異常時用(各個操作用)のプログラム部分
をラダー図などで記述することにより、2つのプログラ
ムを作成する必要があった。そのため、PCプログラム
設計時間が長期化し、また各個操作用プログラムのイン
ターロック条件の抜けや無駄な条件の付加が発生して、
各個操作用のプログラムにミスが発生したり、プログラ
ムサイズが不必要に大きくなるという問題点があった。
またPCプログラムを修正するたびに、各個操作用プロ
グラムの修正が必要かどうかを判断し、個別に修正をす
る必要があり、PCプログラムの保守が困難であるとい
う問題点があった。
As described above, in the conventional technique, the program part in normal operation is described by SFC, and the program part for abnormal time (for each individual operation) is described by the ladder diagram or the like. Therefore, it was necessary to create two programs. As a result, the PC program design time is lengthened, and the interlock condition for each individual operation program is omitted and unnecessary conditions are added.
There are problems that a mistake occurs in the program for individual operation and the program size becomes unnecessarily large.
Further, every time the PC program is modified, it is necessary to judge whether or not the individual operating program needs to be modified, and it is necessary to individually modify the program, which makes maintenance of the PC program difficult.

【0019】この問題を解決する1つの手段が、特開平
5−158512号公報に示されている。この公報に開
示された技術は、SFCプログラムを実行するシーケン
スコントローラについての発明である。図23を参照し
て特開平5−158512号公報のシーケンスコントロ
ーラ500は、操作パネル510と、SFCプログラム
記憶部512と、演算実行部514と、手動操作部51
6と、SFCステップ状態記憶部518と、I/O制御
部520とを含み、I/O制御部520に、外部機器5
22が接続されて制御される。
One means for solving this problem is disclosed in Japanese Patent Laid-Open No. 5-158512. The technique disclosed in this publication is an invention regarding a sequence controller that executes an SFC program. Referring to FIG. 23, the sequence controller 500 disclosed in Japanese Patent Laid-Open No. 5-158512 discloses an operation panel 510, an SFC program storage unit 512, a calculation execution unit 514, and a manual operation unit 51.
6, an SFC step status storage unit 518, and an I / O control unit 520. The I / O control unit 520 includes an external device 5
22 is connected and controlled.

【0020】操作パネル510からの指令によりSFC
プログラム記憶部512に記憶されているプログラムが
演算実行部514により読出されて実行される。このと
き、SFCステップ状態記憶部518に記憶されている
ステップの活性/不活性状態が参照され、活性状態にあ
るステップの処理内容だけが演算される。その結果がI
/O制御部520を介して外部機器522に送出され
る。
SFC in response to a command from the operation panel 510
The program stored in program storage unit 512 is read and executed by operation execution unit 514. At this time, the active / inactive state of the step stored in the SFC step state storage unit 518 is referred to, and only the processing content of the step in the active state is calculated. The result is I
It is sent to the external device 522 via the / O control unit 520.

【0021】操作パネル510には、手動運転モードと
自動運転モードとを切換えるスイッチが設けられてい
る。自動運転モードでは前述したとおりの動作が行なわ
れる。手動運転モードでは、手動操作部516による手
動操作が実行される。手動操作部516を操作すること
により手動処理指令がI/O制御部520に与えられ、
外部機器522を手動で制御できる。このとき、手動操
作部516からのステップ活性/不活性処理指令により
SFCステップ状態記憶部518に記憶されているステ
ップの活性/不活性状態を変更することができる。
The operation panel 510 is provided with a switch for switching between a manual operation mode and an automatic operation mode. In the automatic operation mode, the operation as described above is performed. In the manual operation mode, the manual operation by the manual operation unit 516 is executed. A manual processing command is given to the I / O control unit 520 by operating the manual operation unit 516,
The external device 522 can be manually controlled. At this time, the active / inactive state of the step stored in the SFC step state storage unit 518 can be changed by the step active / inactive process command from the manual operation unit 516.

【0022】この特開平5−158512号公報に開示
の技術では、通常動作時のプログラムを、異常時の条件
を考えながら作成し、操作パネル510により自動/手
動の切換えを行なって現在活性となっているステップに
対応する各個操作プログラムを動作させる。したがっ
て、現在活性化されているステップに対応する各個操作
しかできないという問題点がある。また動作順序が通常
動作プログラムの流れに従ったものであって、各個操作
特有の無手順の制御ができないという問題点があった。
こうした問題を解決するためには、やはり通常動作時用
のプログラムと各個操作用のプログラムとを別々のもの
にしたほうが望ましい。
In the technique disclosed in Japanese Unexamined Patent Publication No. 158512/1993, a program for normal operation is created in consideration of abnormal conditions, and automatic / manual switching is performed by the operation panel 510 to activate the program at present. Each individual operation program corresponding to the step is operated. Therefore, there is a problem that only individual operations corresponding to the currently activated step can be performed. In addition, the operation sequence follows the flow of the normal operation program, and there is a problem that non-procedural control peculiar to each individual operation cannot be performed.
In order to solve such a problem, it is desirable to separate the program for normal operation and the program for individual operation.

【0023】したがって請求項1に記載の発明の目的
は、SFCの各個操作プログラムの作成および保守を容
易にできるSFCプログラム開発装置を提供することで
ある。
Therefore, an object of the invention described in claim 1 is to provide an SFC program development apparatus capable of easily creating and maintaining an individual operation program of an SFC.

【0024】請求項2に記載の発明の目的は、より広い
局面においてPCの各個操作プログラムの作成および保
守を容易にできるSFCプログラム開発装置を提供する
ことである。
An object of the invention described in claim 2 is to provide an SFC program development device which can easily create and maintain an individual operation program of a PC in a wider aspect.

【0025】請求項3に記載の発明の目的は、より広い
局面において、PCの各個操作プログラムを通常動作プ
ログラム作成と同時に誤りなく作成でき、かつ保守も容
易なSFCプログラム開発装置を提供することである。
In a broader aspect, an object of the invention described in claim 3 is to provide an SFC program development apparatus which can create each operation program of a PC without error at the same time as creating a normal operation program and is easy to maintain. is there.

【0026】[0026]

【課題を解決するための手段】請求項1に記載の発明に
係るSFCプログラム開発装置は、SFC形式で作成さ
れた、プログラマブルコントローラのための通常動作プ
ログラムから、当該通常動作プログラムに関連する各個
操作プログラムに必要な所定のプログラム要素を抽出す
る手段と、抽出されたプログラム要素を合成して、各個
操作プログラムを自動的に生成する手段とを含む。
An SFC program development apparatus according to the invention described in claim 1 is a normal operation program for a programmable controller, which is created in the SFC format, and an individual operation related to the normal operation program. It includes means for extracting a predetermined program element required for the program, and means for synthesizing the extracted program elements to automatically generate each individual operation program.

【0027】請求項2に記載の発明に係るSFCプログ
ラム開発装置は、請求項1に記載の装置であって、所定
のプログラム要素は、各個操作のインターロック条件
と、開始条件と、終了条件と、入力スイッチと、出力と
の任意の組合わせを含む。
An SFC program development apparatus according to a second aspect of the present invention is the apparatus according to the first aspect, wherein the predetermined program elements are an interlock condition for each individual operation, a start condition, and an end condition. , Input switches and any combination of outputs.

【0028】請求項3に記載の発明に係るSFCプログ
ラム開発装置は、請求項1または2に記載の装置であっ
て、そのプログラム要素を抽出する手段は、通常動作プ
ログラムの作成時に、関連する各個操作プログラムに必
要な情報の入力をプログラム作成者に要求する入力要求
手段と、入力要求手段を介して入力された各個操作プロ
グラムに必要な情報を、通常動作プログラムと関連付け
て記憶する手段とを含む。
An SFC program development device according to a third aspect of the present invention is the device according to the first or second aspect, wherein the means for extracting the program elements is related to each of the individual items when the normal operation program is created. It includes an input requesting means for requesting the program creator to input information necessary for the operation program, and a means for storing the information necessary for each individual operation program input via the input requesting means in association with the normal operation program. .

【0029】[0029]

【作用】請求項1に記載の発明に係るSFCプログラム
開発装置によれば、SFC形式の通常動作プログラムか
ら、当該通常動作プログラムに関連する各個操作プログ
ラムに必要な所定のプログラム要素が抽出され、抽出さ
れたプログラム要素を合成することにより、各個操作プ
ログラムが自動的に生成される。PC用のプログラムの
設計時間を短縮でき、しかも各個操作プログラム作成の
誤りを防止できる。またPC用のプログラムに変更があ
ったときもそれに併せて各個操作プログラムを自動的に
修正できるので、各個操作プログラムの保守が容易にな
る。
According to the SFC program development apparatus of the first aspect of the present invention, predetermined program elements necessary for each individual operation program related to the normal operation program are extracted from the SFC format normal operation program and extracted. Each individual operation program is automatically generated by synthesizing the created program elements. It is possible to shorten the design time of the program for the PC and prevent an error in creating the individual operation program. Further, when the program for the PC is changed, the individual operation program can be automatically corrected accordingly, so that the maintenance of the individual operation program is facilitated.

【0030】請求項2に記載の発明に係るSFCプログ
ラム開発装置によれば、請求項1に記載の発明の作用に
加え、所定のプログラム要素は、各個操作のインターロ
ック条件と、開始条件と、終了条件と、入力スイッチ
と、出力との任意の組合わせを含むので、たとえばプロ
グラムの一部がない場合にも各個操作のプログラムを自
動的に作成できる。
According to the SFC program development device of the second aspect of the present invention, in addition to the function of the first aspect of the invention, the predetermined program element is an interlock condition for each individual operation, a start condition, Since the end condition, the input switch, and the output are arbitrarily combined, a program for each individual operation can be automatically created even if there is no part of the program.

【0031】請求項3に記載の発明に係るSFCプログ
ラム開発装置によれば、請求項1または2に記載の発明
の作用に加え、通常動作プログラムの作成時に、関連す
る各個操作のプログラムに必要な情報の入力がプログラ
ム作成者に要求され、通常動作プログラムと関連付けて
記憶される。したがって各個操作プログラムに必要な情
報が間違いなく得られる。
According to the SFC program development apparatus of the third aspect of the present invention, in addition to the operation of the first or second aspect of the invention, when the normal operation program is created, it is necessary for each related individual operation program. Input of information is requested from the program creator and is stored in association with the normal operation program. Therefore, the information necessary for each individual operation program can be surely obtained.

【0032】[0032]

【実施例】図1に、本願発明に係るSFCプログラム開
発装置100のブロック図を示す図1を参照してこのS
FCプログラム開発装置は、複数のI/Oを介して外部
機器を制御するPC102のためのシーケンサプログラ
ムを開発するためのものである。PC102には電源1
04が付属している。
1 is a block diagram of an SFC program development apparatus 100 according to the present invention. Referring to FIG.
The FC program development device is for developing a sequencer program for the PC 102 that controls an external device via a plurality of I / Os. Power supply 1 for PC 102
04 is attached.

【0033】図1を参照してSFCプログラム開発装置
100は、後述する制御構造を有するプログラムを実行
することによりSFCプログラム開発装置100の各部
とともに、前述の特許請求の範囲に記載の各手段を実現
するためのCPU112と、作成されるシーケンサプロ
グラムを記憶するためのシーケンサプログラム記憶部1
18と、各個操作用の各個操作入力スイッチに関する情
報を後述する形式で格納する各個入力スイッチ格納メモ
リ120と、キーボード114と、SFCプログラムお
よびその詳細な制御情報を表示するための表示部116
と、シーケンサプログラム記憶部118に記憶されたシ
ーケンサプログラムをPC102に送信するためのPC
通信インターフェース(I/F)110とを含む。
Referring to FIG. 1, the SFC program development apparatus 100 realizes each unit described in the above-mentioned claims together with each unit of the SFC program development apparatus 100 by executing a program having a control structure described later. And a sequencer program storage unit 1 for storing a sequencer program to be created.
18, each individual input switch storage memory 120 for storing information on each individual operation input switch for each individual operation in a format described later, a keyboard 114, a display unit 116 for displaying an SFC program and its detailed control information.
And a PC for transmitting the sequencer program stored in the sequencer program storage unit 118 to the PC 102.
The communication interface (I / F) 110 is included.

【0034】シーケンサプログラム記憶部118は、図
2に示されるような形式でシーケンサプログラム130
を格納する。シーケンサプログラム130は、ステップ
内プログラム格納命令140と、ステップ内プログラム
142と、トランジション終了条件格納命令144と、
トランジション終了条件146と、トランジション開始
条件格納命令148と、トランジション開始条件150
と、…の形式で、各個入力スイッチ以外はすべて含んで
いる。なお図2に示されるシーケンサプログラム130
は、図6および図7に示されたプログラムに対応する内
容である。
The sequencer program storage unit 118 stores the sequencer program 130 in the format shown in FIG.
To store. The sequencer program 130 includes an in-step program storage instruction 140, an in-step program 142, a transition end condition storage instruction 144,
Transition end condition 146, transition start condition storage instruction 148, transition start condition 150
In the form of ,, ..., all but the individual input switches are included. The sequencer program 130 shown in FIG.
Is contents corresponding to the programs shown in FIGS. 6 and 7.

【0035】図3を参照して、各個入力スイッチ格納メ
モリ120は、ステップ番号順に1ワードずつ各個入力
スイッチを格納する。本実施例の場合ステップは最大4
096個まで可能であり、したがって各個入力スイッチ
格納メモリ120は8Kバイトである。各個入力スイッ
チが設定されているステップについてはMSB(Mos
t Significant Bit)がONする。な
お図3は、後述する図7に対応する内容となっている。
With reference to FIG. 3, the individual input switch storage memory 120 stores each individual input switch one word at a time in the order of step numbers. In this embodiment, the maximum number of steps is four.
Up to 096 are possible, and therefore each individual input switch storage memory 120 is 8 Kbytes. For the step where each individual input switch is set, MSB (Mos
t Significant Bit) is turned on. Note that FIG. 3 has contents corresponding to FIG. 7 described later.

【0036】図4に、図1に示されるSFCプログラム
開発装置で通常動作プログラムおよび各個操作プログラ
ムを作成する際の処理の流れを示す。図4を参照して、
まずステップ160でSFC表示画面が表示される。S
FC表示画面は図5に示されるようなものであり、表示
部116の左半分にSFC表示画面182が、右半分に
詳細表示画面184がそれぞれ表示される。なお図5に
示されるようにキーボード114には複数個のファンク
ションキー186(本実施例の場合にはF1〜F10の
10個)が設けられている。これらのファンクションキ
ーのうちF6は、ステップまたはトランジションの詳細
を詳細表示画面184に表示させるための「半ズーム」
キーであり、ファンクションキーF10は入力の完了を
示す「書込」キーである。
FIG. 4 shows the flow of processing when the normal operation program and each individual operation program are created by the SFC program development apparatus shown in FIG. Referring to FIG.
First, in step 160, the SFC display screen is displayed. S
The FC display screen is as shown in FIG. 5, and the SFC display screen 182 is displayed on the left half of the display unit 116 and the detail display screen 184 is displayed on the right half. As shown in FIG. 5, the keyboard 114 is provided with a plurality of function keys 186 (10 keys F1 to F10 in this embodiment). Of these function keys, F6 is "half zoom" for displaying the details of the step or transition on the detailed display screen 184.
The function key F10 is a "write" key indicating completion of input.

【0037】再び図4を参照して、ステップ161で通
常動作プログラムがSFC形式で作成される。この場
合、たとえば図6に示されるように、SFC表示画面1
82においてカーソル190を移動させ、所望のステッ
プまたはトランジションでカーソル190を止めて前述
したF6を押すことにより詳細表示画面184に対応す
るトランジションまたはステップの詳細が表示され、入
力が可能となる。カーソル190でトランジションT0
02を指定した場合の表示を図6に、ステップS02を
指定した場合の表示を図7にそれぞれ示す。
Referring again to FIG. 4, in step 161, the normal operation program is created in the SFC format. In this case, for example, as shown in FIG. 6, the SFC display screen 1
At 82, by moving the cursor 190, stopping the cursor 190 at a desired step or transition, and pressing the above-mentioned F6, the details of the transition or step corresponding to the detailed display screen 184 are displayed, and input is possible. Transition T0 with cursor 190
6 shows the display when 02 is designated, and FIG. 7 shows the display when step S02 is designated.

【0038】図6を参照して、トランジションの詳細を
作成する場合には、[終了]および[開始]は最初から
画面に表示されている。そして終了条件192および開
始条件194をラダー図作成と同様にキーボード114
の各キー(図示せず)を用いて入力する。なお開始条件
192および終了条件194のいずれか一方のみを入力
することもできる。入力可能な接点の数は最大256で
ある。前述したように入力はF10を押下することによ
り完了する。作成された内容はシーケンサプログラム記
憶部118に図2に示される形式に変換されて記憶され
る。
Referring to FIG. 6, when the transition details are created, [End] and [Start] are displayed on the screen from the beginning. The end condition 192 and the start condition 194 are set on the keyboard 114 as in the ladder diagram creation.
Input using each key (not shown). It is also possible to input only one of the start condition 192 and the end condition 194. The maximum number of contacts that can be input is 256. As described above, the input is completed by pressing F10. The created contents are converted into the format shown in FIG. 2 and stored in the sequencer program storage unit 118.

【0039】図7を参照して、ステップが選択された場
合、詳細表示画面184でステップ内プログラムおよび
各個入力スイッチを入力する。ステップ内プログラムは
ラダー図形式で入力され、図7に示される例の場合には
インターロック条件200および出力202を含む。各
個入力スイッチは、各個操作プログラムを作成する上で
必要な情報であり、このステップ内プログラムの入力画
面でその入力が要求される。ここで入力された1接点の
各個入力スイッチ204は、図3に示される形式で各個
入力スイッチ格納メモリ120(図1参照)に格納され
る。
Referring to FIG. 7, when the step is selected, the in-step program and the individual input switch are input on the detail display screen 184. The in-step program is input in the ladder diagram format, and includes the interlock condition 200 and the output 202 in the case of the example shown in FIG. 7. Each individual input switch is information necessary for creating each individual operation program, and its input is requested on the input screen of this in-step program. The individual contact input switch 204 of one contact input here is stored in the individual input switch storage memory 120 (see FIG. 1) in the format shown in FIG.

【0040】図8に、たとえば図7の出力00100に
対する各個操作プログラム210を示す。この各個操作
プログラム210が、図6および図7に示される画面で
入力された情報から自動的に生成される。なお図8に示
される開始条件00000は、図6および図7に示され
るトランジションT001での開始条件とする。
FIG. 8 shows an individual operation program 210 for the output 00100 of FIG. 7, for example. Each individual operation program 210 is automatically generated from the information input on the screens shown in FIGS. 6 and 7. Note that the start condition 00000 shown in FIG. 8 is the start condition for the transition T001 shown in FIGS. 6 and 7.

【0041】各個操作プログラムを作成する上で考慮す
べきSFCの表示形式には、主として図9に示される5
種類が存在する。すなわち(a)直列接続と、(b)選
択分岐と、(c)選択合流と、(d)並列分岐と、
(e)並列合流とである。
The SFC display format to be considered in creating each individual operation program is mainly shown in FIG.
There are types. That is, (a) series connection, (b) selective branch, (c) selective merge, (d) parallel branch,
(E) Parallel merging.

【0042】(a)の直列接続において、たとえばステ
ップS02の場合、開始条件はトランジションT001
から、インターロック条件はステップS02から、各個
入力はステップS02から、終了条件はトランジション
T002からそれぞれ取出して各個操作プログラムを作
成する。
In the series connection of (a), for example, in the case of step S02, the start condition is transition T001.
Therefore, the interlock condition is extracted from step S02, the individual input is extracted from step S02, and the end condition is extracted from the transition T002 to create the individual operation program.

【0043】(b)の選択分岐の場合には、いずれか一
方のステップにのみ歩進する。この場合のトランジショ
ン条件入力画面を図10に示す。この場合終了条件は、
分岐する複数のトランジションに共通のもの(図9
(b)の例ではT003およびT004に共通)であ
る。たとえばトランジションT003で終了条件が変更
されればトランジションT004の終了条件にもその変
更が反映される。分岐条件は歩進先を決定するためのも
のである。これらの条件があれば(a)の直列接続と同
様に各個操作プログラムを作成することができる。
In the case of the selective branch of (b), only one of the steps is advanced. A transition condition input screen in this case is shown in FIG. In this case, the termination condition is
Common to multiple branching transitions (Fig. 9
In the example of (b), it is common to T003 and T004). For example, if the ending condition is changed in the transition T003, the change is reflected in the ending condition of the transition T004. The branching condition is for determining the step destination. If these conditions are satisfied, each individual operation program can be created as in the case of (a) series connection.

【0044】(c)の選択合流についてステップS10
(図9参照)を例に説明する。ステップS10の開始条
件はトランジションT006およびT007の双方に共
通のものである。これは選択分岐の終了条件と同様であ
る。その他の条件は直列接続と同様に取出して選択合流
の各個操作プログラムを作成できる。
Step S10 for (c) selective merging
(See FIG. 9) will be described as an example. The start condition of step S10 is common to both transitions T006 and T007. This is similar to the termination condition of the selective branch. Other conditions can be taken out in the same manner as in the case of series connection to create individual operation programs for selective merging.

【0045】図9(d)の並列分岐では次のような情報
を取出して各個操作プログラムを作成できる。並列分岐
の場合、図9(d)を参照して、ステップS11とトラ
ンジションT011とステップS12とからなる直列接
続と、ステップS11とトランジションT011とステ
ップS13とからなる直列接続との2つの直列接続があ
ることと同じである。したがって、直列接続と同様に各
個操作に必要な情報を取出すことができこれから並列分
岐のための各個操作プログラムが作成できる。並列合流
の場合にも同様である。
In the parallel branch shown in FIG. 9D, the following information can be taken out to create each individual operation program. In the case of parallel branching, with reference to FIG. 9D, two series connections of a series connection including step S11, transition T011 and step S12 and a series connection including step S11, transition T011 and step S13 are provided. It is the same as there is. Therefore, as in the case of serial connection, the information necessary for each individual operation can be taken out, and an individual operation program for parallel branching can be created. The same applies to the case of parallel merging.

【0046】次に、各個操作プログラムの作成において
条件数が不足している場合の各個操作プログラムを図1
1(1)〜(4)に示す。このうち図11(1)の開始
条件なしの場合と、図11(2)のインターロック条件
なしの場合と、図11(4)の終了条件なしの場合とに
おいては、図8に示される各個操作プログラム210の
うち対応の各項目を省略して各個操作プログラムを作成
する。図11(3)に示されるように各個入力がない場
合には、各個操作を行なわないことを意味するため、各
個操作プログラムの作成は行なわない。
Next, FIG. 1 shows each individual operation program when the number of conditions is insufficient in creating each individual operation program.
1 (1) to (4). Among these, in the case without the start condition of FIG. 11 (1), the case without the interlock condition of FIG. 11 (2), and the case without the end condition of FIG. 11 (4), the individual items shown in FIG. Each corresponding operation item is omitted from the operation program 210 to create each individual operation program. If there is no individual input as shown in FIG. 11C, it means that the individual operation is not performed, and therefore, the individual operation program is not created.

【0047】また、SFCの場合、同一出力番号を数ヶ
所で使用することが多い。その場合の各個操作プログラ
ムの形式を図12に示す。図12を参照して、一方のス
テップおよびその前後のトランジションから取出した条
件を開始条件1、インターロック1、各個入力1、終了
条件1とし、他方のステップおよびその前後のトランジ
ションから取出した条件を開始条件2、インターロック
2、各個入力2、および終了条件2とする。図12に示
されるように、各々のステップについて各個操作プログ
ラムを作成し、作成されたプログラムをORした形で各
個操作プログラムを作成する。
In the case of SFC, the same output number is often used at several places. The format of each individual operation program in that case is shown in FIG. Referring to FIG. 12, the conditions extracted from one step and the transitions before and after it are defined as start condition 1, interlock 1, individual input 1, and end condition 1, and the conditions extracted from the other step and transitions before and after it are set. Start condition 2, interlock 2, individual input 2, and end condition 2. As shown in FIG. 12, an individual operation program is created for each step, and the individual operation program is created by ORing the created programs.

【0048】以下、図13〜図17を参照して、図4に
示される各個操作プログラム自動生成のステップ164
の内容を詳細に説明する。
Hereinafter, with reference to FIGS. 13 to 17, step 164 of automatic generation of each individual operation program shown in FIG.
Will be described in detail.

【0049】図13を参照して、まず工程220におい
てSFCのステップ番号を示す変数に0が代入される。
Referring to FIG. 13, first, in step 220, 0 is substituted into the variable indicating the step number of SFC.

【0050】工程221で、ステップ番号の変数が最終
ステップを示しているかどうかについての判断が行なわ
れる。最終ステップであれば処理は終了する。最終ステ
ップでなければ制御は工程222に進む。工程222で
はステップ番号で示されるステップがあるかどうかにつ
いての判断が行なわれる。ステップがあれば制御は工程
223に進む。なければ制御は工程225に進む。
At step 221, a determination is made as to whether the step number variable indicates the final step. If it is the final step, the process ends. If it is not the final step, control proceeds to step 222. At step 222, a determination is made as to whether there is a step indicated by the step number. If there are steps, control proceeds to step 223. If not, control proceeds to step 225.

【0051】工程223では、ステップ番号で示される
ステップに各個入力スイッチが指定されているかどうか
についての判断が行なわれる。より具体的には、図3に
示される各個入力スイッチ格納メモリ120において、
対応のステップ番号部分のMSBがONしているかどう
かについての判断が行なわれる。各個入力スイッチがあ
れば制御は工程224に、なければ制御は工程225に
それぞれ進む。
In step 223, a determination is made as to whether or not each individual input switch is designated in the step indicated by the step number. More specifically, in the individual input switch storage memory 120 shown in FIG.
A determination is made as to whether the MSB of the corresponding step number portion is ON. If there are individual input switches, control proceeds to step 224, and if not, control proceeds to step 225.

【0052】工程224では後述するようにして各個入
力プログラムが作成され、制御は工程225に進む。
In step 224, each individual input program is created as will be described later, and control proceeds to step 225.

【0053】工程225ではステップ番号を示す変数に
1加算される。制御はその後工程221に戻る。
At step 225, 1 is added to the variable indicating the step number. Control then returns to step 221.

【0054】図14に図13に示す工程224の詳細を
示す。図14を参照して各個入力プログラム作成処理は
工程240の各個入力スイッチ取出処理と、工程241
の選択合流処理と、工程242の該当ステップ出力取出
処理と、工程243の該当ステップインターロック条件
取出処理と、工程244の選択分岐処理と、工程245
の終了条件作成処理と、工程246の合成処理とからな
る。これら工程が図14に示されるように一連の処理と
して実行される。
FIG. 14 shows details of the step 224 shown in FIG. Referring to FIG. 14, the individual input program creation processing is performed by the individual input switch extraction processing of step 240 and the step 241.
Selection merge processing, step 242 corresponding step output extraction processing, step 243 corresponding step interlock condition extraction processing, step 244 selective branch processing, step 245
End condition creating process and the combining process of step 246. These steps are executed as a series of processes as shown in FIG.

【0055】工程240の各個入力スイッチ取出処理
は、図1および図3に示される各個入力スイッチ格納メ
モリ120の内容を調べることにより行なう。各個入力
スイッチがなければ、前述したように各個操作プログラ
ムの作成は行なわれない。
The individual input switch extraction processing of step 240 is performed by examining the contents of the individual input switch storage memory 120 shown in FIGS. If there is no individual input switch, the individual operation program is not created as described above.

【0056】工程241の選択合流処理の詳細を図15
に示す。図15を参照して選択合流処理の工程260で
は、このステップの直前が選択合流かどうかについての
判断が行なわれる。選択合流であれば制御は工程262
に、そうでなければ制御は工程261にそれぞれ進む。
The details of the selective merging process of step 241 are shown in FIG.
Shown in. Referring to FIG. 15, in step 260 of the selective merging process, it is judged whether or not the selective merging is performed immediately before this step. If it is a selective merge, the control is step 262.
Otherwise, control proceeds to step 261 respectively.

【0057】工程261では、前トランジションの終了
条件が取出され、選択合流処理が終了する。
At step 261, the ending condition of the previous transition is taken out, and the selective merging process is ended.

【0058】工程262から263では、このステップ
に合流するn個の前トランジション1〜nのすべてにつ
いて終了条件の取出しが行なわれる。
In steps 262 to 263, the termination conditions are fetched for all of the n previous transitions 1 to n that join this step.

【0059】続いて工程264で、工程262〜263
で取出されたn個の終了条件をORすることにより終了
条件が合成され、選択合流処理を終了する。
Subsequently, in step 264, steps 262 to 263 are performed.
The end conditions are combined by ORing the n end conditions extracted in step S3, and the selective merging process ends.

【0060】図16に図14の工程244で行なわれる
選択分岐処理の詳細を示す。図16を参照してまず工程
280で、当該ステップの直後が選択分岐となっている
かどうかについての判断が行なわれる。選択分岐であれ
ば制御は工程282に、さもなければ制御は工程281
にそれぞれ進む。
FIG. 16 shows the details of the selective branch processing performed in step 244 of FIG. Referring to FIG. 16, first, in step 280, a determination is made as to whether or not there is a selection branch immediately after that step. If it is a selective branch, control is performed in step 282, otherwise control is performed in step 281.
To each.

【0061】工程281では次トランジションの開始条
件が取出され、処理は終了する。一方工程282〜28
3では、選択分岐の分岐先のn個の次トランジション1
〜nの開始条件が取出される。そして工程284でこれ
ら取出された開始条件のすべてのORを取ることにより
開始条件が構成される。工程284の後選択分岐処理は
終了する。
In step 281, the condition for starting the next transition is fetched, and the process ends. Meanwhile, steps 282-28
In 3, the n next transitions 1 of the branch destinations of the selected branch
The starting conditions of ~ n are fetched. Then, in step 284, the start condition is constructed by taking the OR of all the extracted start conditions. After step 284, the selective branching process ends.

【0062】再び図14を参照して、工程245の終了
条件作成処理では、図16に示される工程281または
284で得られた開始条件から、各個操作プログラムの
終了条件が作成される。
Referring again to FIG. 14, in the ending condition creating process of step 245, the ending condition of each individual operation program is created from the starting condition obtained in step 281 or 284 shown in FIG.

【0063】図17に、図14の工程246で行なわれ
る合成処理の詳細を示す。図17を参照して、工程30
0で各個操作プログラムを合成する処理が行なわれる。
この処理は図14の工程240で取出された各個入力ス
イッチと、図15の工程261または264で抽出され
た終了条件と、図14の工程242で取出された該当ス
テップの出力と、同じく図14の工程243で取出され
た該当ステップのインターロック条件と、図14の工程
245で得られた終了条件とを図8に示される形式で組
合わせることにより行なわれる。なおこの場合条件が不
足している場合には図11に示された形式で各個操作プ
ログラムが作成されることに注意すべきである。
FIG. 17 shows details of the combining process performed at step 246 of FIG. Referring to FIG. 17, step 30
At 0, the process of synthesizing each individual operation program is performed.
This process includes the individual input switches extracted in step 240 of FIG. 14, the end condition extracted in step 261 or 264 of FIG. 15, the output of the corresponding step extracted in step 242 of FIG. It is performed by combining the interlock condition of the corresponding step extracted in step 243 of FIG. 14 and the end condition obtained in step 245 of FIG. 14 in the format shown in FIG. It should be noted that in this case, when the conditions are insufficient, each individual operation program is created in the format shown in FIG.

【0064】続いて工程301で同一出力が存在するか
どうかについての判断が行なわれる。存在していなけれ
ば合成処理は終了する。存在していれば制御は工程30
2に進み、同一出力との合成処理が行なわれる。この合
成処理は図12に示されたとおりである。
A determination is then made at step 301 as to whether the same output is present. If it does not exist, the combining process ends. If present, control is step 30.
Then, the process proceeds to step 2, and the combining process with the same output is performed. This synthesizing process is as shown in FIG.

【0065】以上のようにこの実施例によれば、プログ
ラム開発者がPCのプログラムを作成する上で大きな困
難となっていた異常時用(各個操作用)プログラムが、
通常動作プログラムをSFC形式で作成することによ
り、自動的に作成できる。SFCプログラムの作成時
に、各個操作用プログラム作成に必要な情報が得られる
ので、各個操作用プログラムのたとえばインターロック
条件の抜けや、無駄な条件の重複を省くことができ、各
個操作プログラムにプログラムミスが発生することを防
止したり、プログラムサイズを縮小させる上で有効であ
る。また各個操作用プログラムを単独で作成する必要が
なく、PCプログラムの設計時間を大幅に短縮すること
ができる。PCプログラムの修正時には、通常動作用の
プログラムを修正することで、対応の各個操作用プログ
ラムも自動的に修正できる。そのため、各個操作用プロ
グラムを修正し忘れることが防止でき、さらに修正時間
を短縮できるなど、PCプログラムの保守を有効に、か
つ容易に行なうことができる。
As described above, according to this embodiment, the abnormal program (for individual operation), which has been a great difficulty for the program developer to create the PC program,
It can be automatically created by creating the normal operation program in the SFC format. When creating the SFC program, the information necessary for creating the individual operation program can be obtained, so that, for example, missing of interlock conditions of each individual operation program and unnecessary duplication of conditions can be omitted. This is effective in preventing the occurrence of, and reducing the program size. Further, it is not necessary to individually create each individual operation program, and it is possible to significantly reduce the design time of the PC program. When modifying the PC program, the corresponding program for individual operation can be automatically modified by modifying the program for normal operation. Therefore, it is possible to prevent forgetting to correct each individual operation program, and further shorten the correction time, so that the maintenance of the PC program can be effectively and easily performed.

【0066】[0066]

【発明の効果】以上のように請求項1に記載の発明に係
るSFCプログラム開発装置によれば、SFC形式の通
常動作プログラムから、各個操作プログラムが自動的に
生成される。PC用のプログラムの設計時間を短縮で
き、しかも各個操作プログラム作成の誤りを防止でき
る。またPC用のプログラムに変更があったときもそれ
に併せて各個操作プログラムを自動的に修正できるの
で、各個操作プログラムの保守が容易になる。その結
果、PCの各個操作プログラムの作成および保守を容易
にできるSFCプログラム開発装置を提供できる。
As described above, according to the SFC program development apparatus of the first aspect of the present invention, each individual operation program is automatically generated from the SFC format normal operation program. It is possible to shorten the design time of the program for the PC and prevent an error in creating the individual operation program. Further, when the program for the PC is changed, the individual operation program can be automatically corrected accordingly, so that the maintenance of the individual operation program is facilitated. As a result, it is possible to provide the SFC program development device that can easily create and maintain each individual operation program of the PC.

【0067】請求項2に記載の発明に係るSFCプログ
ラム開発装置によれば、請求項1に記載の発明の効果に
加え、プログラム要素の一部がない場合にも各個操作の
プログラムを自動的に作成できる。その結果、より広い
局面においてPCの各個操作プログラムの作成および保
守を容易にできるSFCプログラム開発装置を提供でき
る。
According to the SFC program development apparatus of the second aspect of the present invention, in addition to the effect of the first aspect of the present invention, the program for each individual operation is automatically performed even when there is no part of the program element. Can be created. As a result, it is possible to provide an SFC program development device capable of easily creating and maintaining individual operation programs of a PC in a wider aspect.

【0068】請求項3に記載の発明に係るSFCプログ
ラム開発装置によれば、請求項1または2に記載の発明
の効果に加え、通常動作プログラムの作成時に、関連す
る各個操作プログラムに必要な情報が入力され記憶され
る。したがって、各個操作プログラムに必要な情報が間
違いなく得られ、かつ各個操作プログラムと通常動作プ
ログラムとの関連が明確になる。その結果、より広い局
面において、PCの各個操作プログラムを通常動作プロ
グラム作成と同時に誤りなく作成でき、かつ保守も容易
なSFCプログラム開発装置を提供できる。
According to the SFC program development apparatus of the third aspect of the invention, in addition to the effect of the first or second aspect of the invention, the information necessary for each related individual operation program when the normal operation program is created. Is input and stored. Therefore, the information necessary for each individual operation program is surely obtained, and the relation between each individual operation program and the normal operation program is clarified. As a result, in a broader aspect, it is possible to provide an SFC program development device in which each individual PC operation program can be created without error at the same time as the normal operation program creation and maintenance is easy.

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

【図1】本発明の一実施例に係るSFCプログラム開発
装置のブロック図である。
FIG. 1 is a block diagram of an SFC program development device according to an embodiment of the present invention.

【図2】シーケンサプログラム記憶部に記憶されたプロ
グラムの形式を模式的に示す図である。
FIG. 2 is a diagram schematically showing a format of a program stored in a sequencer program storage unit.

【図3】各個入力スイッチの記憶形式を模式的に示す図
である。
FIG. 3 is a diagram schematically showing a storage format of each individual input switch.

【図4】SFCプログラム開発装置の動作の流れを示す
フローチャートである。
FIG. 4 is a flowchart showing a flow of operations of the SFC program development device.

【図5】SFC表示画面の模式図である。FIG. 5 is a schematic diagram of an SFC display screen.

【図6】SFC表示画面および詳細表示画面を模式的に
示す図である。
FIG. 6 is a diagram schematically showing an SFC display screen and a detailed display screen.

【図7】SFC表示画面および詳細表示画面を模式的に
示す図である。
FIG. 7 is a diagram schematically showing an SFC display screen and a detailed display screen.

【図8】各個操作プログラムのラダー図である。FIG. 8 is a ladder diagram of each individual operation program.

【図9】SFCの表示形式を模式的に示す図である。FIG. 9 is a diagram schematically showing a display format of SFC.

【図10】選択分岐入力の際のSFC表示画面および詳
細表示画面を模式的に示す図である。
FIG. 10 is a diagram schematically showing an SFC display screen and a detailed display screen at the time of selective branch input.

【図11】プログラム要素の一部が不足している場合の
各個操作プログラムを模式的に示す図である。
FIG. 11 is a diagram schematically showing each individual operation program in the case where some of the program elements are insufficient.

【図12】同一の出力を複数箇所で使用している場合の
各個操作プログラムのラダー図である。
FIG. 12 is a ladder diagram of each individual operation program when the same output is used at a plurality of places.

【図13】各個操作プログラム作成処理のフローチャー
トである。
FIG. 13 is a flowchart of individual operation program creation processing.

【図14】各個入力プログラム作成処理のフローチャー
トである。
FIG. 14 is a flowchart of an individual input program creation process.

【図15】選択合流処理のフローチャートである。FIG. 15 is a flowchart of a selective merging process.

【図16】選択分岐処理のフローチャートである。FIG. 16 is a flowchart of a selective branch process.

【図17】合成処理のフローチャートである。FIG. 17 is a flowchart of a combining process.

【図18】従来の技術を説明するためのあるシステムの
例を模式的に示す図である。
FIG. 18 is a diagram schematically showing an example of a system for explaining a conventional technique.

【図19】図18に示される装置の通常動作のSFCプ
ログラムを示す図である。
19 is a diagram showing an SFC program for normal operation of the device shown in FIG.

【図20】通常動作プログラムのあるステップ内処理プ
ログラムのラダー図である。
FIG. 20 is a ladder diagram of an in-step processing program having a normal operation program.

【図21】各個操作プログラムのラダー図である。FIG. 21 is a ladder diagram of an individual operation program.

【図22】開始条件のラダー図形式を示す図である。FIG. 22 is a diagram showing a ladder diagram format of a start condition.

【図23】従来のシーケンスコントローラのブロック図
である。
FIG. 23 is a block diagram of a conventional sequence controller.

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

100 SFCプログラム開発装置 112 CPU 114 キーボード 116 表示部 118 シーケンサプログラム記憶部 120 各個入力スイッチ格納メモリ 182 SFC表示画面 184 詳細表示画面 100 SFC program development device 112 CPU 114 keyboard 116 display unit 118 sequencer program storage unit 120 individual input switch storage memory 182 SFC display screen 184 detailed display screen

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 SFC形式で作成された、プログラマブ
ルコントローラのための通常動作プログラムから、前記
通常動作プログラムに関連する各個操作プログラムに必
要な所定のプログラム要素を抽出する手段と、 抽出されたプログラム要素を合成して、前記各個操作プ
ログラムを自動的に生成する手段とを含む、SFCプロ
グラム開発装置。
1. A means for extracting a predetermined program element required for each individual operation program related to the normal operation program from the normal operation program for the programmable controller created in the SFC format, and the extracted program element. And a means for automatically generating the individual operation programs.
【請求項2】 前記所定のプログラム要素は、各個操作
のインターロック条件と、開始条件と、終了条件と、入
力スイッチと、出力との任意の組合わせを含む、請求項
1に記載のSFCプログラム開発装置。
2. The SFC program according to claim 1, wherein the predetermined program element includes an arbitrary combination of an interlock condition for each individual operation, a start condition, an end condition, an input switch, and an output. Development equipment.
【請求項3】 プログラム要素を抽出する前記手段は、 通常動作プログラムの作成時に、関連する各個操作プロ
グラムに必要な情報の入力をプログラム作成者に要求す
る入力要求手段と、 前記入力要求手段を介して入力された各個操作プログラ
ムに必要な情報を、通常動作プログラムと関連付けて記
憶する手段とを含む、請求項1または2に記載のSFC
プログラム開発装置。
3. The means for extracting a program element comprises an input requesting means for requesting a program creator to input information necessary for each related individual operation program when a normal operation program is created, and the input requesting means. 3. The SFC according to claim 1 or 2, further comprising: means for storing information input to each individual operation program, which is input in association with the normal operation program.
Program development equipment.
JP22915194A 1994-09-26 1994-09-26 SFC program development equipment Expired - Fee Related JP3170154B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22915194A JP3170154B2 (en) 1994-09-26 1994-09-26 SFC program development equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22915194A JP3170154B2 (en) 1994-09-26 1994-09-26 SFC program development equipment

Publications (2)

Publication Number Publication Date
JPH0895612A true JPH0895612A (en) 1996-04-12
JP3170154B2 JP3170154B2 (en) 2001-05-28

Family

ID=16887581

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22915194A Expired - Fee Related JP3170154B2 (en) 1994-09-26 1994-09-26 SFC program development equipment

Country Status (1)

Country Link
JP (1) JP3170154B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012198871A (en) * 2010-11-30 2012-10-18 Jtekt Corp Control program editing device and support program for generation of control program
JP2013015984A (en) * 2011-07-03 2013-01-24 Jtekt Corp Operation device
JP2016218723A (en) * 2015-05-20 2016-12-22 株式会社ジェイテクト Control program editing device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012198871A (en) * 2010-11-30 2012-10-18 Jtekt Corp Control program editing device and support program for generation of control program
JP2013015984A (en) * 2011-07-03 2013-01-24 Jtekt Corp Operation device
JP2016218723A (en) * 2015-05-20 2016-12-22 株式会社ジェイテクト Control program editing device

Also Published As

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

Similar Documents

Publication Publication Date Title
US5404288A (en) Transfer line control system utilizing distributed computing
JPH0895612A (en) SFC program development equipment
JPH08328829A (en) Parameter change history management system
JP3143330B2 (en) Programmable controller
JP4387288B2 (en) Display device for control, editor device, program, and recording medium
JPS63172303A (en) Programming display method for programmable controller
JPH05181510A (en) Picture display method for programming device in programmable controller
JPH0519817A (en) System for editing sequence program
JP4193505B2 (en) User program development support apparatus, display switching method, and program
JPH0863218A (en) Program constitution display system
JP3182250B2 (en) Automatic repetition detection input device
JPH077839U (en) Numerical control device
JP2691094B2 (en) Demonstration data creation device
JPH0664541B2 (en) Command processor
JPH11134011A (en) Programmable controller
JPH036527B2 (en)
JPH03137767A (en) Data editing system
JPH04357503A (en) Control condition display device for plural pc controllers
JPH02228722A (en) Output code determination method using combination key input
JPH1195825A (en) Execution method of numerical control program
JPH01114922A (en) Method for interpreting operation
JPH04151772A (en) Interactive automatic wiring system
JPH01257399A (en) Interactive arrangement method
JPS62182823A (en) Operating device for electronic computer
JPH0644163A (en) Line switching system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010306

LAPS Cancellation because of no payment of annual fees