Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS5832406B2 - Dosajyoutaikiokusouchi - Google Patents
[go: Go Back, main page]

JPS5832406B2 - Dosajyoutaikiokusouchi - Google Patents

Dosajyoutaikiokusouchi

Info

Publication number
JPS5832406B2
JPS5832406B2 JP50059429A JP5942975A JPS5832406B2 JP S5832406 B2 JPS5832406 B2 JP S5832406B2 JP 50059429 A JP50059429 A JP 50059429A JP 5942975 A JP5942975 A JP 5942975A JP S5832406 B2 JPS5832406 B2 JP S5832406B2
Authority
JP
Japan
Prior art keywords
circuit
memory
data
signal
range
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
Application number
JP50059429A
Other languages
Japanese (ja)
Other versions
JPS51136090A (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.)
Toyoda Koki KK
Original Assignee
Toyoda Koki KK
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 Toyoda Koki KK filed Critical Toyoda Koki KK
Priority to JP50059429A priority Critical patent/JPS5832406B2/en
Publication of JPS51136090A publication Critical patent/JPS51136090A/en
Publication of JPS5832406B2 publication Critical patent/JPS5832406B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Testing And Monitoring For Control Systems (AREA)

Description

【発明の詳細な説明】 本発明はシーケンスコントローラにて制御される制御対
象の動作状態のモニタリングに使用される動作状態記憶
装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an operating state storage device used for monitoring the operating state of a controlled object controlled by a sequence controller.

従来シーケンス動作状態の監視方式として、各動作の所
要時間が設定時間に対してオーバしたときを異常とする
オーバタイム方式が代表的である。
Conventionally, a typical method for monitoring the sequence operation state is an overtime method in which an abnormality is determined when the time required for each operation exceeds a set time.

この方式によれば動作要素毎にタイムを設けることによ
り達成され、簡単な構成で済む点で有利である。
This method is achieved by providing a time for each operating element, and is advantageous in that it requires a simple configuration.

しかしながら動作要素が増大した場合はタイマの数が多
くなり、またこれらのタイマのオン、オフを制御する回
路が複雑となる欠点があった。
However, when the number of operating elements increases, the number of timers increases, and the circuits that control turning on and off these timers become complicated.

しかも監視精度を高めるためには動作要素の一連の動作
を細かく分割し個々の動作毎に時間を監視するのが望ま
しいが分割数が増す程タイマの数も増し、監視に要する
制御回路の構成が複雑となりコスト高を招いていた。
Moreover, in order to improve monitoring accuracy, it is desirable to divide the series of operations of the operating elements into smaller parts and monitor the time for each individual operation, but as the number of divisions increases, the number of timers increases, and the configuration of the control circuit required for monitoring increases. This resulted in complexity and increased costs.

また従来においては上記のごとき監視方式により異常の
発生が検知できても、これを単に作業者に報知するだけ
でその異常原因の究明は作業者の判断に委ねられていた
Furthermore, in the past, even if the occurrence of an abnormality could be detected using the above-mentioned monitoring system, the operator was simply notified of this and the investigation of the cause of the abnormality was left to the operator's judgment.

このような異常原因の究明作業すらも自動的に行えるよ
うにするのが望ましい。
It is desirable to be able to automatically perform even the task of investigating the cause of such an abnormality.

このような点に鑑み、本発明は異常検出及び異常原因の
究明を人為的判断なしに達成し得るように、プログラム
可能なシーケンスコントローラの制御下において動作状
態を記憶し、かつ記憶した動作の進行状態をコンピュー
タが容易に認識し得るように構成せんとするものであり
、しかも動作要素数の変化にも、また個々の動作要素に
対する動作分割数の増減にも対処し得るように融通性を
高めんとするものである。
In view of these points, the present invention stores the operating state under the control of a programmable sequence controller and stores the progress of the stored operation so that abnormality detection and investigation of the cause of the abnormality can be achieved without human judgment. It is intended to be configured so that the state can be easily recognized by the computer, and to be highly flexible so as to be able to cope with changes in the number of operating elements, as well as increases and decreases in the number of divisions of operations for individual operating elements. This is what we do.

ここに動作状態の記憶はとりもなおさず動作の進行状況
を記憶することであり、各単位動作をサイクル番号に対
応させ、動作の進行に応じてサイクル番号の記憶を歩進
させ、一連の動作の終了によってサイクル番号を元の数
に戻す機能を与えれば良い。
Memorizing the operating state here is to remember the progress of the operation, and each unit operation is associated with a cycle number, and the memory of the cycle number is incremented according to the progress of the operation, and a series of operations is stored. It is sufficient to provide a function to return the cycle number to the original number upon completion of the cycle.

一方フログラム可能なシーケンスコントローラについて
言及すれば、このシーケンスコントローラはメモリに記
憶したシーケンスプログラムにしたがい入力信号を調べ
制御機能を満足するか否かを判定し、その判定結果によ
り出力要素の付勢、無勢を制御するようになっている。
On the other hand, if we refer to a programmable sequence controller, this sequence controller examines the input signal according to the sequence program stored in the memory and determines whether it satisfies the control function, and depending on the determination result, the output element is energized or deenergized. is designed to be controlled.

調べるべき入力信号及び付勢、無勢すべき出力要素はそ
れぞれ番地化されており、その番地を指定するアドレス
データ及び入力信号がオンかオフか調べるテスト命令ま
たは出力要素を付勢、無勢する出力命令の各命令コード
によって各プログラムは構成され、このプログラムを走
査することにより一連のシーケンス動作は制御される。
Input signals to be checked and output elements to be energized and deenergized are each numbered, and address data specifying the address and a test command to check whether the input signal is on or off or an output command to energize or deenergize the output element are provided. Each program is configured by each instruction code, and a series of sequence operations is controlled by scanning this program.

動作の進行は出力要素の付勢、無勢が行われる度に変化
するから各単位動作に対応したサイクル番号を動作状態
記憶装置に書き込むようなプログラムを与えておく。
Since the progress of the operation changes each time the output element is energized or deenergized, a program is provided that writes a cycle number corresponding to each unit operation into the operation state storage device.

このプログラムにおいて、前の動作が完了して次の動作
が開始された場合、前の動作のサイクル番号を出力しな
いようなプログラム方式と、既に完了した動作について
のサイクル番号も出力させるプログラム方式とがあるが
、前者の方式は次の動作の移行に伴って前の動作サイク
ル番号をリセットする特別なプログラムが必要となりプ
ログラムが非常に複雑となる。
In this program, when the previous operation is completed and the next operation is started, there is a program method that does not output the cycle number of the previous operation, and a program method that also outputs the cycle number of the already completed operation. However, the former method requires a special program to reset the previous operation cycle number when transitioning to the next operation, making the program extremely complicated.

これに対し後者の方式はかかる特別なプログラムを必要
としないので非常に簡単なプログラムで良い。
On the other hand, the latter method does not require such a special program, so a very simple program can be used.

例えば100番地に接続されたリレーCRIが第1動作
を指令するものとすれば、この第1動作開始条件の成立
によりリレーCRIを付勢する命令コードSONと、セ
ットすべき出力のアドレスコード100を与える。
For example, if the relay CRI connected to address 100 commands the first operation, the command code SON that energizes the relay CRI when the first operation start condition is met, and the address code 100 of the output to be set. give.

これとともに動作がlステップ進行することになるので
サイクル番号を1に進めるとすれば、サイクル番号を1
にセットする命4>5ONOo O1を前記出力命令の
次に与えておく。
At the same time, the operation progresses by l steps, so if the cycle number is advanced to 1, the cycle number will be increased by 1.
The command 4>5ONOo O1 to be set is given next to the output command.

このように後者の方式によれば動作状態記憶装置を作動
させるプログラムは動作要素に対し1命◆だけで済む。
In this way, according to the latter method, the program for operating the operating state storage device requires only one life ◆ for each operating element.

ところで後者のプログラム方式においては、既に動作が
完了し次の動作に移行しても既に完了した動作のサイク
ル番号は出力されることになり、単にこのサイクル番号
を記憶させたのでは動作の進行状態を把握することはで
きない。
By the way, in the latter programming method, even if an operation has already been completed and the next operation is started, the cycle number of the already completed operation will be output, and simply storing this cycle number will not allow the progress state of the operation to be output. cannot be grasped.

既ちシーケンスコントローラはシーケンス制御プログラ
ムを繰返しスキャニングするため、既に完了した動作の
サイクル番号も出力することがあるので現在行われてい
るサイクル番号だけを有効に記憶し、前の動作のサイク
ル番号については無視する必要がある。
Since the sequence controller repeatedly scans the sequence control program, it may also output the cycle number of the operation that has already been completed, so only the cycle number currently being performed is effectively stored, and the cycle number of the previous operation is stored. need to be ignored.

本発明はかかる点に鑑み、現在行われているサイクル番
号だけを記憶するために、サイクル番号記憶値と今回記
憶しようとしているサイクル番号との犬・」\を比較し
、大きい場合だけ記憶させるようにしている。
In view of this, the present invention compares the cycle number storage value with the cycle number to be stored this time in order to store only the currently executed cycle number, and stores only the larger one. I have to.

又一連のシーケンス動作においては、途中からの分岐動
作も多数あるし、複数の動作要素の並行動作もあるため
、これら各動作のサイクル番号を有効に記憶するために
は、動作状態記憶メモリのレンジを複数にし、このレン
ジの選択をするようにしている。
In addition, in a series of sequence operations, there are many branch operations from the middle, and there are parallel operations of multiple operation elements, so in order to effectively store the cycle numbers of these operations, it is necessary to adjust the range of the operation state storage memory. I am trying to select multiple ranges.

そして各レンジ内に書き込まれたサイクル番号は動作進
行状態を表わす数としてコンピュータに認識されること
になる。
The cycle number written in each range is recognized by the computer as a number representing the progress of the operation.

以下この動作状態記憶装置はサイクルカウンタと称する
ことにし、このサイクルカウンタの構成を図面によって
説明する。
Hereinafter, this operating state storage device will be referred to as a cycle counter, and the structure of this cycle counter will be explained with reference to the drawings.

第1図はこのサイクルカウンタ10と、コンピュータ1
1と、シーケンスコントローラ12との接続関係を示し
たものである。
FIG. 1 shows this cycle counter 10 and a computer 1.
1 and the sequence controller 12.

シーケンスコツトローラ12はシーケンスプログラムを
記憶するメモリ13、論理演算回路14、信号増幅器1
5、入出力回路16より構成されている。
The sequence controller 12 includes a memory 13 for storing a sequence program, a logic operation circuit 14, and a signal amplifier 1.
5. It is composed of an input/output circuit 16.

入出力回路16の入力回路16aには被制御装置に設け
られたるリミットスイッチのごとき信号発生器が番地化
された個有のアドレス端子に接続され、出力回路16b
には被制御装置に設けられたるリレー、ソレノイドのご
とき出力要素が番地化された個有のアドレス端子にそれ
ぞれ接続されている。
A signal generator such as a limit switch provided in a controlled device is connected to an input circuit 16a of the input/output circuit 16, and an output circuit 16b is connected to a unique address terminal.
Output elements such as relays and solenoids provided on the controlled device are each connected to a unique address terminal.

前記メモリ13に記憶されたプログラムは一語ずつ読出
され、演算回路14でこれを解読しその結果を入出力回
路16に設定する。
The program stored in the memory 13 is read word by word, decoded by the arithmetic circuit 14, and the result set in the input/output circuit 16.

命令語の実行動作は大別して2種類有り、一つはアドレ
ス指定された入出力回路16の信号状態(オン、オフ状
態)をテストするテスト命令の実行であり、他の一つは
アドレスが指定された出力回路16bを付勢、無勢する
出力命令の実行であり、1語16ビツトの命令語におい
ては、O〜4ビットに前記テスト命4>(TNA、TF
A、TNO,TPO)、または出力台/+(SON、S
OF、YON、YOF)コードが与えられ、5〜15ビ
ツトに入出力回路16のアドレス指定コードが与えられ
る。
There are two types of command execution operations: one is the execution of a test command that tests the signal state (on, off state) of the input/output circuit 16 specified by the address, and the other is the execution of a test command that tests the signal state (on, off state) of the input/output circuit 16 specified by the address. This is the execution of an output command to energize or de-energize the output circuit 16b that has been output.
A, TNO, TPO) or output stand/+(SON, S
OF, YON, YOF) codes are given, and addressing codes for the input/output circuit 16 are given in 5 to 15 bits.

したがってテスト命令の実行においては、アドレスコー
ドで指定された番地に接続されたリミットスイッチ等の
オン、オフ状態が演算回路14に送られ、制御機能(ア
ンド論理のオン(TNA)、オフ(TFA)、オア論理
のオン(TNO)、オフ(TPO))に対する条件満足
、不満足が判定され記憶される。
Therefore, when a test instruction is executed, the on/off state of the limit switch, etc. connected to the address specified by the address code is sent to the arithmetic circuit 14, and the control function (AND logic on (TNA), off (TFA)) is sent to the arithmetic circuit 14. , ON (TNO), OFF (TPO)) of the OR logic is determined and stored.

出力命令の実行においては、アドレスコードで指定され
た番地に接続されたソレノイド等をオンにセット(SO
N)L、またはオフにリセット(SOF)する操作が行
われる。
When executing an output command, the solenoid connected to the address specified by the address code is turned on (SO
N)L, or reset off (SOF) operation is performed.

この論理演算回路14と入出力回路16は、アドレスコ
ードと出力をオンにセットまたはオフにリセットする信
号(SON。
The logic operation circuit 14 and the input/output circuit 16 receive a signal (SON) that sets the address code and output on or resets it off.

5OF)が与えられるラインAD1 +AD2と、アド
レスコードで指定された番地のオン、オフ信号が与えら
れるラインS1.S2によって接続され、各ラインAD
1.AD2.S1.S2に与えられる信号を増幅する増
幅器15が中間に設けられている。
5OF) is applied to lines AD1 + AD2, and lines S1 . connected by S2, each line AD
1. AD2. S1. An amplifier 15 is provided in the middle to amplify the signal applied to S2.

サイクルカウンタ10は前記ラインAD2と接続され、
シーケンスコントローラ12の命令により動作の進行に
応じたサイクル番号がセットされるようになっている。
A cycle counter 10 is connected to the line AD2,
A cycle number is set according to the progress of the operation according to a command from the sequence controller 12.

またインクフェース17を介してコンピュータ11とも
接続され、サイクルカウンタ10に記憶されたサイクル
番号がコンピュータ11によって読み出され、動作の進
行状態が監視される。
It is also connected to a computer 11 via an ink face 17, and the cycle number stored in the cycle counter 10 is read out by the computer 11, and the progress of the operation is monitored.

インタフェース17はシーケンスコントローラ側のイン
タフェース18を介して論理演算回路14と接続されて
いる。
The interface 17 is connected to the logic operation circuit 14 via an interface 18 on the sequence controller side.

このインタフェース17,18を通じてコンピュータ1
1より前記と同様の命令を送れば入出力回路16に接続
された被制御装置の作動を制御することができる。
Through these interfaces 17 and 18, the computer 1
If a command similar to the above is sent from 1, the operation of the controlled device connected to the input/output circuit 16 can be controlled.

第2図に示すのはサイクルカウンタ10とインタフェー
ス17の詳細なブロック線図である。
A detailed block diagram of cycle counter 10 and interface 17 is shown in FIG.

サイクルカウンタ10は読出し書込み可能なメモリ20
と、該メモリ20のレンジを指定するレンジ判定回路2
1と、レンジ指定データを選択するデータセレクタ22
と、シーケンスコントローラ12から与えられるアドレ
スコードとメモリ20に記憶されたサイクル番号との犬
・」スを判別する犬・J\判別回路23と、犬・」x判
別回路23の判別信号によってメモリ20の書込みを制
御するメモリセット信号回路24より構成される。
Cycle counter 10 is readable and writable memory 20
and a range determination circuit 2 that specifies the range of the memory 20.
1 and a data selector 22 for selecting range specification data.
, a dog/J\ discrimination circuit 23 that discriminates between the address code given from the sequence controller 12 and the cycle number stored in the memory 20; It is composed of a memory set signal circuit 24 that controls writing.

前記インタフェース17はサイクルカウンタ10に記憶
されたサイクル番号を読出すための制御信号回路25を
有し、この制御信号回路25は読込み指令でセットされ
読込み完了でリセットされるフリップフロップ30と、
読出すべきメモリレンジを指定するカウンタ31と、カ
ウンタ31を歩進させるワンショト回路32と、ナント
ゲート33と、メモリ20の書込みが終ってから読出し
をするインクロック用のフリップフロップを構成するナ
ンドゲ−1−34,35より構成される。
The interface 17 has a control signal circuit 25 for reading the cycle number stored in the cycle counter 10, and the control signal circuit 25 includes a flip-flop 30 that is set by a read command and reset when the read is completed;
A counter 31 that specifies a memory range to be read, a one-shot circuit 32 that increments the counter 31, a NAND gate 33, and a NAND gate that constitutes a flip-flop for an ink clock that performs reading after writing to the memory 20 is completed. Consists of 1-34 and 35.

前記サイクルカウンタ10を構成するメモリ20は8ビ
ツトのデータ入力端子と4ビツトのレンジ指定入力端子
を備えているものについて説明する。
The memory 20 constituting the cycle counter 10 will be described as having an 8-bit data input terminal and a 4-bit range designation input terminal.

このためBCD4ピッI−(2’=16)のレンジが指
定でき、各レンジにはBCD8ビット(28=256)
のデータの書き込みができることになる。
Therefore, a range of 4 BCD bits (2' = 16) can be specified, and each range has 8 BCD bits (28 = 256).
data can be written.

よってこのメモリ20で最大16個のカウンタの機能と
、最大カウント数256までの機能をもたせることがで
きる。
Therefore, this memory 20 can have the function of a maximum of 16 counters and the function of a maximum count of 256.

しかも各レンジのカウント数を任意に切替えれるように
するために前記レンジ判定回路21は第3図、第4図、
第5図のように構成される。
Moreover, in order to be able to arbitrarily switch the count number of each range, the range determination circuit 21 is configured as shown in FIGS. 3 and 4.
It is configured as shown in FIG.

第3図は17組の比較器C6−cteよりなり、各比較
器C8−C16の一方の入力端子には8ビツトのアドレ
スコードが与えられ、他方の入力端子には任意の値が設
定できるようジャンパ線接続端子に接続されている。
Fig. 3 consists of 17 sets of comparators C6-cte, and one input terminal of each comparator C8-C16 is given an 8-bit address code, and the other input terminal can be set to any value. Connected to the jumper wire connection terminal.

比較器C6〜C15の犬・」\判別信号THANψ〜T
HAN15は第4図のデコーダ25,26の入力端子に
接続され、16個の信号をBCD4ビットの信号に変換
する。
Dog of comparators C6 to C15\discrimination signal THANψ~T
The HAN 15 is connected to the input terminals of the decoders 25 and 26 shown in FIG. 4, and converts 16 signals into BCD 4-bit signals.

前記比較器C8−Cl3の一致信号EQUψ〜EQU1
5は第5図のオア回路27に接続され、各比較器q〜C
15のいずれか一つが設定値に一致した時一致信号EQ
Uが出力される。
Match signals EQUψ to EQU1 of the comparators C8 to Cl3
5 is connected to the OR circuit 27 in FIG.
Match signal EQ when any one of 15 matches the set value
U is output.

比較器ciaはサイクルカウンタ10のカウント数以上
のアドレスコードが与えられたことを検出し、メモリ2
0の書込みを行わないようにする。
The comparator cia detects that an address code greater than or equal to the count number of the cycle counter 10 is given, and the memory 2
Avoid writing 0.

前記犬r3X判別回路23の一方の入力端子にはメモリ
20から読出された値が与えられ、他方の入力端子には
アドレスコードが与えられる。
One input terminal of the dog r3X discrimination circuit 23 is given a value read from the memory 20, and the other input terminal is given an address code.

前記レンジ判定回路21にであるレンジが指定された状
態においてアドレスコードの内容がメモリ20から読出
された値よりも大きいと信号N0TLESSが出力され
、この信号はメモリセット信号回路24に与えられメモ
リ20にセット信号を与え、アドレスコードにて指定さ
れるサイクル番号に書替える。
When the content of the address code is larger than the value read from the memory 20 in a state where a certain range is specified in the range determination circuit 21, a signal N0TLESS is outputted, and this signal is given to the memory set signal circuit 24 and the memory 20 Give a set signal to the cycle number and rewrite it to the cycle number specified by the address code.

したがってアドレスコードの内容がメモリ20から読出
されたサイクル番号よりも・」スさい場合にはメモリ2
0の書込みは行われない。
Therefore, if the contents of the address code are smaller than the cycle number read from the memory 20, the memory 2
Writing of 0 is not performed.

(1)サイクルカウンタ書込み 一例としてサイクルカウンタ10に割り当てるアドレス
をオフクルコードでOOO番地から177番地とし、カ
ウンタの数を3とし、それぞれのカウンタのカウント範
囲を次のように仮定して説明する。
(1) Write to Cycle Counter As an example, the address assigned to the cycle counter 10 is assumed to be from address OOO to address 177 in off-cycle code, the number of counters is 3, and the count range of each counter is assumed as follows.

かかるアドレスゾーンの設定は第3図に示すように、比
較器C8のジャンパ線接続端子にジャンパ線を接続して
OOOに設定し、比較器C1は030に設定し、比較器
C2は100に設定し、比較器C16は200に設定し
ておく。
As shown in FIG. 3, these address zones are set by connecting a jumper wire to the jumper wire connection terminal of comparator C8 and setting it to OOO, comparator C1 to 030, and comparator C2 to 100. The comparator C16 is set to 200.

尚ジャンパ線で短絡された端子は真理値のOとなり短絡
されない端子は真理値の1となる。
Note that the terminals short-circuited by the jumper wire have a truth value of 0, and the terminals that are not short-circuited have a truth value of 1.

ここにカウンタ0,1,2に割り当てられたアドレスは
サイクル番号そのものとなる。
The addresses assigned to counters 0, 1, and 2 are the cycle numbers themselves.

したがってサイクル番号をセットする命令はSON、A
+αであり、この命・令はシーケンスコントローラから
発せられる。
Therefore, the instruction to set the cycle number is SON, A
+α, and this command is issued from the sequence controller.

Aはそのカウンタの最低アドレスで、(A+α)はその
前に記憶していたサイクル番号より大きいことを示す。
A is the lowest address of the counter, and (A+α) indicates that it is greater than the previously stored cycle number.

カウンタをリセットする命令は5OFAであり、この命
令もシーケンスコントローラから発せられる。
The instruction to reset the counter is 5OFA, and this instruction is also issued from the sequence controller.

最初これらのカウンタ0,1,2はそれぞれの最低アド
レス000.030,100を記憶しており、セット又
はリセット命令SON。
Initially these counters 0, 1, 2 store their respective lowest addresses 000.030, 100, and a set or reset command SON.

SOFが実行されると例えば第6図のように新アドレス
が記憶される。
When SOF is executed, a new address is stored as shown in FIG. 6, for example.

T1の5ONO31が実行されると、アドレスコード0
31がラインAD2を介してレンジ判定回路21と、メ
モリ20と、犬・」年1別回路23に与えられ、先ずレ
ンジ判定回路21の比較器C8とC1はその設定値00
0゜030よりアドレスコード031の方が大きいので
ローレベルの信号THANO、THANlが出力され、
他の比較器C2〜C16は設定値よりアドレスコードの
方が−Jhさいのでハイレベルの信号が出力される。
When 5ONO31 of T1 is executed, the address code is 0.
31 is applied to the range determination circuit 21, the memory 20, and the dog year 1 classification circuit 23 via the line AD2, and first, the comparators C8 and C1 of the range determination circuit 21 set their set values to 00.
Since address code 031 is larger than 0°030, low level signals THANO and THANl are output.
The other comparators C2 to C16 output high level signals because the address code is -Jh larger than the set value.

尚各比較器C6−Cl3はいずれも設定値とアドレスコ
ードとが等しくてもローレベルの信号THANo〜TH
AN15を出力するものである。
Note that each comparator C6 to Cl3 outputs a low level signal THANo to TH even if the set value and address code are equal.
It outputs AN15.

したがって第4図のデコーダ25.26の入力端子TH
ANoとTHANlにはローレベルの信号が与えられ、
入力端子THAN2〜THAN15にはハイレベルの信
号が入力されるためデコーダ25,26の出力端子には
4ビツトのバイナリコードに変換された信号0001が
出力され、データセレクタ22を介してメモリ20のレ
ンジ指定端子に与えられる。
Therefore, the input terminals TH of decoders 25 and 26 in FIG.
A low level signal is given to ANo and THANl,
Since a high level signal is input to the input terminals THAN2 to THAN15, a signal 0001 converted to a 4-bit binary code is output to the output terminals of the decoders 25 and 26, and the range of the memory 20 is outputted via the data selector 22. given to the specified terminal.

この場合のデータセレクタ22はレンジ判定回路21の
信号を選択するものとする。
It is assumed that the data selector 22 in this case selects the signal from the range determination circuit 21.

これによってメモリ20はレンジ1が指定され、カウン
タ1に記憶された値030が読出し端子より読出され、
犬・」・判別回路23でアドレスコード031と比較さ
れる。
As a result, range 1 is specified in the memory 20, and the value 030 stored in the counter 1 is read out from the read terminal.
The dog is compared with the address code 031 in the discrimination circuit 23.

アドレスコード031の方が大きいから出力端子にはロ
ーレベルの信号N0TLESSが出力され、メモリセッ
ト信号回路24のノアゲート37の一方の入力端子に与
えられる。
Since the address code 031 is larger, a low level signal N0TLESS is outputted to the output terminal and applied to one input terminal of the NOR gate 37 of the memory set signal circuit 24.

他方の入力端子にはローレベルの信号SONが与えられ
ているので、ノアゲート38、インバータ39を介して
ハイレベルの信号がナントゲート41の一つの入力端子
に与えられる。
Since the low level signal SON is applied to the other input terminal, a high level signal is applied to one input terminal of the Nant gate 41 via the NOR gate 38 and the inverter 39.

ナントゲート41の一つの入力端子には、比較器C16
の設定値200よりアドレスコード031が・」\さい
ことによりHレベルの信号THANが与えられ、もう一
つの入力端子には出力セットパルス5GIOがナントゲ
ート34、インバータ40を介してハイレベルの信号が
与えられるのでナンドゲ゛−141の出力端子よりLレ
ベルの信号が出力されメモリ20に書込みパルスが与え
られる。
One input terminal of the Nant gate 41 has a comparator C16.
Since the address code 031 is smaller than the set value 200 of Therefore, an L level signal is output from the output terminal of the NAND gate 141, and a write pulse is applied to the memory 20.

これによってカウンタ1のサイクル番号はアドレスコー
ド031に書替えられる。
As a result, the cycle number of counter 1 is rewritten to address code 031.

他のカウンタ0と2は変化しない。The other counters 0 and 2 do not change.

T2.T4゜T5.T8のときも同様にして該当カウン
タにアドレスコードがセットされサイクル番号が書き替
えられる。
T2. T4゜T5. At T8, the address code is similarly set in the corresponding counter and the cycle number is rewritten.

T3の5ON372はアドレスコード372がどのカウ
ンタのアドレスゾーンにも含まれないため、メモリ20
の書込みパルスは与えられずカウンタは変化しない。
5ON372 of T3 is stored in memory 20 because address code 372 is not included in the address zone of any counter.
No write pulse is given and the counter does not change.

これはレンジ判定回路21の比較器C16の設定値20
0よりアドレスコード372が大きいためこれの出力端
子にローレベルの信号THANが出力され、ナントゲー
ト41の出力端子はハイレベルに維持され書込みパルス
は出力されないことによる。
This is the set value 20 of the comparator C16 of the range judgment circuit 21.
Since the address code 372 is greater than 0, a low level signal THAN is output to its output terminal, and the output terminal of the Nant gate 41 is maintained at a high level and no write pulse is output.

T6の5ON153はカウンタ2のアドレスゾーン内で
あるがT6以前に記憶されているサイクル番号がこれよ
り大きい161であるのでサイクル番号は変化しない。
5ON153 of T6 is within the address zone of counter 2, but the cycle number stored before T6 is 161, which is larger than this, so the cycle number does not change.

これはカウンタ2から読出されたサイクル番号161よ
りアドレスコード153の方が・」\さいため両者を比
較する犬・」・判別回路23の出力端子にハイレベルの
信号N0TLESSが出力され、ノアゲ゛−ト37をブ
ロックしメモリ20に書込みパルスを与えないことによ
る。
This is because the address code 153 is larger than the cycle number 161 read from the counter 2, so the two are compared. A high level signal N0TLESS is output to the output terminal of the discrimination circuit 23, and the This is done by blocking the memory card 37 and not applying a write pulse to the memory 20.

T7の5OFO20はアドレスコード020がどのカウ
ンタの最低アドレスとも異るのでサイクル番号に変化は
生じない。
Since the address code 020 of T7 5OFO20 is different from the lowest address of any counter, no change occurs in the cycle number.

’r9j ’rto 7 Tllではそれぞれのカウン
タの最低アドレスとオフにする命4>SOFのアドレス
コードとが一致しているのでそのアドレスコーが記憶さ
れる。
In 'r9j'rto 7 Tll, since the lowest address of each counter and the address code of OFF command 4>SOF match, that address code is stored.

T9の場合についてみれば、アドレスコードはOOOで
あるので比較器C6の設定値と一致し、一致信号EQU
Oが出力され、この信号EQUOは第5図のオア回路2
7に与えられこのオア回路27の出力には信号EQUが
出力されメモリセット信号回路24のノアゲート36の
一方の入力端子に与えられる。
In the case of T9, since the address code is OOO, it matches the set value of comparator C6, and the match signal EQU
O is output, and this signal EQUO is output to the OR circuit 2 in FIG.
A signal EQU is output from the output of the OR circuit 27 and applied to one input terminal of the NOR gate 36 of the memory set signal circuit 24.

他方の入力端子にSOFが与えられるので、ノアゲート
38、インバータ39、ナントゲート41を介してメモ
リ20には書込みパルスが与えられ、又ローレベルの信
号THANoのみが比較器C6から出力されているので
レンジ0000にて指定されるカウンタOのサイクル番
号はOOOに書き替えられる。
Since SOF is applied to the other input terminal, a write pulse is applied to the memory 20 via the NOR gate 38, inverter 39, and Nants gate 41, and only the low level signal THANo is output from the comparator C6. The cycle number of counter O specified in range 0000 is rewritten to OOO.

このようにシーケンスコントローラ10がプログラムを
実行することにより、出力台4>SON。
As the sequence controller 10 executes the program in this way, the output stage 4>SON.

SOFのアドレスコードがサイクルカウンタのアドレス
ゾーンに属すれば、カウンタを選択してサイクル番号を
適宜書き替え動作の進行に応じてサイクル番号を進める
If the address code of the SOF belongs to the address zone of the cycle counter, the counter is selected and the cycle number is appropriately rewritten to advance the cycle number as the operation progresses.

また各カウンタの最低カウント数がアドレスコードで指
定された場合、カウンタ数はクリヤされる。
Further, when the minimum count number of each counter is specified by an address code, the counter number is cleared.

(2)サイクルカウンタ読出し サイクルカウンタ10よりサイクル番号を読出す場合に
はコンピュータ11よりインタフェース17に命令を送
ることにより順次メモリ20のレンジ切替えが行われ、
データラインを通じてサイクル番号がコンピュータ11
に送られる。
(2) Reading the cycle counter When reading the cycle number from the cycle counter 10, the range of the memory 20 is sequentially changed by sending a command from the computer 11 to the interface 17.
The cycle number is 11 on the computer through the data line.
sent to.

先ず読込み開始相4>PUCPが端子45に与えられる
とフリップフロップ30がセットされ、読出し状態に切
替えるとともにカウンタ31はクリヤされる。
First, when the read start phase 4>PUCP is applied to the terminal 45, the flip-flop 30 is set and switched to the read state, and the counter 31 is cleared.

ナントゲート34の一方の入力端子には出力セット信号
S G i Oが与えられ、ナントゲート35の一方の
入力端子にはフリップフロップ30のセット側出力が与
えられているので、出力セット信号S G i Oがロ
ーレベル(メモリ書込み完了)となるとナントゲート3
5の出力端子にはローレベルの信号が出力され、カウン
タ31にてメモリ20のレンジが指定されるようデータ
セレクタ22を切替え、ナントゲート34の一方の入力
端子にローレベルの信号を与えるのでこれ以後の出力セ
ット信号S G i Oは無効にされる。
One input terminal of the Nant gate 34 is given the output set signal S G i O, and one input terminal of the Nant gate 35 is given the set side output of the flip-flop 30, so the output set signal S G When iO becomes low level (memory writing completed), Nant gate 3
A low level signal is output to the output terminal of 5, the data selector 22 is switched so that the range of the memory 20 is specified by the counter 31, and a low level signal is given to one input terminal of the Nant gate 34. The subsequent output set signal S G i O is invalidated.

このようにして読出し状態への切替えが行われる。In this way, switching to the read state is performed.

これとともにカウンタ31にて指定されるレンジ、即ち
カウンタOのカウント数がメモリ20の読出し端子に出
力されコンピュータ11に与えられる。
At the same time, the range designated by the counter 31, ie, the count number of the counter O, is output to the read terminal of the memory 20 and given to the computer 11.

次に端子47に読込み指令DiAが与えられ、ワンショ
ット回路32よりハイレベルの信号が出力されている間
に端子48にスタートパルスPULSが与えられると、
ナントゲート33を介して歩進パルスがカウンタ31に
与えられメモリ20の指定レンジを一つ進め、カウンタ
1のカウント数が読出される。
Next, a read command DiA is given to the terminal 47, and a start pulse PULS is given to the terminal 48 while a high level signal is being output from the one-shot circuit 32.
A stepping pulse is applied to the counter 31 via the Nant gate 33 to advance the specified range of the memory 20 by one, and the count number of the counter 1 is read out.

同様に読込み指4>D i A、スタートパルスPUL
Sを繰返し与えれば次々とカウンタ2,3・・・・・・
の各カウント数が順次読出される。
Similarly, reading finger 4>D i A, start pulse PUL
If S is given repeatedly, counters 2, 3, etc.
Each count number is read out sequentially.

読出し終了指4>R8Tを端子46に与えればフリップ
フロップ30はリセットされ、出力セット信号S G
i Oが与えられた時ナントゲート34,35の出力レ
ベルが反転し書き込み状態に切替えられる。
When the read end finger 4>R8T is applied to the terminal 46, the flip-flop 30 is reset and the output set signal S G
When i O is applied, the output levels of the Nant gates 34 and 35 are inverted and the write state is switched.

これ以後は前述のように書込みが行われる。After this, writing is performed as described above.

このようにして各カウンタに記憶されたサイクル番号を
コンピュータ11が定期的(例えば1秒毎)に読込み、
サイクル番号が変化するまでに伺秒要したかを監視し、
各動作毎に設定された規準時間と比較することにより各
動作の異常の有無が検知される。
The computer 11 reads the cycle numbers stored in each counter in this way periodically (for example, every second),
Monitor how many seconds it takes for the cycle number to change,
By comparing each motion with a reference time set for each motion, the presence or absence of an abnormality in each motion is detected.

異常が検知されればコンピュータ11はインタフェース
17,18より故障原因を診断する命令をシーケンスコ
ントローラ12に送出し故障原因を調べることができる
If an abnormality is detected, the computer 11 can send a command for diagnosing the cause of the failure to the sequence controller 12 via the interfaces 17 and 18 to investigate the cause of the failure.

以上述べたようにサイクルカウンタ10を構成すること
により動作要素及び動作数が多いものであってもこれら
の動作状態を正確に監視することができる。
By configuring the cycle counter 10 as described above, even if there are a large number of operating elements and operations, the operating states of these elements can be accurately monitored.

またカウンタの数とか各カウンタのカウント数は任意に
設定変えできるので、システムの変更にも容易に対処で
きる融通性がある。
Furthermore, since the number of counters and the count number of each counter can be changed arbitrarily, there is flexibility to easily deal with changes in the system.

その上、サイクルカウンタの内容をコンピュータ11が
直接監視できるようにしたので、被制御装置の異常検出
及び異常原因の究明が人為的判断なしに達成できるよう
になる。
Furthermore, since the contents of the cycle counter can be directly monitored by the computer 11, abnormality detection in the controlled device and investigation of the cause of the abnormality can be accomplished without human judgment.

【図面の簡単な説明】[Brief explanation of the drawing]

図面は本発明の実施例を示すもので、第1図はサイクル
カウンタを含むシステムのブロック線図、第2図はサイ
クルカウンタの構成を示すブロック線図、第3図、第4
図、第5図は第2図におけるレンジ判定回路の具体構成
を示す図、第6図はサイクルカウンタのカウント数が変
化していく状態を示す図である。
The drawings show an embodiment of the present invention, and FIG. 1 is a block diagram of a system including a cycle counter, FIG. 2 is a block diagram showing the structure of the cycle counter, and FIGS.
5 is a diagram showing a specific configuration of the range determination circuit in FIG. 2, and FIG. 6 is a diagram showing a state in which the count number of the cycle counter changes.

Claims (1)

【特許請求の範囲】 1 シーケンスコントローラにて制御される制御対象の
動作状態に応じたサイクル番号のデータを前記シーケン
スコントローラより出力させ、このデータを適宜記憶す
ることにより動作進行状態の認識が可能な動作状態記憶
装置であって、読み出し及び書き込み可能なメモリと、
このメモリのデータ記憶エリアを複数のレンジに設定す
るレンジ設定回路と、前記レンジ設定回路にて設定され
た設定値と比較し前記メモリのデータ入力端子に与えら
れる前記データによって前記レンジのいずれかを選択す
るレンジ選択回路と、このレンジ選択回路にて選択され
たレンジから読み出されたデータより前記データ入力端
子に与えられたデータの方が大きいかどうかを判別する
犬・」ス判別回路と、この人・」・判別回路より出力さ
れる判別信号と前記シーケンスコントローラより発せら
れるセット信号とにより前記メモリのデータ入力端子に
与えられる前記データを書き込む書込み信号を発するメ
モリセット信号回路とを有してなる動作状態記憶装置。 2 前記メモリセット回路は、前記レンジ選択回路より
発せられ、前記レンジ設定回路の設定値と等しい一致信
号と前記シーケンスコントローラから出力されるリセッ
ト信号とにより前記入力端子に与えられたデータの書込
み信号を発し、前記メモリの記憶内容を初期状態にリセ
ットするようにした特許請求の範囲第1項記載の動作状
態記憶装置。
[Scope of Claims] 1. The sequence controller outputs cycle number data corresponding to the operating state of a controlled object controlled by the sequence controller, and this data is appropriately stored, thereby making it possible to recognize the operating progress state. an operating state storage device that is readable and writable;
A range setting circuit that sets the data storage area of this memory to a plurality of ranges; and a range setting circuit that compares the set value set by the range setting circuit and selects one of the ranges according to the data applied to the data input terminal of the memory. a range selection circuit for selecting a range; a dog's discrimination circuit for determining whether the data applied to the data input terminal is larger than the data read from the range selected by the range selection circuit; a memory set signal circuit that issues a write signal for writing the data applied to the data input terminal of the memory based on a discrimination signal output from the discrimination circuit and a set signal issued from the sequence controller; An operating state storage device. 2. The memory set circuit receives a data write signal applied to the input terminal based on a match signal issued from the range selection circuit and equal to a set value of the range setting circuit, and a reset signal output from the sequence controller. 2. The operating state storage device according to claim 1, wherein the operating state storage device is configured to reset the stored contents of the memory to an initial state by issuing a signal.
JP50059429A 1975-05-19 1975-05-19 Dosajyoutaikiokusouchi Expired JPS5832406B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP50059429A JPS5832406B2 (en) 1975-05-19 1975-05-19 Dosajyoutaikiokusouchi

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP50059429A JPS5832406B2 (en) 1975-05-19 1975-05-19 Dosajyoutaikiokusouchi

Publications (2)

Publication Number Publication Date
JPS51136090A JPS51136090A (en) 1976-11-25
JPS5832406B2 true JPS5832406B2 (en) 1983-07-13

Family

ID=13113002

Family Applications (1)

Application Number Title Priority Date Filing Date
JP50059429A Expired JPS5832406B2 (en) 1975-05-19 1975-05-19 Dosajyoutaikiokusouchi

Country Status (1)

Country Link
JP (1) JPS5832406B2 (en)

Also Published As

Publication number Publication date
JPS51136090A (en) 1976-11-25

Similar Documents

Publication Publication Date Title
KR900016842A (en) Programmable controller
US5218525A (en) Method and apparatus for partially running a sequence program for debugging thereof
US5889669A (en) Programmable controller allowing an external peripheral device to monitor an internal operation state of a CPU unit
US4019175A (en) Program changeable sequence controller
CA1042111A (en) Programmable sequence controller
EP0585417A1 (en) Programmable controller with fast i/o scan
US5070476A (en) Sequence controller
US4253141A (en) Programmable sequence controller with counting function
US4176403A (en) Programmable sequence controller
US4839852A (en) Programmable controller with self testing I/O structure
JPS5832406B2 (en) Dosajyoutaikiokusouchi
US4807178A (en) Programmable sequence controller having indirect and direct input/output apparatus
KR100425371B1 (en) Method of generating and storing a user programme consisting of instructions for a stored-programme control unit and method of operating the stored-programme control unit
US4212081A (en) Programmable sequence controller with auxiliary function decoding circuit
US4048622A (en) Programmable sequence controller
US5315500A (en) Diagnostic system and method for detecting retardation of an object controlled by a programmable controller
JPH0230043B2 (en)
RU2187142C1 (en) Device for monitoring of parameters
EP0216336B1 (en) Programmable controller with self testing i/o structure
SU1721587A1 (en) Logical concurrent programmable controller
JPH06161518A (en) Programmable controller
JPH11272490A (en) Diagnostic control system
JPS594724B2 (en) Koshiyou Shindan Houshiki
JPS629442A (en) Error detecting circuit
JP2541301B2 (en) Failure detection method