[go: up one dir, main page]

JP2533373B2 - Control program creation method - Google Patents

Control program creation method

Info

Publication number
JP2533373B2
JP2533373B2 JP1127548A JP12754889A JP2533373B2 JP 2533373 B2 JP2533373 B2 JP 2533373B2 JP 1127548 A JP1127548 A JP 1127548A JP 12754889 A JP12754889 A JP 12754889A JP 2533373 B2 JP2533373 B2 JP 2533373B2
Authority
JP
Japan
Prior art keywords
program
actuator
control program
creating
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP1127548A
Other languages
Japanese (ja)
Other versions
JPH02306305A (en
Inventor
裕明 和田
久仁一 根岸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honda Motor Co Ltd
Original Assignee
Honda Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honda Motor Co Ltd filed Critical Honda Motor Co Ltd
Priority to JP1127548A priority Critical patent/JP2533373B2/en
Priority to US07/516,742 priority patent/US5177420A/en
Priority to CA002015788A priority patent/CA2015788C/en
Priority to DE4013960A priority patent/DE4013960A1/en
Priority to GB9009671A priority patent/GB2233128B/en
Priority to FR9005489A priority patent/FR2646536B1/en
Publication of JPH02306305A publication Critical patent/JPH02306305A/en
Application granted granted Critical
Publication of JP2533373B2 publication Critical patent/JP2533373B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は制御プログラム作成方法に関し、一層詳細に
は、ステップ動作をタイムチャートとして入力し、動作
回路であるステップパターンと前記タイムチャートから
得られる時系列的なステップ動作データとに基づき制御
プログラムを効率的に作成することの出来る制御プログ
ラム作成方法に関する。
The present invention relates to a method for creating a control program, and more specifically, it inputs a step operation as a time chart, and obtains it from a step pattern which is an operation circuit and the time chart. The present invention relates to a control program creating method capable of efficiently creating a control program based on time-series step operation data.

[発明の背景] 一般に、工作機械あるいは作業ロボット等の装置では
人員の削減、作業効率の向上等を達成するため、その動
作手順を制御プログラムによって設定している。この場
合、前記制御プログラムはプログラマブルコントローラ
によって順次実行され、前記装置に対する指令信号の出
力と前記装置からの検知信号の入力を行う。すなわち、
前記装置は前記指令信号に基づき作動し、所定の動作を
行った後にリミットスイッチ等からの検知信号を前記プ
ログラマブルコントローラに出力する。一方、プログラ
マブルコントローラは制御プログラムを実行し、前記検
知信号に基づき前記装置に対して所定の動作指令を行
う。
BACKGROUND OF THE INVENTION Generally, in a device such as a machine tool or a work robot, its operation procedure is set by a control program in order to reduce the number of personnel and improve work efficiency. In this case, the control program is sequentially executed by the programmable controller to output a command signal to the device and input a detection signal from the device. That is,
The device operates based on the command signal and outputs a detection signal from a limit switch or the like to the programmable controller after performing a predetermined operation. On the other hand, the programmable controller executes a control program and issues a predetermined operation command to the device based on the detection signal.

ところで、このような制御プログラムを作成する場
合、通常、システム設計者が作成する設備仕様とタイム
チャートに基づき制御設計者がリレーシンボル等を用い
たラダー図を作成した後、プログラマブルコントローラ
のプログラミング装置を使用する等でラダー図の内容を
プログラマブルコントローラへ入力する。この場合、当
該ラダー図の作成作業にはシーケンス制御に関し専門的
知識が要求される。また、最近の装置は益々高機能化
し、通常、制御自体は勿論のこと、操作ミスによる事故
や突発事故防止のための安全対策等の制御が複雑化して
いるため、熟練者であってもラダー図の作成作業に相当
な時間と労力が要求される。
By the way, when creating such a control program, normally, after the control designer creates a ladder diagram using relay symbols etc. based on the equipment specifications and time chart created by the system designer, the programming device for the programmable controller is set. Input the contents of the ladder diagram to the programmable controller when using it. In this case, specialized knowledge regarding sequence control is required for the work of creating the ladder diagram. In addition, recent devices have become more sophisticated, and usually, not only the control itself, but also complicated controls such as safety measures to prevent accidents due to operation mistakes and sudden accidents, so even experts can use ladders. A considerable amount of time and effort is required for the drawing work.

従って、制御プログラムの変更、修正の頻度も必然的
に増大し、それによってプログラムエラーが多発すると
ともに制御機能低下の惹起する不都合が指摘されてい
る。さらに、従来、このような変更、修正等を行う際に
はプログラミング装置によりプログラマブルコントロー
ラ内のラダープログラムを直接変更していた。従って、
ラダー図への反映漏れが生じ、ラダー図とプログラマブ
ルコントローラ内のラダープログラムとが一致していな
い場合が多々あった。また、ラダー図ではプログラムの
全体把握が非常に難しく、適切なプログラム変更が困難
となる場合も生じる。このような問題からトラブルの発
生する事態があった。
Therefore, it has been pointed out that the frequency of change and modification of the control program is inevitably increased, resulting in frequent occurrence of program errors and deterioration of the control function. Further, conventionally, when making such changes and corrections, the ladder program in the programmable controller has been directly changed by the programming device. Therefore,
In many cases, the ladder diagram was not reflected and the ladder program and the ladder program in the programmable controller did not match. In addition, in the ladder diagram, it is very difficult to grasp the entire program, and it may be difficult to appropriately change the program. There have been situations where troubles arise from such problems.

そこで、このような不都合を解消すべく、タイムチャ
ートを入力し、このタイムチャートから直接制御プログ
ラムを作成する方法が提案されている。例えば、特開昭
5−158408号に開示された従来技術では、制御対象の動
作をタイムチャートとして入力するとともに、前記タイ
ムチャートの変化に対してタイマ指定等の付帯情報をタ
イムチャートで入力している。然しながら、この従来技
術では、制御対象の動作の変化および付帯情報を夫々独
立のタイムチャートとして入力しているため、入力作業
が煩雑となる不都合がある。また、作成された制御プロ
グラムの仕様書としてこのタイムチャートを用いた場
合、その読解性に難点が指摘されている。
Therefore, in order to eliminate such inconvenience, a method of inputting a time chart and directly creating a control program from this time chart has been proposed. For example, in the conventional technique disclosed in Japanese Patent Application Laid-Open No. 5-158408, the operation of the controlled object is input as a time chart, and accompanying information such as a timer designation is input in the time chart in response to changes in the time chart. There is. However, in this conventional technique, since the change of the operation of the controlled object and the incidental information are input as independent time charts, there is a disadvantage that the input work becomes complicated. Further, when this time chart is used as the specification of the created control program, it is pointed out that the readability is difficult.

また、特開昭58−158704号に開示された従来技術で
は、制御対象の動作をタイムチャートとして入力すると
ともに、前記タイムチャートに該当する入出力アドレス
およびインタロック条件を付加している。然しながら、
この従来技術では、タイムチャートに対して複数の付帯
情報が付加されるため極めて複雑であり、上記の従来技
術の場合と同様に読解性が悪いという欠点がある。
Further, in the prior art disclosed in Japanese Patent Laid-Open No. 58-158704, the operation of the controlled object is input as a time chart, and the corresponding input / output address and interlock condition are added to the time chart. However,
This conventional technique is extremely complicated because a plurality of additional information is added to the time chart, and has the drawback of poor readability as in the case of the above-described conventional technique.

[発明の目的] 本発明は前記の不都合を克服するためになされたもの
であって、ステップ動作をタイムチャートとして入力
し、動作回路であるステップパターンと前記タイムチャ
ートから得られる時系列的なステップ動作データとに基
づく制御プログラムを作成することにより、プログラム
作成効率および精度の向上を図るとともに、プログラム
の解析を容易にすることの出来るプログラマブルコント
ローラの制御プログラム作成方法を提供することを目的
とする。
[Object of the Invention] The present invention has been made in order to overcome the above inconvenience, and a step operation is inputted as a time chart, and a step pattern which is an operation circuit and a time-series step obtained from the time chart. An object of the present invention is to provide a control program creation method for a programmable controller, which can improve program creation efficiency and accuracy by creating a control program based on operation data, and can facilitate program analysis.

[目的を達成するための手段] 前記の目的を達成するために、本発明は、制御プログ
ラムのステップを歩進させるための動作回路をラダープ
ログラムからなるステップパターンとして設定し、次い
で、制御対象を構成する各アクチュエータのステップ動
作を、前記各アクチュエータおよび各状態検出器の入出
力アドレスとその動作条件とともにタイムチャートとし
て作成した後、前記タイムチャートから、前記各アクチ
ュエータの時系列的なステップ動作、前記各状態検出器
の各ステップでの状態および/または前記動作条件を作
動パターンテーブルとして作成し、さらに、前記作動パ
ターンテーブルを前記入出力アドレスを介して前記ステ
ップパターンと結合することにより、制御プログラムを
作成することを特徴とする。
[Means for Achieving the Object] In order to achieve the above object, the present invention sets an operation circuit for stepping a step of a control program as a step pattern consisting of a ladder program, and then sets a control target. After the step operation of each of the constituent actuators is created as a time chart together with the input / output address of each actuator and each state detector and its operating conditions, the time series step operation of each actuator is described from the time chart. A control program is created by creating a state at each step of each state detector and / or the operating condition as an operation pattern table, and further combining the operation pattern table with the step pattern via the input / output address. It is characterized by creating.

[実施態様] 次に、本発明に係る制御プログラム作成方法について
好適な実施態様を挙げ、添付の図面を参照しながら以下
詳細に説明する。
[Embodiment] Next, a control program creating method according to the present invention will be described in detail below with reference to the accompanying drawings.

第1図は本実施態様に係る制御プログラム作成方法の
概略フローチャートを示す。この作成方法は大きく三つ
の工程に分けられる。すなわち、制御対象の仕様、要件
に従い当該制御対象を構成するアクチュエータの基本動
作パターンに基づいてアクチュエータプログラムを作成
する工程(STP I)と、前記アクチュエータのステップ
動作を設定することでステッププログラムを作成する工
程(STP II)と、インタロック等の論理条件を設定する
ことで論理プログラムを作成する工程(STP III)とか
らなる。
FIG. 1 shows a schematic flowchart of a control program creating method according to the present embodiment. This manufacturing method is roughly divided into three steps. That is, according to the specifications and requirements of the controlled object, a step (STP I) of creating an actuator program based on the basic operation pattern of the actuator constituting the controlled object, and a step program by setting the step operation of the actuator. It consists of a process (STP II) and a process (STP III) of creating a logic program by setting logic conditions such as interlock.

第2図は本実施態様に係る制御プログラム作成方法を
実施する装置の概略ブロック図である。同図において、
参照符号10は制御プログラム作成装置を示し、本体部12
と会話入出力手段14と記憶手段16および18とを備える。
FIG. 2 is a schematic block diagram of an apparatus for implementing the control program creating method according to the present embodiment. In the figure,
Reference numeral 10 indicates a control program creating device, and a main body 12
And conversation input / output means 14 and storage means 16 and 18.

本体部12は演算部20と記憶部22とを含み、前記演算部
20は会話入出力手段14および記憶手段16、18の入出力制
御を行う。記憶部22は演算部20の動作制御を行うシステ
ムプログラム24を有するとともに、第1図に示すSTP I
乃至IIIにおいて作成されたアクチュエータプログラム2
6、ステッププログラム28および論理プログラム30を保
持する。会話入出力手段14は図形処理機能を備えたCRT
ディスプレイ32と、キーボード34と、CRTディスプレイ3
2におけるカーソル制御、機能選択等を行うマウス36と
を備える。この場合、会話入出力手段14は演算部20を用
いてアクチュエータプログラム26、ステッププログラム
28および論理プログラム30を作成し、あるいはこれらを
修正し、さらにはこれらのプログラム26、28および30の
動作状態を監視する機能を有する。記憶手段16は工作機
械等の制御対象を構成する各アクチュエータの基本動作
パターンを予めラダー等で定義したアクチュエータパタ
ーン38、各アクチュエータのステップ動作の基本パター
ンであるステップパターン40等を保持する。なお、これ
らのパターン38、40は必要に応じ演算部20において作成
することも可能である。記憶手段18はアクチュエータプ
ログラム26、ステッププログラム28および論理プログラ
ム30より作成された制御プログラム42を保持する。
The main body unit 12 includes a calculation unit 20 and a storage unit 22, and the calculation unit
Reference numeral 20 controls the input / output of the conversation input / output unit 14 and the storage units 16 and 18. The storage unit 22 has a system program 24 for controlling the operation of the arithmetic unit 20, and also has the STP I shown in FIG.
Actuator program 2 created in III to III
6. Hold the step program 28 and the logic program 30. The conversation input / output unit 14 is a CRT having a graphic processing function.
Display 32, keyboard 34, CRT display 3
The mouse 36 for controlling the cursor, selecting functions, etc. in FIG. In this case, the conversation input / output unit 14 uses the arithmetic unit 20 to drive the actuator program 26 and step program.
It has a function of creating the 28 and the logic program 30, modifying them, and further monitoring the operating states of these programs 26, 28 and 30. The storage means 16 holds an actuator pattern 38 in which a basic operation pattern of each actuator constituting a controlled object such as a machine tool is defined in advance by a ladder or the like, a step pattern 40 which is a basic pattern of step operation of each actuator, and the like. It should be noted that these patterns 38 and 40 can be created in the arithmetic unit 20 as needed. The storage means 18 holds the control program 42 created from the actuator program 26, the step program 28 and the logic program 30.

第3図は一層詳細な制御プログラム作成装置10および
当該装置10におけるプログラム作成手順を模式的に示し
たものである。そこで、同図および第4図のフローチャ
ートに基づき、先ず、アクチュエータプログラム26の作
成方法について説明する。
FIG. 3 schematically shows a more detailed control program creating device 10 and a program creating procedure in the device 10. Therefore, a method of creating the actuator program 26 will be described first with reference to the flowcharts of FIGS.

制御設計者はキーボード34からアクチュエータプログ
ラム作成モードを選択し、システム設計者によって設定
された制御対象の仕様、要件に従ってアクチュエータプ
ログラム26を作成するためのデータを入力する。
The control designer selects the actuator program creation mode from the keyboard 34 and inputs data for creating the actuator program 26 according to the specifications and requirements of the controlled object set by the system designer.

この場合、アクチュエータプログラム26を作成するに
先立って、アクチュエータの基本動作パターンであるア
クチュエータパターン38および定義パラメータ39a、39b
を設定する(STP1A、2A)。なお、アクチュエータパタ
ーン38というのは、所定のアクチュエータの基本動作パ
ターンを各接点、コイル、レジスタ等に等の機能を表す
ラベルを付した状態でラダープログラムとして設定した
ものであり、各アクチュエータにパターンファイル名を
付して記憶手段16に格納しておく。また、定義パラメー
タ39a、39bというのは前記アクチュエータパターン38と
後述するアプリケーションパラメータとの関係を定義す
るパラメータであり、記憶部16に格納される。
In this case, before creating the actuator program 26, the actuator pattern 38, which is the basic operation pattern of the actuator, and the definition parameters 39a and 39b are created.
Set (STP1A, 2A). In addition, the actuator pattern 38 is a basic operation pattern of a predetermined actuator set as a ladder program in which each contact, coil, register, etc. is labeled with a label indicating a function such as, and a pattern file is set for each actuator. It is given a name and stored in the storage means 16. The definition parameters 39a and 39b are parameters that define the relationship between the actuator pattern 38 and application parameters described later, and are stored in the storage unit 16.

次に、制御設計者はシステムプログラム24のテキスト
エディタ46に基づきアプリケーションパラメータを入力
する(STP3A)。すなわち、制御設計者は会話入出力手
段14を用いて制御対象を構成する各ユニットに必要なア
クチュエータに対応するアクチュエータパターン38を選
択し、後述するシーケンスコントローラの入出力アドレ
スを設定する。第5図はこのようにしてアプリケーショ
ンパラメータが入力されCRTディスプレイ32に表示され
たアクチュエータリスト48を示す。ここで、このアクチ
ュエータリスト48は制御対象を構成する第2のユニッ
ト、例えば、治具ユニット(TT−M/C)の動作パターン
の規定されたアクチュエータ群と入出力アドレスとの関
係を示している。この場合、治具ユニットはパターンフ
ァイル名がACT2−2で示されるアクチュエータパターン
38からなる二つのアクチュエータを備えており、各アク
チュエータの接点、コイル、レジスタ等には入出力アド
レス1001、1002等が設定される。
Next, the control designer inputs application parameters based on the text editor 46 of the system program 24 (STP3A). That is, the control designer uses the conversation input / output means 14 to select the actuator pattern 38 corresponding to the actuator required for each unit constituting the control target, and sets the input / output address of the sequence controller described later. FIG. 5 shows the actuator list 48 displayed on the CRT display 32 with the application parameters thus input. Here, the actuator list 48 shows the relationship between the input / output address and the actuator group in which the operation pattern of the second unit constituting the control target, for example, the jig unit (TT-M / C) is defined. . In this case, the jig unit has an actuator pattern whose pattern file name is ACT2-2.
Two actuators 38 are provided, and input / output addresses 1001, 1002, etc. are set in the contacts, coils, registers, etc. of each actuator.

以上のようにして設定されたアクチュエータパターン
38と定義パラメータ39a、39bとアプリケーションパラメ
ータ(第5図)を用いて、システムプログラム24のアク
チュエータラダー生成プログラム50に基づきアクチュエ
ータプログラム26が作成される(STP4A)。このように
して作成されたアクチュエータプログラム26は、次い
で、ラダーコンパイラ52によってオブジェクトプログラ
ムに変換された後(STP5A)、インタフェース54を介し
てシーケンスコントローラ56に転送される。なお、シー
ケンスコントローラ56にはアクチュエータプログラム26
を通信によって直接ロードすることが出来るが、フロッ
ピィディスクFDを介してプログラミングパネル58からロ
ードすることも可能である。
Actuator pattern set as above
The actuator program 26 is created based on the actuator ladder generation program 50 of the system program 24 using 38, the definition parameters 39a and 39b, and the application parameters (FIG. 5) (STP4A). The actuator program 26 thus created is then converted into an object program by the ladder compiler 52 (STP5A) and then transferred to the sequence controller 56 via the interface 54. The sequence controller 56 has an actuator program 26
Can be directly loaded by communication, but can also be loaded from the programming panel 58 via the floppy disk FD.

次に、第6図に示すフローチャートに基づき本実施態
様の制御プログラムの主要部であるステッププログラム
28の作成方法について説明する。
Next, based on the flowchart shown in FIG. 6, a step program which is a main part of the control program of the present embodiment.
28 how to create is explained.

この場合、ステッププログラム28を作成するに先立っ
て、ステップパターン40とセンシングビットパターン41
(第7図参照)とを設定しておく(STP1B)。ここで、
ステップパターン40とは制御プログラムのステップを歩
進させるための動作回路をラダープログラムとして設定
したものである。例えば、シーケンスコントローラのス
テップレジスタおよびインタロックレジスタの内容をワ
ークレジスタへ転送する転送ラダー、後述するセンシン
グビットの状態とインタロック条件とを比較する条件比
較ラダー、ステップ歩進のためのステップアップラダ
ー、ステップレジスタの内容が目的のステップとなった
時、指令信号を出力する外部指令出力ラダー、インタロ
ック信号がオンになった時、ステップ指令出力のワーク
レジスタの値にインタロック指令データを書き込むイン
タロックラダー、指令データの入ったワークレジスタの
内容を指令コイルに出力する指令出力ラダーがある。ま
た、センシングビットパターン41とは制御対象からの入
力条件がセットされるアドレスを内部レジスタの連続し
たアドレスに置き換えるプログラムであり、例えば、第
7図に示すように、不連続なアドレスに設定される入出
力条件信号が連続なアドレスのセンシングビットに割り
付けられる。なお、これらのステップパターン40および
センシングビットパターン41は記憶手段16に格納されて
いるが、アクチュエータパターン38の場合と同様に、ラ
ダーエディタ44を用いて設定することも可能である。
In this case, prior to creating the step program 28, the step pattern 40 and the sensing bit pattern 41
(See Fig. 7) and are set (STP1B). here,
The step pattern 40 is one in which an operation circuit for advancing the steps of the control program is set as a ladder program. For example, a transfer ladder that transfers the contents of the step register and the interlock register of the sequence controller to the work register, a condition comparison ladder that compares the state of sensing bits described below with the interlock condition, a step up ladder for step advancement, When the contents of the step register become the target step, an external command output ladder that outputs a command signal, and an interlock command data that writes the interlock command data to the value of the work register of the step command output when the interlock signal is turned on There is a command output ladder that outputs the contents of the work register containing the ladder and command data to the command coil. Also, the sensing bit pattern 41 is a program that replaces the address where the input condition from the controlled object is set with the continuous address of the internal register. For example, as shown in FIG. 7, it is set to the discontinuous address. Input / output condition signals are assigned to sensing bits at consecutive addresses. Although the step pattern 40 and the sensing bit pattern 41 are stored in the storage means 16, they can be set using the ladder editor 44 as in the case of the actuator pattern 38.

そこで、制御設計者は会話入出力手段14を用いてステ
ッププログラム作成モードを選択した後、システムプロ
グラム24のステップエディタ59を用いてキーボード34よ
り第8図に示すステップデータ60を入力する(STP2
B)。すなわち、制御設計者は制御対象の各ユニット毎
にアクチュエータプログラム26の作成時において設定し
たアクチュエータパターン38のパターンファイル名(例
えば、ACT2−2)、アクチュエータの名称、アクチュエ
ータの動作状態を検知するためのLS等のラベル名、前記
アクチュエータを駆動するためのソレノイド等のラベル
名、各アクチュエータのタイムチャート、ステップ歩進
条件、インタロック条件等をグラフィック機能を用いて
第8図に示すように入力していく。
Therefore, the control designer selects the step program creation mode using the conversation input / output means 14, and then inputs the step data 60 shown in FIG. 8 from the keyboard 34 using the step editor 59 of the system program 24 (STP2
B). That is, the control designer detects the pattern file name (for example, ACT2-2) of the actuator pattern 38 set when the actuator program 26 is created for each unit to be controlled, the name of the actuator, and the operating state of the actuator. Input label names such as LS, label names of solenoids for driving the actuators, time chart of each actuator, step stepping condition, interlock condition, etc. by using the graphic function as shown in FIG. Go.

次に、制御プログラム作成装置10の演算部20はシステ
ムプログラム24のステップラダー生成プログラム62に基
づき、先ず、作動パターンテーブルを作成する(STP3
B)。この場合、作動パターンテーブルは第8図に示す
ようにして入力されたステップデータ60を、第9図A乃
至Dに示すように、ステップ歩進条件テーブル62a、ス
テップ指令出力テーブル62b、インタロック入力条件テ
ーブル62c、インタロック指令出力テーブル62dおよび外
部出力テーブル(図示せず)として整理したものであ
る。この場合、ステップ歩進条件テーブル62aはステッ
プデータ60におけるアクチュエータの状態が変化する時
のデータを各ラベル毎に整理したものである。また、ス
テップ指令出力テーブル62bはアクチュエータに対して
動作指令を行うためのデータを整理したものである。イ
ンタロック入力条件テーブル62cは後述する論理プログ
ラム30で設定されるインタロック入力条件を整理したも
のである。インタロック指令出力テーブル62dは前記論
理プログラム30に対してインタロック指令を出力するデ
ータを整理したものである。さらに、外部指令出力テー
ブルはアクチュエータの状態を外部に出力するデータを
整理したものであり、第8図のステップデータ60では矢
印で示すSTO216がこれに相当する。
Next, the calculation unit 20 of the control program creation device 10 first creates an operation pattern table based on the step ladder generation program 62 of the system program 24 (STP3
B). In this case, the operation pattern table is obtained by converting the step data 60 input as shown in FIG. 8 into the step step condition table 62a, the step command output table 62b, and the interlock input as shown in FIGS. The condition table 62c, the interlock command output table 62d, and the external output table (not shown) are arranged. In this case, the step stepping condition table 62a is a table in which data when the state of the actuator changes in the step data 60 is arranged for each label. Further, the step command output table 62b organizes data for issuing an operation command to the actuator. The interlock input condition table 62c is a table in which interlock input conditions set by the logic program 30 described later are arranged. The interlock command output table 62d organizes data for outputting an interlock command to the logic program 30. Further, the external command output table organizes data for outputting the state of the actuator to the outside, and STO216 indicated by an arrow in the step data 60 of FIG. 8 corresponds to this.

次に、以上のようにして設定された作動パターンテー
ブルのデータに基づきステップ1Bにおいて設定したセン
シングビットパターン41からなるセンシングラダーおよ
び条件レジスタを作成する。この場合、前記センシング
ラダーはステップデータ60が第8図の場合において第7
図に示すように設定される(STP4B)。また、作動パタ
ーンテーブルの内容は予め設定されたステップパターン
40の内部レジスタに設定され、これによってステッププ
ログラム28が完成する(STP5B)。
Next, based on the data of the operation pattern table set as described above, the sensing ladder and the condition register including the sensing bit pattern 41 set in step 1B are created. In this case, if the step data 60 is shown in FIG.
It is set as shown (STP4B). In addition, the contents of the operation pattern table are preset step patterns.
It is set in the internal register of 40, and thereby the step program 28 is completed (STP5B).

このように、本実施態様では、ステップデータ60を第
8図に示すようにして入力し、ステップパターン40およ
びセンシングビートパターン41を用いてステッププログ
ラム28を作成している。この場合、作業者は各アクチュ
エータ毎のタイムチャートを入出力アドレスとの関係に
基づいて設定するだけでステッププログラム28を作成す
ることが出来る。従って、ステッププログラム28を短時
間で容易且つ正確に作成することができる。また、ステ
ップデータ60の入力時において、各アクチュエータ間の
インタロック等の条件を設定することも出来るため、ス
テッププログラム28の作成は一層容易である。
As described above, in this embodiment, the step data 60 is input as shown in FIG. 8, and the step program 28 is created using the step pattern 40 and the sensing beat pattern 41. In this case, the operator can create the step program 28 simply by setting the time chart for each actuator based on the relationship with the input / output address. Therefore, the step program 28 can be created easily and accurately in a short time. Further, when the step data 60 is input, it is possible to set conditions such as interlock between the actuators, so that the step program 28 can be created more easily.

以上のようにして作成されたステッププログラム28は
アクチュエータプログラム26の場合と同様に、ラダーコ
ンパイラ52によってオブジェクトプログラムに変換され
た後(STP6B)、インタフェース54を介してシーケンス
コントローラ56に転送される(第3図参照)。
As with the actuator program 26, the step program 28 created as described above is converted into an object program by the ladder compiler 52 (STP6B) and then transferred to the sequence controller 56 via the interface 54 ( (See Figure 3).

次に、第10図に示すフローチャートに基づき論理プロ
グラム30の作成方法について説明する。この場合、制御
設計者は会話入出力手段14を用いて論理プログラム作成
モードを選択する。
Next, a method for creating the logic program 30 will be described based on the flowchart shown in FIG. In this case, the control designer uses the conversation input / output means 14 to select the logic program creation mode.

そこで、制御設計者は、ステッププログラム28の作成
時において入力したリミットスイッチ等のラベル名とア
ドレスおよびその内容を示すコメントとの関係を表すI/
Oテーブルを作成する(STP1C)。次に、キーボード34か
ら論理チャートエディタ69を用いて、第11図に示すよう
に、インタロック等の論理条件を示す論理チャート68を
入力する(STP2C)。ここで、論理チャート68を構成す
る各ブロック70はコメントエリア72a、ラベルエリア72
b、アドレスエリア72cおよびラベルで示されるリミット
スイッチ等のON/OFFの状態を示す状態エリア72dから構
成される。また、論理チャート68の最上段にはメッセー
ジエリアが設けられる。さらに、ブロック70の表示され
るエリアはコイル出力部74aと条件設定部74bとから構成
される。そして、各ブロック70は画面の上から下に直列
に接続される論理積と、画面の左から右に並列に接続さ
れる論理和との組み合わせによって表される。なお、各
ブロック70を入力する際、ラベルエリア72bのデータと
アドレスエリア72cとのデータとの組み合わせはステッ
プ1Cにおいて設定したI/Oテーブルによって決定される
ため、入力作業としてはラベルまたはアドレスのいずれ
か一方のみを入力すればよい。
Therefore, the control designer shows the relationship between the label name of the limit switch and the like input when the step program 28 is created and the address and the comment indicating the contents of the I / O.
Create O table (STP1C). Next, using the logic chart editor 69 from the keyboard 34, as shown in FIG. 11, a logic chart 68 indicating logic conditions such as interlock is input (STP2C). Here, each block 70 constituting the logic chart 68 includes a comment area 72a and a label area 72.
b, an address area 72c and a status area 72d showing the ON / OFF status of the limit switch and the like indicated by the label. A message area is provided at the top of the logic chart 68. Further, the displayed area of the block 70 is composed of a coil output unit 74a and a condition setting unit 74b. Each block 70 is represented by a combination of a logical product connected in series from the top to the bottom of the screen and a logical sum connected in parallel from the left to the right of the screen. When inputting each block 70, the combination of the data in the label area 72b and the data in the address area 72c is determined by the I / O table set in step 1C. You only need to enter one.

次いで、前記のようにして入力された論理チャート68
はシステムプログラム24における論理チャート変換プロ
グラム76によって論理プログラム30に変換される(STP3
C)。この論理プログラム30はラダーコンパイラ52によ
ってオブジェクトプログラムに変換された後(STP4
C)、前述したアクチュエータプログラム26およびステ
ッププログラム28の場合と同様にインタフェース54を介
してシーケンスコントローラ56に転送される。
Then, the logic chart 68 input as described above
Is converted into the logic program 30 by the logic chart conversion program 76 in the system program 24 (STP3
C). This logical program 30 is converted into an object program by the ladder compiler 52 (STP4
C) is transferred to the sequence controller 56 via the interface 54 as in the case of the actuator program 26 and the step program 28 described above.

以上のようにしてシーケンスコントローラ56にはオブ
ジェクトプログラムからなる所望の制御プログラム42が
格納されることになる。なお、アクチュエータプログラ
ム26、ステッププログラム28および論理プログラム30は
上述したように、個々にシーケンスコントローラ56に通
信で転送する代わりに、これらをまとめて一度にシーケ
ンスコントローラ56に転送することも可能である。ま
た、上記3工程(アクチュエータプログラム26の作成、
ステッププログラム28の作成および論理プログラム30の
作成の各工程)では、システムプログラム24を用いて一
旦ソースプログラムを作成してからこれをオブジェクト
に変換しているが、直接オブジェクトを作成することも
可能である。
As described above, the sequence controller 56 stores the desired control program 42, which is an object program. As described above, the actuator program 26, the step program 28, and the logic program 30 may be collectively transferred to the sequence controller 56 at once instead of being individually transferred to the sequence controller 56 by communication. In addition, the above three steps (creating the actuator program 26,
In each step of creating the step program 28 and the logic program 30, the source program is created once using the system program 24 and then converted into an object, but it is also possible to create the object directly. is there.

そこで、シーケンスコントローラ56は前記制御プログ
ラム42に基づいて作業ロボット等の制御対象を駆動制御
する。ここで、制御対象の駆動状態はシーケンスコント
ローラ56およびインタフェース54を介して制御プログラ
ム作成装置10の監視手段であるモニタコントローラ78に
よりリアルタイムでモニタされる。この場合、例えば、
CRTディスプレイ32に第8図に示すステップデータ60を
表示させ、インターフェイス54を介してシーケンスコン
トローラ56より取り込んだデータに基づき実行中のステ
ップNo.等をブリングさせれば、制御対象の動作状態を
常時監視することが出来る。そこで、この動作状態から
制御プログラムに問題点があるか否か等を判断し、場合
によっては修正等を行うことが可能となる。なお、この
修正作業は、前述した制御プログラムの作成作業と同様
に第8図に示すステップデータ60の表示画面に基づいて
容易に行うことが出来る。
Therefore, the sequence controller 56 drives and controls a control target such as a work robot based on the control program 42. Here, the drive state of the controlled object is monitored in real time by the monitor controller 78, which is the monitoring means of the control program creating device 10, via the sequence controller 56 and the interface 54. In this case, for example,
If the step data 60 shown in FIG. 8 is displayed on the CRT display 32 and the step number etc. being executed based on the data fetched from the sequence controller 56 through the interface 54 is brought up, the operating state of the controlled object is always maintained. Can be monitored. Therefore, it is possible to judge whether or not there is a problem in the control program from this operating state, and make corrections in some cases. It should be noted that this correction work can be easily performed based on the display screen of the step data 60 shown in FIG. 8 as in the control program creation work described above.

[発明の効果] 以上のように、本発明によれば、ステップ動作をタイ
ムチャートとして入力し、動作回路であるステップパタ
ーンと前記タイムチャートから得られる時系列的なステ
ップ動作データとに基づき制御プログラムを作成してい
る。この場合、プログラム作成者はタイムチャートを用
いて制御プログラムを短時間で容易且つ正確に作成する
ことが出来る。また、各プログラムの作成は制御対象の
動作仕様書に沿った状態で行われるため、プログラムの
変更等を行った際、その変更個所等が仕様書の変更等に
直接反映されることになる。この結果、これらのプログ
ラムをリストとして出力しておけば、常に最新の仕様書
としての機能を得ることが出来る。
[Effects of the Invention] As described above, according to the present invention, the step program is input as a time chart, and the control program is based on the step pattern which is the operation circuit and the time-series step operation data obtained from the time chart. Are being created. In this case, the program creator can easily and accurately create the control program in a short time by using the time chart. Further, since each program is created in a state in accordance with the operation specification of the controlled object, when the program is changed, the changed portion is directly reflected in the change of the specification. As a result, if these programs are output as a list, the function as the latest specification can always be obtained.

以上、本発明について好適な実施態様を挙げて説明し
たが、本発明はこの実施態様に限定されるものではな
く、本発明の要旨を逸脱しない範囲において種々の改良
並びに設計の変更が可能なことは勿論である。
Although the present invention has been described above with reference to the preferred embodiments, the present invention is not limited to these embodiments, and various improvements and design changes can be made without departing from the scope of the present invention. Of course.

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

第1図は本発明に係る制御プログラム作成方法の概略フ
ローチャート、 第2図は本発明に係る制御プログラム作成方法の一実施
態様が適用される装置の構成ブロック図、 第3図は一実施態様である制御プログラム作成方法の作
成手順説明図、 第4図は一実施態様である制御プログラム作成方法にお
けるアクチュエータプログラムの作成フローチャート、 第5図はアクチュエータプログラムの作成の際得られる
アチュエータリストの説明図、 第6図は一実施態様である制御プログラム作成方法にお
けるステッププログラムの作成フローチャート、 第7図はステッププログラムを作成するためのセンシン
グビットラダーの説明図、 第8図はステッププログラムを作成するためのステップ
データの説明図、 第9図A乃至Dはステッププログラムを作成するための
作動パターンテーブルの説明図、 第10図は一実施態様である制御プログラム作成方法にお
ける論理プログラムの作成フローチャート、 第11図は論理プログラムを作成するための論理チャート
の説明図である。 10……制御プログラム作成装置 12……本体部、14……会話入出力手段 16、18……記憶手段、20……演算部 22……記憶部 24……システムプログラム 26……アクチュエータプログラム 28……ステッププログラム、30……論理プログラム 38……アクチュエータパターン 39a、39b……定義パラメータ 40……ステップパターン、 41……センシングビットパターン 42……制御プログラム 48……アクチュエータリスト 60……ステップデータ 62a……ステップ歩進条件テーブル 62b……ステップ指令出力テーブル 68……論理チャート
FIG. 1 is a schematic flowchart of a control program creating method according to the present invention, FIG. 2 is a configuration block diagram of an apparatus to which an embodiment of a control program creating method according to the present invention is applied, and FIG. 3 is an embodiment. FIG. 4 is an explanatory diagram of a procedure for creating a certain control program, FIG. 4 is a flowchart for creating an actuator program in the control program creating method according to one embodiment, and FIG. 5 is an illustration of an actuator list obtained when creating the actuator program, FIG. 6 is a flowchart for creating a step program in the control program creating method according to one embodiment, FIG. 7 is an explanatory diagram of a sensing bit ladder for creating the step program, and FIG. 8 is a step for creating the step program. Explanatory diagram of data, FIGS. 9A to 9D are step programs. 10 is an explanatory diagram of an operation pattern table for creating a control program, FIG. 10 is a flowchart for creating a logical program in the control program creating method according to one embodiment, and FIG. 11 is an explanatory diagram of a logical chart for creating the logical program. . 10 ...... Control program creation device 12 ...... Main body part, 14 ...... Conversation input / output means 16, 18 ...... Storage means, 20 ...... Calculation part 22 ...... Storage part 24 ...... System program 26 ...... Actuator program 28 ... … Step program, 30 …… Logical program 38 …… Actuator patterns 39a, 39b …… Definition parameters 40 …… Step pattern, 41 …… Sensing bit pattern 42 …… Control program 48 …… Actuator list 60 …… Step data 62a… … Step step condition table 62b …… Step command output table 68 …… Logic chart

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】制御プログラムのステップを歩進させるた
めの動作回路をラダープログラムからなるステップパタ
ーンとして設定し、次いで、制御対象を構成する各アク
チュエータのステップ動作を、前記各アクチュエータお
よび各状態検出器の入出力アドレスとその動作条件とと
もにタイムチャートとして作成した後、前記タイムチャ
ートから、前記各アクチュエータの時系列的なステップ
動作、前記各状態検出器の各ステップでの状態および/
または前記動作条件を作動パターンテーブルとして作成
し、さらに、前記作動パターンテーブルを前記入出力ア
ドレスを介して前記ステップパターンと結合することに
より、制御プログラムを作成することを特徴とする制御
プログラム作成方法。
1. An operating circuit for advancing the steps of a control program is set as a step pattern consisting of a ladder program, and then the step operation of each actuator constituting a control target is set to each actuator and each state detector. After creating a time chart together with the input / output address and its operating condition, the time series step operation of each actuator, the state at each step of each state detector, and / or
Alternatively, a control program creating method is characterized in that the operation condition is created as an operation pattern table, and the operation pattern table is combined with the step pattern via the input / output address to create a control program.
JP1127548A 1989-05-01 1989-05-19 Control program creation method Expired - Lifetime JP2533373B2 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP1127548A JP2533373B2 (en) 1989-05-19 1989-05-19 Control program creation method
US07/516,742 US5177420A (en) 1989-05-01 1990-04-30 Method of and apparatus for generating control program
CA002015788A CA2015788C (en) 1989-05-01 1990-04-30 Method of and apparatus for generating control program
DE4013960A DE4013960A1 (en) 1989-05-01 1990-04-30 Control program generation selected actuators - combining actuator, logic and step programs using basic operating patterns defining actuator input-output relationships
GB9009671A GB2233128B (en) 1989-05-01 1990-04-30 Method of and apparatus for generating control program
FR9005489A FR2646536B1 (en) 1989-05-01 1990-04-30 METHOD AND APPARATUS FOR PRODUCING AN ORDER PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1127548A JP2533373B2 (en) 1989-05-19 1989-05-19 Control program creation method

Publications (2)

Publication Number Publication Date
JPH02306305A JPH02306305A (en) 1990-12-19
JP2533373B2 true JP2533373B2 (en) 1996-09-11

Family

ID=14962733

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1127548A Expired - Lifetime JP2533373B2 (en) 1989-05-01 1989-05-19 Control program creation method

Country Status (1)

Country Link
JP (1) JP2533373B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101930876B1 (en) * 2017-08-01 2018-12-20 한국기술교육대학교 산학협력단 An Electric Pneumatic Apparatus and Designing Method for Sequential Control Using The Apparatus

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3327363B2 (en) * 1994-08-24 2002-09-24 マツダ株式会社 Method and apparatus for creating simulation program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01116803A (en) * 1987-10-30 1989-05-09 Honda Motor Co Ltd Sequence program generating method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101930876B1 (en) * 2017-08-01 2018-12-20 한국기술교육대학교 산학협력단 An Electric Pneumatic Apparatus and Designing Method for Sequential Control Using The Apparatus

Also Published As

Publication number Publication date
JPH02306305A (en) 1990-12-19

Similar Documents

Publication Publication Date Title
CA2015788C (en) Method of and apparatus for generating control program
US5555179A (en) Control method and control apparatus of factory automation system
US5469352A (en) Operation history display device of numerical control apparatus
US5644487A (en) Monitoring and control system and method
JPH0561646B2 (en)
JP2533373B2 (en) Control program creation method
JP2533370B2 (en) Control program creation method
JPH02310604A (en) Picture data display system
JP2537424B2 (en) Control program generator
JP2533374B2 (en) Control program creation method
JP2533372B2 (en) Control program creation method
JP2537418B2 (en) Control program generator
JPH09258808A (en) Motion controller programming system
JPH04252307A (en) Interactive numerical controller
JP3322930B2 (en) Program creation device
WO1992021073A1 (en) Method for debugging sequential program
JP4219120B2 (en) Display device and operation check method of display device
JPH06282313A (en) Method and device for monitoring facility
JPH08328793A (en) Machine controller
JPH04105105A (en) Display screen production system for plural pc controllers, sequence program producing device, and control state display device
JPH08150581A (en) Robot control device
JPH06202711A (en) Programmer for programmable controller
JPH11134008A (en) Programmable controller
JPH07230307A (en) Program developing device for sequencer
JPH0346007A (en) Nc information generation system