JPH05282012A - Automatic verification device for equipment sequence changes - Google Patents

Automatic verification device for equipment sequence changes

Info

Publication number
JPH05282012A
JPH05282012A JP4076498A JP7649892A JPH05282012A JP H05282012 A JPH05282012 A JP H05282012A JP 4076498 A JP4076498 A JP 4076498A JP 7649892 A JP7649892 A JP 7649892A JP H05282012 A JPH05282012 A JP H05282012A
Authority
JP
Japan
Prior art keywords
program
block
signal
output
sequence
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.)
Pending
Application number
JP4076498A
Other languages
Japanese (ja)
Inventor
Toshihiko Hoshino
俊彦 星野
Toshiharu Sakamoto
俊治 坂本
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.)
Mazda Motor Corp
Original Assignee
Mazda Motor 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 Mazda Motor Corp filed Critical Mazda Motor Corp
Priority to JP4076498A priority Critical patent/JPH05282012A/en
Publication of JPH05282012A publication Critical patent/JPH05282012A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

(57)【要約】 【目的】 シーケンスログラムの修正を自動的にチェッ
クする事のできる設備のシーケンス変更内容の自動検証
装置を提案する。 【構成】 生産ラインを構成する複数の生産設備のシー
ケンス動作の変更内容を検証する設備のシーケンス変更
内容の自動検証装置であって、この装置は、ステップに
よって構成されるシーケンスからなるシーケンスプログ
ラムを格納し、このプログラムの生成するルールを前も
って記憶しておき、プログラムが修正された場合は修正
されたプログラムと前記生成ルールを照合する。
(57) [Summary] [Purpose] We propose an automatic verification device for sequence changes of equipment that can automatically check the correction of sequence programs. [Structure] An automatic verification device for sequence change contents of equipment for verifying change contents of sequence operation of a plurality of production facilities that compose a production line, and this device stores a sequence program consisting of a sequence composed of steps. Then, the rule generated by this program is stored in advance, and when the program is corrected, the corrected program is collated with the generation rule.

Description

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

【0001】[0001]

【産業上の利用分野】 本発明は、例えばシーケンサ等
により制御される生産設備のシーケンス変更内容の自動
検証装置に関し、特に、シーケンスプログラムの修正の
改良に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic verification device for sequence change contents of production equipment controlled by, for example, a sequencer, and more particularly to improvement of correction of a sequence program.

【0002】[0002]

【従来の技術】 自動車の組立ラインの如き生産ライン
において、設置された種々の設備に対してコンピユータ
を内蔵したシーケンス制御部を設け、かかるシーケンス
制御部により各設備が順次行なうべき動作についてのシ
ーケンス制御を行なうようにすることが知られている。
かかるシーケンス制御では、シーケンス制御部に内蔵さ
れたコンピユータに制御プログラムがロードされ、その
シーケンス制御部が生産ラインに設置された種々の設備
の夫々に対する動作制御の各段階をシーケンス動作制御
プログラムに従って順次進めていくようになっている。
2. Description of the Related Art In a production line such as an automobile assembly line, a sequence control unit having a built-in computer is provided for various installed facilities, and the sequence control unit controls the sequence of operations to be sequentially performed by each facility. Is known to do.
In such sequence control, a control program is loaded into a computer incorporated in the sequence control unit, and the sequence control unit sequentially advances each step of operation control for each of various equipment installed in the production line in accordance with the sequence operation control program. It is designed to work.

【0003】このようなシーケンス制御による生産管理
では、例えば、特開昭60−238906号のように、
障害が発生した時点で動作状態を表示しているようにし
ている。かかる表示制御では、ラダープログラムと表示
データとは別個に存在しつつも、両者は表裏の関係にあ
り、一方は他方と実質的に同じ内容を有する。なぜな
ら、実行されているプログラムの手順と、表示されてい
るものの手順とが異なれば、それは表示するに値しない
からである。
In production control by such sequence control, for example, as disclosed in JP-A-60-238906,
The operating status is displayed when a failure occurs. In such display control, the ladder program and the display data exist separately, but both have a front-back relationship, and one has substantially the same content as the other. This is because if the procedure of the program being executed is different from the procedure of what is being displayed, it is not worth displaying.

【0004】[0004]

【発明が解決しようとする課題】 ところで、実際の現
場では、生産工程の変化やテスト結果に応じてプログラ
ムの修正を行なうことが多い。そのために、従来では、
僅かのプログラム修正があった場合にも、その修正に対
応して表示データの修正を合わせて行なわなければなら
なかった。かかる修正は主に手作業で行なわれており、
そのために、ミスも多く生産的とはいえなかった。
By the way, in an actual site, a program is often modified according to a change in a production process or a test result. Therefore, conventionally,
Even if there was a slight program correction, the display data had to be corrected corresponding to the correction. Such corrections are mainly done manually,
Because of that, there were many mistakes and it was not productive.

【0005】そこで、本発明は、上記従来技術の欠点に
鑑みてなされたものでその目的は、シーケンスログラム
の修正を自動的にチェックする事のできる設備のシーケ
ンス変更内容の自動検証装置を提案することを目的とす
るものである。
Therefore, the present invention has been made in view of the above-mentioned drawbacks of the prior art, and an object thereof is to propose an automatic verification apparatus for sequence change contents of equipment capable of automatically checking the correction of a sequence program. The purpose is that.

【0006】[0006]

【課題を解決するための手段】及び[Means for Solving the Problems] and

【作用】上記課題を達成するための本発明は、生産ライ
ンを構成する複数の生産設備のシーケンス動作の変更内
容を検証する設備のシーケンス変更内容の自動検証装置
であって、ステップによって構成されるシーケンスから
なるシーケンスプログラムを格納する手段と、このプロ
グラムの生成するルールを記憶する手段と、このプログ
ラムを修正する手段と、修正されたプログラムと前記生
成ルールを照合する手段とを具備する。
The present invention for achieving the above object is an automatic sequence change content verification device for verifying the change contents of sequence operations of a plurality of production equipments forming a production line, and is constituted by steps. It is provided with a means for storing a sequence program consisting of a sequence, a means for storing a rule generated by this program, a means for correcting this program, and a means for collating the corrected program with the generation rule.

【0007】[0007]

【実施例】以下添付図面を参照しながら、本発明を適用
した好適な実施例を説明する。この実施例システムは、
図1に示すように、複数の設備を夫々制御する複数のシ
ーケンス制御部51と、これらのシーケンス制御部51
のためのシーケンサプログラムを生成し、ロードし、保
守するためのCPU60、生成したシーケンサプログラ
ムを人間の理解を容易にしたステップフローマップとし
て表示するためのCRT表示装置58と、それを制御す
る制御ユニット53とからなる。そして、このシステム
の特徴は、 I:シーケンサプログラムを修正したときに、その修正
が本システムのルールに合致しているかをチェックする
機能と、 II:修正がなされたときに、CRT装置58に表示さ
れるステップフローマップをシーケンサプログラムの修
正に合わせて修正する機能とを有する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment to which the present invention is applied will be described below with reference to the accompanying drawings. This example system is
As shown in FIG. 1, a plurality of sequence control units 51 that respectively control a plurality of facilities, and these sequence control units 51.
CPU 60 for generating, loading, and maintaining a sequencer program for CRT, CRT display device 58 for displaying the generated sequencer program as a step flow map that facilitates human understanding, and control unit for controlling it It consists of 53. The features of this system are as follows: I: When a sequencer program is modified, a function to check whether the modification matches the rules of this system; II: When the modification is made, it is displayed on the CRT device 58. The step flow map is corrected according to the correction of the sequencer program.

【0008】そこで、本実施例システムの理解に不可欠
なシーケンサプログラムとシーケンスラダープログラム
とについてまず説明する。シーケンサプログラムとラダープログラム 図2は、シーケンサプログラムの一般的な構造を示した
ものである。通常、シーケンサプログラムは、シーケン
サシステムをスタートしたりストップしたりするなどの
機能を有する各設備間で共通なプログラム部分を含む共
通回路部分と、各シーケンサの実質的な制御手続きを記
述するブロックステップ動作回路部分と、生産情報の受
信などを行なう特殊回路部分とからなる。本実施例にお
いては、上述したプログラムの修正にかかわる部分は、
「ブロックステップ動作回路部分」である。
Therefore, the sequencer program and the sequence ladder program, which are indispensable for understanding the system of this embodiment, will be described first. Sequencer Program and Ladder Program FIG. 2 shows the general structure of a sequencer program. Usually, a sequencer program has a common circuit part including a program part that is common to each facility having functions such as starting and stopping the sequencer system, and a block step operation that describes the substantial control procedure of each sequencer. It consists of a circuit part and a special circuit part for receiving production information. In this embodiment, the part related to the modification of the above-mentioned program is
It is a "block step operation circuit portion".

【0009】周知のように、シーケンサを用いたシーケ
ンス管理では、動作ブロックと動作ステップにより、制
御対象のシステムを表現することが多い。即ち、上記の
シーケンス制御対象の“設備”の全てが行う動作は、複
数の“動作ブロック”に分解することができる。ここで
“動作ブロック”とは、複数の単位動作の集合であると
定義することができる。
As is well known, in sequence management using a sequencer, a system to be controlled is often represented by operation blocks and operation steps. That is, the operations performed by all the "equipment" to be sequence-controlled can be decomposed into a plurality of "operation blocks". Here, the "motion block" can be defined as a set of a plurality of unit motions.

【0010】動作ブロックの最も重要な性質は、ある動
作ブロックの開始から終了に至るまでの中間過程で、他
の動作ブロックから独立して干渉を受けることなく、動
作を完結することができるということである。これらの
性質のために、動作ブロックを1つのブロック(かたま
り)として表記することが可能となる。換言すれば、動
作ブロックは、動作ブロックのレベルにおいてのみ、他
の動作ブロックと関係する。動作ブロックが動作を開始
できるためには、他の動作ブロックにおける動作の終了
が必要となる。この他の動作ブロックは、1つの場合も
あれば、複数の場合もあろう。即ち、1つの動作ブロッ
クの動作終了がそれに連結する別の動作ブロック(1つ
または複数の動作ブロック)の起動条件になったり、複
数の動作ブロックの動作終了が起動条件になったりする
ということである。
The most important property of a motion block is that it can complete a motion in the intermediate process from the start to the end of a motion block independently of other motion blocks without interference. Is. Due to these properties, it is possible to describe the operation block as one block (lump). In other words, a motion block is related to other motion blocks only at the level of the motion block. In order for an operation block to start operation, it is necessary to end the operation in another operation block. There may be one or more other operation blocks. That is, the end of the operation of one operation block becomes a start condition of another operation block (one or a plurality of operation blocks) connected to it, or the end of the operation of a plurality of operation blocks becomes a start condition. is there.

【0011】また、上記性質によれば、動作ブロックに
おける動作の中間段階で、他の動作ブロックに対して起
動をかけるということはない。また、動作ブロックの中
間段階で、他の動作ブロックからの起動を待つというこ
ともない。上記の動作ブロックの定義から、次の付随的
な動作ブロックの性質を導くことができる。即ち、動作
ブロックは、上記の性質を満足する単位動作の集合のな
かで、最大のものであることが望ましい。この性質は絶
対的に必要なものではない。しかし、この性質を満足す
ると、生産ラインを記述する動作ブロックの数が減り、
工程全体の記述が単純化され、大変見易いものとなる。
Further, according to the above-mentioned characteristics, the activation of another operation block is not performed in the intermediate stage of the operation in the operation block. In addition, there is no need to wait for activation from another operation block in the intermediate stage of the operation block. From the above definition of the action block, the following ancillary action block properties can be derived. That is, it is desirable that the motion block be the largest one among the set of unit motions that satisfy the above properties. This property is not absolutely necessary. However, if this property is satisfied, the number of operation blocks that describe the production line decreases,
The description of the whole process is simplified and is very easy to see.

【0012】図3は、ある生産工程をブロックで表現
し、そのうちの3つのブロック(B1、B2、B3)を
抜き出して図示したものである。この例では、ブロック
B1とブロックB2とは並列して動作することが可能で
あり、この2つのブロックの処理が終了してからブロッ
クB3の制御が開始する。通常、設備には多くのアクチ
ュエータデバイスが含まれる。これらのアクチュエータ
デバイスの各々は、図4に示したシリンダシンボルによ
って表現されと理解され易い。例えば、ワークを移動す
るためのアクチュエータを1つ有する設備は図4のシン
ボルそのものによって表現されよう。このシンボルとし
てのアクチュエータは、シリンダ内を図4上で左右に移
動するピストンの位置により、その「出」状態と「戻
り」状態が規定される。ピストンは、ソレノイドバルブ
が、入力される「出力」信号により付勢されあるいは消
勢されることにより、その「出」状態と「戻り」状態の
いずれかを取る。これらの2つの状態は2つのリミット
スイッチ(LS)により確認される。即ち、図4の「設
備」からの出力として、駆動された事を確認するための
リミットスイッチからの出力AO(「出確認」信号)
と、原位置に戻されたことを確認するためのリミットス
イッチからの出力A i(戻り確認信号)とがある。
FIG. 3 is a block diagram showing a certain production process.
And then three blocks (B1, B2, B3)
It is extracted and illustrated. In this example, the block
B1 and block B2 can operate in parallel
Yes, block after processing these two blocks
Control of B3 starts. Equipment usually has many
Includes a user device. These actuators
Each of the devices has the cylinder symbol shown in FIG.
Is easily expressed and understood. For example, move the work
The equipment with one actuator for
It will be represented by Bol itself. With this symbol
All the actuators move left and right in the cylinder in Fig. 4.
Depending on the position of the moving piston, its "out" state and "return"
State is defined. Piston is a solenoid valve
Is activated or deactivated by the incoming “output” signal.
By being energized, the "out" state and the "return" state
Take one. These two states have two limits
It is confirmed by the switch (LS). That is, the “setting” in FIG.
As an output from "Bi", to confirm that it was driven
Output A from limit switchO(“Outgoing confirmation” signal)
And a limit switch to confirm that it has been returned to its original position.
Output A from the switch i(Return confirmation signal).

【0013】ソレノイドを駆動するための信号「出力」
を生成するためのロジックを記述するのがシーケンサプ
ログラムであり、例えば、図5に示されるような特別な
シーケンサ言語により記述され、そのシーケンサプログ
ラムを人間の理解が容易となるようにしたものが図6の
ラダープログラムである。図3に示したような動作ステ
ップフローマップから図5のシーケンサプログラムや図
6のラダープログラムを自動生成する技術を本件の発明
者達は、特願平1−253991、2−30378、2
−30379、2−231843、2−231845号
などにおいて提案している。生成されたラダープログラ
ムとシーケンサプログラムの関係は次のようになる。
Signal "output" for driving the solenoid
A sequencer program describes the logic for generating a sequencer. For example, the sequencer program described in a special sequencer language as shown in FIG. 5 is a diagram that facilitates human understanding. It is a ladder program of 6. The inventors of the present application have proposed a technique for automatically generating the sequencer program of FIG. 5 and the ladder program of FIG. 6 from the operation step flow map as shown in FIG.
It is proposed in Nos. -30379, 2-231843 and 2231845. The relationship between the generated ladder program and sequencer program is as follows.

【0014】今、図3のブロックB1の3つのステップ
S1、S2、S3を用い、ステップS1が終了し、ステ
ップS2が起動されるロジックを図5、図6のプログラ
ムが記述しているとする。ブロックB1の各ステップ
は、図7に示すように、それぞれ3つのシリンダモデル
により等価されるとする。各シリンダでは、そのシリン
ダピストンが実際に動作したことを示す確認LSの信号
が出力される。図6に示すように、動作ステップS2の
動作は、前段のステップS1からの指令(ステップS2
を起動してもよいという指令)を記憶する「指令記憶回
路」と、次のステップS3を起動せよという「指令回
路」と、このステップS2における実質的な出力となる
出力信号を生成する「出力回路」とからなる。言い換え
れば、1つの動作ステップにおける動作は、少なくとも
上記の3つの「指令記憶回路」と「指令回路」と「出力
回路」とから構成される。実際のシステムにおける動作
を記述するプログラムは、3つだけの回路だけからなる
ことは珍しく、もっと多くの回路から構成されることは
多いが、そのような場合であっても、「指令記憶回路」
と「指令回路」と「出力回路」とは機能的にも必要とな
る。
Now, it is assumed that the program of FIGS. 5 and 6 describes the logic using the three steps S1, S2 and S3 of the block B1 of FIG. 3 to complete the step S1 and activate the step S2. .. Each step of block B1 is assumed to be equivalent by three cylinder models, as shown in FIG. Each cylinder outputs a confirmation LS signal indicating that the cylinder piston has actually operated. As shown in FIG. 6, the operation of the operation step S2 is performed by the command from the previous step S1 (step S2
"Command storage circuit" for storing (command for starting), "command circuit" for starting the next step S3, and "output for generating an output signal that is a substantial output in step S2" Circuit ". In other words, the operation in one operation step is composed of at least the above-mentioned three "command storage circuit", "command circuit" and "output circuit". A program that describes the operation of an actual system is rarely composed of only three circuits, and is often composed of more circuits. Even in such a case, the "command storage circuit"
The "command circuit" and "output circuit" are also required functionally.

【0015】これらの3つの回路の各々は、シーケンサ
プログラムにおいては、図5に示すように、LD命令と
OUT命令とにより括われている。即ち、各回路は、L
D命令により始まりOUT命令により終わる。図5のシ
ーケンサプログラムと図6のラダープログラムとの関係
は、LD命令によりそのオペランド部分(「S1指令記
憶」)がラダープログラムの先頭(図6の1の位置)に
置かれ、AND命令により、そのオペランド(「S1確
認LS」)が2の位置に、即ち、「S1指令記憶」のシ
リーズで接続される。また、OR命令によりそのオペラ
ンド部分(「S2指令記憶」)が6の位置に、「S1確
認LS」と「S1指令記憶」に対仕手並列の位置に置か
れる。また、NAND命令は通常ではクローズしている
スイッチをシリーズの位置に付加する命令である。ま
た、OUT命令はそのオペランド部分を信号として出力
するものであり、ラダープログラム内では〈 〉で表さ
れる。具体的には、図6の2の位置のステップS1のシ
リンダの動作が確認されたことを示す「S1確認LS」
が1になったときに、「OUT S2指令記憶」によ
り、信号「S2指令」が、ステップS3のためのラダー
プログラムに、そして、ステップS2の「指令回路」中
に出力される。また、「OR S2指令記憶」は「指令
記憶回路」のラッチ用である。即ち、一旦、「S2指令
記憶」が出力されると、OR回路により、ステップS1
の状態にかかわらず「S2指令記憶」は1のままであ
る。
In the sequencer program, each of these three circuits is enclosed by an LD instruction and an OUT instruction, as shown in FIG. That is, each circuit is L
It starts with the D command and ends with the OUT command. The relationship between the sequencer program of FIG. 5 and the ladder program of FIG. 6 is that the LD instruction places the operand portion (“S1 command storage”) at the beginning of the ladder program (position 1 in FIG. 6) and the AND instruction The operand (“S1 confirmation LS”) is connected to the position of 2, that is, in the series of “S1 command storage”. Further, the operand portion (“S2 command storage”) is placed at the position of 6 by the OR instruction, and the position for the operator is parallel to “S1 confirmation LS” and “S1 command storage”. The NAND command is a command for adding a switch that is normally closed to the position of the series. The OUT instruction outputs its operand portion as a signal and is represented by <> in the ladder program. Specifically, "S1 confirmation LS" indicating that the operation of the cylinder in step S1 at the position 2 in FIG. 6 has been confirmed.
When becomes 1, the signal "S2 command" is output to the ladder program for step S3 and to the "command circuit" of step S2 by "OUT S2 command storage". The "OR S2 command storage" is for latching the "command storage circuit". That is, once “S2 command storage” is output, the OR circuit causes step S1
The "S2 command memory" remains 1 regardless of the state.

【0016】図5の「指令回路」と図6の「指令回路」
とを比較するとわかるように、信号「S2指令」が出力
されるのは、「ステップ送り」信号が1であり、ブロッ
クB1が起動されており(「B1起動中」が1)、「指
令記憶回路」から「S2指令記憶」が出力され、ステッ
プS2のシリンダの動作がまだなされていないときであ
る。一旦、「S2指令」が出力されると、12の位置の
OR回路により、信号「ステップ送り」の状態にかかわ
らず「S2指令」は1のままである。
The "command circuit" of FIG. 5 and the "command circuit" of FIG.
As can be seen by comparing with, the signal "S2 command" is output when the "step feed" signal is 1, the block B1 is activated ("B1 is being activated" is 1), and This is when "S2 command storage" is output from the "circuit" and the cylinder operation in step S2 has not been performed yet. Once the "S2 command" is output, the "S2 command" remains at 1 regardless of the state of the signal "step feed" by the OR circuit at the 12th position.

【0017】そして、「S2指令」が1になると「S2
出力」が出力される。「S2出力」は、ステップ2のシ
リンダが動作して、その確認LSからの信号が1になっ
て10の位置のスイッチにより信号「S2指令」が0に
なるまで1のままである。ラダープログラムの自動生成 以上が、ラダープログラムとシーケンサプログラムとの
対応関係の説明であり、上記の先行出願では、図9に示
した標準ラダーパターンを用いて、図3のようなマップ
から図5、図6のプログラムを自動的に生成することを
提案している。その詳細はここでは説明しないが、その
概略は次のようである。1つの生産システムに使われ得
る設備は前もって知っているものであり、従ってその設
備のアクチュエータデバイスも既知であるという点に着
目する。1つのステップの動作は1つののデバイス即ち
シリンダの動作に対応し、シリンダの動作は、図4に示
すように、そのシリンダのソレノイドを駆動する信号
「出力」(を記憶するメモリ番地)と、そのシリンダが
駆動されたことを確認する信号「確認LS」(を記憶す
るメモリ番地)と、そのシリンダを手動で動かすための
信号「手動」(を記憶するメモリ番地)とにより規定さ
れる。図9は、上記3つの信号により各アクチュエータ
デバイスを規定するというルールにもとづいて作成し
た、アクチュエータデバイスの仕様を表すテーブルであ
り、発明者達は「実I/Oマップ」と名付けた。図9の
実I/Oマップの例では、信号「出力」、信号「確認L
S」、信号「手動」の他に、「動作名」フィールドと
「中間」フィールドとが設けられている。「動作名」フ
ィールドは、そのアクチュエータデバイスが行なう予定
の動作の名称であり、この「動作名」をそのデバイスの
名称とすることにより、任意のデバイスを名称により参
照することを可能にした。なお、デバイス名により任意
のデバイスをプログラム的に指定若しくは参照可能にし
た生産管理システムを、本願の発明者達が特願平3−6
7290号などに提案している。
When the "S2 command" becomes 1, "S2 command"
"Output" is output. The "S2 output" remains 1 until the signal from the confirmation LS becomes "1" and the signal "S2 command" becomes "0" by the switch at the 10th position when the cylinder in step 2 operates. Automatic Generation of Ladder Program The above is the description of the correspondence relationship between the ladder program and the sequencer program. In the above-mentioned prior application, the standard ladder pattern shown in FIG. It is proposed to automatically generate the program of FIG. The details are not described here, but the outline is as follows. Note that the equipment that can be used in a production system is known in advance, and therefore the equipment's actuator devices are also known. The operation of one step corresponds to the operation of one device, that is, the cylinder, and the operation of the cylinder is, as shown in FIG. 4, a signal "output" (memory address for storing) for driving the solenoid of the cylinder, It is defined by a signal "confirmation LS" (a memory address storing therein) for confirming that the cylinder has been driven and a signal "manual" (a memory address storing therein) for manually moving the cylinder. FIG. 9 is a table showing specifications of actuator devices created based on the rule that each actuator device is defined by the above three signals, and the inventors named the “actual I / O map”. In the example of the actual I / O map of FIG. 9, the signal “output” and the signal “confirmation L”
In addition to "S" and the signal "manual", an "action name" field and an "intermediate" field are provided. The "operation name" field is the name of the operation that the actuator device is scheduled to perform. By using this "operation name" as the name of the device, it is possible to refer to any device by name. The inventors of the present application have proposed a production management system in which an arbitrary device can be programmatically specified or referred to by a device name.
7290 and so on.

【0018】また、図9の実I/Oマップの「中間」フ
ィールドは、当該デバイスの動作を中間的に確認する信
号を格納するフィールドであり、本実施例では、「指令
回路」中の出力信号を、図6の例でいえば「S2指令」
を、「中間信号」として用いる。上記先行出願で開示し
たラダープログラムやシーケンサプログラムに自動生成
システムは、後述する「ブロックフローマップ」や「ス
テップフローマップ」と、その生産ラインに使われるデ
バイスの入出力関係を一般的に表現する『実I/Oマッ
プ』とを、結合することによりラダープログラムを作成
する。この結合は、「ブロックフローマップ」や「ステ
ップフローマップ」に使われているブロックの名称やス
テップの名称やデバイスの名称と、「実I/Oマップ」
に記憶されているデバイスの名称とをリンクすることに
よりなされる。
Further, the "intermediate" field of the actual I / O map of FIG. 9 is a field for storing a signal for intermediately confirming the operation of the device, and in this embodiment, the output in the "command circuit". In the example of FIG. 6, the signal is “S2 command”.
Is used as the “intermediate signal”. The automatic generation system for the ladder program and the sequencer program disclosed in the above-mentioned prior application generally expresses the "block flow map" and "step flow map" described later and the input / output relationship of the devices used in the production line. And a real I / O map ”are combined to create a ladder program. This combination is based on the block name, step name and device name used in the "block flow map" and "step flow map" and the "real I / O map".
This is done by linking with the device name stored in.

【0019】ここで、ブロックフローマップやステップ
フローマップについて説明する前に、実施例のシーケン
サ制御プログラム/ラダープログラム生成システムのハ
ード構成について図12〜図14を参照しながら説明す
る。図12において、マスタテーブル101は、対象の
生産ラインの全設備(アクチュエータ等)に関する、デ
バイス名称、その動作の種類、そして、それらのデバイ
スを図9のようなシンボルで表記した場合の入力信号,
出力信号の名称をテーブル化した前述の「実I/Oマッ
プ」を含む。データベース100は、この生産ラインに
使われる全設備(アクチュエータ等のデバイス)に付け
られる名称等を記憶するライブラリを含む。このライブ
ラリは、操作者によるデバイス名称の付与に恣意性が入
り込むのを排除するために設けられている。データベー
ス100は、ライブラリの他に、「ブロックフローマッ
プ」,「ステップフローマップ」を含む。ブロックフロ
ーマップは図10のようなマップであって、図3に示さ
れた人間の理解の容易さを意図した動作ブロックフロー
チャートをマップ化することにより、コンピユータのデ
ータ処理を可能にしたものである。ステップフローマッ
プは各ステップの実際の生産ラインにおける動作を図1
1のようにマップ化することにより、コンピユータのデ
ータ処理を可能にしたものである。
Before describing the block flow map and step flow map, the hardware configuration of the sequencer control program / ladder program generation system of the embodiment will be described with reference to FIGS. 12 to 14. In FIG. 12, the master table 101 has a device name, an operation type, and an input signal when the devices are represented by symbols as shown in FIG. 9 for all the equipment (actuators, etc.) of the target production line.
It includes the above-mentioned "real I / O map" in which the names of output signals are tabulated. The database 100 includes a library that stores names and the like given to all equipment (devices such as actuators) used in this production line. This library is provided to prevent the operator from giving arbitrariness to the device name. The database 100 includes a “block flow map” and a “step flow map” in addition to the library. The block flow map is a map as shown in FIG. 10, and makes it possible for the computer to process data by mapping the operation block flow chart shown in FIG. 3 intended to facilitate human understanding. .. The step flow map shows the operation of each step in the actual production line.
By mapping as shown in 1, the computer data processing is enabled.

【0020】図12に示された実施例のシステムは、上
記のデータベース100やマスタテーブル101内の
『実I/Oマップ』の他に、「データ生成」、「自動プ
ログラミング」、「シュミレーション」、「故障診断/
CRT操作盤」という4つのサブシステムからなる。図
13は、図12で説明した実施例システムを、ハードウ
エア構成の観点から改めて書き直したものである。同図
に示すように、ハード構成の観点から見た本システム
は、制御対象設備50とCPU60と、ユーザインタフ
ェースとしてのCRTを制御するCRTパネル制御ユニ
ット53と、前述のマップやデータベースを格納するデ
ータファイル56とからなる。CPU60は、ラダープ
ログラムの自動生成と前述のマップの生成とを行う自動
プログラミング/データ入力制御プログラム(制御部)
55と、故障診断を行う故障診断制御プログラム(制御
部)52と、シュミレーション制御を行うシュミレーシ
ョン制御プログラム(制御部)54とから成る。これら
のユニットは通信回線61で接続され、データファイル
56は高速化を図るためにも半導体メモリが適当であ
る。
In the system of the embodiment shown in FIG. 12, in addition to the "real I / O map" in the database 100 and the master table 101, "data generation", "automatic programming", "simulation", "Fault diagnosis /
It consists of four subsystems called "CRT operation panel". FIG. 13 is a rewrite of the embodiment system described in FIG. 12 from the viewpoint of the hardware configuration. As shown in the figure, this system from the viewpoint of the hardware configuration includes a control target equipment 50, a CPU 60, a CRT panel control unit 53 for controlling a CRT as a user interface, and data for storing the above-mentioned maps and databases. And files 56. The CPU 60 is an automatic programming / data input control program (control unit) that automatically generates a ladder program and the above-mentioned map.
55, a failure diagnosis control program (control section) 52 for performing failure diagnosis, and a simulation control program (control section) 54 for performing simulation control. These units are connected by a communication line 61, and a semiconductor memory is suitable for the data file 56 in order to increase the speed.

【0021】CRTパネル制御部53は、CRT表示装
置58のほかに、その表示画面のうえに装着されたタッ
チパネル57を有する。本システムでは、自動プログラ
ミングの過程、シュミレーションの過程、故障診断の過
程などで操作者とのインターフェースが必要となるが、
制御ユニット53は、周知のマルチウインド表示制御に
より、複数のウインドをCRT58上に表示し、操作者
は表示されたウインド内の複数のアイテムの中からタッ
チパネル57を使って所望のアイテムを選択する。した
がって、タッチパネル57の代わりに、ポインテイング
デバイスを用いてもよいのは言うまでもない。
In addition to the CRT display device 58, the CRT panel control section 53 has a touch panel 57 mounted on its display screen. This system requires an interface with the operator during the automatic programming process, simulation process, failure diagnosis process, etc.
The control unit 53 displays a plurality of windows on the CRT 58 by the well-known multi-window display control, and the operator selects a desired item from the plurality of items in the displayed window by using the touch panel 57. Therefore, it goes without saying that a pointing device may be used instead of the touch panel 57.

【0022】図14は自動プログラミング/データ入力
制御部55におけるプログラム構成を示す。最下層には
いわゆる「オペレーテイングシステム」200が格納さ
れ、さらに、「マルチウインドーシステム」201と、
日本語を入力するための「日本語フロントエンドプロセ
サ」(JFEP)202と、フローチャート作成するた
めの「図形プロセサ」203と、ライブラリを作成する
「ライブラリ作成」プログラム204と、実I/Oマッ
プを作成する「マップ作成プログラム」205と、フロ
ーマップを作成する「マップ作成プログラム」207
と、このフローマップからラダープログラム(図6)や
シーケンサプログラム(図5)を作成するコンパイラ2
06と、生成されたプログラムを修正編集するための
「プログラム編集プログラム」208とからなる。
FIG. 14 shows a program structure in the automatic programming / data input control section 55. A so-called "operating system" 200 is stored in the lowermost layer, and a "multi-window system" 201 and
A "Japanese front-end processor" (JFEP) 202 for inputting Japanese, a "graphic processor" 203 for creating a flowchart, a "library creation" program 204 for creating a library, and an actual I / O map A "map creation program" 205 to be created and a "map creation program" 207 to create a flow map
And a compiler 2 that creates a ladder program (Fig. 6) and a sequencer program (Fig. 5) from this flow map.
06 and a “program editing program” 208 for modifying and editing the generated program.

【0023】図形プロセサは、図3のフローチャートを
作成するためのプロセサで、フローチャートのシンボル
としてのボックスを書く機能と、そのボックスに名称を
付す機能と、そのボックスの中に文章を入力する機能
と、複数のボックス同士を連結する機能とからなる。こ
の図形プロセサが作動している最中は、CRT装置58
の画面上には、データファイル56内の前述のライブラ
リから入力可能なアイテムが、マルチウインドモードで
表示される。ここで、アイテムとは、前述した、デバイ
ス名称、動作ステツプ名称、動作ブロック名称等のリテ
ラルデータである。操作者はタッチパネル57により、
特定のアイテムを選択することにより所望の入力が可能
となる。また、ライブラリにない名称については、前述
の日本語FEPの助けにより、自由な入力が可能とな
る。入力可能なアイテムをウインド表示し、その中から
所望のアイテムを選択するようにしたのは、名称が恣意
的なものとならないようにするためである。なお、この
ようなマルチウインド制御システムや、図形プロセサ、
日本語FEPはすでに周知であり、その詳細な説明は不
要である。日本語FEPの主な機能は、日本語のローマ
字読みの入力を漢字仮名混じり文に変換するものであ
る。
The figure processor is a processor for creating the flowchart of FIG. 3, and has a function of writing a box as a symbol of the flowchart, a function of giving a name to the box, and a function of inputting a sentence into the box. , And the function of connecting a plurality of boxes to each other. While this graphics processor is operating, the CRT device 58
Items that can be input from the above-mentioned library in the data file 56 are displayed in the multi-window mode on the screen. Here, the item is literal data such as the device name, the operation step name, and the operation block name described above. The operator uses the touch panel 57 to
A desired input can be made by selecting a specific item. In addition, it is possible to freely input names that are not in the library with the help of Japanese FEP described above. The reason why the items that can be input are displayed in the window and the desired item is selected from them is to prevent the names from being arbitrary. In addition, such multi-window control system, graphic processor,
Japanese FEP is already well known and detailed description thereof is unnecessary. The main function of Japanese FEP is to convert the input of Japanese romaji reading into a sentence containing kanji and kana.

【0024】ブロックフローマップについて説明する。
図10は、本システムで重要な役割を有するブロックフ
ローマップであり、このマップは図3の動作ブロックフ
ローチャートをCPU60のフローマップ作成プログラ
ムにより変換したものであり、データファイル56に格
納される。このマップは、同図に示すように、7つのア
イテム、即ち、「ブロック番号」、「ブロック名称」、
「FROM」、「TO」、「ステップカウンタ」、「ス
テップOK」、「ブロック動作オン」、「ブロック動作
可記憶」などのフィールドからなる。ブロック名称はそ
のブロックにつけられた名称である。ブロックはブロッ
ク名称によりユニークに特定できるが、ブロック番号を
付すことにより、そのブロックを簡単に特定することが
できる。「FROM」は、そのブロックが、他の上位の
どのブロックから連結されているかを示す。「FRO
M」の部分に、複数のブロック番号が記されている場合
は、それらのブロックに当該ブロックが接続されている
ことを示す。「TO」は、そのブロックが、他の下位の
どのブロックに連結されているかを示す。「TO」の部
分に、複数のブロック番号が記されている場合は、それ
らのブロックに当該ブロックが接続されていることを示
す。ブロックフローマップの「ステップカウンタ」は当
該ブロックで現在どのステップが実行されているかを示
す。
The block flow map will be described.
FIG. 10 is a block flow map having an important role in the present system. This map is a conversion of the operation block flowchart of FIG. 3 by the flow map creating program of the CPU 60, and is stored in the data file 56. As shown in the figure, this map has seven items, namely, "block number", "block name",
The fields include "FROM", "TO", "step counter", "step OK", "block operation ON", "block operation enable memory" and the like. The block name is the name given to the block. The block can be uniquely specified by the block name, but the block can be easily specified by adding the block number. “FROM” indicates from which other upper block the block is connected. "FRO
When a plurality of block numbers are written in the "M" portion, it indicates that the block is connected to the block. “TO” indicates to which other lower block the block is connected. When a plurality of block numbers are written in the "TO" part, it indicates that the block is connected to the block. The “step counter” of the block flow map indicates which step is currently being executed in the block.

【0025】図11のステツプフローマップは、実際の
生産ラインにおける動作を記述するマップである。この
マップのアイテムは、図11のaの部分に示すように、
当該ステップが属するブロックの番号を示す「ブロック
番号」、その「ステップ番号」、当該ステップの「名
称」、「FROM」、「TO」、「出力」、「確認」、
「手動」、「指令記憶出力」である。「FROM」、
「TO」等のフィールドは、ブロックフローマップの場
合と同じようにステップ間の接続関係を表す。「指令記
憶出力」フィールドは、図6で説明した「指令記憶」の
出力が格納される。
The step flow map of FIG. 11 is a map for describing the operation on the actual production line. Items of this map are as shown in part a of FIG.
“Block number” indicating the number of the block to which the step belongs, “step number”, “name” of the step, “FROM”, “TO”, “output”, “confirm”,
“Manual” and “command storage output”. "FROM",
The field such as “TO” represents the connection relation between steps as in the case of the block flow map. The "command storage output" field stores the output of the "command storage" described with reference to FIG.

【0026】ラダープログラムやシーケンサプログラム
が生成される前は、ステップフローマップは図11のa
に示すように、ステップ番号を除いた各フィールドはブ
ランクである。ステップ番号は無指定で前もって順に入
っている。任意の生産ラインにおける生産工程を表すブ
ロックフローチャートやステップフローチャートによ
り、適宜「実I/Oマップ」を参照しながら図11のb
の部分に示したステップフローマップを作成するのは次
のようにする。
Before the ladder program and the sequencer program are generated, the step flow map is shown in FIG.
As shown in, each field except the step number is blank. The step numbers are unspecified and pre-ordered. Referring to a block flow chart or a step flow chart showing a production process in an arbitrary production line, referring to "actual I / O map" as needed, b in FIG.
The step flow map shown in the section is created as follows.

【0027】操作者は、プログラム化しようとする生産
ラインのブロック手順と各ブロックにおけるステップ手
順とを図3に示すように作成する。図3のチャートは、
図形プロセツサ203を用いて作成したものであり、そ
のデータはベクトル化されたデータである。ステツプフ
ローマップの最初の6つのフィールド、即ち「ブロック
番号」、「ステップ番号」、「名称」、「動作」、「F
ROM」、「TO」のためのデータは、フローマップ作
成プログラムが、前記ベクトル化された動作ステツプフ
ローチヤートから、ブロックフローマップの作成と同じ
要領で作成する。残りのフィールド、即ち「出力」、
「確認」「手動」のためのデータは、自動プログラミン
グ制御部55のラダープログラムコンパイラがラダープ
ログラムを生成する時に、これらのフィールドに、前述
の「実I/Oマップ」からのデータを埋め込む。また、
ラダープログラムコンパイラ206は、各ステップに、
図9に示した3種類の定型パターンのいずれかを適用し
ながら、ラダープログラム要素を作成していく。そし
て、このコンパイルの課程で、確信強姦のラダープログ
ラム中での使われ方を示す所謂「クロスリファレンスリ
スト」も作成され、このリストはXREFとして図13
のデータファイル56中に格納される。
The operator creates the block procedure of the production line to be programmed and the step procedure in each block as shown in FIG. The chart in Figure 3
It is created by using the graphic processor 203, and the data is vectorized data. The first six fields of the step flow map, namely "block number", "step number", "name", "action", and "F".
The data for "ROM" and "TO" is created by the flow map creation program from the vectorized operation step flow chart in the same manner as the creation of the block flow map. The remaining fields, namely "output",
The data for "confirmation" and "manual" embed the data from the above-mentioned "real I / O map" in these fields when the ladder program compiler of the automatic programming control unit 55 generates a ladder program. Also,
The ladder program compiler 206
The ladder program element is created while applying one of the three types of standard patterns shown in FIG. Then, in the course of this compilation, a so-called "cross-reference list" showing how it is used in the ladder program of conviction rape is created, and this list is shown as XREF in FIG.
Data file 56.

【0028】以上のようにすると、図3のチャートから
図6に示したようなラダープログラムが完成され、この
ラダープログラムから図5のようなシーケンサプログラ
ムが完成される。しかしながら、図5や図6に示された
自動生成された各プログラムはあくまでも公称の動作を
記述するプログラムであり、実際の現場においては、そ
の現場にあった微妙な調整を必要とするものである。そ
の調整に使われるロジックが図6に示したインタロック
回路(ILC0、ILC1)である。また、実際のシステ
ムの運用に際しては、上記インタロック回路による調整
だけでは不足になる場合もあり、かかる場合は、1つの
動作ステップを、4つ以上の個数の回路により表現する
場合もあろう。この点で、図14の「プログラム編集」
機能(208)が意味あるものとなる。プログラム修正 前述したように、「プログラム編集」プログラムは、 I:シーケンサプログラムやラダープログラムを修正し
たときに、その修正が本システムのルールに合致してい
るかをチェックする機能と、 II:修正がなされたときに、CRT装置58に表示さ
れるステップフローマップをシーケンサプログラムの修
正に合わせて修正表示する機能とを有する。
By doing the above, the ladder program as shown in FIG. 6 from the chart of FIG. 3 is completed, and the sequencer program as shown in FIG. 5 is completed from this ladder program. However, each of the automatically generated programs shown in FIGS. 5 and 6 is a program that describes a nominal operation, and in an actual site, it is necessary to make a fine adjustment suitable for the site. .. The logic used for the adjustment is the interlock circuit (ILC 0 , ILC 1 ) shown in FIG. In actual operation of the system, the adjustment by the interlock circuit may be insufficient, and in such a case, one operation step may be represented by four or more circuits. In this respect, "Program edit" in FIG.
The function (208) becomes meaningful. Program modification As mentioned above, the "program edit" program has the following functions: I: When a sequencer program or ladder program is modified, a function to check whether the modification matches the rules of this system; In this case, the step flow map displayed on the CRT device 58 is corrected and displayed in accordance with the correction of the sequencer program.

【0029】本実施例の「プログラム編集」プログラム
208は、ラダープログラムやシーケンサプログラムの
ロジックエラーを検出し修正するものではなく、将来の
ロジックエラーに結び付く可能性のある文法上のエラー
(シンタックスエラー)を検出するものである。この文
法を規定するのが以下に述べるルールである。本実施例
のルールは2つの基本ルールからなる。ラダープログラ
ムは図6に示すように一定の基本パターンを有するか
ら、このパターンに合致しないような修正はエラーであ
る。パターンに合致するか 否かは次の2つのルールで
判断される。即ち、 ルールA: 回路中でしかるべき位置にしかるべき識別
子(後述)を有する信号があるか否か。 ルールB: 回路中でしかるべき位置にしかるべき回路
からの信号が来ているか否か。
The "program edit" program 208 of the present embodiment does not detect and correct the logic error of the ladder program or the sequencer program, but a grammatical error (syntax error) that may lead to a future logic error. ) Is detected. The rules described below define this grammar. The rule of this embodiment is composed of two basic rules. Since the ladder program has a fixed basic pattern as shown in FIG. 6, a correction that does not match this pattern is an error. Whether or not it matches the pattern is determined by the following two rules. That is, Rule A: Whether there is a signal having an appropriate identifier (described later) at an appropriate position in the circuit. Rule B: Whether or not a signal from an appropriate circuit comes in an appropriate position in the circuit.

【0030】これらのルールに合致しない修正はエラー
として報告され、合致する修正は適切な修正として、そ
の修正に見合うように表示画面の変更がなされる。ここ
で識別子について説明する。図11に示すように、各動
作ステップは、プログラム的には、「出力」、「確
認」、「中間」、「手動」、「指令記憶出力」という5
つのフィールドにより規定される。そして、「出力」は
その動作ステップの出力信号(図6の「S2出力」)を
意味し、「確認」はその動作ステップのアクチュエータ
デバイスのシリンダの動作を確認するための信号(図6
の「S2確認LS」)を意味し、「中間」は当該動作ス
テップの「指令」信号(図6の「S2指令」)を意味
し、「手動」は、「指令記憶出力」は次のステップに対
する動作可を意味する信号(図6の「S2指令記憶」)
である。換言すれば、これらの信号をそのように用いる
ことにより始めて図12のシステムはプログラムの自動
生成が可能となり、また、その後のプログラム保守も一
貫性が保たれるのである。そこで、この実施例では、
「出力」、「確認」、「中間」、「手動」、「指令記憶
出力」のグループの各々に対して、その名称に対して、
夫々を互いに識別するユニークな識別子を設けることと
する。プログラムが修正されて、何らかのスイッチやデ
バイスなどがラダープログラムやシーケンサプログラム
に追加されたときは、その追加されたものが上記5つの
どのグループに属するかを、その追加がプログラム中の
どの部分になされたかにより判断し、追加された各要素
がどのグループに属するかが判定されたならば、その要
素に付加された名称は、上記ルールに適合しているかを
判断する。
A correction that does not match these rules is reported as an error, and a matching correction is regarded as an appropriate correction, and the display screen is changed to match the correction. The identifier will be described here. As shown in FIG. 11, each operation step is programmatically referred to as “output”, “confirm”, “intermediate”, “manual”, and “command storage output”.
Specified by two fields. Then, “output” means an output signal (“S2 output” in FIG. 6) of the operation step, and “confirmation” is a signal for confirming the operation of the cylinder of the actuator device in the operation step (FIG. 6).
“S2 confirmation LS”), “intermediate” means a “command” signal (“S2 command” in FIG. 6) of the operation step, “manual” means “command storage output” at the next step. A signal indicating that operation is possible (“S2 command storage” in FIG. 6)
Is. In other words, it is only by using these signals so that the system of FIG. 12 is capable of automatic program generation, and subsequent program maintenance is also consistent. So, in this example,
For each of the groups of “output”, “confirmation”, “intermediate”, “manual”, and “command storage output”,
A unique identifier for identifying each other will be provided. When the program is modified and some kind of switch or device is added to the ladder program or sequencer program, which part of the above five groups the addition belongs to is added to which part of the program. If it is determined which group each added element belongs to, it is determined whether the name added to the element complies with the above rule.

【0031】図15に、上記5つの信号グループについ
ての、そのグループを識別する識別子を示す。この例で
は、「出力」グループについては識別子「−(ハイフ
ン)0」と、「確認」グループについては識別子「−
1」と、「中間」グループについては識別子「−2」
と、「手動」グループについては識別子「−3」と、
「指令記憶出力」グループについては識別子「−4」と
する。
FIG. 15 shows identifiers for identifying the above five signal groups. In this example, the identifier "-(hyphen) 0" for the "output" group and the identifier "-" for the "confirm" group.
1 "and the identifier" -2 "for the" intermediate "group
And the identifier "-3" for the "manual" group,
The identifier "-4" is assigned to the "command storage output" group.

【0032】そこで、図12及び図14のシステムに適
用されているルールA、Bについてまず説明する。ルールA 前述したように、ラダープログラムやシーケンサプログ
ラムに用いられるところの、「出力」、「確認」、「中
間」、「手動」、「指令記憶出力」と言うグループのど
れかに属する信号名は、各々それらを識別する識別子を
有さなければならない。従って、特定の位置にある信号
は特定の識別子を持たなくてはならない事になる。そし
て、ステップを表す回路は、図6に示したように、3つ
の回路、即ち「指令記憶回路」と「指令回路」と「出力
回路」とを有し、各々の回路は夫々独自のパターンを有
する。このことから、次のルールを導くことができる。A−1「指令記憶」回路のルール : 「指令記憶」回路
は、前段のステップの「指令記憶」(図6のS1指令記
憶」)と「確認LS」(図6の「S1確認LS」)とを
並列回路中に含む。また、当該ステップの次のステップ
が動作していないことを示す確認LS(図6の「S3指
令記憶」)信号がシリーズでNAND形式で挿入されて
いる。また、前記並列回路中には、OR関係で、この
「指令記憶回路」の出力である「指令記憶」(図6のS
2指令記憶)を含む。更に、「指令記憶回路」の出力は
「指令記憶」信号である。
Therefore, the rules A and B applied to the systems of FIGS. 12 and 14 will be described first. Rule A As mentioned above, the signal names that belong to any of the groups "output", "confirm", "intermediate", "manual", and "command storage output" that are used in ladder programs and sequencer programs are , Each must have an identifier that identifies them. Therefore, the signal at a specific position must have a specific identifier. As shown in FIG. 6, the circuit representing the step has three circuits, that is, a "command storage circuit", a "command circuit" and an "output circuit", and each circuit has its own pattern. Have. From this, the following rules can be derived. A-1 Rule of "command memory" circuit: The "command memory" circuit has "command memory" (S1 command memory in Fig. 6) and "confirmation LS"("S1 verification LS" in Fig. 6) in the previous step. And are included in the parallel circuit. In addition, a confirmation LS (“S3 command storage” in FIG. 6) signal indicating that the step following the step is not operating is inserted in series in the NAND format. Further, in the parallel circuit, the “command storage” (S in FIG. 6) which is the output of the “command storage circuit” is OR-related.
2 command memory). Further, the output of the "command storage circuit" is the "command storage" signal.

【0033】従って、1の位置の信号の識別子は「−
4」であり、2の位置の信号の識別子は「−1」であ
り、6の位置の信号の識別子は「−4」であり、3の位
置の信号の識別子は「−4」であり、5の位置の信号の
識別子は「−4」でなくてはならない。従って、これら
の1、2、3、5、6の位置にある信号が対応する識別
子を有さない時はエラーとする。A−2(指令回路のルール) : 「指令回路」中には1
つの並列回路があり、その回路中の信号は、7の位置の
「ステップ送り」と、12の位置の当該「指令回路」の
出力信号(「図6のS2指令」)である。12の位置の
信号は「中間」であるから、識別子「−2」を有さなけ
ればならない。また、この並列回路の後にシリーズに、
8の位置に「指令記憶回路」の出力信号(図6の「S2
指令記憶」)が配置されている。この信号は識別子「−
4」を有さなくてはならない。その後に、当該ブロック
が起動中である事を示す信号(図6の「B1起動中」)
を含み、次に、当該ステップの確認信号(「確認L
S」)がシリーズに配置されている。この「確認LS」
を示す識別子「−1」を有さな区手はならない。指令回
路の出力は「中間」であるから、11の位置の識別子は
「−2」でなくてはならない。従って、8、10、1
1、12の位置に、それらに対応する識別子を有さない
信号が含まれている場合は、その指令回路はエラーであ
る。い信号しか「指令回路」はエラーである。A−3(出力回路のルール) : 「出力回路」中には、
1つの並列回路があり、その並列回路は、13の位置の
前記「指令回路」の出力信号(「S2指令」)と16の
位置の「手動」信号を含む。13の位置の識別子は「−
2」であり、16の位置の識別子は「−3」であり、1
5の位置の識別子は「−0」でなくてはならない。従っ
て、13、15、16の位置の信号が対応する識別子を
有さない場合は、その出力回路はエラーである。ルールB: このルールBは、回路中でしかるべき位置
にしかるべき回路からの信号が来ていなくてはならない
というものである。ここで、ルールBにおける「しかる
べき位置」とは、図6の1、8、13の位置である。例
えば、8の位置の信号は、5の位置の信号と同じでなく
てはならない。13の位置は11の位置の信号と同じで
なくてはならない。また、1の位置の信号は前段のステ
ップの5の位置の信号と同じでなくてはならない。この
ルールBに従わなければエラーとなる。
Therefore, the identifier of the signal at the position 1 is "-".
4 ", the identifier of the signal at the position 2 is" -1 ", the identifier of the signal at the position 6 is" -4 ", the identifier of the signal at the position 3 is" -4 ", The identifier of the signal at position 5 must be "-4". Therefore, when the signals at the positions 1, 2, 3, 5, and 6 do not have the corresponding identifiers, it is an error. A-2 (rule of command circuit) : 1 in "command circuit"
There are two parallel circuits, and the signals in the circuit are the "step feed" at position 7 and the output signal of the "command circuit" at position 12 ("S2 command in FIG. 6"). Since the signal at position 12 is "middle", it must have the identifier "-2". Also, after this parallel circuit, in a series,
Output signal of the "command storage circuit" at position 8 ("S2 in FIG. 6"
Command memory ”) is arranged. This signal is an identifier "-
Must have a 4 ". After that, a signal indicating that the block is being activated (“B1 is being activated” in FIG. 6)
, And then the confirmation signal of the step (“confirmation L
S ”) are arranged in the series. This "confirmation LS"
There is no ward that has the identifier "-1" indicating. Since the output of the command circuit is "middle", the identifier of the 11th position must be "-2". Therefore, 8, 10, 1
If the positions 1 and 12 contain signals that do not have their corresponding identifiers, the command circuit is in error. There is an error in the "command circuit" only when there is a signal. A-3 (Rule of output circuit) : In the "output circuit",
There is one parallel circuit, which includes the "command circuit" output signal at position 13 ("S2 command") and the position 16 "manual" signal. The identifier of position 13 is "-
2 ", the 16 position identifier is" -3 ", and 1
The identifier for position 5 must be "-0". Therefore, if the signal at position 13, 15, 16 does not have a corresponding identifier, the output circuit is in error. Rule B: This rule B is that a signal from an appropriate circuit must come in an appropriate position in the circuit. Here, the “appropriate position” in the rule B is the positions 1, 8 and 13 in FIG. For example, the signal at position 8 should be the same as the signal at position 5. The position at 13 must be the same as the signal at position 11. Also, the signal at position 1 must be the same as the signal at position 5 in the previous step. If this rule B is not followed, an error will occur.

【0034】なお、ラダープログラム中で、どの信号は
どの位置にあるべきかをしめすファイルは、図13の構
造ファイル(STRCT)としてデータファイル56中
に前もって記憶されている。 〈修正部分の再表示〉前述したように、プログラム編集
プログラムは編集機能とシンタックスチェックの機能を
有し、このチェック機能はロジックエラーよりもむしろ
文法のチェックであるから、上記ルールに従った修正は
適法なものとして容認される。換言すれば、適法な修正
があった場合には、本実施例では、そのプログラム修正
部分を「ステップフローマップ」に反映し、修正された
ステップフローマップ(図11)中の「出力」、「確認
LS」、「中間」を修正されたままで表示するようにし
ている。なお、他の部分(「手動」や「指令記憶出
力」)を表示しないのは、CRT58の画面の大きさを
考慮したためであり、画面の大きさが許せば他の項目も
表示するようにしてもよい。 〈制御手順〉次に、プログラムの編集プログラム208
の制御手順について、図16以下を参照しながら説明す
る。
A file indicating which signal should be located at which position in the ladder program is stored in advance in the data file 56 as the structure file (STRCT) of FIG. <Re-display of correction part> As described above, the program editing program has an editing function and a syntax check function. Since this check function is a syntax check rather than a logic error, correction according to the above rules Is accepted as legal. In other words, when there is a legal correction, in this embodiment, the program correction portion is reflected in the "step flow map", and the "output" and "output" in the corrected step flow map (Fig. 11). The “confirmation LS” and “intermediate” are displayed as they are corrected. The other parts (“manual” and “command storage output”) are not displayed because the size of the screen of the CRT 58 is taken into consideration. If the screen size allows, other items should be displayed. Good. <Control procedure> Next, the program editing program 208
The control procedure of is described with reference to FIG. 16 and subsequent figures.

【0035】図16は、編集プログラム208のシンタ
ックスチェック機能と修正部分の表示機能を実現するフ
ローチャートである。プログラムの修正が行なわれて、
操作者がチェックの指示をシステムに与えると(ステツ
プS2でYES)、ステツプS100で「シンタックス
チェック」を行なう。その後、ステツプS200で表示
用マップの修正を行なう。シンタックスチェックの詳細
は図17と図18に示されている。
FIG. 16 is a flow chart for realizing the syntax check function of the editing program 208 and the display function of the corrected portion. The program was modified,
When the operator gives a check instruction to the system (YES in step S2), "syntax check" is performed in step S100. Then, in step S200, the display map is corrected. Details of the syntax check are shown in FIGS. 17 and 18.

【0036】図17の制御手順は、1つのブロックを指
定し(ステツプS102)、そのブロック中で、指定さ
れたブロックとその前段(上位に位置する)の(1つま
たは複数の)ブロックとの連結関係をチェックする。こ
の関係は、ラダープログラム中で、ブロックの起動条件
は、前段にある全てのブロックの全てのステップが終了
している事である。このチェックの詳細は図18に示さ
れている。ステツプS106で起動条件として指定され
ている信号を全て引き出してきて、ステツプS108で
それらの信号が全て識別子「−5」を有するかを調べ
る。ブロックの終了条件を意味する信号の識別子を、
「−5」(図15参照)とすれば、この識別子を有しな
い信号を含む起動条件からなるブロックは正しくはない
ことになる。これに違反する場合はステツプS109で
その信号のプログラム中の位置をログする。
In the control procedure of FIG. 17, one block is designated (step S102), and in the block, the designated block and the block (one or a plurality of) of the preceding stage (higher position) are designated. Check connectivity. This relationship is that in the ladder program, the block start condition is that all the steps of all the blocks in the preceding stage are completed. The details of this check are shown in FIG. In step S106, all the signals designated as the activation condition are extracted, and in step S108, it is checked whether or not all of the signals have the identifier "-5". The identifier of the signal that means the end condition of the block,
If it is "-5" (see FIG. 15), it means that the block including the activation condition including the signal having no identifier is not correct. If this is violated, the position of the signal in the program is logged in step S109.

【0037】次に、図17のステツプS110で当該ブ
ロックのあるステップをステップフローマップ中に指定
する。ステツプS120では、このステップのシンタッ
クスをチェックする。1つのステップのチェックを終了
すればステツプS160で、そのブロックについて全て
のステップのチェックを終了したかを確認してから、次
のブロックについてのチェックを行なうために、ステツ
プS162からステツプS102に戻る。
Next, in step S110 of FIG. 17, a step with the block is specified in the step flow map. In step S120, the syntax of this step is checked. When the check of one step is completed, it is confirmed in step S160 whether the check of all the steps of the block is completed, and then the process returns from step S162 to step S102 to perform the check of the next block.

【0038】図19を参照しながら、ステツプS120
の「ステップチェック」の制御手順の詳細について説明
する。図19のステツプS121〜ステツプS125で
は、ステップフローマップ(図11)を参照して、ステ
ツプS110で指定されたステップ番号の「出力」「確
認LS」「中間」「指令記憶」「手動」の各フィールド
に格納された信号名を呼び出す。ステツプS126で
は、ステツプS121で読みだした「出力」名称をオペ
ランド中に有するOUT命令を修正されたラダープログ
ラム若しくはシーケンサプログラム中に検索する。
Referring to FIG. 19, step S120
Details of the control procedure of the "step check" will be described. In steps S121 to S125 of FIG. 19, each of “output”, “confirmation LS”, “intermediate”, “command storage”, and “manual” of the step number designated in step S110 is referred to with reference to the step flow map (FIG. 11). Recall the signal name stored in the field. In step S126, the OUT instruction having the "output" name read in step S121 in the operand is searched for in the modified ladder program or sequencer program.

【0039】ステツプS128では、対応するOUT命
令があるかないかを調べる。対応するものがある場合は
ステツプS130に、ない場合にはステツプS140に
進む。このように、対応するOUT命令の有無によって
制御を異ならせるのは次の理由による。即ち、本実施例
の「ステップチェック」ルーチンは、ステップフローマ
ップ中の「出力」と同じ名前の「出力」名称をオペラン
ド中に有するOUT命令があることをとっかかりにし
て、チェックを開始し、図6のラダープログラムの構造
にしたがって、次々と信号を遡ることによってチェック
を継続する。この遡りは、前述のデータファイル56中
のファイルXREFを参照することによって簡単になさ
れる。換言すれば、意図的に操作者が「出力」を変更し
てしまえば、その「とっかかり」がないので、プログラ
ム自体は、チェックを継続してよいのかわからない。そ
こで、ない場合には、ステツプS140で、操作者に
「とっかかり」になるOUT命令の位置をプログラム2
08側に知らせるように促す。即ち、操作者は、対応す
るOUT命令がラダープログラム中にないように、ラダ
ープログラムを修正したことを承知しているならば(そ
の修正は適切である)、ステツプS142でそのOUT
命令の位置をプログラム208側に知らせる。そして、
ステツプS144で、そのような修正があったことをロ
グファイルに書き込む。またステツプS146で、ステ
ップフローマップ中の「出力」フィールドを指定された
OUT命令のオペランドと同じになるように書き換え
る。そして、ステツプS130で前述のルールAに合致
するかいなかのチェックを行ない、そのチェック結果を
ログファイルに書き込み、ステツプS134ではルール
Bに合致しているかのチェックを行ない、そのチェック
結果をステツプS136でログファイルに書き込む。一
方、ステツプS128での判断が対応するOUT命令が
存在することを示しているのであれば、そのままステツ
プS130〜ステツプS136を実行する。
In step S128, it is checked whether or not there is a corresponding OUT instruction. If there is a corresponding one, the process proceeds to step S130, and if not, the process proceeds to step S140. The reason why the control is changed depending on the presence or absence of the corresponding OUT instruction is as follows. That is, the "step check" routine of the present embodiment starts the check by using the OUT instruction having the "output" name of the same name as the "output" in the step flow map in the operand, According to the structure of the ladder program shown in FIG. 6, the check is continued by tracing the signals one after another. This tracing back is facilitated by referring to the file XREF in the data file 56 described above. In other words, if the operator intentionally changes the "output", there is no "start", so the program itself does not know whether to continue the check. Therefore, if there is not, in step S140, the position of the OUT command that causes the operator to "take a stop" is set to the program 2
Encourage the 08 side to inform. That is, if the operator knows that the ladder program is modified so that the corresponding OUT instruction is not in the ladder program (the modification is appropriate), the OUT command is output in step S142.
The position of the instruction is notified to the program 208 side. And
In step S144, the fact that such a correction has been made is written in the log file. Further, in step S146, the "output" field in the step flow map is rewritten so as to be the same as the operand of the designated OUT instruction. Then, in step S130, it is checked whether or not the above rule A is met, the check result is written in a log file, and in step S134, it is checked whether or not the rule B is met, and the check result is checked in step S136. Write to log file. On the other hand, if the determination in step S128 indicates that the corresponding OUT instruction exists, steps S130 to S136 are executed as they are.

【0040】このようにして図16のステツプS100
の「シンタックスチェック」ルーチンは終了する。各ブ
ロックのチェック結果(ステツプS109)、各ステッ
プのチェック結果(ステツプS148、ステツプS13
2、ステツプS136)は夫々ログファイルに書き込ま
れている。図16のステツプS200では、「表示マッ
プの修正」ルーチンが実行される。「表示マップの修
正」ルーチンの詳細は図20に示され、その動作は図2
1に図示される。即ち、図20のステツプS202で、
ログファイル中に、適法な修正があり、その修正に対応
して実I/Oマップやステップフローマップを修正する
必要があると判断されているならば、ステツプS204
でこれらのマップを修正する。更にステツプS206で
はログファイルにシンタックスエラーがあると記録され
ているのならばステツプS208で、そのエラー部分の
プログラムを例えば赤色で表示する。 〈変形〉本発明はその主旨を逸脱しない範囲で種々変形
が可能である。
Thus, step S100 of FIG.
The "syntax check" routine ends. Check result of each block (step S109), check result of each step (step S148, step S13)
2, step S136) are written in the log file respectively. In step S200 of FIG. 16, the "correction of display map" routine is executed. Details of the "correct display map" routine are shown in FIG.
1 is illustrated. That is, in step S202 of FIG.
If there is a legal correction in the log file and it is determined that the actual I / O map or step flow map needs to be corrected in response to the correction, step S204
Modify these maps with. Further, if it is recorded in step S206 that the log file has a syntax error, the program of the error portion is displayed in red, for example, in step S208. <Modification> The present invention can be variously modified without departing from the gist thereof.

【0041】例えば、上記実施例は、識別子は信号名に
「−」と「数字」の形で表していた。これは、実施例の
システムでは信号名をデータ名で参照できるようにして
いるからである。最終的には、ラダープログラムやシー
ケンサプログラムでは、ラダー要素の信号やオペランド
部分はメモリアドレスとして与えられる。プログラムの
作成段階では、信号をデータ名で参照できるようにする
ことが操作性からも好ましいのでそのようにしているの
である。もし、信号名を全てメモリアドレスに変換する
ようにしたシステムでは、上記実施例を次のように変更
する必要がある。即ち、各信号に振り当てられるメモリ
アドレスを、「出力」信号には「0」で始まるアドレス
にし、「確認」信号は「1」で始まるアドレスに
し、.....とするのである。これらの最初の数字を識別
子とすれば、前述の実施例と同じ機能を果たすことがで
きる。
For example, in the above embodiment, the identifier is represented in the signal name in the form of "-" and "number". This is because the system of the embodiment allows the signal name to be referred to by the data name. Finally, in the ladder program and the sequencer program, the signals and operands of the ladder elements are given as memory addresses. This is because it is preferable from the viewpoint of operability that the signal can be referred to by the data name at the program creation stage. In a system in which all signal names are converted into memory addresses, it is necessary to change the above embodiment as follows. That is, the memory address assigned to each signal is set to an address starting with "0" for the "output" signal, an address starting with "1" for the "confirmation" signal, and so on. If these first numbers are used as identifiers, the same function as in the above-described embodiment can be achieved.

【0042】また、上記実施例は自動車の生産ラインに
適用したものであったが、本発明はその適用対象がそれ
に限られない。
Although the above-described embodiment has been applied to the automobile production line, the present invention is not limited to that application.

【0043】[0043]

【発明の効果】 以上説明したように、本発明によれ
ば、シーケンスログラムを修正しても、その修正を自動
的にチェックすることができる。
As described above, according to the present invention, even if the sequence program is modified, the modification can be automatically checked.

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

【図1】 本発明が適用された実施例の概略構成を示す
図。
FIG. 1 is a diagram showing a schematic configuration of an embodiment to which the present invention is applied.

【図2】 実施例のシステムが用いるシーケンスプログ
ラムの一般的な構造を説明する図。
FIG. 2 is a diagram illustrating a general structure of a sequence program used by the system of the embodiment.

【図3】 実施例のシーケンスプログラムを自動生成す
る際に用いられるブロックフローマップ、ステップフロ
ーマップと呼ばれるマップを示す図。
FIG. 3 is a diagram showing a map called a block flow map or a step flow map used when automatically generating a sequence program of the embodiment.

【図4】 設備ないのアクチュエータデバイスをシリン
ダで表示したときのシンボル図。
FIG. 4 is a symbol diagram when an actuator device without equipment is displayed on a cylinder.

【図5】 図3のブロック1ステップ2のシーケンサプ
ログラムの一例を示す図。
5 is a diagram showing an example of a sequencer program of block 1 step 2 of FIG.

【図6】 図3のブロック1ステップ2のラダープログ
ラムの一例を示す図。
FIG. 6 is a diagram showing an example of a ladder program of block 1 step 2 of FIG.

【図7】 実施例のプログラム自動生成サブシステムに
おいて用いられるシリンダの動作を説明する図。
FIG. 7 is a diagram illustrating an operation of a cylinder used in the program automatic generation subsystem according to the embodiment.

【図8】 動作ステップのラダープログラムを自動作成
するときに用いられるラダーシンボルの標準パターンを
示す図。
FIG. 8 is a view showing a standard pattern of ladder symbols used when automatically creating a ladder program of operation steps.

【図9】 実施例システムにおいて実I/Oマップと呼
ばれるマップの図。
FIG. 9 is a diagram of a map called an actual I / O map in the example system.

【図10】 実施例システムにおいてブロックフローマ
ップと呼ばれるマップの図。
FIG. 10 is a diagram of a map called a block flow map in the example system.

【図11】 実施例システムにおいてステツプフローマ
ップと呼ばれるマップの図。
FIG. 11 is a diagram of a map called a step flow map in the embodiment system.

【図12】 実施例システムにおけるサブシステム間の
関係を説明する図。
FIG. 12 is a diagram illustrating a relationship between subsystems in the embodiment system.

【図13】 実施例システムのハードウエア構成を説明
する図。
FIG. 13 is a diagram illustrating a hardware configuration of an example system.

【図14】 実施例システムの自動プログラミング/デ
ータ入力部の構成を示す図。
FIG. 14 is a diagram showing the configuration of an automatic programming / data input unit of the embodiment system.

【図15】 実施例で使われる識別子の種類を説明する
図。
FIG. 15 is a diagram illustrating types of identifiers used in the embodiment.

【図16】 「プログラム修正」プログラムの全体手順
を示すフローチャート。
FIG. 16 is a flowchart showing the overall procedure of a “program modification” program.

【図17】 実施例にかかる制御手順を示すフローチャ
ート。
FIG. 17 is a flowchart showing a control procedure according to the embodiment.

【図18】 実施例にかかる制御手順を示すフローチャ
ート。
FIG. 18 is a flowchart showing a control procedure according to the embodiment.

【図19】 実施例にかかる制御手順を示すフローチャ
ート。
FIG. 19 is a flowchart showing a control procedure according to the embodiment.

【図20】 実施例にかかる制御手順を示すフローチャ
ート。
FIG. 20 is a flowchart showing a control procedure according to the embodiment.

【図21】 修正プログラムによるファイルの修正変更
の関係を説明する図。
FIG. 21 is a view for explaining the relationship of file modification and modification by a modification program.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 生産ラインを構成する複数の生産設備の
シーケンス動作の変更内容を検証する設備のシーケンス
変更内容の自動検証装置であって、 ステップによって構成されるシーケンスからなるシーケ
ンスプログラムを格納する手段と、 このプログラムの生成するルールを記憶する手段と、 このプログラムを修正する手段と、 修正されたプログラムと前記生成ルールを照合する手段
とを具備する設備のシーケンス変更内容の自動検証装
置。
1. An automatic verification device for sequence change contents of equipment for verifying change contents of sequence operation of a plurality of production facilities constituting a production line, and means for storing a sequence program consisting of a sequence composed of steps. An automatic verification device for sequence change contents of equipment, comprising: means for storing a rule generated by this program; means for correcting this program; and means for collating the corrected program with the generation rule.
JP4076498A 1992-03-31 1992-03-31 Automatic verification device for equipment sequence changes Pending JPH05282012A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4076498A JPH05282012A (en) 1992-03-31 1992-03-31 Automatic verification device for equipment sequence changes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4076498A JPH05282012A (en) 1992-03-31 1992-03-31 Automatic verification device for equipment sequence changes

Publications (1)

Publication Number Publication Date
JPH05282012A true JPH05282012A (en) 1993-10-29

Family

ID=13606893

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4076498A Pending JPH05282012A (en) 1992-03-31 1992-03-31 Automatic verification device for equipment sequence changes

Country Status (1)

Country Link
JP (1) JPH05282012A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0863208A (en) * 1994-08-24 1996-03-08 Mazda Motor Corp Method and apparatus for creating simulation program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0863208A (en) * 1994-08-24 1996-03-08 Mazda Motor Corp Method and apparatus for creating simulation program

Similar Documents

Publication Publication Date Title
US6993456B2 (en) Mechanical-electrical template based method and apparatus
US6618856B2 (en) Simulation method and apparatus for use in enterprise controls
US4742467A (en) Automated programming system for machine creation of applications program source code from non-procedural terminal input
EP1490253B1 (en) Method and device of generating logic control units for railroad station-based vital computer apparatuses
US6556950B1 (en) Diagnostic method and apparatus for use with enterprise control
US6268853B1 (en) Data structure for use in enterprise controls
US20100017698A1 (en) Flexible Multiple Spreadsheet Data Consolidation System
US7418300B2 (en) System and method for reusing project engineering data
US20130053996A1 (en) Method of programming recipe through gui and media recording the same
JPH05282012A (en) Automatic verification device for equipment sequence changes
US8181172B2 (en) Method for operation of an automation system
JPH05282013A (en) Equipment for automatic monitoring of display contents of equipment flow monitor
JP3326734B2 (en) Program creation device
WO1985005204A1 (en) Automated application program development system and method
EP0551098B1 (en) Displaying method in programming system for programmable controller
JP2918709B2 (en) Automatic generation of sequence program
JPH0887406A (en) Program display device
JP2005316778A (en) Plant monitoring and control device
JPH0784778A (en) Source program test item editing / management device
JPS60237539A (en) Analytical system for rule structure
JPS62206620A (en) Input method for character string under editing
KR100926832B1 (en) Efficient Shaping Method for Network Element Management
JPS62281031A (en) Editing system for equipment updating system
EP1061461A1 (en) Database system
JPH07281717A (en) Oil shipment control device