JPS5979311A - Sequence controlling device - Google Patents

Sequence controlling device

Info

Publication number
JPS5979311A
JPS5979311A JP18902682A JP18902682A JPS5979311A JP S5979311 A JPS5979311 A JP S5979311A JP 18902682 A JP18902682 A JP 18902682A JP 18902682 A JP18902682 A JP 18902682A JP S5979311 A JPS5979311 A JP S5979311A
Authority
JP
Japan
Prior art keywords
speed
input
block
low
speed processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP18902682A
Other languages
Japanese (ja)
Inventor
Naruyoshi Takahashi
高橋 成悦
Akihisa Ueda
上田 晃久
Ryoichi Abe
良一 阿部
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP18902682A priority Critical patent/JPS5979311A/en
Publication of JPS5979311A publication Critical patent/JPS5979311A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To enable high speed and low speed logical control in a body by dividing the content of sequence into high speed and low speed, forming a block by dispersing the low speed processing and combining with high speed processing, and prescribing the processing time of the block. CONSTITUTION:An input signal is divided into a low speed input section 11A and a high speed input section 11B, and high speed input information is stored in the RAM15 of a CPU9. In a system processing program, a low speed processing program is dispersed into plural programs, and a high speed processing program is combined to this to form blocks 16-N and stored in a ROM10. By setting the maximum time of running of the block smaller than the time of one pulse of input to be processed at high speed, high speed input signal can be followed up surely. In low speed processing, lines forming the sequence are controlled successively little by little, and after finishing control of the last line, the first block is controlled again, and this is repeated.

Description

【発明の詳細な説明】 本発明は、シーケンス制御装置に係わり、特に入力信号
として少なくとも低速及び高速とに区別し得る二種の入
力信号に応答してシーケンスの制御を行ない得るものに
関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a sequence control device, and more particularly to an apparatus capable of controlling a sequence in response to at least two types of input signals that can be distinguished into low speed and high speed.

従来、シーケンス制御装置は該シーケンス制御をマイク
ロコンピュータにより行い、予めユーザーφ;プログラ
ミングしたプログラムをシステムプログラム鱒;順次解
析し、処理の最初に入力を取込み処理の最後で出力を出
す方式を採っており、内部処理時間が30m8以上のも
の廼(一般的である。
Conventionally, sequence control devices perform sequence control using a microcomputer, and use a method in which programs programmed in advance by the user are sequentially analyzed by the system program, and input is taken in at the beginning of processing and output is output at the end of processing. , the internal processing time is 30m8 or more (general).

従って該入力信号のパルス幅も、前記内部処理時間以上
の入力であることが必須である。ここで前記入力信号が
例えば、1m8以下の高速信号に応答しなけitばなら
ない場合は、前述した方式では不可能である。このため
、高速の入力取込み処理を完全にハードウェアにより行
ない、低速の入力取込処理をソフトウェアにより行なう
等、入力の応答を高速と低速とに完全に分離してシーケ
ンス制御を行なうものが考えられている。しかしながら
このものに於いては、前記高速入力及び低速入力に対す
るそれぞれの処理、即ち〜速処靭と低速処理は完全に独
立して起動されることになり、従って高速入力と低速入
力とのANDもしくはDR論理の制御が、困難であり、
複雑なシーケンス制御ができないこと、シーケンス制御
装置のハードウェアが複雑になりコスト高になる等の欠
点廼2有った。
Therefore, it is essential that the pulse width of the input signal is longer than the internal processing time. Here, if the input signal has to respond to a high-speed signal of, for example, 1m8 or less, the above-mentioned method is not possible. For this reason, it is conceivable to perform sequence control by completely separating the input response into high-speed and low-speed input responses, such as performing high-speed input acquisition processing completely by hardware and low-speed input acquisition processing by software. ing. However, in this case, the respective processes for the high-speed input and low-speed input, that is, ~speed processing and low-speed processing, are activated completely independently, and therefore, the AND or It is difficult to control the DR logic,
There are two drawbacks, such as not being able to perform complex sequence control, and the hardware of the sequence control device being complicated, resulting in high costs.

本発明は上記欠点に鑑み、その目的とするところは、入
力1.4号として低速及び高速とに区別し、二種の入力
ig号に応答して、高速・低速入力の論理制御alを一
体的に行なえるようにしたシーケンス制御装置を提供す
るにある。
In view of the above drawbacks, the present invention aims to distinguish between low speed and high speed as inputs 1 and 4, and integrate logic control al of high speed and low speed inputs in response to two types of inputs ig. To provide a sequence control device that can perform

即ち、本発明はシーケンス制御をマイクロコンピュータ
により行なうシーケンス制御装置に於いて、シーケンス
制御を行なうプログラムを高速処理と低速処理に分離し
、高速処理プログラムを低速処理プログラム内にサブル
ーチン方式により分散配置せしめ、各々分離された低速
処理プログラムとムと前記高速処理プログラムの一対の
組合せをブロックとして構成し、このブロックのランニ
ング最大時間を高速入力の1パルス時間の最小値より小
さくなる如く設定し、これらのブロックを順次に配置構
成したことを特徴とするものである。
That is, the present invention provides a sequence control device in which sequence control is performed by a microcomputer, in which a program for performing sequence control is separated into high-speed processing and low-speed processing, and the high-speed processing program is distributed within the low-speed processing program using a subroutine method. A pair of combinations of the low-speed processing program and the high-speed processing program, which are each separated, are configured as a block, and the maximum running time of this block is set to be smaller than the minimum value of one pulse time of the high-speed input. It is characterized by sequentially arranging and configuring.

以下1本発明の一実施例を図面に基づき詳述する。第1
図に於いて1はシーケンス制御装置の本体であり、2は
入力端子群で−その中で2Aは低速入力端子群、2Bは
高速入力端子群、3は前記入力端子群2の数に1=1に
対応して設けられた入力表示部、4け発光ダイオード等
により、本装置の種々状態表示を行なう表示手段として
の表示部である。5は前記入力表示部3と同様に、出力
端子群6に対応して設けられた出力表示部である。
An embodiment of the present invention will be described below in detail based on the drawings. 1st
In the figure, 1 is the main body of the sequence control device, 2 is a group of input terminals - among them, 2A is a group of low-speed input terminals, 2B is a group of high-speed input terminals, and 3 is the number of input terminals 2, which is equal to 1. This is a display section that serves as a display means for displaying various statuses of the apparatus using an input display section provided corresponding to 1, four light emitting diodes, and the like. Similarly to the input display section 3, 5 is an output display section provided corresponding to the output terminal group 6.

7は出力リレ一群、8I−i電源スイッチである。本体
1の内部には制御部が内蔵されており、この構成を第2
図に基づき説明する。第2図に於いて。
7 is a group of output relays and 8I-i power switch. A control unit is built inside the main body 1, and this configuration is
This will be explained based on the diagram. In Figure 2.

9は論理演算を主体とする中央演算処理部(以下CPU
と称する。)、10はシーケンス制御装置としての処理
手順を記憶した読出し専用のリード・オンリイ・メモリ
(以下、システムROMと称する。)、11は前記入力
端子群2を接続する入力部であり、本発明に於いては入
力端子群2は第1図に示す如く、低速入力端子群、2人
と高速入力端子群2Bに分離して配置されている。それ
故。
9 is a central processing unit (hereinafter referred to as CPU) that mainly performs logical operations.
It is called. ), 10 is a read-only memory (hereinafter referred to as system ROM) that stores processing procedures as a sequence control device, and 11 is an input section for connecting the input terminal group 2. As shown in FIG. 1, the input terminal group 2 is arranged separately into a low-speed input terminal group, a two-person input terminal group, and a high-speed input terminal group 2B. Therefore.

これらと接続される入力部も当然ながら第2図に示す如
く、低速入力部11A及び高速入力部11Bを構成して
いる。即ち入力端子群2より入力された入力信号はフォ
トカプラ12を介して取込まれるか、入力信号のパルス
を前記CPU9が検知できるか否かは図に示す抵抗Rと
コンデンサCの容量で決定される時定数の大きさに関係
する。そit故、第3図に示す如く、高速入力取込用の
パルス時間tに追従可能に適切な時定数に予め設定され
ている。抵抗もしくはコンデンサのいずれかの値を変え
ることにより時定数を変えることができる≠2本発明に
於いては高速人力@11B側の抵抗Hの値を低速入力部
11A側の抵抗値の約10分の1程に小さくして、高速
入力信号のパルスに応答可能に構成している。13は前
記出力端子群6を接続するための出力部、14はCPU
9から表示用データを受付け、前記表示部4へ表示する
表示作用等の制御の一切を行なうキーボード制御部であ
る。又、前記CPU9の内部には自由に読出し、書込可
能なシステムRAM11;内蔵されている。次に前記シ
ステムROM1.0に記憶されるプログラムの構成を第
4図に基づいて説明する。
As shown in FIG. 2, the input sections connected to these also constitute a low-speed input section 11A and a high-speed input section 11B. That is, whether the input signal input from the input terminal group 2 is taken in via the photocoupler 12 and whether the CPU 9 can detect the pulse of the input signal is determined by the capacitance of the resistor R and capacitor C shown in the figure. It is related to the size of the time constant. Therefore, as shown in FIG. 3, an appropriate time constant is set in advance so as to be able to follow the pulse time t for high-speed input acquisition. The time constant can be changed by changing the value of either the resistor or the capacitor ≠ 2 In the present invention, the value of the resistance H on the high-speed human power @ 11B side is approximately 10 minutes of the resistance value on the low-speed input section 11A side. It is configured to be as small as 1 in order to be able to respond to pulses of high-speed input signals. 13 is an output unit for connecting the output terminal group 6; 14 is a CPU
This is a keyboard control section that receives display data from 9 and performs all controls such as displaying on the display section 4. Furthermore, a system RAM 11 that can be freely read and written is built into the CPU 9. Next, the structure of the program stored in the system ROM 1.0 will be explained based on FIG. 4.

プログラムの先頭には前記システムRAM15の00ク
リア、前記キーボード制御部14の初期設定等の処理を
行なうべきイニシャライズのプログラムが配置されてお
り、以下高速入力を取込み。
At the beginning of the program is placed an initialization program that performs processing such as clearing the system RAM 15 to 00 and initializing the keyboard control section 14, and then takes in high-speed input.

高速入力の種類に対応して1種々高速処理として行なわ
なければならないシーケンスの制御を行なつ高速処理の
プログラムと、低速入力を取込み、低速入力の種類に対
応して、種々低速処理として行なわなければならないシ
ーケンスの制御を行なう低速処理のプログラムと≠;一
対のプログラムとして配置されており、1個のまとまっ
たプログラム、即ちブロック16を構成している。前記
高速処理のプログラムは、サブルーチンとして構成すれ
ている。前記ブロック16の次には前述したと同一内容
の高速処理のプログラムが、再び低速処理プログラムと
組合わされブロック17を構成シている。このブロック
17の低速処理プログラムは前述したブロック16の低
速処理プログラムとは内容を異にするものであり、当然
ながら、ブロック16の低速処理プログラムで制御した
シーケンスの次のシーケンスの制御を行なうものである
There is a high-speed processing program that controls the sequence that must be performed as one type of high-speed processing in response to the type of high-speed input, and a high-speed processing program that takes in low-speed input and must be performed as various low-speed processing in response to the type of low-speed input. The program is arranged as a pair of programs, including a low-speed processing program that controls sequences that cannot be executed, and constitutes one integrated program, that is, block 16. The high-speed processing program is configured as a subroutine. Next to the block 16, a high-speed processing program having the same contents as described above is again combined with a low-speed processing program to form a block 17. This low-speed processing program in block 17 is different in content from the low-speed processing program in block 16 described above, and naturally controls the sequence following the sequence controlled by the low-speed processing program in block 16. be.

以下、同様にブロック18・・・・・・・Nが順次に配
列さit−低速処理で行なわなければならないシーケン
スの最後の制御を終えた時点で前述したブロック16、
即ち先頭ブロックの先頭に戻るようにJMP%の命令語
でプログラムされているものである。
Thereafter, the blocks 18...N are arranged sequentially in the same way. When the last control of the sequence that must be performed at low speed is completed, the blocks 16, .
That is, it is programmed with the instruction word JMP% so as to return to the beginning of the first block.

ここで、AND又はOR等の入力指定から始まり。Here, start by specifying inputs such as AND or OR.

成る出力指定に至る迄の1個のまとまったロジック−即
ちシーケンスを19イン1を称するが、当然ながら前述
した各ブロックに於ける低速処理のプログラムは、数ラ
インのシーケンスを制御するものである。本発明に於い
ては、各ブロックを構成する高速処理及び低速処理のプ
ログラムの各々最長ルートのラン時間の加算値、即ち各
ブロックのラン時間の最大値が第3図に示した高速入力
信号の1パルス時同tより必ず小さい値で構成すること
≠2必須条件であり、予め、各ブロックのラン時間の最
大値6′が前述した高速入力信号の1パルス時間tより
小さくなる如く、各ブロックの低速処理プログラムで制
御するシーケンスの数、即ちライン数を制限しているも
のである。ここで当然ながら、前記高速入力信号の1パ
ルス時間tが変動するものに於いては、該最小値を1m
足するように各ブロックのラン時間が設定されるもので
ある。前述したブロックを構成する高速処理のプログラ
ムと低速処理のプログラムとは前記システムRAM15
内に設けた各種クラゲ、もしくはワークエリアのデータ
を基に情報授受を行なつ−Cおり、従って各々の処理は
分離することなく同レベルでシーケンスの制御を行ない
得るものである。
A single piece of logic, ie, a sequence, leading to the output specification is called 19-in-1, but naturally the low-speed processing program in each block described above controls a sequence of several lines. In the present invention, the sum of the run times of the longest routes of the high-speed processing and low-speed processing programs constituting each block, that is, the maximum run time of each block, is the sum of the run times of the high-speed input signals shown in FIG. It is an essential condition that the value must be smaller than t for one pulse, and each block must be configured in advance so that the maximum run time 6' of each block is smaller than the one-pulse time t of the high-speed input signal. The number of sequences, that is, the number of lines, to be controlled by the low-speed processing program is limited. Of course, if the one-pulse time t of the high-speed input signal fluctuates, the minimum value should be set to 1m.
The run time of each block is set so that they add up. The high-speed processing program and the low-speed processing program that constitute the aforementioned blocks are stored in the system RAM 15.
Information is exchanged based on data from various types of jellyfish provided within the system or work areas. Therefore, each process can be controlled at the same level without being separated.

以上の構成よりなる本発明の詳細な説明する。The present invention having the above configuration will be explained in detail.

電源スィッチ8をオンすることにより前記システムRO
M10のりスタートアドレスにプログラムカウンタが設
定され、システムROM10内の前述シタプログラムが
ランし、イニシャライズカ行なわれ一イニシャライズ終
了後は前述した各ブロック7に順次に起動されることに
なる。各ブロックのラン時間の最大値t′が前述した如
く、高迎入力信号の1パルス時間もより小さいため前述
した高速処理のプログラムは高迎入力信号の1パルス幅
より小さい周期で常時リフレッシュされることになり、
従って高速入力信号に確実に追従すること≠Zでき、高
速入力の租■類に応じて種々シーケンスの制御が行なわ
ノする。又、低速処理のプログラムに於いては、シー々
°ンスを形成する各ラインt:少しづつ順次制御され、
最終ラインの制御を終えた後は再び先頭ブロックの先頭
に戻り、以下この動作を繰返すため、シーケンスの制御
が確実知行なわれるものである。
By turning on the power switch 8, the system RO
A program counter is set at the start address of M10, and the above-mentioned program in the system ROM 10 is run and initialized. After the initialization is completed, each of the blocks 7 mentioned above is sequentially activated. As mentioned above, the maximum value t' of the run time of each block is smaller, and the time for one pulse of the high-speed input signal is also smaller, so the high-speed processing program described above is constantly refreshed at a cycle smaller than the width of one pulse of the high-speed input signal. As a result,
Therefore, it is possible to reliably follow a high-speed input signal≠Z, and various sequences of control can be performed depending on the type of high-speed input. In addition, in a low-speed processing program, each line t forming a sequence is controlled little by little sequentially,
After completing the control of the last line, the process returns to the beginning of the first block and repeats this operation, so that the sequence can be controlled reliably.

尚、高速処理プログラムに於ける高速入力の取込方法は
高速処理プログラムの先頭にて1回のみ高速入力を取込
み、その高速入力情報を前記CPU9内のシステムRA
M15のエリアに格納し、高速処理の最後までこの格納
された高速入力情報を基に高速処理が行なわれるように
なっており、高速入力値Z高M処却中に変化しても支障
のないように構成されていることはいうまでもない。本
発明に於いては入力の種類を少なくとも低速及び高速と
に区別し得る二種類と限定したが、前述した入力部の時
定数を種々変えるだけで、複数の入力を取込むことがで
き、この場合は各ブロックのラン時間の最大値を前記複
数の入力の中で最高速の入力、即ち1パルス時間tが最
小である入力に基準をおき、各ブロックのプログラムリ
ン時間を決定すればよく、実施例に限定されるものでは
ない。
Note that the method for capturing high-speed input in the high-speed processing program is to capture high-speed input only once at the beginning of the high-speed processing program, and then transmit the high-speed input information to the system RA in the CPU 9.
It is stored in the M15 area, and high-speed processing is performed based on this stored high-speed input information until the end of high-speed processing, so there is no problem even if the high-speed input value Z high M changes during processing. Needless to say, it is structured as follows. In the present invention, the types of input are limited to at least two types that can be distinguished into low speed and high speed. However, by simply changing the time constant of the input section described above, multiple inputs can be taken in. In this case, the program run time of each block may be determined by setting the maximum value of the run time of each block to the input with the highest speed among the plurality of inputs, that is, the input with the minimum one pulse time t, and determining the program run time of each block. It is not limited to the examples.

又、シーケンス制御装置本体外部に時定数切換手段を設
け、外部から任意に時定数を変える等、その実用性を更
に向上することも可能であり本発明の要旨を逸脱しない
範囲で種々の変形例、応用例が考えられることはいうま
でもない。
Further, it is possible to further improve its practicality by providing a time constant switching means outside the main body of the sequence control device and arbitrarily changing the time constant from the outside, and various modifications can be made without departing from the gist of the present invention. Needless to say, there are many possible applications.

以上、本発明シーケンス制御装置のハードウェア及びソ
フトウェアについて詳述したが、次に本発明の如くシー
ケンス制御装置≠2如何なる用途に使用されるのか、そ
の一実施例を第5図〜第9図に基づいて説明する。第5
図は、物体供給装置2゜から、長さLを異にする物体2
1を一定タイミングで長さ検出部22に繰出し、前記長
さ検出部nにより長さを記憶された物体が区分は部23
に於いて各々所症の長さの物体を格納する格納ケース3
5.36.37内に区分は装置!、1.32.53によ
り自動的に区分けする自動区分は機械等に使用させた実
施例を示したものであり1本発明シーケンス制御装置1
は制御部として使用されるものである。長さ検出部22
及び区分は部23の外側には物体の搬送状態を監視する
複数個のセンサーが配設されている。物体は高速で区分
けされるため物体の監視を行なうセンサーの入力はシー
ケンス制御装置の高速入力端子群2Bに、又起動、停止
等のスイッチや格納ケースの満杯検知等の高速処理を必
要としない各種センサー等の入力信号は低速入力端子群
2Aに配線されるものである。そして物体の区分は制御
I′i第4図に示す高速処理プログラムで、又、前記高
速を必要としない各種入力信号の取込みやその信号に基
づく各種処理、例えば格納ケース内の満杯検知や、アラ
ーム発生時の各種ランプの点灯及び起動、停止等の制御
等は第4図斃示すブロック16.17・・・・・・Nの
中のいづitかの低速処理プログラムで処理されている
ものである。次にこの自動区分は機械の構成を詳述する
The hardware and software of the sequence control device of the present invention have been described in detail above. Next, an example of how the sequence control device≠2 of the present invention is used is shown in FIGS. 5 to 9. I will explain based on this. Fifth
The figure shows objects 2 having different lengths L from the object supply device 2°.
1 to the length detecting section 22 at a certain timing, and the object whose length has been memorized by the length detecting section n is classified into the section 23.
Storage case 3 for storing objects of different lengths in each case
The classification within 5.36.37 is equipment! , 1.32.53 shows an example in which the automatic classification is used in a machine, etc. 1 Sequence control device of the present invention 1
is used as a control section. Length detection section 22
A plurality of sensors are arranged outside the section 23 to monitor the conveyance state of the object. Since objects are sorted at high speed, inputs from sensors that monitor objects are sent to the high-speed input terminal group 2B of the sequence control device, and various types of inputs that do not require high-speed processing, such as switches for starting and stopping, and detection of fullness of storage cases, etc. Input signals from sensors and the like are wired to the low-speed input terminal group 2A. The classification of objects is controlled by the high-speed processing program shown in Figure 4 of Control I'i, which also captures various input signals that do not require the above-mentioned high speed and performs various processes based on those signals, such as detecting a storage case full or alarming. The control of lighting, starting, stopping, etc. of various lamps at the time of occurrence is handled by one of the low-speed processing programs in blocks 16, 17...N shown in Figure 4. . This automatic segmentation then details the configuration of the machine.

第5図に於いて20は前述した如く、物体供給装置(以
下−供給装置と称するa )で、前記長さ検出部22の
右側端上方に設けられている。2311−1′区分は部
であり、第6図に示す如く搬送ベルト2aの内側両端に
4組の回転体25.26,27.28値2回転自在に取
付けられ、その中で回転体25い;支軸25Aを介して
駆動モータ29の動力を得て第5図に示す回転方向に回
動し、前記搬送ベルト24を一定速度で上面が左方向に
進行する如く回動させている。前記長さ検出部22も搬
送ベルト22Ay’+Z、駆動モータ(図示せず)の動
力を得て回転体22Bを介して図の矢印方向に回動して
いる。
In FIG. 5, reference numeral 20 denotes an object supply device (hereinafter referred to as the supply device a), which is provided above the right end of the length detection section 22, as described above. The section 2311-1' is a part, and as shown in FIG. 6, four sets of rotating bodies 25, 26, 27, and 28 are attached to both ends of the inner side of the conveyor belt 2a so as to be able to freely rotate twice. ; The drive motor 29 receives power through the support shaft 25A to rotate in the rotation direction shown in FIG. 5, and the conveyor belt 24 is rotated at a constant speed so that the upper surface thereof moves leftward. The length detecting section 22 also receives power from a conveyor belt 22Ay'+Z and a drive motor (not shown) and rotates in the direction of the arrow in the figure via a rotating body 22B.

ここで前記1区分は部23と長さ検出部22は同方向に
同期して、回動する如く構成されている。
Here, the one section section 23 and the length detecting section 22 are configured to rotate in synchronization in the same direction.

30は長さ検出部22により搬送される物体21を受け
る傾斜体であり、駆動装置30Aによりここを中心とし
て図の破線で示す如く位置まで回動傾斜し、物体21を
区分は部23へ落下供給し、供給後はハードウェアタイ
マーにより自動的に実線で示す位置に回動復帰する構成
となっている。
Reference numeral 30 denotes a tilting body that receives the object 21 conveyed by the length detection section 22, and is rotated and tilted around this point by a drive device 30A to a position as shown by the broken line in the figure, and the object 21 is sorted and falls to the section 23. After the supply, the hardware timer automatically rotates and returns to the position shown by the solid line.

前記区分は部23を構成する搬送ベルト24の中央部V
C&′i第7図に示す如く開口部24A#;、3個設け
られている。この開口部24Aにはシャッター31.3
2.33が各々駆動装置31A、32A。
The said section is the central part V of the conveyor belt 24 which constitutes the part 23.
As shown in FIG. 7, three openings 24A# are provided. This opening 24A has a shutter 31.3.
2.33 are drive devices 31A and 32A, respectively.

33Aにより第8図に示す如く開閉自在に取イ4けられ
ている。これらのシャッターはゴム等の弾性体で形成さ
れており、駆動装置の通電状態で前記開口部24Aを遮
閉し、オフ状態で開口部24Aを第8図に示す如く開口
する構成となっており、通電状態では物体21の重量に
充分耐え得る剛性をもっており、且つ搬送ベルト24が
回動し、回転体等の曲線部に於いては湾曲できる程度の
強度を有するものである。又、これらのシャッターは。
33A so that it can be opened and closed as shown in FIG. These shutters are made of an elastic material such as rubber, and are configured to close the opening 24A when the drive device is energized, and open the opening 24A when the drive device is OFF, as shown in FIG. In the energized state, it has enough rigidity to withstand the weight of the object 21, and has enough strength to rotate the conveyor belt 24 and bend the curved portion of the rotating body. Also, these shutters.

通電オフで開口した後、一定時間後にハードウェアタイ
マー等により通電状態となり、自動的に前記開口部24
Aを遮閉する如く構成となっている。
After the opening is opened with the power turned off, the power is turned on by a hardware timer or the like after a certain period of time, and the opening 24 is automatically opened.
The structure is such that it blocks A.

前記長さ検出部22の上面には長さ検出センサーSLが
、又区分は部23の外周部には物体搬送監視のためのセ
ンサーSA、SB、5C0SD、SFが設けられている
。各々のセンサーは第6図及び第7図に示す如く発光素
子、受光素子の一対により構成される検出器である。3
4は第9図に示す如く、搬送ベルト24の一端に固定さ
れたマーク体であり、′前記センサーSD及びSEのみ
に検知され、長さ検出部22への物体供給を制御するた
めのタイミングとして使用されるものである。35゜5
6.57は搬送され、かつ長さ別に区分けされた物体を
格納するための格納ケースであり、実施例に於いては搬
送される物体の長さはLBとLCの2種類でありLB>
LOの関係をもっており。
A length detection sensor SL is provided on the upper surface of the length detection section 22, and sensors SA, SB, 5COSD, and SF for monitoring object conveyance are provided on the outer periphery of the section section 23. Each sensor is a detector composed of a pair of a light emitting element and a light receiving element as shown in FIGS. 6 and 7. 3
4 is a mark fixed to one end of the conveyor belt 24, as shown in FIG. It is used. 35°5
6.57 is a storage case for storing objects that are transported and sorted by length; in this embodiment, there are two lengths of objects that are transported, LB and LC; LB>
We have a LO relationship.

35はLBの物体を、36はLCの物体をそれぞれ格納
するものである。LBでもLCでもない規定外の長さを
有する物体は本実施例に於いては不良品と判定し、区分
は部23の外側に設置した格納ケース37内に、搬送物
体の自重を利用して自然落下させている。次に本実施例
に於ける自動区分は機械の高速処理の作用を第10図の
フローチャートに基づき説明する。前述した如く物体の
搬送制御は高速処理プログラムで処理される。自動区分
は機械の電源を入れると前記システムROM10内のプ
ログラムが起動され、システムRAM15の00クリア
等、各種ソフトウニ1上のイニシャライズと自動区分は
機械を構成する各種機構部のリセット動作t;行なわれ
、ホームポジションに各機構部は待機する。このあと長
さ検出部22及び区分は部23の各々の搬送ベルト22
A及び24が回動し始める。このあと起動スイッチ(図
示せず)のオン検出fJzされるまで、前記イニシャラ
イズのプログラムはループL、 起’llhスイッチの
オン検出を待っている。起動スイッチをオンすると、イ
ニシャライズを抜は出て、第4図のブロック161c入
り、第1回目の高速処理プログラムが起動され、センサ
入力情報がシステムRAM1s内に格納される。その後
1種々判定を経てリターンする。センサーSDの入力が
立上るまでブロック16.17・・・・・・Ny5Z繰
返されることになる。高速処理プログラムでの処理は必
要最小限にとどめ、プログラムのラン時間を極力短かく
し、走るルートによるワン時間のバラツキを低速処理ブ
ロゲラム内で吸収できるように低速処理プログラムの処
、埋を多く構成している。センサーSL、5A−3Eの
入力取込は高速処理プログラムの先頭で行なわれるよう
にして、長さ検出部22に於ける長さ検出がより正確に
行なわれるよう各ブロックのプログラムワン時間に大幅
な差がなく、平均したラン時間となるように各ブロック
の低速処理プログラムを組立てている。第10図に於い
て1区分は部23の搬送ベルト24の一端に設けたマー
ク体34がセンサーSDに於いて立上り、即ちオフから
オンに変化したことを検知される供給装置20が駆動さ
れ、物体21が1個供給される。この時、ジャム監視用
のフラグ−2七ツトされる。長さ検出部22の長さ検出
センサ5L−1r:立上るとシステムRAIt415内
に設けた長さカウンタをクリア後。
35 stores LB objects, and 36 stores LC objects. In this embodiment, an object having an unspecified length that is neither LB nor LC is determined to be a defective product, and is sorted into a storage case 37 installed outside the section 23 using the weight of the transported object. It is allowed to fall naturally. Next, the automatic sorting in this embodiment will be explained based on the flowchart of FIG. 10 regarding the high-speed processing of the machine. As described above, object transport control is processed using a high-speed processing program. For automatic classification, when the machine is turned on, the program in the system ROM 10 is started, and the system RAM 15 is cleared to 00, initialization on various software programs 1, etc., and automatic classification is performed by resetting the various mechanical parts that make up the machine. Then, each mechanical section waits at its home position. After this, the length detecting section 22 and the section 23 each conveyor belt 22
A and 24 begin to rotate. Thereafter, the initialization program waits for loop L until the start switch (not shown) is detected to be on. When the start switch is turned on, initialization is skipped, block 161c in FIG. 4 is entered, the first high-speed processing program is started, and sensor input information is stored in the system RAM 1s. After that, the process returns after passing through various judgments. Blocks 16, 17...Ny5Z will be repeated until the input of sensor SD rises. The processing in the high-speed processing program is kept to the necessary minimum, the run time of the program is kept as short as possible, and the low-speed processing program is configured with many sections so that the one-hour variation depending on the running route can be absorbed within the low-speed processing program. ing. The inputs of the sensors SL and 5A-3E are taken at the beginning of the high-speed processing program, and the program time for each block is significantly increased so that the length detection section 22 can detect the length more accurately. The low-speed processing program for each block is assembled so that there is no difference and the run time is average. In FIG. 10, in one section, the supply device 20 is driven, where it is detected that the mark body 34 provided at one end of the conveyor belt 24 of the section 23 rises at the sensor SD, that is, changes from OFF to ON. One object 21 is supplied. At this time, the jam monitoring flag -2 is set. Length detection sensor 5L-1r of length detection unit 22: After clearing the length counter provided in the system RAIt 415 upon startup.

カウント値を−F1カウントアツプする。長さ検出セン
サーS Lがオンの間、即ち物体21φ2通過中は、f
r日カウントアツプされ、立下り穀2検知された場合に
、それまでの長さカウンタ値をシステムRAM15P+
に登録するようにしてカウンタの値に相当する物体の長
さL≠;記憶されることになる。
Increase the count value by -F1. While the length detection sensor S L is on, that is, while the object 21φ2 is passing, f
When the count is up for r days and falling grain 2 is detected, the length counter value up to that point is stored in the system RAM 15P+.
The length L of the object corresponding to the counter value is stored in such a manner that the length L≠;

長さ検出センサーST、を通過した物体は傾斜体犯の上
面に移動し、停止するように構成されている。
The object passing through the length detection sensor ST is configured to move to the top surface of the tilting body and stop.

前記マーク体36がその後、センサーSEで立上り全検
出さiすると傾斜体30−g駆動装置3(IAにより駆
動し2それと共に物体21が自重により滑り落ち、シャ
ッター31の上面で停止する如くセンサーSD及びS 
Eの位置を設定しているものである。そしてジャム監視
フラグがオン、即−1,セット状態である時はジャム監
視タイマーを+1カウントアツプし、その結果値がジャ
ムリミツト値より大きいとき、即ちタイムオーバーのと
きは、ジャム発生と判断し、リターン後、低速処理に於
いて本自動区分は機械は停止する。物体が供給され。
Thereafter, when the mark body 36 rises and is completely detected by the sensor SE, the tilting body 30-g is driven by the driving device 3 (IA), and the object 21 slides down due to its own weight and stops on the upper surface of the shutter 31. and S
This sets the position of E. When the jam monitoring flag is on, immediately set to -1, the jam monitoring timer is counted up by +1, and when the resulting value is greater than the jam limit value, that is, when the time is over, it is determined that a jam has occurred, and after returning , during low-speed processing, this automatic classification will cause the machine to stop. The object is supplied.

物体≠:センサーSAで立下りを検出されたときはジャ
ム監視は次の物体が供給されるまでスキップされる。シ
ャッター31上の物体が移動し、センサーSBで立上り
を検出されると、長さ検出センサーSLにより既にシス
テムRAM15内に記憶されている長さカウンタ値を判
定し、その値dZLBの範囲であるときは、シャッター
B即ち第5図に於ける32’tオフし、第8図に示す如
く物体21を格納ケース35内に格納する。ここで長さ
LBの範囲とは、搬送速度の変動や、高速処理プログラ
ムの起動タイミングの多少のバラツキを考慮し一規定寸
法に於けるカウンタ値に上限値及び下限値を考慮した値
、即ち下限値〜上限値の値を意味する。物体の長さがL
Bでないとき、物体はセンサ−3Cに移動し、立上りを
検出されると、同様に長さカウンタ値が判定され、LC
の範囲であるとき、シャッター01即ち33ガオフし、
物体は格納ケース36内に格納される。TJ 13でも
LOでもない物体は両方のシャッターがオフしないため
、そのまま移動し、格納ケース67内に不良品として格
納されるものである。シャッターB、Oのいずれかがオ
フし、物体が格納された場合は前記長さカウンタはクリ
アされる。実施例は区分は部23の1回転によって物体
1個の区分けを行なう構成としたが、複数個の区分けを
行なうことも可能であり、又、LB 、LOの二種類に
区分けしたがその種類を変えることも可能である。この
場合は轟然ながら高速処理プログラムも変わるものであ
る。
Object≠: When sensor SA detects a falling edge, jam monitoring is skipped until the next object is supplied. When the object on the shutter 31 moves and the rising edge is detected by the sensor SB, the length counter value already stored in the system RAM 15 is determined by the length detection sensor SL, and when the value is within the range of dZLB. Then, the shutter B, that is, 32't in FIG. 5, is turned off, and the object 21 is stored in the storage case 35 as shown in FIG. Here, the range of length LB is a value that takes into account the upper and lower limits of the counter value for a specified dimension, taking into account fluctuations in conveyance speed and slight variations in the startup timing of the high-speed processing program, that is, the lower limit. It means a value between value and upper limit value. The length of the object is L
When the object is not B, the object moves to the sensor 3C, and when the rising edge is detected, the length counter value is similarly determined and the LC
When the range is 01, that is, 33 degrees, the shutter is off,
The object is stored in a storage case 36. For objects that are neither TJ 13 nor LO, since both shutters are not turned off, the object moves as it is and is stored in the storage case 67 as a defective item. When either shutter B or O is turned off and the object is stored, the length counter is cleared. In the embodiment, one rotation of the part 23 separates one object, but it is also possible to separate multiple objects, and although the classification is divided into two types, LB and LO, the types can be changed. It is also possible to change. In this case, the high-speed processing program will change dramatically.

以上、本発明によれば、従来、入力信号のパルス幅はプ
ログラム内部熟卵時間以上の入力でなければならない欠
点を、入力端子群に接続される入力部に、%速入力部を
設け、且つプログラム構成をブロック化し、そのプログ
ラムラン時間の最大値を管理することにより、1m8以
下の高速入力に対応し高速を必要とするシーケンスの制
御が可能となり、シーケンス制御の最大の目的である一
処理の高速化に極めて優れた効果を提供することができ
る。又、従来のように複雑なハードウェアの追加も不要
であり%簡単なプログラム4ti1成にて、複雑なシー
ケンス制御力;可能である。又、実施例では、入力端子
群に1:1に対応して設けた入力表示部にも、前記プロ
グラムの中で、各入力のオン、オフ表示7行なうように
構成しているものであり、高速入力のオン、オフ状態か
外部から容易にに確認でき、保守性能も向上することが
できる等の(凛めて実用性穴なるシーケンス制御装置を
提供することができる。
As described above, according to the present invention, the conventional drawback that the pulse width of the input signal must be equal to or longer than the program internal ripening time is solved by providing a % speed input section in the input section connected to the input terminal group, and By dividing the program configuration into blocks and managing the maximum value of the program run time, it is possible to control sequences that require high speed and support high-speed inputs of 1m8 or less, and it is possible to control sequences that require high speed, which is the main purpose of sequence control. It is possible to provide an extremely excellent effect on speeding up. Further, there is no need to add complicated hardware as in the past, and complex sequence control is possible with a simple program. In addition, in the embodiment, the input display section provided in a 1:1 correspondence with the input terminal group is also configured to display seven on/off indications for each input in the program, It is possible to provide a highly practical sequence control device in which the on/off state of high-speed input can be easily checked from the outside and maintenance performance can be improved.

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

第1図は本発明シーケンス制#装置の正面図、第2図は
制御部のブロック図、第3図は入力信号とプログラム処
理時間を対比して示す説明図、第4図tよ、プログラム
の基本構成を示す構成図−第5図は、本発明を適応する
具体装置の構成図、第6図は%第5図P−p線に沿った
縦断面図、第1図は、第5図要部を示す平面図、第8図
は、第7図のQ、−1に沿った縦断面図、第9図&:、
Iニー第5図のR−R’にrむった根断面図、第10図
は、具体4)11に基づく動作フロー図である。 2・・・入カザI;1シ子群。 11A・・・低速入力部、 1113・・・高速入力部。 10・・・h己t¥186. 16〜N・・・ブロック。 16a、 17a・・・[4a・・・高速処理プログラ
ム、16b、 171)・・・N’b・・・低速処理プ
ログラム。
Fig. 1 is a front view of the sequence control # device of the present invention, Fig. 2 is a block diagram of the control section, Fig. 3 is an explanatory diagram showing a comparison of input signals and program processing time, and Fig. 4 t is a diagram of the program processing time. A configuration diagram showing the basic configuration - FIG. 5 is a configuration diagram of a concrete device to which the present invention is applied, FIG. 6 is a vertical cross-sectional view taken along the line P--P in FIG. A plan view showing the main parts, FIG. 8 is a longitudinal sectional view taken along Q, -1 in FIG. 7, and FIG. 9 &:,
The root sectional view taken along line RR' in FIG. 5 and FIG. 10 are operation flowcharts based on Specification 4) 11. 2...Irukaza I; 1 Shishi group. 11A...Low speed input section, 1113...High speed input section. 10...h self ¥186. 16~N...Block. 16a, 17a...[4a...High speed processing program, 16b, 171)...N'b...Low speed processing program.

Claims (1)

【特許請求の範囲】 1、 プログラムさitたシーケンス内容を記ffiス
ル記1意部、該記憶部の内容に基づいて入力部からの入
力信号について論理演算を行うと共に、演算結果を出力
部へ導出するための演算処理ユニットを備えたシーケン
ス制御装置において、上記シーケンス内容を高速処理す
べき高速処理プログラムと低速処理すべき低速処理プロ
グラムに分けると共に、低速処理プログラムは複数個に
分散配置し。 さらに上記高速処理プログラムを分散配置された各低速
処理プログラムに組合せてブロックを構成させて上記記
憶部に配置し、このブロックのランニング最大時11■
を高速処理すべき入力の1パルス時間より小さく設定し
てなるシーケンス制御装置。 2 上記低速処理プログラムは、各ブロックのランニン
グ最大時間が高速処理すべき入力の1パルス時間を越え
ないように各ブロックについてその長さを決めらitで
なる%rr請求の範囲第1項記載のシーケンス制御装置
。 己、最小値を越えないように、各プロ・ツクについてそ
の長さを決めて分散配置されてなる特許請求の範囲第1
項記載のシーケンス制御装置。 4、上記低速熱1浬プログラムは各ブロックについては
I′tk、同じランニング時1Fftとなるよう長さを
決めて分散配置されてなる特許請求の範囲第1項または
第2項記載のシーケンス制御装置。
[Claims] 1. A unique section in which the contents of the programmed sequence are recorded, a logical operation is performed on the input signal from the input section based on the contents of the storage section, and the operation result is sent to the output section. In a sequence control device equipped with an arithmetic processing unit for derivation, the sequence contents are divided into a high-speed processing program to be processed at high speed and a low-speed processing program to be processed at low speed, and the low-speed processing programs are distributed and arranged in a plurality of pieces. Furthermore, the high-speed processing program is combined with each of the distributed low-speed processing programs to form a block, which is placed in the storage section, and when the maximum running time of this block is 11.
A sequence control device in which the input pulse time is set to be shorter than the one-pulse time of the input to be processed at high speed. 2. The low-speed processing program determines the length of each block so that the maximum running time of each block does not exceed the time of one pulse of the input to be processed at high speed. Sequence control device. The length of each program is determined and distributed so as not to exceed the minimum value.
Sequence control device as described in section. 4. The sequence control device according to claim 1 or 2, wherein the slow heating program is arranged in a distributed manner with a length determined so that each block has I'tk and 1 Fft during the same running. .
JP18902682A 1982-10-29 1982-10-29 Sequence controlling device Pending JPS5979311A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18902682A JPS5979311A (en) 1982-10-29 1982-10-29 Sequence controlling device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18902682A JPS5979311A (en) 1982-10-29 1982-10-29 Sequence controlling device

Publications (1)

Publication Number Publication Date
JPS5979311A true JPS5979311A (en) 1984-05-08

Family

ID=16234050

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18902682A Pending JPS5979311A (en) 1982-10-29 1982-10-29 Sequence controlling device

Country Status (1)

Country Link
JP (1) JPS5979311A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61161507A (en) * 1985-01-11 1986-07-22 Toshiba Mach Co Ltd Direct input/output system of programmable controller
JPS61170803A (en) * 1985-01-25 1986-08-01 Hitachi Ltd Sequence control method
JPS62276604A (en) * 1986-05-26 1987-12-01 Nissan Motor Co Ltd Sequence controller
JPS6431203A (en) * 1987-07-28 1989-02-01 Hitachi Ltd Sequence control system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61161507A (en) * 1985-01-11 1986-07-22 Toshiba Mach Co Ltd Direct input/output system of programmable controller
JPS61170803A (en) * 1985-01-25 1986-08-01 Hitachi Ltd Sequence control method
JPS62276604A (en) * 1986-05-26 1987-12-01 Nissan Motor Co Ltd Sequence controller
JPS6431203A (en) * 1987-07-28 1989-02-01 Hitachi Ltd Sequence control system

Similar Documents

Publication Publication Date Title
US4214663A (en) Transfer apparatus for selectively transferring objects from a delivery conveyor to selected sections of a receiving conveyor
US5678393A (en) Drug packing apparatus
US5638657A (en) System and method for automatically feeding, inspecting and diverting tablets for continuous filling of tablet containers
US4181947A (en) Conveyor sorting system
US4592053A (en) Programmable controller
CN105151429A (en) Weighing and removing mechanism of egg sorting device
JPS5979311A (en) Sequence controlling device
US4187545A (en) Article orientation determining apparatus
US5414634A (en) System and method for controlling item selection, sequence and completeness
NL2001506C2 (en) Small metal objects i.e. fasteners packaging device, has gutter element collecting objects from drum and moving objects one by one towards end of gutter element for disposal of objects
US4384202A (en) Track controller for a document processor
GB2177991A (en) Apparatus for orienting containers
JP2963415B2 (en) Medicine bag sorting device
JPH04304827A (en) Automatic feeding device having group control function for livestock
CN108313407B (en) Material length detection method and detection device
KR0157591B1 (en) The counting system for fish
JPS5847719A (en) Assortment controller
CA1253448A (en) Apparatus for orienting containers
JPH0391413U (en)
JP2799534B2 (en) Separation and supply method of block pieces
JP4296297B2 (en) Egg collection and assembly equipment
JP2670639B2 (en) Parts counting device
SU963023A1 (en) Device for registering closed conveyer capacity
JP6053458B2 (en) Weight sorter
JPS6082523A (en) Sensing device for condition of transported object on the line