JPH0863205A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH0863205A
JPH0863205A JP19423994A JP19423994A JPH0863205A JP H0863205 A JPH0863205 A JP H0863205A JP 19423994 A JP19423994 A JP 19423994A JP 19423994 A JP19423994 A JP 19423994A JP H0863205 A JPH0863205 A JP H0863205A
Authority
JP
Japan
Prior art keywords
transition
block
active
executing
execution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP19423994A
Other languages
Japanese (ja)
Other versions
JP3143330B2 (en
Inventor
Noboru 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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP06194239A priority Critical patent/JP3143330B2/en
Publication of JPH0863205A publication Critical patent/JPH0863205A/en
Application granted granted Critical
Publication of JP3143330B2 publication Critical patent/JP3143330B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

(57)【要約】 【構成】 SFCプログラムを実行するプログラマブル
コントローラにおいて、プログラムのブロック全体を制
御し実行するブロック実行手段と、活性ブロックの活性
ステップのステップNOを格納する活性ステップ情報格
納テーブルと、上記活性ステップ情報格納テーブルに格
納されたステップNOを調べ、その動作出力を実行する
ステップ実行手段と、上記活性ステップへの移行条件を
実行する移行実行手段と、上記移行実行手段による移行
成立時、ステップ属性をチェックし、移行保持ステップ
ならば、実行ステップの抹消をせずに次ステップへ移行
後も実行ステップを実行し続けるとともに、以後の移行
成立により次々に移行先ステップを起動する移行保持ス
テップ実行手段を備えたものである。 【効果】 SFCプログラム実行時、直列に連なる複数
のステップを同時に実行可能にすることができ、ステッ
プの後追い制御を可能にできる。
(57) [Summary] [Configuration] In a programmable controller that executes an SFC program, block execution means that controls and executes the entire block of the program, and an active step information storage table that stores the step number of the active step of the active block, When the step NO stored in the activation step information storage table is examined and a step execution means for executing the operation output thereof, a transition execution means for executing a transition condition to the activation step, and a transition established by the transition execution means are established, If the step attribute is checked, and if it is a transition holding step, the execution step is not deleted and the execution step is continued to be executed after the transition to the next step, and the transition destination step is activated one after another when the subsequent transition is established. It is provided with an execution means. [Effect] When the SFC program is executed, a plurality of steps connected in series can be simultaneously executed, and follow-up control of the steps can be enabled.

Description

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

【0001】[0001]

【産業上の利用分野】この発明はSFC言語に基づくS
FCプログラムを実行するプログラマブルコントローラ
に関するものである。
This invention relates to SFC based on SFC language.
The present invention relates to a programmable controller that executes an FC program.

【0002】[0002]

【従来の技術】最近、プログラム作成手段としての周辺
装置によりSFC言語にて作成されたプログラム(以
下、SFCプログラムと記す)をプログラマブルコント
ローラ(以下、PCと記す)にロードし実行する方法が
実用化されている。図12(A)は従来のPCの構成を
示すブロック図である。図において、1はSFCプログ
ラムを実行するCPU、2は制御対象(図示せず)や周
辺装置(図示せず)とデータのやり取りを行う入出力イ
ンターフェース、3はCPU1を制御するOSとしての
マイクロプログラムを格納するマイクロプログラムRO
M、4はSFCプログラム実行時の活性ステップ情報を
示す圧制ステップ情報格納用RAM、5はプログラム格
納用RAMであり、6は1〜5を接続する共通バスであ
る。また、31〜33はマイクロプログラムROM3の
中身を示すもので、31はブロック全体(ブロックにつ
いては、後に詳しく述べる。)を制御し実行するブロッ
ク実行手段、32はブロックの活性ステップを検出しそ
のステップを実行するステップ実行手段、33は上記活
性ステップに付随している移行処理を実行する移行実行
手段である。そして、41〜42は活性ステップ情報格
納用RAM4の中身を示すもので、42は各ブロックの
活性ステップNOを格納する活性ステップ情報格納テー
ブルであり、41は各ブロックの活性ステップ情報テー
ブル42へのポインタを格納するポインタテーブルであ
る。
2. Description of the Related Art Recently, a method of loading and executing a program (hereinafter, referred to as SFC program) created in SFC language by a peripheral device as a program creating means to a programmable controller (hereinafter, referred to as PC) has been put into practical use. Has been done. FIG. 12A is a block diagram showing the configuration of a conventional PC. In the figure, 1 is a CPU that executes an SFC program, 2 is an input / output interface that exchanges data with a control target (not shown) and peripheral devices (not shown), and 3 is a microprogram as an OS that controls the CPU 1. Microprogram RO to store
M and 4 are RAMs for storing pressure control step information indicating active step information at the time of executing the SFC program, 5 is RAM for storing the program, and 6 is a common bus connecting 1 to 5. Further, 31 to 33 show the contents of the microprogram ROM 3, 31 is a block executing means for controlling and executing the entire block (a block will be described in detail later), and 32 is a step for detecting an active step of the block. And 33 is a shift executing means for executing a shift process associated with the active step. Further, 41 to 42 show the contents of the RAM 4 for storing active step information, 42 is an active step information storage table for storing the active step NO of each block, and 41 is an active step information table 42 for each block. It is a pointer table that stores pointers.

【0003】図13はSFCプログラムの一例を示すも
のである。SFCプログラムとは、制御の流れをフロー
形式にて表現したもので、あるまとまった動作を示す
「ステップ」と、上記ステップの実行の移行条件を示す
「移行」との組み合わせからなる。「ステップ」と「移
行」は、それぞれ制御プログラムである「動作出力」と
「移行条件」を持ち、活性の間実行される。実行中のス
テップは活性ステップと呼ばれ、それに付随する移行の
移行条件が成立すると非活性となり実行を終了し、次に
続くステップへ実行が移る。図13において、11は
「ステップ」を、12は「移行」を示す。また、一連の
ステップの集まりを「ブロック」と表現し、ブロックの
最初のステップをイニシャルステップ、最後のステップ
をエンドステップと呼ぶ。ブロックは他のブロックから
の起動要求により起動されイニシャルステップからエン
ドステップまで実行して終了する。このブロックは複数
起動することができ、起動されたブロックは並列に処理
される。ブロックの起動要求は、ブロック起動ステップ
の実行により行われる。ブロック起動ステップは起動先
ブロックが実行の間、活性され起動先ブロックの終了に
て非活性となり、次に続くステップへ実行が移る。図1
3において、10はイニシャルステップを、15はエン
ドステップを、13はブロック起動ステップを、16は
「ブロック」を示す。
FIG. 13 shows an example of the SFC program. The SFC program expresses the flow of control in a flow format, and is composed of a combination of "steps" indicating a certain operation and "shifts" indicating the transition conditions for executing the above steps. The "step" and "transition" have a control program "operation output" and "transition condition", respectively, and are executed during activation. The step being executed is called an active step, and when the transition condition for the transition accompanying it is satisfied, the step becomes inactive, the execution is terminated, and the execution is moved to the next step. In FIG. 13, 11 indicates a “step” and 12 indicates a “shift”. A group of a series of steps is expressed as a “block”, the first step of the block is called an initial step, and the last step is called an end step. A block is activated by an activation request from another block and executes from the initial step to the end step and ends. This block can be activated multiple times, and the activated blocks are processed in parallel. The block activation request is made by executing the block activation step. The block activation step is activated during execution of the activation destination block and deactivated at the end of the activation destination block, and the execution proceeds to the next subsequent step. FIG.
In 3, 3, 10 is an initial step, 15 is an end step, 13 is a block activation step, and 16 is a “block”.

【0004】図14は周辺装置(図示せず)からPCに
ロードされたSFCプログラムをPCが実行しながら、
各ブロックの活性ステップを実行するフローチャートで
ある。200は活性ブロック実行準備を示し、201は
ブロック停止要求のチェックを、202はブロック停止
要求有り無しの分岐処理を示す。203は活性ブロック
の活性ステップ実行準備を示し、204は活性ステップ
NOの読み出しを、205は読み出した活性ステップの
実行を示す。206は活性ステップに付随する移行処理
の実行を示す。また、207は移行処理の実行結果に基
づく分岐処理を示し、208は移行成立時の実行ステッ
プNOの変更処理を、209は移行非成立時の実行ステ
ップNOの継続処理を示す。210は活性ブロックの全
活性ステップ実行完了チェックを、211は全活性ブロ
ック実行完了チェックを示す。
FIG. 14 shows that the PC executes an SFC program loaded on the PC from a peripheral device (not shown).
It is a flowchart which performs the activation step of each block. Reference numeral 200 indicates active block execution preparation, 201 indicates a block stop request check, and 202 indicates a branch process with or without a block stop request. Reference numeral 203 indicates preparation for execution of active step of the active block, reference numeral 204 indicates reading of active step NO, and reference numeral 205 indicates execution of read active step. Reference numeral 206 indicates the execution of the transition process associated with the active step. Further, 207 indicates a branch process based on the execution result of the migration process, 208 indicates a change process of the execution step NO when the transition is established, and 209 indicates a continuation process of the execution step NO when the transition is not established. Reference numeral 210 denotes an active block execution completion check for active blocks, and 211 denotes an active block execution completion check for active blocks.

【0005】次に動作について説明する。図13に示す
SFCプログラムにおいて、ブロック2のステップ1
(S1)が活性である場合の動作を図14に示すフロー
チャートに基づき説明する。ステップ200でブロック
2が活性であることを検出し、ブロック2の実行を開始
する。ステップ201でブロック2に停止要求があるか
を検出し、分岐ステップ202で要求があればブロック
2を実行せず、次の活性ブロックの処理に移るが、要求
がなければ該ブロックの実行処理に移る。ステップ20
3で活性ブロック2の活性ステップ数を検出し、図12
(A)の活性ステップ情報格納用RAM4に格納されて
いる活性ブロックの活性ステップ情報格納テーブル42
に記載されている情報をもとに、ステップ204で活性
ステップNO1を読み出す。ステップ205で活性ステ
ップNOの動作出力プログラムを実行する。その後、ス
テップ206で活性ステップに付随する移行処理を活性
ステップ同様に実行する。そして、分岐ステップ207
で、移行処理の実行結果が移行成立であれば、ステップ
208で活性ブロックの活性ステップ情報格納テーブル
42に対して、実行ステップNOの抹消と移行先ステッ
プNOの登録を実行し、移行非成立であれば、ステップ
209で実行ステップNOの継続登録を実行する。ここ
で、移行成立時、ステップ208では必ず実行ステップ
の終了処理を実行し、移行先ステップを活性するため、
実行ステップを実行し続けることはなく、直列に連なる
複数のステップが同時に活性になり実行されることはな
い。ステップ210で該当ブロックの活性ステップを全
て実行したかをチェックし、ステップ211で活性ブロ
ックを全て実行したかをチェックし、実行していれば処
理を完了する。
Next, the operation will be described. In the SFC program shown in FIG. 13, step 1 of block 2
The operation when (S1) is active will be described based on the flowchart shown in FIG. In step 200, it is detected that block 2 is active, and execution of block 2 is started. In step 201, it is detected whether or not there is a stop request in block 2, and if there is a request in branch step 202, block 2 is not executed and the process moves to the next active block, but if there is no request, the execution process of that block is executed. Move. Step 20
3 detects the number of active steps of active block 2,
(A) Active step information storage table 42 of active blocks stored in RAM 4 for active step information storage
In step 204, the activation step NO1 is read out based on the information described in (1). In step 205, the operation output program of the activation step NO is executed. Then, in step 206, the transition process associated with the active step is executed in the same manner as the active step. Then, branch step 207
If the execution result of the migration process is migration successful, in step 208, deletion of the execution step NO and registration of the migration destination step NO are executed in the active step information storage table 42 of the active block, and migration is not successful. If there is, the continuous registration of the execution step NO is executed in step 209. Here, when the transition is established, the end processing of the execution step is always executed in step 208 to activate the transition destination step.
The execution steps are not continuously executed, and a plurality of steps connected in series are never activated and executed at the same time. In step 210, it is checked whether all active steps of the block have been executed, and in step 211 it is checked whether all active blocks have been executed. If they have been executed, the processing is completed.

【0006】[0006]

【発明が解決しようとする課題】従来のPCは以上のよ
うに構成されているので、SFCプログラムのステップ
実行において、直列に連なる複数のステップが同時に活
性になり、実行されることがないため、SFCプログラ
ムが向いているとされる工程歩進制御を実行させるとき
に、1つの機械の動作を制御させる場合には問題とされ
ないが、複数の機械の制御をSFCの各ステップに分割
し制御させる場合に、一旦終了した機械は一連のステッ
プの制御が終了するまで実行できないといった課題があ
った。また、各ブロックの停止制御においては、停止要
求がでたスキャンに活性中の全ステップを強制停止させ
るため、ステップごとに停止時の実行状態が異なり、中
途半端な状態で停止する場合はそれぞれの実行状態に対
応した停止時の制御を別途プログラムする必要があると
いった課題があった。
Since the conventional PC is configured as described above, in step execution of the SFC program, a plurality of steps connected in series are not activated and executed at the same time. Although it does not matter if the operation of one machine is controlled when executing the step step control which is supposed to be suitable for the SFC program, the control of a plurality of machines is divided into each step of SFC and controlled. In this case, there is a problem that the machine that has been once completed cannot be executed until the control of a series of steps is completed. In addition, in the stop control of each block, all the active steps are forcibly stopped in the scan for which a stop request is issued, so the execution state at the time of stop differs for each step, and when stopping in a halfway state, There was a problem that it was necessary to separately program the control at the time of stop corresponding to the execution state.

【0007】この発明は、上記のような課題を解決する
ためになされたもので、SFCプログラムの実行に際
し、直列に連なる複数のステップが同時に活性にするこ
とを可能にする移行保持ステップの実行と、ブロック停
止時に該当ブロックの全活性ステップを即停止するので
はなく、それぞれの活性ステップの実行終了条件である
移行条件が成立するまで待って活性ブロックの各活性ス
テップを停止するようにできること、それと前記の直列
に連なる複数のステップが同時に活性にすることを可能
にし、ステップの後追い動作を可能にした場合に発生す
る問題で、移行先ステップがすでに活性であるときに、
エラー停止にするのか、移行先ステップが移行して非活
性になるのを待って移行するのか、または移行先ステッ
プが移行するのを待たずに移行するのかを選択できるス
テップ移行時動作モードの設定を可能にすることを目的
とする。
The present invention has been made to solve the above-mentioned problems, and when executing an SFC program, a transition holding step that allows a plurality of steps connected in series to be activated at the same time, and , It is possible to stop each active step of the active block by waiting until the transition condition which is the execution end condition of each active step is satisfied, instead of immediately stopping all active steps of the block when the block is stopped. This is a problem that occurs when a plurality of steps connected in series can be activated at the same time and a follow-up operation of a step is enabled, and when a transition destination step is already active,
Setting of operation mode at step transition that can be selected whether to stop due to an error, to transition after the transition destination step transitions and becomes inactive, or to transition without waiting for the transition destination step to transition The purpose is to enable.

【0008】[0008]

【課題を解決するための手段】本発明に係るプログラマ
ブルコントローラは、SFCプログラムを実行するプロ
グラマブルコントローラにおいて、プログラムのブロッ
ク全体を制御し実行するブロック実行手段と、活性ブロ
ックの活性ステップのステップNOを格納する活性ステ
ップ情報格納テーブルと、上記活性ステップ情報格納テ
ーブルに格納されたステップNOを調べ、その動作出力
を実行するステップ実行手段と、上記活性ステップへの
移行条件を実行する移行実行手段と、上記移行実行手段
による移行成立時、ステップ属性をチェックし、移行保
持ステップならば、実行ステップの抹消をせずに次ステ
ップへ移行後も実行ステップを実行し続けるとともに、
以後の移行成立により次々に移行先ステップを起動する
移行保持ステップ実行手段を備えたものである。
A programmable controller according to the present invention stores, in a programmable controller that executes an SFC program, block execution means that controls and executes the entire block of the program and step NO of the active step of the active block. Active step information storage table, step NO stored in the active step information storage table, and step output means for executing its operation output, transition execution means for executing transition conditions to the active step, and When the transition is established by the transition executing means, the step attribute is checked, and if it is the transition holding step, the execution step is continued to be executed after the transition to the next step without deleting the execution step,
It is provided with a transition holding step executing means for activating the transition destination steps one after another when the subsequent transitions are established.

【0009】また、本発明に係るプログラマブルコント
ローラは、SFCプログラムを実行するプログラマブル
コントローラにおいて、プログラムのブロック全体を制
御し実行するブロック実行手段と、活性ブロックの活性
ステップのステップNOとこれに対応するステータスを
格納する活性ステップ情報格納テーブルと、上記活性ス
テップ情報格納テーブルに格納されたステップNOを調
べ、その動作出力を実行するステップ実行手段と、上記
活性ステップへの移行条件を実行する移行実行手段と、
上記活性ステップ情報格納テーブルの該当ステップのス
テップステータスによりステップ停止要求をチェック
し、停止要求があれば、該当ステップの処理を実行せ
ず、停止要求がなければ、該当ステップの処理を実行す
るステップ実行管理手段と、上記ブロック実行手段によ
るブロック停止時に、全活性ステップを即停止状態にす
るかまたは各活性ステップを移行成立にてそれぞれ停止
させるかを選択するブロック停止モード実行手段と、上
記移行実行手段による移行成立時、上記ブロック停止モ
ード実行手段により選択されたモードが移行後停止モー
ドなら、上記ステップ実行管理手段でチェックした該当
ステップのステップステータスを移行後停止状態である
ようにセットし、次回より該当活性ステップを実行しな
いようにして停止させる移行後停止時ステップ停止実行
手段を備えたものである。
Further, the programmable controller according to the present invention is, in a programmable controller for executing an SFC program, a block executing means for controlling and executing an entire block of a program, a step NO of an active step of an active block and a status corresponding thereto. Active step information storage table, step execution means for checking the step NO stored in the active step information storage table and executing its operation output, and transition execution means for executing transition conditions to the active step. ,
The step stop request is checked according to the step status of the corresponding step in the active step information storage table. If there is a stop request, the process of the corresponding step is not executed. If there is no stop request, the process of the corresponding step is executed. Management means, a block stop mode execution means for selecting whether to immediately stop all active steps or stop each active step upon completion of transition when the block is stopped by the block execution means, and the transition execution means If the mode selected by the block stop mode execution means is the stop mode after transition when the transition is established by, the step status of the corresponding step checked by the step execution management means is set to be the stop state after transition, and from the next time Stop the active step without executing it. Those having a stop step stops execution means after the migration.

【0010】尚、上記ブロック停止モード実行手段に、
停止モード設定を各ブロックごとに指定するブロック停
止モード設定手段を備えるのが好ましい。
In the block stop mode executing means,
It is preferable to include block stop mode setting means for specifying the stop mode setting for each block.

【0011】また、上記ブロック停止モード実行手段
に、停止モード設定を各ブロックごとに且つ活性ステッ
プNOに対応して指定する活性ステップ対応ブロック停
止モード設定手段を備えるのがさらに好ましい。
Further, it is more preferable that the block stop mode executing means is provided with an active step corresponding block stop mode setting means for designating a stop mode setting for each block and corresponding to an active step NO.

【0012】尚、上記移行保持ステップ実行手段によ
り、直列に連なる複数のステップが同時に実行され、且
つ上記移行実行手段による移行成立時に移行しようとし
た先のステップが既に活性だった場合に、エラーにする
のか、移行先ステップが移行して非活性になるのを待っ
て移行するのか、または移行先ステップの移行を待たず
に移行するのかを選択するステップ移行時動作モード実
行手段を備えるのが好ましい。
It should be noted that if a plurality of steps connected in series are simultaneously executed by the transition holding step execution means, and the previous step which the transition execution means has tried to transition to when the transition is established is already active, an error occurs. It is preferable to include an operation mode executing means at the time of step transition for selecting whether to perform the transition destination step transition, and wait for the transition destination step to become inactive, or to transition without waiting for the transition destination step transition. .

【0013】また、上記ステップ移行時動作モード実行
手段に、動作モード設定を各ブロックごとに指定するス
テップ移行時動作モード設定手段を備えるのが好まし
い。
Further, it is preferable that the step transition operation mode execution means includes step transition operation mode setting means for designating an operation mode setting for each block.

【0014】[0014]

【作用】本発明のプログラマブルコントローラによれ
ば、ステップ実行手段は、活性ステップ情報格納用RA
Mより、活性ステップNOを取得し、その動作出力を実
行する。また、移行実行手段は、ステップに付随する移
行の移行条件を実行し、移行保持ステップならば、移行
保持ステップ実行手段は、移行成立時に実行ステップの
抹消をせずに移行後も実行ステップを実行し続けること
ができ、以後移行成立により次々に移行先ステップを起
動することができる。
According to the programmable controller of the present invention, the step executing means has the RA for storing active step information.
The activation step NO is acquired from M and its operation output is executed. Further, the transition executing means executes the transition condition of the transition accompanying the step, and if it is the transition holding step, the transition holding step executing means does not delete the execution step when the transition is established and executes the execution step after the transition. The transfer destination step can be started one after another when the transfer is established.

【0015】また、本発明のプログラマブルコントロー
ラによれば、ブロック停止モード実行手段は、ブロック
実行手段において、あらかじめ設定されたブロック停止
時に全活性ステップを即停止状態にするかまたは各活性
ステップを移行成立にてそれぞれ停止させるかのブロッ
ク停止モードの指定に従い、前者であれば、ブロックの
実行を即停止し、後者であれば、ブロックの全活性ステ
ップの移行後停止する。また、移行後停止時ステップ停
止実行手段は、上記ブロック移行後停止モード時に移行
が成立したときに移行先ステップを活性にするよう活性
ステップ情報格納テーブルにステップNOを登録すると
ともにそのステップステータスを移行後停止状態である
ようにセットし、以後ステップ実行手段のステップ実行
管理手段がそのステップステータスを検出し該当ステッ
プを実行しないようにすることにより移行成立したステ
ップを停止状態にする。
Further, according to the programmable controller of the present invention, the block stop mode executing means, in the block executing means, immediately sets all the active steps at the time of the preset block stop, or shifts the active steps. In the former case, execution of the block is immediately stopped, and in the latter case, execution is stopped after the transition of all active steps of the block, according to the designation of the block stop mode to be stopped. Also, the post-migration stop step stop executing means registers step NO in the active step information storage table and activates the step status so as to activate the migration destination step when the transition is established in the block migration after stop mode. It is set so that it is in the post-stop state, and thereafter, the step execution management means of the step execution means detects the step status and does not execute the corresponding step, so that the step that has been transitioned is brought into the stop state.

【0016】また、本発明のプログラマブルコントロー
ラによれば、ブロック停止モード設定手段は、上記ブロ
ック停止モード実行手段が参照するブロック停止モード
の指定において、停止モード設定を各ブロックごとに指
定できるようにする。
Further, according to the programmable controller of the present invention, the block stop mode setting means enables the stop mode setting to be specified for each block in the specification of the block stop mode referred to by the block stop mode executing means. .

【0017】また、本発明のプログラマブルコントロー
ラによれば、活性ステップ対応ブロック停止モード設定
手段は、上記ブロック停止モード実行手段が参照するブ
ロック停止モードの指定において、停止モード設定を各
ブロックごとに指定できるようにするとともに活性ステ
ップNOに対応して停止モードを指定できるようにす
る。
Further, according to the programmable controller of the present invention, the active step corresponding block stop mode setting means can specify the stop mode setting for each block in the block stop mode specification referred to by the block stop mode executing means. In addition, the stop mode can be designated corresponding to the activation step NO.

【0018】また、本発明のプログラマブルコントロー
ラによれば、ステップ移行時動作モード実行手段は、移
行成立により移行しようとした先のステップがすでに活
性だった場合に、あらかじめ設定されたエラーにするの
か、移行先ステップが移行して非活性になるのを待って
移行するのか、または移行先ステップが移行するのを待
たずに移行するのかの指定に従い、エラーであれば停止
し、移行待ちであれば実行ステップの移行処理を実行せ
ず再実行させ、移行であれば移行する。
Further, according to the programmable controller of the present invention, whether the step transition operation mode executing means gives a preset error when the previous step to be transitioned due to the establishment of transition is already active, According to the designation of whether to migrate after waiting for the migration destination step to migrate and become inactive, or to migrate without waiting for the migration destination step to migrate, stop if there is an error, and wait for migration The migration process of the execution step is executed again without being executed.

【0019】また、本発明のプログラマブルコントロー
ラによれば、ステップ移行時動作モード設定手段は、ス
テップ移行時動作モード実行手段にて、動作モード設定
を各ブロックごとに指定できるようにする。
According to the programmable controller of the present invention, the step transition operation mode setting means allows the step transition operation mode execution means to specify the operation mode setting for each block.

【0020】[0020]

【実施例】【Example】

実施例1.この発明の一実施例を図1から図3に基づい
て説明する。図1は、図12(A)のPCの構成を示す
ブロック図における3のマイクロプログラムROMと、
4の活性ステップ情報格納用RAMの詳細図である。他
のブロックに関しては、図12(A)と同一であるので
説明は省略する。図2は、SFCプログラムの一例およ
び制御対象例を示すものである。図3は、周辺装置(図
示せず)からPCにロードされたSFCプログラムを実
行しながら、直列に連なる複数のステップを同時に実行
可能にするとともに移行保持ステップを実行するフロー
を示すフローチャートである。図1において、図12
(B),(C)と同番号のものは同一のものを示すが、
36は移行保持ステップ実行手段である。図2におい
て、図13と同番号のものは同一のものを示すが、17
は移行保持ステップ、20は移行保持ステップ17を用
いた制御対象例である。図3において、図14と同番号
のものは同一のものを示すが、212はステップ属性チ
ェック処理で、213はその結果による分岐処理であ
る。そして、214は移行保持ステップ17であるとき
に実行される実行ステップNOの継続登録と移行先ステ
ップNOの登録処理である。
Example 1. An embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a block diagram showing the structure of the PC of FIG.
4 is a detailed diagram of a RAM for storing active step information of FIG. The other blocks are the same as those in FIG. FIG. 2 shows an example of the SFC program and an example of the controlled object. FIG. 3 is a flowchart showing a flow of executing a SFC program loaded on a PC from a peripheral device (not shown) while simultaneously enabling a plurality of steps in series and executing a transition holding step. In FIG.
The same numbers as in (B) and (C) indicate the same,
Reference numeral 36 is a transition holding step executing means. In FIG. 2, the same numbers as those in FIG. 13 indicate the same items.
Is a transition holding step, and 20 is a control target example using the transition holding step 17. In FIG. 3, the same numbers as those in FIG. 14 indicate the same items, but 212 is a step attribute check process and 213 is a branch process according to the result. Further, reference numeral 214 is a continuous registration of the execution step NO and a registration processing of the transfer destination step NO which are executed when the transition holding step 17 is performed.

【0021】次に動作について説明する。図2に示すS
FCプログラム例において、17は移行保持ステップを
示し、移行保持ステップ17を作成することにより、移
行保持を実行指定することができる。図3に示すフロー
チャートにおいて、図1ブロック実行手段31により、
ステップ200で活性ブロック数を読み出し、活性ブロ
ック数分の処理を繰り返す。また、ステップ201でブ
ロック停止要求があるか否かをチェックし、ステップ2
02で要求があれば該当ブロックの処理を実施せず、な
ければ実施する。次に図1のステップ実行手段32によ
り、ステップ203で処理する活性ブロックの活性ステ
ップ数を読み出し、活性ステップ数分の処理を繰り返
す。次にステップ204で活性ステップNOを読み出
し、ステップ205で実行する。ステップ206で活性
ステップに付随する移行処理を実行し、ステップ207
でその実行結果をチェックし、移行成立でなければ、ス
テップ209で実行すNOの継続登録を実施する。移行
成立であれば、ステップ212でステップ属性をチェッ
クし、ステップ213で移行保持ステップでなければ、
ステップ208で図1の活性ステップ情報格納テーブル
42に対して実行ステップNOの抹消と移行先ステップ
NOの登録を実施するが、移行保持ステップであれば、
ステップ214で実行ステップNOの継続登録と移行先
ステップNOの登録を実施する。これにより、次スキャ
ンでも実行ステップを実行できるようにする。
Next, the operation will be described. S shown in FIG.
In the FC program example, reference numeral 17 indicates a transition holding step, and by creating the transition holding step 17, the transition holding can be designated to be executed. In the flowchart shown in FIG. 3, the block executing means 31 shown in FIG.
In step 200, the number of active blocks is read, and the processing for the number of active blocks is repeated. In step 201, it is checked whether there is a block stop request, and step 2
If there is a request in 02, the processing of the corresponding block is not executed, and if not, it is executed. Next, the step executing means 32 of FIG. 1 reads the number of active steps of the active block processed in step 203, and repeats the processing for the number of active steps. Next, in step 204, the activation step NO is read out, and is executed in step 205. In step 206, the migration process associated with the active step is executed, and step 207
Then, the execution result is checked, and if the transition is not established, the continuous registration of NO executed in step 209 is executed. If the transition is established, the step attribute is checked in step 212, and if it is not the transition holding step in step 213,
In step 208, the execution step NO is deleted and the transfer destination step NO is registered in the active step information storage table 42 of FIG.
In step 214, continuous registration of execution step NO and registration of transfer destination step NO are carried out. As a result, the execution step can be executed even in the next scan.

【0022】以上の動作を図2に示すSFCプログラム
例のブロック2に作成された移行保持ステップ17とそ
の制御対象例をもとに説明すると、ブロック2のイニシ
ャルステップ10を移行保持ステップ17に指定するこ
とにより、移行成立後もイニシャルステップ10を実行
し続けることができるので、ステップ1(S1)のマシ
ン1の制御が終了し、ワークを乗せた搬送台がステップ
2(S2)のマシン2の制御へ移行したのち、ステップ
1(S1)のマシン1は次のワークの待ち状態となる
が、これを受けてステップ0(S0)は移行保持ステッ
プ17であるためイニシャルステップ10を実行し移行
条件が成立していれば、次のワークを乗せた搬送台をス
テップ1(S1)のマシン1へ移動させることができ
る。これにより、ステップ1(S1)のマシン1は、最
初のワークがステップ3(S3)のマシン3の制御を完
了させブロック2が完了するのを待たずに次のワークを
並行して制御をすることができ、各マシンの稼働率を高
めることができる。
The above operation will be described based on the transition holding step 17 created in the block 2 of the SFC program example shown in FIG. 2 and the control target example thereof. The initial step 10 of the block 2 is designated as the transition holding step 17. By doing so, it is possible to continue executing the initial step 10 even after the transition is established, so that the control of the machine 1 in step 1 (S1) is completed, and the carriage on which the work is placed is the machine 2 in step 2 (S2). After shifting to the control, the machine 1 in step 1 (S1) is in a waiting state for the next work, but in response to this, step 0 (S0) is the shift holding step 17, so the initial step 10 is executed and the shift condition is changed. If is satisfied, it is possible to move the carrier on which the next work is placed to the machine 1 in step 1 (S1). As a result, the machine 1 in step 1 (S1) controls the next work in parallel without waiting for the first work to complete the control of the machine 3 in step 3 (S3) and the completion of block 2. It is possible to increase the operating rate of each machine.

【0023】実施例2.さらに図1において、図12
(B),(C)と同番号のものは同一のものを示すが、
34はブロック停止モード実行手段で、35はステップ
実行管理手段、37は移行後停止時ステップ停止実行手
段である。また、43は活性ステップ情報格納テーブル
に格納される活性ステップNOに対応するステップステ
ータスである。図4において、図14と同番号のものは
同一のものを示すが、215はブロック停止モードチェ
ック処理で、216はその結果による分岐処理である。
そして、217はステップ停止要求チェック処理で、2
18はその結果による分岐処理である。また、219は
移行成立時にブロック停止モードが移行後停止モードの
時実行されるステップステータスへの移行後停止状態セ
ット処理である。
Example 2. Further in FIG.
The same numbers as in (B) and (C) indicate the same,
Reference numeral 34 is a block stop mode execution means, 35 is a step execution management means, and 37 is a post-migration stop step stop execution means. Further, 43 is a step status corresponding to the active step No. stored in the active step information storage table. In FIG. 4, the same numbers as those in FIG. 14 indicate the same items, but 215 is a block stop mode check process and 216 is a branch process according to the result.
217 is a step stop request check process, and 2
Reference numeral 18 is a branch process according to the result. Further, reference numeral 219 denotes a post-transition stop state setting process to the step status which is executed when the block stop mode is the post-transition stop mode when the transition is established.

【0024】次に動作について説明する。図4に示すフ
ローチャートにおいて、ステップ200からステップ2
11までの処理は実施例1と同一であるが、ステップ2
02でブロック停止要求が有る時、図1のブロック停止
モード実行手段34により、ステップ215でブロック
停止モードをチェックし、ステップ216で即停止なら
該当ブロックの処理を実施せず、移行後停止ならブロッ
クの処理を実施する。次にステップ204で活性ステッ
プNOの読み出し後、図1のステップ実行管理手段35
により、ステップ217で活性ステップ情報格納テーブ
ル42にて該当ステップのステップステータス43によ
りステップ停止要求をチェックし、ステップ218で停
止要求があれば該当ステップの処理を実施せず、なけれ
ば実施する。また、移行処理の実行後、移行成立時、ブ
ロック停止モードが移行後停止モードならば、図1の移
行後停止時ステップ停止実行手段37により、ステップ
219で該当ステップのステップステータスを移行後停
止状態にセットする。これにより、次スキャンより移行
が成立したステップのみを停止することができる。
Next, the operation will be described. In the flowchart shown in FIG. 4, step 200 to step 2
The process up to 11 is the same as that in the first embodiment, but the step 2
When there is a block stop request in 02, the block stop mode execution means 34 of FIG. 1 checks the block stop mode in step 215. If it is an immediate stop in step 216, the process of the corresponding block is not executed, and if it is a stop after transition, the block Is performed. Next, at step 204, after reading the active step NO, the step execution management means 35 of FIG.
Accordingly, in step 217, the step stop request is checked by the step status 43 of the corresponding step in the active step information storage table 42. If the stop request is issued in step 218, the process of the corresponding step is not executed, and if not, it is executed. After the execution of the transition process, if the block stop mode is the post-transition stop mode when the transition is established, the step status of the post-transition stop step stop execution means 37 of FIG. Set to. As a result, it is possible to stop only the step in which the transition is established from the next scan.

【0025】実施例3.さらに、図5は、周辺装置(図
示せず)において、図1のブロック停止モード実行手段
34における各ブロックのブロック停止モードを設定す
るブロック停止モード設定画面である。70は補助機能
メニュー画面において、ブロック停止モード設定を選択
する画面である。また、71はブロック停止モード設定
メニュー画面にて、ブロック対応設定とステップ対応設
定を選択する画面であり、72は71でブロック対応設
定を選択したときブロックNO対応でブロック停止モー
ドを設定する画面である。図6は、周辺装置(図示せ
ず)において、ブロック停止モードのブロック対応設定
をする画面での設定操作手順のフローを示すフローチャ
ートである。
Example 3. Further, FIG. 5 is a block stop mode setting screen for setting the block stop mode of each block in the block stop mode execution means 34 of FIG. 1 in a peripheral device (not shown). Reference numeral 70 denotes a screen for selecting the block stop mode setting on the auxiliary function menu screen. Also, 71 is a screen for selecting the block correspondence setting and the step correspondence setting on the block stop mode setting menu screen, and 72 is a screen for setting the block stop mode for the block NO correspondence when the block correspondence setting is selected at 71. is there. FIG. 6 is a flowchart showing a flow of a setting operation procedure on a screen for setting block correspondence in the block stop mode in a peripheral device (not shown).

【0026】次に動作について説明する。図5に示す周
辺装置のSFC操作画面において、ステップ100でフ
ァンクションキー(F4)を選択すると、補助機能メニ
ュー画面70が表示される。ステップ101でブロック
停止モード設定を選択するとブロック停止モード設定の
メニュー画面71が表示される。次にステップ102で
ブロック対応設定を選択すると、該当の設定画面72が
表示され、設定の実行をステップ103で行う。該当の
設定画面72において、ステップ104でファンクショ
ンキー(F4)を選択すると設定の実行終了がなされ、
これにより、パラメータとしてブロックごとのブロック
停止モード設定データが作成される。周辺装置が、上記
パラメータを図12のCPU1に書き込むことにより、
CPU1はSFCプログラム実行時、上記設定データに
よるブロックごとのブロック停止モードを検出し、対応
する停止動作を実行することができる。
Next, the operation will be described. When the function key (F4) is selected in step 100 on the SFC operation screen of the peripheral device shown in FIG. 5, the auxiliary function menu screen 70 is displayed. When the block stop mode setting is selected in step 101, the block stop mode setting menu screen 71 is displayed. Next, when the block correspondence setting is selected in step 102, the corresponding setting screen 72 is displayed, and the setting is executed in step 103. When the function key (F4) is selected in step 104 on the corresponding setting screen 72, the execution of setting is completed,
As a result, the block stop mode setting data for each block is created as a parameter. The peripheral device writes the above parameters in the CPU 1 of FIG.
When executing the SFC program, the CPU 1 can detect a block stop mode for each block based on the setting data and execute a corresponding stop operation.

【0027】実施例4.さらに、図7は、周辺装置(図
示せず)において、図1のブロック停止モード実行手段
34における各ブロックのブロック停止モードを設定す
るブロック停止モード設定画面である。図7において、
図5と同番号のものは同一のものを示すが、73は71
でブロック対応設定を選択したとき、ブロックのステッ
プNO対応でブロック停止モードを設定する画面であ
る。図8は、周辺装置(図示せず)において、ブロック
停止モードのステップ対応設定をする画面での設定操作
手順のフローを示すフローチャートである。
Example 4. Further, FIG. 7 is a block stop mode setting screen for setting the block stop mode of each block in the block stop mode execution means 34 of FIG. 1 in a peripheral device (not shown). In FIG.
The same numbers as in FIG. 5 indicate the same items, but 73 is 71.
It is a screen for setting the block stop mode in response to the step NO of the block when the block corresponding setting is selected in. FIG. 8 is a flowchart showing a flow of a setting operation procedure on a screen for performing step correspondence setting in the block stop mode in a peripheral device (not shown).

【0028】次に動作について説明する。図7に示す周
辺装置のSFC操作画面において、ステップ100でフ
ァンクションキー(F4)を選択すると、補助機能メニ
ュー画面70が表示される。ステップ101でブロック
停止モード設定を選択するとブロック停止モード設定の
メニュー画面71が表示される。次にステップ105で
ステップ対応設定を選択すると、該当の設定画面73が
表示され、設定の実行をステップ106で行ない、各停
止モードに対応するステップの範囲を指定する。該当の
設定画面73において、ステップ104でファンクショ
ンキー(F4)を選択すると設定の実行終了がなされ、
これにより、パラメータとしてブロックごとのブロック
停止モード設定データが作成される。周辺装置が、上記
パラメータをCPU1に書き込むことにより、CPU1
はSFCプログラム実行時、上記設定データによるブロ
ックごとのブロック停止モードを検出し、ブロック停止
時に活性になっているステップに対応する停止動作を実
行することができる。
Next, the operation will be described. When the function key (F4) is selected in step 100 on the SFC operation screen of the peripheral device shown in FIG. 7, the auxiliary function menu screen 70 is displayed. When the block stop mode setting is selected in step 101, the block stop mode setting menu screen 71 is displayed. Next, when the step correspondence setting is selected in step 105, the corresponding setting screen 73 is displayed, the setting is executed in step 106, and the range of steps corresponding to each stop mode is designated. When the function key (F4) is selected in step 104 on the corresponding setting screen 73, the execution of the setting is completed,
As a result, the block stop mode setting data for each block is created as a parameter. When the peripheral device writes the above parameters into the CPU1, the CPU1
When executing the SFC program, the block stop mode for each block based on the setting data can be detected, and the stop operation corresponding to the step that is active when the block is stopped can be executed.

【0029】実施例5.さらに、図1において、図12
(B),(C)と同番号のものは同一のものを示すが、
38はステップ移行時動作モード実行手段である。図9
において、図14と同番号のものは同一のものを示す
が、220は移行先ステップの活性状態チェック処理
で、221はその結果による分岐処理である。そして、
222は移行先ステップが活性中に実行されるステップ
移行時動作モードチェック処理で、223はその結果に
よる分岐処理である。また、224は上記分岐で動作モ
ードがエラー指定の時に実行されるエラー処理であり、
225は動作モードが移行指定の時に実行される実行ス
テップNOの抹消処理である。また、動作モードが移行
待ち指定の時は移行非成立同様ステップ209を実行す
る。
Embodiment 5 FIG. Further, in FIG.
The same numbers as in (B) and (C) indicate the same,
Numeral 38 is an operation mode executing means at step transition. Figure 9
In FIG. 14, those having the same numbers as in FIG. 14 are the same, but 220 is the active state check process of the migration destination step, and 221 is the branch process according to the result. And
Reference numeral 222 is a step transition operation mode check process executed while the transition destination step is active, and reference numeral 223 is a branch process depending on the result. In addition, reference numeral 224 denotes error processing executed when the operation mode is designated as an error in the above branch,
Reference numeral 225 is an erasing process of the execution step NO, which is executed when the operation mode is designated to shift. When the operation mode is designated to wait for transition, step 209 is executed similarly to the case where transition is not established.

【0030】次に動作について説明する。図9に示すフ
ローチャートにおいて、ステップ200からステップ2
11までの処理は、実施例1と同一であるが、ステップ
207で移行成立時、ステップ移行時動作モード実行手
段38により、ステップ220で移行先ステップの活性
状態をチェックし、ステップ221で非活性ならば従来
通りステップ208で実行ステップNOの抹消と移行先
ステップNOの登録を実施するが、活性ならばステップ
222でステップ移行時動作モードをチェックし、ステ
ップ223で動作モードがエラー指定の時は、ステップ
224でエラー処理を実施し、動作モードが移行指定の
時は、ステップ225で実行ステップNOの抹消処理を
実施する。これにより、実行ステップは非活性になる
が、移行先ステップはすでに活性で登録済みであるた
め、移行したときと同じ状態になる。また、動作モード
が移行待ち指定の時は移行非成立と同様ステップ209
を実施する。これにより、実行ステップは移行せずに再
度移行先ステップが移行するまで実行し続け移行先ステ
ップ移行待ち状態となる。
Next, the operation will be described. In the flowchart shown in FIG. 9, step 200 to step 2
The process up to 11 is the same as that of the first embodiment, but when the transition is established in step 207, the step transition operation mode execution means 38 checks the active state of the transition destination step in step 220, and deactivates in step 221. If so, the execution step NO is deleted and the transfer destination step NO is registered in step 208 as in the conventional case, but if it is active, the step transition operation mode is checked in step 222, and if the operation mode is an error designation in step 223, In step 224, error processing is performed, and when the operation mode is designated as transition, in step 225, the erasing processing of the execution step NO is performed. As a result, the execution step is deactivated, but the transition destination step is already activated and registered, and thus the state becomes the same as that at the time of transition. Further, when the operation mode is designated to wait for transition, the same as when transition is not established, step 209
Carry out. As a result, the execution step does not shift and continues to be executed until the shift destination step shifts again, and enters the shift destination step shift waiting state.

【0031】実施例6.さらに、図10は、周辺装置
(図示せず)において、図1のステップ移行時動作モー
ド実行手段における各ブロックの移行時動作モードを設
定するステップ移行時動作モード設定画面である。80
は補助機能メニュー画面において、ステップ移行時動作
モード設定を選択する画面であり、81はブロックNO
対応でステップ移行時動作モードを設定する画面であ
る。図11は、周辺装置(図示せず)において、ステッ
プ移行時動作モードのブロック対応設定をする画面での
設定操作手順のフローを示すフローチャートである。
Example 6. Further, FIG. 10 is a step transition operation mode setting screen for setting the transition operation mode of each block in the step transition operation mode execution means of FIG. 1 in a peripheral device (not shown). 80
Is a screen for selecting the operation mode setting at step transition on the auxiliary function menu screen, and 81 is a block No.
It is a screen for setting the operation mode at the time of step transition in response. FIG. 11 is a flowchart showing a flow of a setting operation procedure on a screen for performing block correspondence setting of the operation mode at step transition in the peripheral device (not shown).

【0032】次に動作について説明する。図10に示す
周辺装置のSFC操作画面において、ステップ110で
ファンクションキー(F4)を選択すると、補助機能メ
ニュー画面80が表示される。ステップ111でステッ
プ移行時動作モード設定を選択すると、該当の設定画面
81が表示され、設定の実行をステップ112で行な
い、移行成立時、移行先が活性の時にエラー停止にする
か、移行先ステップが移行するのを待って移行するか、
待たずに移行するかの各停止モードに対応するステップ
の範囲を指定する。該当の設定画面81において、ステ
ップ113でファンクションキー(F4)を選択すると
設定の実行終了がなされ、これにより、パラメータとし
てブロックごとのステップ移行時動作モード設定データ
が作成される。周辺装置が、上記パラメータをCPUに
書き込むことにより、CPUはSFCプログラム実行
時、上記設定データによるブロックごとのステップ移行
時動作モードを検出し、移行成立時、移行先ステップが
すでに活性のときの移行動作を実行することができる。
Next, the operation will be described. When the function key (F4) is selected in step 110 on the SFC operation screen of the peripheral device shown in FIG. 10, the auxiliary function menu screen 80 is displayed. When the step transition operation mode setting is selected in step 111, the corresponding setting screen 81 is displayed, and the setting is executed in step 112. When the transition is established, the error stop is performed when the transition destination is active, or the transition destination step Wait until the
Specify the range of steps corresponding to each stop mode whether to shift without waiting. When the function key (F4) is selected in step 113 on the corresponding setting screen 81, the execution of the setting is completed, and as a result, the step transition operation mode setting data for each block is created as a parameter. When the peripheral device writes the above parameters to the CPU, the CPU detects the operation mode at the time of step transition for each block by the setting data when executing the SFC program, and when the transition is established, the transition destination step is already active. The action can be performed.

【0033】[0033]

【発明の効果】以上のように、本発明によるときは、移
行保持ステップを備えたので、SFCプログラム上にて
移行保持の指定ができ、また、移行保持ステップ実行手
段を備えたので、移行成立時の活性ステップ変更手段に
て実装ステップの抹消をせずに移行後も実行ステップを
実行し続けることができ、以後移行成立により次々に移
行先ステップを起動することができる。これにより、S
FCプログラム実行時、直列に連なる複数のステップを
同時に実行可能にすることができ、ステップの後追い制
御を可能にできるため、ステップに対応したマシン等の
稼働率を高められる効果がある。
As described above, according to the present invention, since the transition holding step is provided, the transition holding can be designated on the SFC program, and the transition holding step executing means is provided, so that the transition is established. The execution step can be continued to be executed after the transfer without deleting the mounting step by the active step changing means at that time, and the transfer destination steps can be activated one after another after the transfer is established. This allows S
When the FC program is executed, a plurality of steps connected in series can be simultaneously executed, and follow-up control of the steps can be enabled, so that there is an effect that the operating rate of the machine or the like corresponding to the steps can be increased.

【0034】また、本発明によるときは、ブロック停止
モード実行手段を備えたので、SFCプログラム実行
時、ブロック停止時に全活性ステップを即停止状態にす
るかまたは各活性ステップを移行成立にてそれぞれ停止
させるかを選択することができ、移行後停止時ステップ
停止実行手段を備えたので、ブロック停止時に各活性ス
テップを移行成立にてそれぞれ停止させるように指定し
たとき移行成立時に実行ステップを移行後停止状態に指
定することができ、ステップ実行管理手段を備えたの
で、ステップが移行後停止状態であることを検出し、各
活性ステップを移行成立にてそれぞれ停止させることが
できる。これにより、ブロック停止制御をエラー時の緊
急停止としての使用以外にサイクル停止などステップ動
作の完了にて停止させる目的で使用することができる効
果がある。
Further, according to the present invention, since the block stop mode executing means is provided, all active steps are immediately stopped when the SFC program is executed or when the block is stopped, or each active step is stopped when the transition is established. It is possible to select whether or not to perform it, and since it is equipped with a step stop execution means at the time of stop after transition, when it is specified to stop each active step when transition is established when block is stopped, execution step is stopped after transition when transition is established. Since it is possible to specify the state and the step execution management means is provided, it is possible to detect that the step is in the stopped state after the transition and stop each active step when the transition is established. As a result, there is an effect that the block stop control can be used for the purpose of stopping at the completion of the step operation such as the cycle stop as well as the use as the emergency stop at the time of error.

【0035】また、本発明によるときは、ブロック停止
モード設定手段を備えたので、停止モード設定を各ブロ
ックごとに指定することができる。これにより、ブロッ
クの制御の内容に対応したブロック停止制御を指定する
ことができる効果がある。
Further, according to the present invention, since the block stop mode setting means is provided, the stop mode setting can be designated for each block. As a result, there is an effect that the block stop control corresponding to the control content of the block can be designated.

【0036】また、本発明によるときは、活性ステップ
対応ブロック停止モード設定手段を備えたので、停止モ
ード設定を各ブロックごとに指定できるようにするとと
もに活性ステップNOに対応して停止モードを指定する
ことができる。これにより、ブロックの制御の内容とそ
の動作状態に対応したブロック停止制御を指定すること
ができる効果がある。
Further, according to the present invention, since the active step corresponding block stop mode setting means is provided, the stop mode setting can be designated for each block and the stop mode is designated corresponding to the active step NO. be able to. As a result, there is an effect that the block stop control corresponding to the control content of the block and its operation state can be designated.

【0037】また、本発明によるときは、ステップ移行
時動作モード実行手段を備えたので、直列に連なる複数
のステップが同時に実行可能となった場合に、移行成立
により移行しようとした先のステップがすでに活性だっ
た場合に、エラーにするのか移行先ステップが移行して
非活性になるのを待って移行するのか、または移行先ス
テップが移行するのを待たずに移行するのかを指定する
ことができる。これにより、ステップの移行制御のチェ
ックや移行のキューイング動作および並列動作している
工程の合流動作など細かい制御を実行できる効果があ
る。
Further, according to the present invention, since the step transition operation mode executing means is provided, when a plurality of steps connected in series can be simultaneously executed, the previous step attempted to transit due to the establishment of the transition. If it is already active, you can specify whether to make an error, wait for the migration destination step to migrate and become inactive, or migrate without waiting for the migration destination step to migrate. it can. As a result, there is an effect that it is possible to execute fine control such as checking the transition control of steps, queuing operation of transition, and merging operation of processes operating in parallel.

【0038】また、本発明によるときは、ステップ移行
時動作モード設定手段を備えたので、動作モード設定を
各ブロックごとに指定することができる。これにより、
ブロックの制御の内容に対応したステップの移行制御を
指定することができる効果がある。
Further, according to the present invention, since the step transition operation mode setting means is provided, the operation mode setting can be designated for each block. This allows
There is an effect that the transition control of the step corresponding to the control content of the block can be designated.

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

【図1】 この発明の一実施例によるPCの構成を示す
ブロック図のうち、マイクロプログラムROMと活性ス
テップ情報格納用RAMの詳細構成図である。
FIG. 1 is a detailed configuration diagram of a microprogram ROM and an active step information storage RAM in a block diagram showing a configuration of a PC according to an embodiment of the present invention.

【図2】 この発明の一実施例によるSFCプログラム
の一例および制御対象例を示すものである。
FIG. 2 shows an example of an SFC program and an example of a controlled object according to an embodiment of the present invention.

【図3】 この発明の一実施例によるSFCプログラム
を実行しながら、移行保持ステップを実行するフローを
示すフローチャートである。
FIG. 3 is a flowchart showing a flow for executing a transition holding step while executing an SFC program according to an embodiment of the present invention.

【図4】 この発明の一実施例によるSFCプログラム
を実行しながら、ブロック停止モードに対応したブロッ
ク停止動作を実行するフローを示すフローチャートであ
る。
FIG. 4 is a flowchart showing a flow for executing a block stop operation corresponding to a block stop mode while executing an SFC program according to an embodiment of the present invention.

【図5】 この発明の一実施例によるブロック停止モー
ドでブロック対応の設定をする画面である。
FIG. 5 is a screen for setting block correspondence in a block stop mode according to an embodiment of the present invention.

【図6】 この発明の一実施例によるブロック停止モー
ドでブロック対応の設定をするときの操作フローであ
る。
FIG. 6 is an operation flow when setting for a block in a block stop mode according to an embodiment of the present invention.

【図7】 この発明の一実施例によるブロック停止モー
ドでステップ対応の設定をする画面である。
FIG. 7 is a screen for setting corresponding to steps in a block stop mode according to an embodiment of the present invention.

【図8】 この発明の一実施例によるブロック停止モー
ドでステップ対応の設定をするときの操作フローであ
る。
FIG. 8 is an operation flow for setting step correspondence in a block stop mode according to an embodiment of the present invention.

【図9】 この発明の一実施例によるSFCプログラム
を実行しながら、ステップ移行時の動作モードに対応し
たステップ移行動作を実行するフローを示すフローチャ
ートである。
FIG. 9 is a flowchart showing a flow of executing a step transition operation corresponding to an operation mode at the time of step transition while executing the SFC program according to the embodiment of the present invention.

【図10】 この発明の一実施例によるステップ移行時
の動作モードでブロック対応の設定をする画面である。
FIG. 10 is a screen for setting block correspondence in an operation mode at the time of step transition according to an embodiment of the present invention.

【図11】 この発明の一実施例によるステップ移行時
の動作モードでブロック対応の設定をするときの操作フ
ローである。
FIG. 11 is an operation flow for setting block correspondence in the operation mode at the time of step transition according to the embodiment of the present invention.

【図12】 従来のPCの構成を示すブロック図とその
うちマイクロプログラムROM、活性ステップ情報格納
用RAMの詳細構成図である。
FIG. 12 is a block diagram showing a configuration of a conventional PC and a detailed configuration diagram of a microprogram ROM and an active step information storage RAM among them.

【図13】 従来のSFCプログラムの一例を示すもの
である。
FIG. 13 shows an example of a conventional SFC program.

【図14】 従来のSFCプログラムで、活性ブロック
の活性ステップを実行しながら、ブロック停止動作する
フローを示すフローチャートである。
FIG. 14 is a flowchart showing a flow of a block stop operation while executing an active step of an active block in a conventional SFC program.

【符号の説明】 31 ブロック実行手段、32 ステップ実行手段、3
3 移行実行手段、34 ブロック停止モード実行手
段、35 ステップ実行管理手段、36 移行保持ステ
ップ実行手段、37 移行後停止時ステップ停止実行手
段、38 ステップ移行時動作モード実行手段、41
活性ステップ情報格納テーブルでの各ブロックへのポイ
ンタ、42 各ブロックの活性ステップ情報テーブルで
の活性ステップNO、43 各ブロックの活性ステップ
情報テーブルでのステップステータス、70 補助機能
メニュー画面、71 ブロック停止モードメニュー画
面、72 ブロック停止モード(ブロック対応)設定画
面、73 ブロック停止モード(ステップ対応)設定画
面、80 補助機能メニュー画面、81 ステップ移行
時動作モード設定画面。
[Explanation of Codes] 31 block executing means, 32 step executing means, 3
3 migration execution means, 34 block stop mode execution means, 35 step execution management means, 36 migration hold step execution means, 37 post-migration stop step stop execution means, 38 step transition operation mode execution means, 41
Pointer to each block in the active step information storage table, 42 Active step NO in the active step information table of each block, 43 Step status in the active step information table of each block, 70 Auxiliary function menu screen, 71 Block stop mode Menu screen, 72 block stop mode (block compatible) setting screen, 73 block stop mode (step compatible) setting screen, 80 auxiliary function menu screen, 81 step transition operation mode setting screen.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 SFCプログラムを実行するプログラマ
ブルコントローラにおいて、プログラムのブロック全体
を制御し実行するブロック実行手段と、活性ブロックの
活性ステップのステップNOを格納する活性ステップ情
報格納テーブルと、上記活性ステップ情報格納テーブル
に格納されたステップNOを調べ、その動作出力を実行
するステップ実行手段と、上記活性ステップへの移行条
件を実行する移行実行手段と、上記移行実行手段による
移行成立時、ステップ属性をチェックし、移行保持ステ
ップならば、実行ステップの抹消をせずに次ステップへ
移行後も実行ステップを実行し続けるとともに、以後の
移行成立により次々に移行先ステップを起動する移行保
持ステップ実行手段を備えたことを特徴とするプログラ
マブルコントローラ。
1. A programmable controller for executing an SFC program, a block executing means for controlling and executing an entire block of a program, an active step information storage table for storing step numbers of active steps of an active block, and the active step information. The step NO stored in the storage table is checked, the step execution means for executing the operation output thereof, the transition execution means for executing the transition condition to the active step, and the step attribute is checked when the transition is established by the transition execution means. However, if it is a transition holding step, the execution holding step execution means is provided for continuously executing the execution step even after shifting to the next step without deleting the execution step, and for activating the transition destination step one after another when the subsequent transition is established. Programmable controller characterized by .
【請求項2】 SFCプログラムを実行するプログラマ
ブルコントローラにおいて、プログラムのブロック全体
を制御し実行するブロック実行手段と、活性ブロックの
活性ステップのステップNOとこれに対応するステータ
スを格納する活性ステップ情報格納テーブルと、上記活
性ステップ情報格納テーブルに格納されたステップNO
を調べ、その動作出力を実行するステップ実行手段と、
上記活性ステップへの移行条件を実行する移行実行手段
と、上記活性ステップ情報格納テーブルの該当ステップ
のステップステータスによりステップ停止要求をチェッ
クし、停止要求があれば、該当ステップの処理を実行せ
ず、停止要求がなければ、該当ステップの処理を実行す
るステップ実行管理手段と、上記ブロック実行手段によ
るブロック停止時に、全活性ステップを即停止状態にす
るかまたは各活性ステップを移行成立にてそれぞれ停止
させるかを選択するブロック停止モード実行手段と、上
記移行実行手段による移行成立時、上記ブロック停止モ
ード実行手段により選択されたモードが移行後停止モー
ドなら、上記ステップ実行管理手段でチェックした該当
ステップのステップステータスを移行後停止状態である
ようにセットし、次回より該当活性ステップを実行しな
いようにして停止させる移行後停止時ステップ停止実行
手段を備えたことを特徴とするプログラマブルコントロ
ーラ。
2. A programmable controller for executing an SFC program, a block executing means for controlling and executing an entire block of a program, an active step information storage table for storing a step NO of an active step of an active block and a status corresponding thereto. And the step number stored in the active step information storage table
And step execution means for executing the operation output,
Transition execution means for executing the transition condition to the active step, and step stop request is checked by the step status of the corresponding step of the active step information storage table, and if there is a stop request, the process of the corresponding step is not executed, If there is no stop request, all active steps are immediately stopped or each active step is stopped when the block is stopped by the step execution management means for executing the processing of the corresponding step and the block execution means. If the mode selected by the block stop mode execution means is the stop mode after the transition when the transition is established by the block execution mode execution means for selecting whether or not the transition execution means, the step of the corresponding step checked by the step execution management means Set the status so that it is in the stopped state after transition, Programmable controller comprising the migration post stop step stops execution means for stopping so as not to perform the appropriate activity steps from the times.
【請求項3】 上記ブロック停止モード実行手段に、停
止モード設定を各ブロックごとに指定するブロック停止
モード設定手段を備えたことを特徴とする請求項2記載
のプログラマブルコントローラ。
3. The programmable controller according to claim 2, wherein the block stop mode executing means includes block stop mode setting means for specifying a stop mode setting for each block.
【請求項4】 上記ブロック停止モード実行手段に、停
止モード設定を各ブロックごとに且つ活性ステップNO
に対応して指定する活性ステップ対応ブロック停止モー
ド設定手段を備えたことを特徴とする請求項2記載のプ
ログラマブルコントローラ。
4. The block stop mode executing means sets a stop mode for each block and activates step NO.
3. The programmable controller according to claim 2, further comprising active step corresponding block stop mode setting means which is designated in correspondence with.
【請求項5】 上記移行保持ステップ実行手段により、
直列に連なる複数のステップが同時に実行され、且つ上
記移行実行手段による移行成立時に移行しようとした先
のステップが既に活性だった場合に、エラーにするの
か、移行先ステップが移行して非活性になるのを待って
移行するのか、または移行先ステップの移行を待たずに
移行するのかを選択するステップ移行時動作モード実行
手段を備えたことを特徴とする請求項1記載のプログラ
マブルコントローラ。
5. The transition holding step executing means,
If a plurality of steps connected in series are executed at the same time, and the step to be transferred when the transfer is established by the transfer execution means is already active, an error occurs or the transfer destination step moves and becomes inactive. 2. The programmable controller according to claim 1, further comprising: a step transition operation mode execution means for selecting whether to transition after waiting for the transition or after transition of the transition destination step.
【請求項6】 上記ステップ移行時動作モード実行手段
に、動作モード設定を各ブロックごとに指定するステッ
プ移行時動作モード設定手段を備えたことを特徴とする
請求項5記載のプログラマブルコントローラ。
6. The programmable controller according to claim 5, wherein the step transition operation mode execution means includes step transition operation mode setting means for designating an operation mode setting for each block.
JP06194239A 1994-08-18 1994-08-18 Programmable controller Expired - Lifetime JP3143330B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP06194239A JP3143330B2 (en) 1994-08-18 1994-08-18 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06194239A JP3143330B2 (en) 1994-08-18 1994-08-18 Programmable controller

Publications (2)

Publication Number Publication Date
JPH0863205A true JPH0863205A (en) 1996-03-08
JP3143330B2 JP3143330B2 (en) 2001-03-07

Family

ID=16321301

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06194239A Expired - Lifetime JP3143330B2 (en) 1994-08-18 1994-08-18 Programmable controller

Country Status (1)

Country Link
JP (1) JP3143330B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000070526A1 (en) * 1999-05-17 2000-11-23 Infineon Technologies Asia Pacific, Pte. Ltd. Efficient coding in processors
US6912430B2 (en) 2002-06-03 2005-06-28 Kabushiki Kaisha Yaskawa Denki Execution device and debug device for motion program
WO2016185558A1 (en) * 2015-05-19 2016-11-24 三菱電機株式会社 Programmable logic controller, engineering tool, and engineering tool program
JP6087478B1 (en) * 2016-01-27 2017-03-01 三菱電機株式会社 Control device and editing device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6063336B2 (en) * 2013-04-22 2017-01-18 日立アプライアンス株式会社 Washing and drying machine

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000070526A1 (en) * 1999-05-17 2000-11-23 Infineon Technologies Asia Pacific, Pte. Ltd. Efficient coding in processors
US6912430B2 (en) 2002-06-03 2005-06-28 Kabushiki Kaisha Yaskawa Denki Execution device and debug device for motion program
WO2016185558A1 (en) * 2015-05-19 2016-11-24 三菱電機株式会社 Programmable logic controller, engineering tool, and engineering tool program
JPWO2016185558A1 (en) * 2015-05-19 2017-09-07 三菱電機株式会社 Programmable logic controller, engineering tool and engineering tool program
CN107615189A (en) * 2015-05-19 2018-01-19 三菱电机株式会社 Programmable logic controller (PLC), engineering tools and engineering tools program
US10248099B2 (en) 2015-05-19 2019-04-02 Mitsubishi Electric Corporation Programmable logic controller, engineering tool, and engineering tool program
CN107615189B (en) * 2015-05-19 2019-04-12 三菱电机株式会社 Programmable logic controller (PLC), engineering tools and the storage device for being stored with engineering tools program
JP6087478B1 (en) * 2016-01-27 2017-03-01 三菱電機株式会社 Control device and editing device
WO2017130338A1 (en) * 2016-01-27 2017-08-03 三菱電機株式会社 Control device and editing device
US10474121B2 (en) 2016-01-27 2019-11-12 Mitsubishi Electric Corporation Control device and editing device

Also Published As

Publication number Publication date
JP3143330B2 (en) 2001-03-07

Similar Documents

Publication Publication Date Title
JP2762893B2 (en) Programmable controller and method of executing SFC program using the programmable controller
JPS60136833A (en) Operating system switching method
JP3143330B2 (en) Programmable controller
JPH01259432A (en) Reexecution system for batch job
JPH01185729A (en) Overlay structure program execution system
JP3503531B2 (en) Online real-time processing system and sub load module replacement method in the system
JPH0221329A (en) Report output system
JP2677902B2 (en) Numerical control device with remote operation function
JPS60238958A (en) Information processing system capable of preventing abnormal termination due to storage capacity insufficiency
JPH03158940A (en) Data dump control system
JPH02253433A (en) Program execution system
JP3182621B2 (en) Test program monitor
JPH03282636A (en) Data storing method for execution of test package
JPH04251335A (en) File storage control system
JPH0488413A (en) Input source selection type key input system
US20040153892A1 (en) Execution device and debug device for motion program
JPH01295339A (en) Automatic selection system for test item
JPS63133249A (en) Job starting system from terminal equipment
JPH04105123A (en) Control system for execution of program
JPS63116254A (en) System loading processing method
JPS62226250A (en) System rise system
JP2003271207A (en) Program execution method and program development support device
JPH01273104A (en) Programming device for digital control apparatus
JPS61273618A (en) Information processor
JPS6367631A (en) Program loading stop system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 7

Free format text: PAYMENT UNTIL: 20071222

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081222

Year of fee payment: 8

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20091222

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20091222

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 10

Free format text: PAYMENT UNTIL: 20101222

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111222

Year of fee payment: 11

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20111222

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 12

Free format text: PAYMENT UNTIL: 20121222

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121222

Year of fee payment: 12

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131222

Year of fee payment: 13

EXPY Cancellation because of completion of term